From cb992d2c344422ab0ca0dff8d35eef7ff8b64453 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 25 2021 00:21:19 +0000 Subject: import python-virtualenv-15.1.0-21.module+el8.5.0+12203+77770ab7 --- diff --git a/SPECS/python-virtualenv.spec b/SPECS/python-virtualenv.spec index cf7c3ae..eeaeb73 100644 --- a/SPECS/python-virtualenv.spec +++ b/SPECS/python-virtualenv.spec @@ -7,7 +7,7 @@ Name: python-virtualenv Version: 15.1.0 -Release: 20%{?dist} +Release: 21%{?dist} Summary: Tool to create isolated Python environments Group: Development/Languages @@ -113,10 +113,13 @@ Requires: (python2-wheel-wheel if python2) Requires: (python38-wheel-wheel if python38) Requires: (python39-wheel-wheel if python39) +# 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 + %if %{with python36_module} Requires: python36-devel %else @@ -197,9 +200,9 @@ alternatives --add-slave python3 %{_bindir}/python%{python3_version} \ %postun -n python3-virtualenv # 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} \ virtualenv-3 - alternatives --remove-slave python3 %{_bindir}/python%{python3_version} \ + alternatives --keep-foreign --remove-slave python3 %{_bindir}/python%{python3_version} \ virtualenv fi %endif @@ -236,6 +239,10 @@ fi %changelog +* Wed Jul 28 2021 Tomas Orsava - 15.1.0-21 +- Adjusted the postun scriptlets to enable upgrading to RHEL 9 +- Resolves: rhbz#1933055 + * Thu Mar 18 2021 Lumír Balhar - 15.1.0-20 - Use python-version-specific wheels from Python modules Resolves: rhbz#1917971