import python39-3.9.6-2.module+el8.5.0+12204+54860423

This commit is contained in:
CentOS Sources 2021-08-25 00:23:40 +00:00 committed by Andrew Lukoshko
parent eb7dc5ac30
commit 557bff4a66

View File

@ -17,7 +17,7 @@ URL: https://www.python.org/
#global prerel ... #global prerel ...
%global upstream_version %{general_version}%{?prerel} %global upstream_version %{general_version}%{?prerel}
Version: %{general_version}%{?prerel:~%{prerel}} Version: %{general_version}%{?prerel:~%{prerel}}
Release: 1%{?dist} Release: 2%{?dist}
License: Python License: Python
# Exclude i686 arch. Due to a modularity issue it's being added to the # Exclude i686 arch. Due to a modularity issue it's being added to the
@ -408,10 +408,10 @@ Patch353: 00353-architecture-names-upstream-downstream.patch
# Descriptions, and metadata for subpackages # Descriptions, and metadata for subpackages
# ========================================== # ==========================================
# Runtime require alternatives # Require alternatives version that implements the --keep-foreign flag
Requires: %{_sbindir}/alternatives Requires: alternatives >= 1.19.1-1
Requires(post): %{_sbindir}/alternatives Requires(post): alternatives >= 1.19.1-1
Requires(postun): %{_sbindir}/alternatives Requires(postun): alternatives >= 1.19.1-1
# When the user tries to `yum install python`, yum will list this package among # When the user tries to `yum install python`, yum will list this package among
# the possible alternatives # the possible alternatives
@ -584,6 +584,8 @@ Requires: %{pkgname}-libs%{?_isa} = %{version}-%{release}
Requires: (python-rpm-macros if rpm-build) Requires: (python-rpm-macros if rpm-build)
Requires: (python3-rpm-macros if rpm-build) Requires: (python3-rpm-macros if rpm-build)
# Require alternatives version that implements the --keep-foreign flag
Requires(postun): alternatives >= 1.19.1-1
# python39 installs the alternatives master symlink to which we attach a slave # python39 installs the alternatives master symlink to which we attach a slave
Requires(post): %{pkgname} Requires(post): %{pkgname}
Requires(postun): %{pkgname} Requires(postun): %{pkgname}
@ -632,6 +634,8 @@ Provides: %{pkgname}-tools = %{version}-%{release}
Provides: %{pkgname}-tools%{?_isa} = %{version}-%{release} Provides: %{pkgname}-tools%{?_isa} = %{version}-%{release}
Obsoletes: %{pkgname}-tools < %{version}-%{release} Obsoletes: %{pkgname}-tools < %{version}-%{release}
# Require alternatives version that implements the --keep-foreign flag
Requires(postun): alternatives >= 1.19.1-1
# python39 installs the alternatives master symlink to which we attach a slave # python39 installs the alternatives master symlink to which we attach a slave
Requires(post): %{pkgname} Requires(post): %{pkgname}
Requires(postun): %{pkgname} Requires(postun): %{pkgname}
@ -691,6 +695,8 @@ Provides: platform-python-debug%{?_isa} = %{version}-%{release}
Obsoletes: platform-python-debug < %{pybasever} Obsoletes: platform-python-debug < %{pybasever}
%endif %endif
# Require alternatives version that implements the --keep-foreign flag
Requires(postun): alternatives >= 1.19.1-1
# python39 installs the alternatives master symlink to which we attach a slave # python39 installs the alternatives master symlink to which we attach a slave
Requires(post): %{pkgname} Requires(post): %{pkgname}
Requires(postun): %{pkgname} Requires(postun): %{pkgname}
@ -1369,15 +1375,15 @@ fi
%postun %postun
# Do this only during uninstall process (not during update) # Do this only during uninstall process (not during update)
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
alternatives --remove python \ alternatives --keep-foreign --remove python \
%{_bindir}/python3.9 %{_bindir}/python3.9
alternatives --remove python3 \ alternatives --keep-foreign --remove python3 \
%{_bindir}/python3.9 %{_bindir}/python3.9
# Remove link python → python3 if no other python3.* exists # Remove link python → python3 if no other python3.* exists
if ! alternatives --display python3 > /dev/null; then if ! alternatives --display python3 > /dev/null; then
alternatives --remove python \ alternatives --keep-foreign --remove python \
%{_bindir}/python3 %{_bindir}/python3
fi fi
fi fi
@ -1392,7 +1398,7 @@ alternatives --add-slave python3 %{_bindir}/python3.9 \
%postun devel %postun devel
# Do this only during uninstall process (not during update) # Do this only during uninstall process (not during update)
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
alternatives --remove-slave python3 %{_bindir}/python3.9 \ alternatives --keep-foreign --remove-slave python3 %{_bindir}/python3.9 \
python3-config python3-config
fi fi
@ -1410,9 +1416,9 @@ alternatives --add-slave python3 %{_bindir}/python3.9 \
%postun debug %postun debug
# Do this only during uninstall process (not during update) # Do this only during uninstall process (not during update)
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
alternatives --remove-slave python3 %{_bindir}/python3.9 \ alternatives --keep-foreign --remove-slave python3 %{_bindir}/python3.9 \
python3-debug python3-debug
alternatives --remove-slave python3 %{_bindir}/python3.9 \ alternatives --keep-foreign --remove-slave python3 %{_bindir}/python3.9 \
python3-debug-config python3-debug-config
fi fi
@ -1426,7 +1432,7 @@ alternatives --add-slave python3 %{_bindir}/python3.9 \
%postun idle %postun idle
# Do this only during uninstall process (not during update) # Do this only during uninstall process (not during update)
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
alternatives --remove-slave python3 %{_bindir}/python3.9 \ alternatives --keep-foreign --remove-slave python3 %{_bindir}/python3.9 \
idle3 idle3
fi fi
@ -1959,6 +1965,10 @@ fi
# ====================================================== # ======================================================
%changelog %changelog
* Thu Aug 05 2021 Tomas Orsava <torsava@redhat.com> - 3.9.6-2
- Adjusted the postun scriptlets to enable upgrading to RHEL 9
- Resolves: rhbz#1933055
* Tue Jul 27 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.9.6-1 * Tue Jul 27 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.9.6-1
- Update to 3.9.6 - Update to 3.9.6
- Fix CVE-2021-29921: Improper input validation of octal strings in the ipaddress module - Fix CVE-2021-29921: Improper input validation of octal strings in the ipaddress module