Convert from Fedora for the Python 3.14 stack in RHEL

This commit is contained in:
Tomáš Hrnčiar 2025-08-19 13:18:33 +02:00 committed by Lumir Balhar
parent 9647506137
commit a6751e4cb1

View File

@ -14,7 +14,7 @@
# - disables regen-all with the same Python version # - disables regen-all with the same Python version
# - disables dependency on python3-rpm-generators if we build with main_python # - disables dependency on python3-rpm-generators if we build with main_python
# - disables rpmwheels, optimizations and tests by default # - disables rpmwheels, optimizations and tests by default
%bcond bootstrap 0 %bcond bootstrap 1
# Whether to use RPM build wheels from the python-{pip,setuptools,wheel}-wheel packages # Whether to use RPM build wheels from the python-{pip,setuptools,wheel}-wheel packages
# Uses upstream bundled prebuilt wheels otherwise # Uses upstream bundled prebuilt wheels otherwise
@ -60,8 +60,8 @@ License: Python-2.0.1
# Main Python, i.e. whether this is the main Python version in the distribution # Main Python, i.e. whether this is the main Python version in the distribution
# that owns /usr/bin/python3 and other unique paths # that owns /usr/bin/python3 and other unique paths
# This also means the built subpackages are called python3 rather than python3X # This also means the built subpackages are called python3 rather than python3X
# By default, this is determined by the %%__default_python3_pkgversion value # RHEL: Disabled by default
%bcond main_python %["%{?__default_python3_pkgversion}" == "%{pybasever}"] %bcond main_python 0
# If this is *not* Main Python, should it contain `Provides: python(abi) ...`? # If this is *not* Main Python, should it contain `Provides: python(abi) ...`?
# In Fedora no package shall depend on an alternative Python via this tag, so we do not provide it. # In Fedora no package shall depend on an alternative Python via this tag, so we do not provide it.
@ -948,6 +948,10 @@ rm configure pyconfig.h.in
# Patch out the version requirement on autoconf 2.72 # Patch out the version requirement on autoconf 2.72
# We need it to allow the version available in RHEL 9 # We need it to allow the version available in RHEL 9
sed -i "s/AC_PREREQ(\[2\.72\])/AC_PREREQ([2.69])/" configure.ac sed -i "s/AC_PREREQ(\[2\.72\])/AC_PREREQ([2.69])/" configure.ac
# There is a missing backslash which causes failures on RHEL 9
# Upstream commit: github.com/python/cpython/pull/137394.patch
sed -i 's/pthread_set_name_np$/pthread_set_name_np \\/' configure.ac
# ====================================================== # ======================================================
# Configuring and building the code: # Configuring and building the code:
@ -1933,93 +1937,54 @@ CheckPython freethreading
# ====================================================== # ======================================================
%changelog %changelog
* Fri Oct 17 2025 Karolina Surma <ksurma@redhat.com> - 3.14.0-2 * Wed Oct 22 2025 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.14.0-2
- Split -freethreading package into analogs of the main Python - Initial package
- Fedora contributions by:
* Tue Oct 07 2025 Karolina Surma <ksurma@redhat.com> - 3.14.0-1 Björn Esser <besser82@fedoraproject.org>
- Update to Python 3.14.0 Bohuslav Kabrda <bkabrda@redhat.com>
Charalampos Stratakis <cstratak@redhat.com>
* Thu Sep 18 2025 Karolina Surma <ksurma@redhat.com> - 3.14.0~rc3-1 Dan Horák <dan@danny.cz>
- Update to Python 3.14.0rc3 David Malcolm <dmalcolm@redhat.com>
- The .pyc magic number was bumped again Dennis Gilmore <dennis@ausil.us>
Florian Weimer <fweimer@redhat.com>
* Thu Aug 14 2025 Miro Hrončok <mhroncok@redhat.com> - 3.14.0~rc2-1 Gwyn Ciesla <limb@fedoraproject.org>
- Update to Python 3.14.0rc2 Igor Gnatenko <ignatenkobrain@fedoraproject.org>
- The .pyc magic number was bumped Iryna Shcherbina <shcherbina.iryna@gmail.com>
Jaroslav Škarvada <jskarvad@redhat.com>
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.0~rc1-2 Jason ティビツ <tibbs@fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild Kalev Lember <klember@redhat.com>
Karolina Surma <ksurma@redhat.com>
* Tue Jul 22 2025 Miro Hrončok <mhroncok@redhat.com> - 3.14.0~rc1-1 Karsten Hopp <karsten@redhat.com>
- Update to Python 3.14.0rc1 Lukáš Zachar <lzachar@redhat.com>
Lumir Balhar <lbalhar@redhat.com>
* Tue Jul 08 2025 Miro Hrončok <mhroncok@redhat.com> - 3.14.0~b4-1 Marcel Plch <mplch@redhat.com>
- Update to Python 3.14.0b4 Matej Stuchlik <mstuchli@redhat.com>
Michal Cyprian <mcyprian@redhat.com>
* Wed Jun 25 2025 Karolina Surma <ksurma@redhat.com> - 3.14.0~b3-3 Michal Toman <mtoman@fedoraproject.org>
- Conditionally skip tests not working with the older expat version Miro Hrončok <mhroncok@redhat.com>
Nicolas Chauvet <kwizart@gmail.com>
* Wed Jun 18 2025 Charalampos Stratakis <cstratak@redhat.com> - 3.14.0~b3-2 Orion Poplawski <orion@cora.nwra.com>
- Enable PAC and BTI hardware protections for aarch64 Patrik Kopkan <pkopkan@redhat.com>
Peter Robinson <pbrobinson@gmail.com>
* Tue Jun 17 2025 Miro Hrončok <mhroncok@redhat.com> - 3.14.0~b3-1 Petr Šplíchal <psplicha@redhat.com>
- Update to Python 3.14.0b3 Petr Viktorin <pviktori@redhat.com>
- The .pyc magic number was bumped Rex Dieter <rdieter@fedoraproject.org>
- python3.14-freethreading is no longer provisional Richard W.M. Jones <rjones@redhat.com>
Robert Kuska <rkuska@redhat.com>
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 3.14.0~b2-3 Sahana Prasad <sahana@redhat.com>
- Rebuilt for Python 3.14 Stephen Gallagher <sgallagh@redhat.com>
Than Ngo <than@redhat.com>
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 3.14.0~b2-2 Thomas Spura <thomas.spura@gmail.com>
- Bootstrap for Python 3.14 Till Maas <opensource@till.name>
Tom Stellard <tstellar@redhat.com>
* Mon May 26 2025 Miro Hrončok <mhroncok@redhat.com> - 3.14.0~b2-1 Tomas Mraz <tmraz@fedoraproject.org>
- Update to Python 3.14.0b2 Tomas Orsava <torsava@redhat.com>
Tomas Radej <tradej@redhat.com>
* Wed May 07 2025 Karolina Surma <ksurma@redhat.com> - 3.14.0~b1-1 Tomáš Hrnčiar <thrnciar@redhat.com>
- Update to Python 3.14.0b1 Toshio Kuratomi <toshio@fedoraproject.org>
U2FsdGVkX1 <U2FsdGVkX1@gmail.com>
* Mon May 05 2025 Miro Hrončok <mhroncok@redhat.com> - 3.14.0~a7-3 Victor Stinner <vstinner@redhat.com>
- Drop requirement on python-wheel-wheel with setuptools >= 71 Ville Skyttä <ville.skytta@iki.fi>
Yaakov Selkowitz <yselkowi@redhat.com>
* Tue Apr 22 2025 Charalampos Stratakis <cstratak@redhat.com> - 3.14.0~a7-2 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
- Apply Intel's CET for mitigation against control-flow hijacking attacks
* Tue Apr 08 2025 Karolina Surma <ksurma@redhat.com> - 3.14.0~a7-1
- Update to Python 3.14.0a7
* Mon Mar 17 2025 Karolina Surma <ksurma@redhat.com> - 3.14.0~a6-1
- Update to Python 3.14.0a6
* Wed Feb 12 2025 Karolina Surma <ksurma@redhat.com> - 3.14.0~a5-1
- Update to Python 3.14.0a5
* Thu Feb 06 2025 Miro Hrončok <mhroncok@redhat.com> - 3.14.0~a4-3
- Rebuilt with mpdecimal 4.0.0
* Tue Feb 04 2025 Charalampos Stratakis <cstratak@redhat.com> - 3.14.0~a4-2
- Security fix for CVE-2025-0938
- Fixes: rhbz#2343273
* Mon Jan 20 2025 Karolina Surma <ksurma@redhat.com> - 3.14.0~a4-1
- Update to Python 3.14.0a4
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.0~a3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Tue Dec 17 2024 Karolina Surma <ksurma@redhat.com> - 3.14.0~a3-1
- Update to Python 3.14.0a3
* Sun Dec 08 2024 Charalampos Stratakis <cstratak@redhat.com> - 3.14.0~a2-2
- Security fix for CVE-2024-12254
- Fixes: rhbz#2330928
* Wed Nov 20 2024 Karolina Surma <ksurma@redhat.com> - 3.14.0~a2-1
- Update to Python 3.14.0a2
* Fri Oct 18 2024 Karolina Surma <ksurma@redhat.com> - 3.14.0~a1-2
- Build Python 3.14 using Python 3.14
* Thu Oct 17 2024 Karolina Surma <ksurma@redhat.com> - 3.14.0~a1-1
- Initial Python 3.14 package forked from Python 3.13