import python36-3.6.8-38.module+el8.5.0+12207+5c5719bc
This commit is contained in:
parent
7e3ab36e89
commit
2872946dd1
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Name: python36
|
Name: python36
|
||||||
Version: %{pybasever}.8
|
Version: %{pybasever}.8
|
||||||
Release: 2%{?dist}
|
Release: 38%{?dist}
|
||||||
Summary: Interpreter of the Python programming language
|
Summary: Interpreter of the Python programming language
|
||||||
|
|
||||||
License: Python
|
License: Python
|
||||||
@ -60,10 +60,10 @@ Requires: %{_libexecdir}/platform-python
|
|||||||
Requires: python3-pip
|
Requires: python3-pip
|
||||||
Requires: python3-setuptools
|
Requires: python3-setuptools
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
%global _description \
|
%global _description \
|
||||||
Python is an accessible, high-level, dynamically typed, interpreted programming\
|
Python is an accessible, high-level, dynamically typed, interpreted programming\
|
||||||
@ -92,6 +92,9 @@ Provides: python3-devel = %{version}-%{release}
|
|||||||
Provides: python3-devel%{?_isa} = %{version}-%{release}
|
Provides: python3-devel%{?_isa} = %{version}-%{release}
|
||||||
Requires: python36
|
Requires: python36
|
||||||
Requires: platform-python-devel
|
Requires: platform-python-devel
|
||||||
|
|
||||||
|
# Require alternatives version that implements the --keep-foreign flag
|
||||||
|
Requires(postun): alternatives >= 1.19.1-1
|
||||||
# python36 installs the alternatives master symlink to which we attach a slave
|
# python36 installs the alternatives master symlink to which we attach a slave
|
||||||
Requires(post): python36
|
Requires(post): python36
|
||||||
Requires(postun): python36
|
Requires(postun): python36
|
||||||
@ -114,6 +117,9 @@ Obsoletes: python3-debug < 3.6.6-13
|
|||||||
Requires: python36
|
Requires: python36
|
||||||
Requires: python36-devel
|
Requires: python36-devel
|
||||||
Requires: platform-python-debug
|
Requires: platform-python-debug
|
||||||
|
|
||||||
|
# Require alternatives version that implements the --keep-foreign flag
|
||||||
|
Requires(postun): alternatives >= 1.19.1-1
|
||||||
# python36 installs the alternatives master symlink to which we attach a slave
|
# python36 installs the alternatives master symlink to which we attach a slave
|
||||||
Requires(post): python36
|
Requires(post): python36
|
||||||
Requires(postun): python36
|
Requires(postun): python36
|
||||||
@ -264,12 +270,12 @@ 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 python3 \
|
alternatives --keep-foreign --remove python3 \
|
||||||
%{_bindir}/python3.6
|
%{_bindir}/python3.6
|
||||||
|
|
||||||
# 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
|
||||||
@ -284,7 +290,7 @@ alternatives --add-slave python3 %{_bindir}/python3.6 \
|
|||||||
%postun -n python36-devel
|
%postun -n python36-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.6 \
|
alternatives --keep-foreign --remove-slave python3 %{_bindir}/python3.6 \
|
||||||
python3-config
|
python3-config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -302,9 +308,9 @@ alternatives --add-slave python3 %{_bindir}/python3.6 \
|
|||||||
%postun -n python36-debug
|
%postun -n python36-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.6 \
|
alternatives --keep-foreign --remove-slave python3 %{_bindir}/python3.6 \
|
||||||
python3-debug
|
python3-debug
|
||||||
alternatives --remove-slave python3 %{_bindir}/python3.6 \
|
alternatives --keep-foreign --remove-slave python3 %{_bindir}/python3.6 \
|
||||||
python3-debug-config
|
python3-debug-config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -351,6 +357,14 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 28 2021 Tomas Orsava <torsava@redhat.com> - 3.6.8-38
|
||||||
|
- Adjusted the postun scriptlets to enable upgrading to RHEL 9
|
||||||
|
- Resolves: rhbz#1933055
|
||||||
|
|
||||||
|
* Fri May 07 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.6.8-37
|
||||||
|
- Bump the release to a number higher than RHEL7
|
||||||
|
- Resolves: rhbz#1954567
|
||||||
|
|
||||||
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 3.6.8-2
|
* Thu Apr 25 2019 Tomas Orsava <torsava@redhat.com> - 3.6.8-2
|
||||||
- Bumping due to problems with modular RPM upgrade path
|
- Bumping due to problems with modular RPM upgrade path
|
||||||
- Resolves: rhbz#1695587
|
- Resolves: rhbz#1695587
|
||||||
|
Loading…
Reference in New Issue
Block a user