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 3e7a7f873f
commit 5eb256253f

View File

@ -14,7 +14,7 @@
# - disables regen-all with the same Python version
# - disables dependency on python3-rpm-generators if we build with main_python
# - 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
# 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
# that owns /usr/bin/python3 and other unique paths
# This also means the built subpackages are called python3 rather than python3X
# By default, this is determined by the %%__default_python3_pkgversion value
%bcond main_python %["%{?__default_python3_pkgversion}" == "%{pybasever}"]
# RHEL: Disabled by default
%bcond main_python 0
# 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.
@ -948,6 +948,10 @@ rm configure pyconfig.h.in
# Patch out the version requirement on autoconf 2.72
# We need it to allow the version available in RHEL 9
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:
@ -1933,93 +1937,54 @@ CheckPython freethreading
# ======================================================
%changelog
* Fri Oct 17 2025 Karolina Surma <ksurma@redhat.com> - 3.14.0-2
- Split -freethreading package into analogs of the main Python
* Tue Oct 07 2025 Karolina Surma <ksurma@redhat.com> - 3.14.0-1
- Update to Python 3.14.0
* Thu Sep 18 2025 Karolina Surma <ksurma@redhat.com> - 3.14.0~rc3-1
- Update to Python 3.14.0rc3
- The .pyc magic number was bumped again
* Thu Aug 14 2025 Miro Hrončok <mhroncok@redhat.com> - 3.14.0~rc2-1
- Update to Python 3.14.0rc2
- The .pyc magic number was bumped
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.0~rc1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Jul 22 2025 Miro Hrončok <mhroncok@redhat.com> - 3.14.0~rc1-1
- Update to Python 3.14.0rc1
* Tue Jul 08 2025 Miro Hrončok <mhroncok@redhat.com> - 3.14.0~b4-1
- Update to Python 3.14.0b4
* Wed Jun 25 2025 Karolina Surma <ksurma@redhat.com> - 3.14.0~b3-3
- Conditionally skip tests not working with the older expat version
* Wed Jun 18 2025 Charalampos Stratakis <cstratak@redhat.com> - 3.14.0~b3-2
- Enable PAC and BTI hardware protections for aarch64
* Tue Jun 17 2025 Miro Hrončok <mhroncok@redhat.com> - 3.14.0~b3-1
- Update to Python 3.14.0b3
- The .pyc magic number was bumped
- python3.14-freethreading is no longer provisional
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 3.14.0~b2-3
- Rebuilt for Python 3.14
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 3.14.0~b2-2
- Bootstrap for Python 3.14
* Mon May 26 2025 Miro Hrončok <mhroncok@redhat.com> - 3.14.0~b2-1
- Update to Python 3.14.0b2
* Wed May 07 2025 Karolina Surma <ksurma@redhat.com> - 3.14.0~b1-1
- Update to Python 3.14.0b1
* Mon May 05 2025 Miro Hrončok <mhroncok@redhat.com> - 3.14.0~a7-3
- Drop requirement on python-wheel-wheel with setuptools >= 71
* Tue Apr 22 2025 Charalampos Stratakis <cstratak@redhat.com> - 3.14.0~a7-2
- 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
* Wed Oct 22 2025 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.14.0-2
- Initial package
- Fedora contributions by:
Björn Esser <besser82@fedoraproject.org>
Bohuslav Kabrda <bkabrda@redhat.com>
Charalampos Stratakis <cstratak@redhat.com>
Dan Horák <dan@danny.cz>
David Malcolm <dmalcolm@redhat.com>
Dennis Gilmore <dennis@ausil.us>
Florian Weimer <fweimer@redhat.com>
Gwyn Ciesla <limb@fedoraproject.org>
Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Iryna Shcherbina <shcherbina.iryna@gmail.com>
Jaroslav Škarvada <jskarvad@redhat.com>
Jason ティビツ <tibbs@fedoraproject.org>
Kalev Lember <klember@redhat.com>
Karolina Surma <ksurma@redhat.com>
Karsten Hopp <karsten@redhat.com>
Lukáš Zachar <lzachar@redhat.com>
Lumir Balhar <lbalhar@redhat.com>
Marcel Plch <mplch@redhat.com>
Matej Stuchlik <mstuchli@redhat.com>
Michal Cyprian <mcyprian@redhat.com>
Michal Toman <mtoman@fedoraproject.org>
Miro Hrončok <mhroncok@redhat.com>
Nicolas Chauvet <kwizart@gmail.com>
Orion Poplawski <orion@cora.nwra.com>
Patrik Kopkan <pkopkan@redhat.com>
Peter Robinson <pbrobinson@gmail.com>
Petr Šplíchal <psplicha@redhat.com>
Petr Viktorin <pviktori@redhat.com>
Rex Dieter <rdieter@fedoraproject.org>
Richard W.M. Jones <rjones@redhat.com>
Robert Kuska <rkuska@redhat.com>
Sahana Prasad <sahana@redhat.com>
Stephen Gallagher <sgallagh@redhat.com>
Than Ngo <than@redhat.com>
Thomas Spura <thomas.spura@gmail.com>
Till Maas <opensource@till.name>
Tom Stellard <tstellar@redhat.com>
Tomas Mraz <tmraz@fedoraproject.org>
Tomas Orsava <torsava@redhat.com>
Tomas Radej <tradej@redhat.com>
Tomáš Hrnčiar <thrnciar@redhat.com>
Toshio Kuratomi <toshio@fedoraproject.org>
U2FsdGVkX1 <U2FsdGVkX1@gmail.com>
Victor Stinner <vstinner@redhat.com>
Ville Skyttä <ville.skytta@iki.fi>
Yaakov Selkowitz <yselkowi@redhat.com>
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>