Prepare support for Python 3.11

Python 3.11 is coming to RHEL 8 soon.
See https://bugzilla.redhat.com/show_bug.cgi?id=2137139

This *could* be shipped in EPEL 8 Next first,
but considering the change is harmless when python3.11-devel is not available
in the repos, it's easier to add it to EPEL 8 directly.

There is a slight difference compared to the older Pythons:
The package names now include the dot in the Python version (3.11 vs. 36, 38, 39).
That was a deliberate decision on the RHEL side
to make the package names equal to the RHEL 9 ones.
epel8
Miro Hrončok 2 years ago
parent 7c1824e99a
commit 6a548935a5

@ -1,6 +1,6 @@
Name: epel-rpm-macros Name: epel-rpm-macros
Version: 8 Version: 8
Release: 38 Release: 39
Summary: Extra Packages for Enterprise Linux RPM macros Summary: Extra Packages for Enterprise Linux RPM macros
License: GPLv2 License: GPLv2
@ -41,12 +41,13 @@ Requires: (python2-rpm-macros if python2-devel)
# Make sure EPEL8's Python 3 packages use /usr/bin/python3.{6,8,9} instead of /usr/libexec/platform-python. # Make sure EPEL8's Python 3 packages use /usr/bin/python3.{6,8,9} instead of /usr/libexec/platform-python.
# This will install the python3X-rpm-macros version corresponding to the python3X-devel version installed. # This will install the python3X-rpm-macros version corresponding to the python3X-devel version installed.
# If multiple versions are installed together, it will prefer python36-rpm-macros, the default Python version. # If multiple versions are installed together, it will prefer python36-rpm-macros, the default Python version.
Requires: (python-modular-rpm-macros if (python36-devel or python38-devel or python39-devel)) Requires: (python-modular-rpm-macros if (python36-devel or python38-devel or python39-devel or python3.11-devel))
# We use weak dependencies here in order to avoid creating conflicts between # We use weak dependencies here in order to avoid creating conflicts between
# the different python3X-devel packages. # the different python3X-devel packages.
Recommends: (python36-rpm-macros if python36-devel) Recommends: (python36-rpm-macros if python36-devel)
Suggests: (python38-rpm-macros if python38-devel) Suggests: (python38-rpm-macros if python38-devel)
Suggests: (python39-rpm-macros if python39-devel) Suggests: (python39-rpm-macros if python39-devel)
Suggests: (python3.11-rpm-macros if python3.11-devel)
# # python3-rpm-macros is already pulled in by python3X-devel # # python3-rpm-macros is already pulled in by python3X-devel
# (indirectly through platform-python-devel by python36-devel and directly by the rest), # (indirectly through platform-python-devel by python36-devel and directly by the rest),
# but we explictly Require it here, as it's needed by pythondist.attr. # but we explictly Require it here, as it's needed by pythondist.attr.
@ -125,6 +126,9 @@ install -Dpm 644 %{SOURCE152} \
%changelog %changelog
* Fri Apr 07 2023 Miro Hrončok <mhroncok@redhat.com> - 8-39
- Prepare support for Python 3.11
* Fri Mar 10 2023 Maxwell G <maxwell@gtmx.me> - 8-38 * Fri Mar 10 2023 Maxwell G <maxwell@gtmx.me> - 8-38
- Backport rpmautospec fallback macros - Backport rpmautospec fallback macros

Loading…
Cancel
Save