From 6a548935a56d3e98138c7d652802af2f1e147fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 30 Jan 2023 14:11:32 +0100 Subject: [PATCH] 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. --- epel-rpm-macros.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/epel-rpm-macros.spec b/epel-rpm-macros.spec index 32ed50c..3e3d98b 100644 --- a/epel-rpm-macros.spec +++ b/epel-rpm-macros.spec @@ -1,6 +1,6 @@ Name: epel-rpm-macros Version: 8 -Release: 38 +Release: 39 Summary: Extra Packages for Enterprise Linux RPM macros 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. # 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. -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 # the different python3X-devel packages. Recommends: (python36-rpm-macros if python36-devel) Suggests: (python38-rpm-macros if python38-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 # (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. @@ -125,6 +126,9 @@ install -Dpm 644 %{SOURCE152} \ %changelog +* Fri Apr 07 2023 Miro HronĨok - 8-39 +- Prepare support for Python 3.11 + * Fri Mar 10 2023 Maxwell G - 8-38 - Backport rpmautospec fallback macros