diff --git a/SPECS/python-wheel.spec b/SPECS/python-wheel.spec index c1cdd44..544b6a1 100644 --- a/SPECS/python-wheel.spec +++ b/SPECS/python-wheel.spec @@ -8,7 +8,7 @@ Name: python-%{pypi_name} Version: 0.33.6 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Built-package format for Python License: MIT @@ -48,6 +48,8 @@ BuildRequires: python%{python3_pkgversion}-pytest %endif %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} +# 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 @@ -110,7 +112,7 @@ alternatives --add-slave python3 %{_bindir}/python%{python3_version} \ %postun -n python%{python3_pkgversion}-%{pypi_name} # 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} \ %{pypi_name}-3 fi @@ -131,6 +133,10 @@ fi %endif %changelog +* Mon Aug 02 2021 Tomas Orsava - 0.33.6-6 +- Adjusted the postun scriptlets to enable upgrading to RHEL 9 +- Resolves: rhbz#1933055 + * Mon Mar 09 2020 Tomas Orsava - 0.33.6-5 - Implement the alternatives system for the executables - Resolves: rhbz#1807041