From bef38c93c48ad784479d0394d69706b7d54e508b Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 9 Nov 2021 04:53:05 -0500 Subject: [PATCH] import python-wheel-0.31.1-3.module+el8.5.0+12203+77770ab7 --- SPECS/python-wheel.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/SPECS/python-wheel.spec b/SPECS/python-wheel.spec index a147a3a..58acdd6 100644 --- a/SPECS/python-wheel.spec +++ b/SPECS/python-wheel.spec @@ -26,7 +26,7 @@ Name: python-%{pypi_name} Version: 0.31.1 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 1 Summary: Built-package format for Python @@ -78,10 +78,14 @@ BuildRequires: python3-setuptools %if %{without bootstrap} BuildRequires: python3-pytest %endif # without bootstrap + +# Require alternatives version that implements the --keep-foreign flag +Requires(postun): alternatives >= 1.19.1-1 # For alternatives Requires: python36 Requires(post): python36 Requires(postun): python36 + %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %{_description} @@ -190,7 +194,7 @@ alternatives --add-slave python3 %{_bindir}/python%{python3_version} \ %postun -n python3-%{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 %endif @@ -235,6 +239,10 @@ fi %endif %changelog +* Thu Jul 29 2021 Tomas Orsava - 1:0.31.1-3 +- Adjusted the postun scriptlets to enable upgrading to RHEL 9 +- Resolves: rhbz#1933055 + * Mon Jul 22 2019 Tomas Orsava - 1:0.31.1-2 - Removed wheel's own implementation of crypto due to FIPS concerns Resolves: rhbz#1731526