|
|
|
@ -13,11 +13,11 @@ URL: https://www.python.org/
|
|
|
|
|
|
|
|
|
|
# WARNING When rebasing to a new Python version,
|
|
|
|
|
# remember to update the python3-docs package as well
|
|
|
|
|
%global general_version %{pybasever}.4
|
|
|
|
|
%global general_version %{pybasever}.6
|
|
|
|
|
#global prerel ...
|
|
|
|
|
%global upstream_version %{general_version}%{?prerel}
|
|
|
|
|
Version: %{general_version}%{?prerel:~%{prerel}}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: 2.0.riscv64%{?dist}
|
|
|
|
|
License: Python-2.0.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -67,7 +67,7 @@ License: Python-2.0.1
|
|
|
|
|
# If the rpmwheels condition is disabled, we use the bundled wheel packages
|
|
|
|
|
# from Python with the versions below.
|
|
|
|
|
# This needs to be manually updated when we update Python.
|
|
|
|
|
%global pip_version 23.1.2
|
|
|
|
|
%global pip_version 23.2.1
|
|
|
|
|
%global setuptools_version 65.5.0
|
|
|
|
|
|
|
|
|
|
# Expensive optimizations (mainly, profile-guided optimizations)
|
|
|
|
@ -205,7 +205,9 @@ BuildRequires: glibc-devel
|
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
BuildRequires: libappstream-glib
|
|
|
|
|
%if %{undefined rhel}
|
|
|
|
|
BuildRequires: libb2-devel
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: libffi-devel
|
|
|
|
|
BuildRequires: libnsl2-devel
|
|
|
|
|
BuildRequires: libtirpc-devel
|
|
|
|
@ -434,6 +436,8 @@ This package contains /usr/bin/python - the "python" command that runs Python 3.
|
|
|
|
|
|
|
|
|
|
%package -n %{pkgname}-libs
|
|
|
|
|
Summary: Python runtime libraries
|
|
|
|
|
# Bundled libb2 is CC0, covered by grandfathering exception
|
|
|
|
|
License: Python-2.0.1 AND CC0-1.0
|
|
|
|
|
|
|
|
|
|
%if %{with rpmwheels}
|
|
|
|
|
Requires: %{python_wheel_pkg_prefix}-setuptools-wheel
|
|
|
|
@ -445,6 +449,10 @@ Provides: bundled(python3dist(setuptools)) = %{setuptools_version}
|
|
|
|
|
|
|
|
|
|
%unversioned_obsoletes_of_python3_X_if_main libs
|
|
|
|
|
|
|
|
|
|
# Bundled internal headers are used even when building with system libb2
|
|
|
|
|
# last updated by https://github.com/python/cpython/pull/6286
|
|
|
|
|
Provides: bundled(libb2) = 0.98.1
|
|
|
|
|
|
|
|
|
|
# There are files in the standard library that have python shebang.
|
|
|
|
|
# We've filtered the automatic requirement out so libs are installable without
|
|
|
|
|
# the main package. This however makes it pulled in by default.
|
|
|
|
@ -670,14 +678,15 @@ topdir=$(pwd)
|
|
|
|
|
# Standard library built here will still use the %%build_...flags,
|
|
|
|
|
# Fedora packages utilizing %%py3_build will use them as well
|
|
|
|
|
# https://fedoraproject.org/wiki/Changes/Python_Extension_Flags
|
|
|
|
|
export CFLAGS="%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv"
|
|
|
|
|
# https://fedoraproject.org/wiki/Changes/Python_Extension_Flags_Reduction
|
|
|
|
|
export CFLAGS="%{extension_cflags}"
|
|
|
|
|
export CFLAGS_NODIST="%{build_cflags} -D_GNU_SOURCE -fPIC -fwrapv"
|
|
|
|
|
export CXXFLAGS="%{extension_cxxflags} -D_GNU_SOURCE -fPIC -fwrapv"
|
|
|
|
|
export CXXFLAGS="%{extension_cxxflags}"
|
|
|
|
|
export CPPFLAGS="$(pkg-config --cflags-only-I libffi)"
|
|
|
|
|
export OPT="%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv"
|
|
|
|
|
export OPT="%{extension_cflags}"
|
|
|
|
|
export LINKCC="gcc"
|
|
|
|
|
export CFLAGS="$CFLAGS $(pkg-config --cflags openssl)"
|
|
|
|
|
export LDFLAGS="%{extension_ldflags} -g $(pkg-config --libs-only-L openssl)"
|
|
|
|
|
export LDFLAGS="%{extension_ldflags} $(pkg-config --libs-only-L openssl)"
|
|
|
|
|
export LDFLAGS_NODIST="%{build_ldflags} -g $(pkg-config --libs-only-L openssl)"
|
|
|
|
|
|
|
|
|
|
# We can build several different configurations of Python: regular and debug.
|
|
|
|
@ -1078,10 +1087,19 @@ CheckPython() {
|
|
|
|
|
# test_freeze_simple_script is skipped, because it fails when bundled wheels
|
|
|
|
|
# are removed in Fedora.
|
|
|
|
|
# upstream report: https://bugs.python.org/issue45783
|
|
|
|
|
# test_check_probes is failing since it was introduced in 3.12.0rc1,
|
|
|
|
|
# the test is skipped until it is fixed in upstream.
|
|
|
|
|
# see: https://github.com/python/cpython/issues/104280#issuecomment-1669249980
|
|
|
|
|
|
|
|
|
|
LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \
|
|
|
|
|
-wW --slowest -j0 --timeout=1800 \
|
|
|
|
|
-wW --slowest -j0 \
|
|
|
|
|
%ifnarch riscv64
|
|
|
|
|
--timeout=1800 \
|
|
|
|
|
%else
|
|
|
|
|
--timeout=18000 \
|
|
|
|
|
%endif
|
|
|
|
|
-i test_freeze_simple_script \
|
|
|
|
|
-i test_check_probes \
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
|
-x test_distutils \
|
|
|
|
|
%endif
|
|
|
|
@ -1603,6 +1621,25 @@ CheckPython optimized
|
|
|
|
|
# ======================================================
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Oct 16 2023 David Abdurachmanov <davidlt@rivosinc.com> - 3.11.6-2.0.riscv64
|
|
|
|
|
- Increase tests timeout by 10x on riscv64
|
|
|
|
|
|
|
|
|
|
* Tue Oct 03 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 3.11.6-2
|
|
|
|
|
- Use bundled libb2 in RHEL builds
|
|
|
|
|
|
|
|
|
|
* Tue Oct 03 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.11.6-1
|
|
|
|
|
- Update to 3.11.6
|
|
|
|
|
|
|
|
|
|
* Mon Aug 28 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.11.5-1
|
|
|
|
|
- Update to 3.11.5
|
|
|
|
|
|
|
|
|
|
* Wed Aug 02 2023 Charalampos Stratakis <cstratak@redhat.com> - 3.11.4-4
|
|
|
|
|
- Remove extra distro-applied CFLAGS passed to user built C extensions
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Python_Extension_Flags_Reduction
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.11.4-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.11.4-2
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|