diff --git a/SPECS/python3x-setuptools.spec b/SPECS/python3x-setuptools.spec index a850740..524cc47 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: 41.6.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Easily build and distribute Python packages # setuptools is MIT # packaging is BSD or ASL 2.0 @@ -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 # python38 installs the alternatives master symlink to which we attach a slave Requires: python38 Requires(post): python38 @@ -178,7 +180,7 @@ alternatives --add-slave python3 %{_bindir}/python3.8 \ %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}/python3.8 \ + alternatives --keep-foreign --remove-slave python3 %{_bindir}/python3.8 \ easy_install-3 fi @@ -203,6 +205,10 @@ fi %changelog +* Mon Aug 02 2021 Tomas Orsava - 41.6.0-5 +- Adjusted the postun scriptlets to enable upgrading to RHEL 9 +- Resolves: rhbz#1933055 + * Mon Mar 09 2020 Tomas Orsava - 41.6.0-4 - Implement the alternatives system for the executables - Resolves: rhbz#1807041