diff --git a/SPECS/python3x-setuptools.spec b/SPECS/python3x-setuptools.spec index d4be903..f4eec0b 100644 --- a/SPECS/python3x-setuptools.spec +++ b/SPECS/python3x-setuptools.spec @@ -14,7 +14,7 @@ Name: python3x-setuptools # When updating, update the bundled libraries versions bellow! Version: 50.3.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Easily build and distribute Python packages # setuptools is MIT # appdirs is MIT @@ -77,6 +77,8 @@ Summary: Easily build and distribute Python 3 packages Provides: python%{python3_version}dist(setuptools) = %{version} %endif +# Require alternatives version that implements the --keep-foreign flag +Requires(postun): alternatives >= 1.19.1-1 # python39 installs the alternatives master symlink to which we attach a slave Requires: python%{python3_pkgversion} Requires(post): python%{python3_pkgversion} @@ -178,7 +180,7 @@ alternatives --add-slave python3 %{_bindir}/python%{python3_version} \ %postun -n python%{python3_pkgversion}-setuptools # Do this only during uninstall process (not during update) if [ $1 -eq 0 ]; then - alternatives --remove-slave python3 %{_bindir}/python%{python3_version} \ + alternatives --keep-foreign --remove-slave python3 %{_bindir}/python%{python3_version} \ easy_install-3 fi @@ -205,6 +207,10 @@ fi %changelog +* Thu Aug 05 2021 Tomas Orsava - 50.3.2-4 +- Adjusted the postun scriptlets to enable upgrading to RHEL 9 +- Resolves: rhbz#1933055 + * Tue Jan 05 2021 Tomas Orsava - 50.3.2-3 - Convert from Fedora to the python39 module in RHEL8 - Resolves: rhbz#1877430