import python-virtualenv-15.1.0-21.module+el8.5.0+12203+77770ab7

This commit is contained in:
CentOS Sources 2021-08-25 00:21:19 +00:00 committed by Andrew Lukoshko
parent f68ac7e500
commit d662e2ec51
1 changed files with 10 additions and 3 deletions

View File

@ -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 <torsava@redhat.com> - 15.1.0-21
- Adjusted the postun scriptlets to enable upgrading to RHEL 9
- Resolves: rhbz#1933055
* Thu Mar 18 2021 Lumír Balhar <lbalhar@redhat.com> - 15.1.0-20
- Use python-version-specific wheels from Python modules
Resolves: rhbz#1917971