public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dave Dykstra <2129743+DrDaveD@users.noreply.github.com>
To: git-commits@fedoraproject.org
Subject: [rpms/apptainer] migrate-spdx: update to 1.1.5, including changing obsoletes to conflicts on main package
Date: Mon, 03 Aug 2026 17:53:05 GMT [thread overview]
Message-ID: <178577958573.1.5489648805049334883.rpms-apptainer-625aae4af6a1@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/apptainer
Branch : migrate-spdx
Commit : 625aae4af6a1025dc890254cafd9beb2a2eccab0
Author : Dave Dykstra <2129743+DrDaveD@users.noreply.github.com>
Date : 2023-01-10T14:30:18-06:00
Stats : +60/-10 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/apptainer/c/625aae4af6a1025dc890254cafd9beb2a2eccab0?branch=migrate-spdx
Log:
update to 1.1.5, including changing obsoletes to conflicts on main package
---
diff --git a/apptainer.spec b/apptainer.spec
index 9912197..8e9f873 100644
--- a/apptainer.spec
+++ b/apptainer.spec
@@ -31,18 +31,18 @@
# This can be slightly different than %%{version}.
# For example, it has dash instead of tilde for release candidates.
-%global package_version 1.1.4
+%global package_version 1.1.5
# Uncomment this to include a multithreaded version of squashfuse_ll
%global squashfuse_version 0.1.105
-# 3.8.7-3 was the last release of the old singularity in EPEL/Fedora.
-%global obsoletes_singularity_version 3.8.7-4
+# The last singularity version number in EPEL/Fedora
+%global last_singularity_version 3.8.7-3
Summary: Application and environment virtualization formerly known as Singularity
Name: apptainer
-Version: 1.1.4
-Release: 3%{?dist}
+Version: 1.1.5
+Release: 1%{?dist}
# See LICENSE.md for first party code (BSD-3-Clause and LBNL BSD)
# See LICENSE_THIRD_PARTY.md for incorporated code (ASL 2.0)
# See LICENSE_DEPENDENCIES.md for dependencies
@@ -58,9 +58,15 @@ Patch11: https://github.com/vasi/squashfuse/pull/77.patch
Patch12: https://github.com/vasi/squashfuse/pull/81.patch
%endif
-# The singularity package was renamed to apptainer. Note that is also
-# on the apptainer-suid subpackage below.
-Obsoletes: singularity < %{obsoletes_singularity_version}
+# This Conflicts is in case someone tries to install the main apptainer
+# package when an old singularity package is installed. An Obsoletes is on
+# the apptainer-suid subpackage below. If an Obsoletes were here too, it
+# would get different behavior with yum and dnf: a "yum install apptainer"
+# on EL7 would install only apptainer but a "dnf install apptainer" on EL8
+# or greater would install both apptainer and apptainer-suid. With this
+# Conflicts, both yum and dnf consistently install both apptainer and
+# apptainer-suid when apptainer is requested while singularity is installed.
+Conflicts: singularity <= %{last_singularity_version}
# In the singularity 2.x series there was a singularity-runtime package
# that could have been installed independently, but starting in 3.x
@@ -115,7 +121,7 @@ Requires: %{name} = %{version}-%{release}
# The singularity package was renamed to apptainer. The Obsoletes is
# on this subpackage for greater compatibility after an update from the
# old singularity.
-Obsoletes: singularity < %{obsoletes_singularity_version}
+Obsoletes: singularity <= %{last_singularity_version}
%description suid
Provides the optional setuid-root portion of Apptainer.
@@ -196,9 +202,49 @@ if [ ! -f /usr/bin/fuse2fs ] && [ ! -f /usr/sbin/fuse2fs ]; then
fi
%endif
+%post
+# $1 in %%posttrans cannot distinguish between fresh installs and upgrades,
+# so check it here and create a file to pass the knowledge to that step
+if [ "$1" -eq 1 ] && [ -d %{_sysconfdir}/singularity ]; then
+ touch %{_sysconfdir}/%{name}/.singularityupgrade
+fi
+
%posttrans
# clean out empty directories under /etc/singularity
rmdir %{_sysconfdir}/singularity/* %{_sysconfdir}/singularity 2>/dev/null || true
+if [ -f %{_sysconfdir}/%{name}/.singularityupgrade ]; then
+ pushd %{_sysconfdir}/%{name} >/dev/null
+ rm .singularityupgrade
+ # This is the first install of apptainer after removal of singularity.
+ # Import any singularity configurations that remain, which were left
+ # because they were non-default.
+ find %{_sysconfdir}/singularity ! -type d 2>/dev/null|while read F; do
+ B="$(echo $F|sed 's,%{_sysconfdir}/singularity/,,;s/\.rpmsave//')"
+ if [ "$B" == singularity.conf ]; then
+ echo "info: renaming $PWD/%{name}.conf to $PWD/%{name}.conf.rpmorig" >&2
+ mv %{name}.conf %{name}.conf.rpmorig
+ echo "info: converting configuration from $F into $PWD/%{name}.conf" >&2
+ %{_bindir}/%{name} confgen $F %{name}.conf
+ elif [ "$B" == remote.yaml ]; then
+ echo "info: renaming $PWD/$B to $PWD/$B.rpmorig" >&2
+ mv $B $B.rpmorig
+ echo "info: merging $F into $PWD/$B" >&2
+ (
+ sed -n '1p' $F
+ sed -n '2,$p' $B.rpmorig
+ sed -n '3,$p' $F
+ ) >$B
+ else
+ if [ -f "$B" ]; then
+ echo "info: renaming $PWD/$B to $PWD/$B.rpmorig" >&2
+ mv $B $B.rpmorig
+ fi
+ echo "info: copying $F into $PWD/$B" >&2
+ cp $F $B
+ fi
+ done
+ popd >/dev/null
+fi
# Define `%%license` tag if not already defined.
# This is needed for EL 7 compatibility.
@@ -234,6 +280,10 @@ rmdir %{_sysconfdir}/singularity/* %{_sysconfdir}/singularity 2>/dev/null || tru
%attr(4755, root, root) %{_libexecdir}/%{name}/bin/starter-suid
%changelog
+* Tue Jan 10 2023 Dave Dykstra <dwd@fnal.gov> - 1.1.5-1
+- Update to upstream 1.1.5, including changing the obsoletes on the main
+ apptainer package to conflicts.
+
* Wed Jan 4 2023 Dave Dykstra <dwd@fnal.gov> - 1.1.4-3
- Restore the singularity obsoletes on the apptainer main package, so
that now it is on both the main package and suid subpackage.
diff --git a/sources b/sources
index 5b07250..6ddf347 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
SHA512 (squashfuse-0.1.105.tar.gz) = 6bf18575fd4732f3b0e4530902f2556859c2efbbd781a31bdbf97fe6601412dc750a80354a8ab08a3132d4f8680ea5ff0dd04440f29243906f1017aa6c70bede
-SHA512 (apptainer-1.1.4.tar.gz) = 636336bb8db254c68252021b77b498476bb21697d8f41875a3d943764d6976edc3f55bc081409f37678f7815ff7e3faef304cb61c93c0adaa4d8f7f7c9f30509
+SHA512 (apptainer-1.1.5.tar.gz) = e6a5d392f3874f093a8580508e83e270140ad52606c7856797e7e7665dd6687e63900984a4cb920c3cba9a4b7148047de4085a4353c9c77697b94f8d9cd099fc
reply other threads:[~2026-08-03 17:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178577958573.1.5489648805049334883.rpms-apptainer-625aae4af6a1@fedoraproject.org \
--to=2129743+drdaved@users.noreply.github.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox