2017-08-16 13:36:04 +00:00
# ==================
# Top-level metadata
# ==================
2022-10-27 14:50:15 +00:00
%global pybasever 3.12
2011-07-08 16:54:16 +00:00
2017-08-16 13:36:04 +00:00
# pybasever without the dot:
2022-10-27 14:50:15 +00:00
%global pyshortver 312
2017-08-16 13:36:04 +00:00
2020-05-07 14:50:36 +00:00
Name : python%{pybasever}
2019-02-05 11:35:53 +00:00
Summary : Version %{pybasever} of the Python interpreter
2018-04-18 12:40:03 +00:00
URL : https://www.python.org/
2017-08-28 13:20:28 +00:00
# WARNING When rebasing to a new Python version,
# remember to update the python3-docs package as well
2024-02-07 13:54:16 +00:00
%global general_version %{pybasever} .2
2023-10-02 16:40:13 +00:00
#global prerel ...
2019-02-05 00:40:25 +00:00
%global upstream_version %{general_version} %{?prerel}
Version : %{general_version} %{?prerel:~%{prerel} }
2024-02-21 10:58:07 +00:00
Release : 2%{?dist}
2022-08-23 10:44:36 +00:00
License : Python-2.0.1
2017-08-16 13:36:04 +00:00
# ==================================
# Conditionals controlling the build
# ==================================
# Note that the bcond macros are named for the CLI option they create.
# "%%bcond_without" means "ENABLE by default and create a --without option"
2019-11-18 11:46:25 +00:00
# Main Python, i.e. whether this is the main Python version in the distribution
# that owns /usr/bin/python3 and other unique paths
2020-03-23 13:26:46 +00:00
# This also means the built subpackages are called python3 rather than python3X
# By default, this is determined by the %%__default_python3_pkgversion value
2020-05-07 14:50:36 +00:00
%if "%{?__default_python3_pkgversion}" == "%{pybasever}"
2020-03-23 13:26:46 +00:00
%bcond_without main_python
%else
2019-11-18 11:46:25 +00:00
%bcond_with main_python
2020-03-23 13:26:46 +00:00
%endif
2022-04-13 15:22:23 +00:00
# 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 ELN/RHEL/CentOS we want to allow building against alternative stacks, so the Provide is enabled.
%if 0%{?fedora}
%bcond_with python_abi_provides_for_alt_pythons
%else
%bcond_without python_abi_provides_for_alt_pythons
%endif
2019-03-10 18:48:49 +00:00
# When bootstrapping python3, we need to build setuptools.
# but setuptools BR python3-devel and that brings in python3-rpm-generators;
# python3-rpm-generators needs python3-setuptools, so we cannot have it yet.
#
2022-11-15 16:07:29 +00:00
# We also use the previous build of Python in "make regen-all".
2020-04-29 09:47:57 +00:00
#
2019-03-10 18:48:49 +00:00
# Procedure: https://fedoraproject.org/wiki/SIGs/Python/UpgradingPython
#
2023-05-23 09:04:35 +00:00
# IMPORTANT: When bootstrapping, it's very likely python-pip-wheel is
# not available. Turn off the rpmwheels bcond until
# python-pip is built with a wheel to get around the issue.
2023-06-13 15:23:48 +00:00
%bcond_with bootstrap
2019-03-10 18:48:49 +00:00
2023-05-26 13:54:59 +00:00
# Whether to use RPM build wheels from the python-{pip,setuptools,wheel}-wheel packages
2018-08-15 13:36:29 +00:00
# Uses upstream bundled prebuilt wheels otherwise
2023-05-26 13:54:59 +00:00
# Only F39+ has a pip new enough to work with Python 3.12
%if 0%{?fedora} >= 39 || 0%{?rhel} >= 10
2023-06-13 15:23:48 +00:00
%bcond_without rpmwheels
2023-05-26 13:54:59 +00:00
%else
2023-05-23 09:04:35 +00:00
%bcond_with rpmwheels
2023-05-26 13:54:59 +00:00
%endif
2021-02-03 14:59:37 +00:00
# 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.
2024-02-07 13:54:16 +00:00
%global pip_version 24.0
2023-05-26 13:54:59 +00:00
%global setuptools_version 67.6.1
%global wheel_version 0.40.0
2023-05-30 16:19:42 +00:00
# All of those also include a list of indirect bundled libs:
# pip
# $ %%{_rpmconfigdir}/pythonbundles.py <(unzip -p Lib/ensurepip/_bundled/pip-*.whl pip/_vendor/vendor.txt)
%global pip_bundled_provides %{expand:
2024-02-07 13:54:16 +00:00
Provides : bundled(python3dist(cachecontrol)) = 0.13.1
Provides : bundled(python3dist(certifi)) = 2023.7.22
2023-05-30 16:19:42 +00:00
Provides : bundled(python3dist(chardet)) = 5.1
Provides : bundled(python3dist(colorama)) = 0.4.6
2024-02-07 13:54:16 +00:00
Provides : bundled(python3dist(distlib)) = 0.3.8
2023-05-30 16:19:42 +00:00
Provides : bundled(python3dist(distro)) = 1.8
Provides : bundled(python3dist(idna)) = 3.4
Provides : bundled(python3dist(msgpack)) = 1.0.5
Provides : bundled(python3dist(packaging)) = 21.3
2023-08-07 07:11:47 +00:00
Provides : bundled(python3dist(platformdirs)) = 3.8.1
Provides : bundled(python3dist(pygments)) = 2.15.1
Provides : bundled(python3dist(pyparsing)) = 3.1
2023-05-30 16:19:42 +00:00
Provides : bundled(python3dist(pyproject-hooks)) = 1
2023-08-07 07:11:47 +00:00
Provides : bundled(python3dist(requests)) = 2.31
2023-05-30 16:19:42 +00:00
Provides : bundled(python3dist(resolvelib)) = 1.0.1
2023-08-07 07:11:47 +00:00
Provides : bundled(python3dist(rich)) = 13.4.2
Provides : bundled(python3dist(setuptools)) = 68
2023-05-30 16:19:42 +00:00
Provides : bundled(python3dist(six)) = 1.16
Provides : bundled(python3dist(tenacity)) = 8.2.2
Provides : bundled(python3dist(tomli)) = 2.0.1
2024-02-07 13:54:16 +00:00
Provides : bundled(python3dist(truststore)) = 0.8
2023-08-07 07:11:47 +00:00
Provides : bundled(python3dist(typing-extensions)) = 4.7.1
2024-02-07 13:54:16 +00:00
Provides : bundled(python3dist(urllib3)) = 1.26.17
2023-05-30 16:19:42 +00:00
Provides : bundled(python3dist(webencodings)) = 0.5.1
}
# setuptools
# vendor.txt files not in .whl
# $ %%{_rpmconfigdir}/pythonbundles.py \
# <(curl -L https://github.com/pypa/setuptools/raw/v%%{setuptools_version}/setuptools/_vendor/vendored.txt) \
# <(curl -L https://github.com/pypa/setuptools/raw/v%%{setuptools_version}/pkg_resources/_vendor/vendored.txt)
%global setuptools_bundled_provides %{expand:
Provides : bundled(python3dist(importlib-metadata)) = 6
Provides : bundled(python3dist(importlib-resources)) = 5.10.2
Provides : bundled(python3dist(jaraco-text)) = 3.7
Provides : bundled(python3dist(more-itertools)) = 8.8
Provides : bundled(python3dist(ordered-set)) = 3.1.1
Provides : bundled(python3dist(packaging)) = 23
Provides : bundled(python3dist(platformdirs)) = 2.6.2
Provides : bundled(python3dist(tomli)) = 2.0.1
Provides : bundled(python3dist(typing-extensions)) = 4.0.1
Provides : bundled(python3dist(typing-extensions)) = 4.4
Provides : bundled(python3dist(zipp)) = 3.7
}
# wheel
2024-02-07 13:54:16 +00:00
# $ %%{_rpmconfigdir}/pythonbundles.py <(unzip -p Lib/test/wheeldata/wheel-*.whl wheel/vendored/vendor.txt)
2023-05-30 16:19:42 +00:00
%global wheel_bundled_provides %{expand:
Provides : bundled(python3dist(packaging)) = 23
}
2018-04-18 12:40:03 +00:00
2017-08-17 07:13:29 +00:00
# Expensive optimizations (mainly, profile-guided optimizations)
2023-06-13 15:23:48 +00:00
%bcond_without optimizations
2017-08-16 15:55:57 +00:00
2017-08-17 07:13:29 +00:00
# Run the test suite in %%check
2023-06-13 15:23:48 +00:00
%bcond_without tests
2017-08-17 07:13:29 +00:00
# Extra build for debugging the interpreter or C-API extensions
# (the -debug subpackages)
2017-08-16 13:36:04 +00:00
%bcond_without debug_build
2017-08-17 07:13:29 +00:00
# Support for the GDB debugger
2017-08-16 13:36:04 +00:00
%bcond_without gdb_hooks
2017-08-17 07:13:29 +00:00
# The dbm.gnu module (key-value database)
2017-08-16 13:36:04 +00:00
%bcond_without gdbm
2017-08-17 07:13:29 +00:00
# Main interpreter loop optimization
2017-08-16 13:36:04 +00:00
%bcond_without computed_gotos
2017-08-17 07:13:29 +00:00
# Support for the Valgrind debugger/profiler
2018-08-04 20:07:21 +00:00
%ifarch %{valgrind_arches}
2017-08-16 13:36:04 +00:00
%bcond_without valgrind
%else
%bcond_with valgrind
%endif
# =====================
# General global macros
# =====================
2020-03-23 13:26:46 +00:00
%if %{with main_python}
%global pkgname python3
%global exename python3
%else
2020-05-07 14:50:36 +00:00
%global pkgname python%{pybasever}
2020-03-23 13:26:46 +00:00
%global exename python%{pybasever}
%endif
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
2010-01-13 21:25:18 +00:00
%global pylibdir %{_libdir} /python%{pybasever}
2010-01-28 19:09:18 +00:00
%global dynload_dir %{pylibdir} /lib-dynload
2010-01-13 21:25:18 +00:00
2017-08-17 07:18:50 +00:00
# ABIFLAGS, LDVERSION and SOABI are in the upstream configure.ac
# See PEP 3149 for some background: http://www.python.org/dev/peps/pep-3149/
2019-05-07 15:13:12 +00:00
%global ABIFLAGS_optimized %{nil}
%global ABIFLAGS_debug d
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%global LDVERSION_optimized %{pybasever} %{ABIFLAGS_optimized}
%global LDVERSION_debug %{pybasever} %{ABIFLAGS_debug}
2020-10-09 10:25:22 +00:00
# We use the upstream arch triplets, we convert them from %%{_arch}-linux%%{_gnu}
%global platform_triplet %{expand:%(echo %{_arch}-linux%{_gnu} | sed -E \\
2020-09-25 13:03:23 +00:00
-e 's/^arm(eb)?-linux-gnueabi$/arm\\1-linux-gnueabihf/' \\
-e 's/^mips64(el)?-linux-gnu$/mips64\\1-linux-gnuabi64/' \\
-e 's/^ppc(64)?(le)?-linux-gnu$/powerpc\\1\\2-linux-gnu/' )}
%global SOABI_optimized cpython-%{pyshortver} %{ABIFLAGS_optimized} -%{platform_triplet}
%global SOABI_debug cpython-%{pyshortver} %{ABIFLAGS_debug} -%{platform_triplet}
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
2017-08-17 07:18:50 +00:00
# All bytecode files are in a __pycache__ subdirectory, with a name
# reflecting the version of the bytecode.
# See PEP 3147: http://www.python.org/dev/peps/pep-3147/
3.2a1
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
- 3.2a1; add alphatag
- rework %%files in the light of PEP 3147 (__pycache__)
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
better job of things, and the %%files explicitly lists our modules (r82746
appears to break the old way of doing things). This leads to various modules
changing from "foomodule.so" to "foo.so". It also leads to the optimized build
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
testing/devel purposes)
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
- add machinery for rebuilding "configure" and friends, using the correct
version of autoconf (patch 300)
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
- "modulator" was removed upstream
- drop "-b" from patch applications affecting .py files to avoid littering the
installation tree
2010-08-21 22:08:26 +00:00
# For example,
# foo/bar.py
2017-08-17 07:18:50 +00:00
# has bytecode at:
2017-08-16 13:36:04 +00:00
# foo/__pycache__/bar.cpython-%%{pyshortver}.pyc
# foo/__pycache__/bar.cpython-%%{pyshortver}.opt-1.pyc
2018-02-12 16:43:19 +00:00
# foo/__pycache__/bar.cpython-%%{pyshortver}.opt-2.pyc
2017-08-16 13:36:04 +00:00
%global bytecode_suffixes .cpython-%{pyshortver} *.pyc
3.2a1
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
- 3.2a1; add alphatag
- rework %%files in the light of PEP 3147 (__pycache__)
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
better job of things, and the %%files explicitly lists our modules (r82746
appears to break the old way of doing things). This leads to various modules
changing from "foomodule.so" to "foo.so". It also leads to the optimized build
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
testing/devel purposes)
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
- add machinery for rebuilding "configure" and friends, using the correct
version of autoconf (patch 300)
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
- "modulator" was removed upstream
- drop "-b" from patch applications affecting .py files to avoid littering the
installation tree
2010-08-21 22:08:26 +00:00
2010-02-09 03:51:42 +00:00
# Python's configure script defines SOVERSION, and this is used in the Makefile
# to determine INSTSONAME, the name of the libpython DSO:
# LDLIBRARY='libpython$(VERSION).so'
# INSTSONAME="$LDLIBRARY".$SOVERSION
# We mirror this here in order to make it easier to add the -gdb.py hooks.
# (if these get out of sync, the payload of the libs subpackage will fail
# and halt the build)
%global py_SOVERSION 1.0
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%global py_INSTSONAME_optimized libpython%{LDVERSION_optimized} .so.%{py_SOVERSION}
%global py_INSTSONAME_debug libpython%{LDVERSION_debug} .so.%{py_SOVERSION}
2010-02-09 03:51:42 +00:00
2017-08-22 12:24:22 +00:00
# Disable automatic bytecompilation. The python3 binary is not yet be
# available in /usr/bin when Python is built. Also, the bytecompilation fails
# on files that test invalid syntax.
%undefine py_auto_byte_compile
3.2a1
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
- 3.2a1; add alphatag
- rework %%files in the light of PEP 3147 (__pycache__)
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
better job of things, and the %%files explicitly lists our modules (r82746
appears to break the old way of doing things). This leads to various modules
changing from "foomodule.so" to "foo.so". It also leads to the optimized build
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
testing/devel purposes)
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
- add machinery for rebuilding "configure" and friends, using the correct
version of autoconf (patch 300)
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
- "modulator" was removed upstream
- drop "-b" from patch applications affecting .py files to avoid littering the
installation tree
2010-08-21 22:08:26 +00:00
2020-03-23 13:26:46 +00:00
# When a main_python build is attempted despite the %%__default_python3_pkgversion value
2020-05-26 17:07:52 +00:00
# We undefine magic macros so the python3-... package does not provide wrong python3X-...
2020-05-07 14:50:36 +00:00
%if %{with main_python} && ("%{?__default_python3_pkgversion}" != "%{pybasever}")
2020-05-26 17:07:52 +00:00
%undefine __pythonname_provides
2020-03-23 13:26:46 +00:00
%{warn:Doing a main_python build with wrong %%__default_python 3_pkgversion (0%{?__default_python3_pkgversion} , but this is %pyshortver)}
%endif
2017-09-01 12:17:21 +00:00
2022-03-30 16:18:54 +00:00
%if %{with main_python}
# To keep the upgrade path clean, we Obsolete python3.X from the python3
# package and python3.X-foo from individual subpackages.
# Note that using Obsoletes without package version is not standard practice.
# Here we assert that *any* version of the system's default interpreter is
# preferable to an "extra" interpreter. For example, python3-3.6.1 will
# replace python3.6-3.6.2.
%define unversioned_obsoletes_of_python3_X_if_main() %{expand:\
Obsoletes : python%{pybasever} %{?1:-%{1}}\
}
%else
%define unversioned_obsoletes_of_python3_X_if_main() %{nil}
%endif
2011-07-08 16:54:16 +00:00
# =======================
# Build-time requirements
# =======================
# (keep this list alphabetized)
BuildRequires : autoconf
2012-12-11 20:42:13 +00:00
BuildRequires : bluez-libs-devel
2011-07-08 16:54:16 +00:00
BuildRequires : bzip2
BuildRequires : bzip2-devel
2017-08-22 12:33:31 +00:00
BuildRequires : desktop-file-utils
2017-09-01 09:04:02 +00:00
BuildRequires : expat-devel
2012-04-20 19:24:24 +00:00
2011-07-08 16:54:16 +00:00
BuildRequires : findutils
BuildRequires : gcc-c++
2017-08-16 13:36:04 +00:00
%if %{with gdbm}
2019-01-28 11:54:13 +00:00
BuildRequires : gdbm-devel
2011-09-13 18:59:31 +00:00
%endif
2020-07-15 15:12:02 +00:00
BuildRequires : git-core
2018-12-18 10:27:06 +00:00
BuildRequires : glibc-all-langpacks
2011-07-08 16:54:16 +00:00
BuildRequires : glibc-devel
BuildRequires : gmp-devel
2019-11-01 07:09:41 +00:00
BuildRequires : gnupg2
2017-08-22 12:33:31 +00:00
BuildRequires : libappstream-glib
2023-09-08 02:51:19 +00:00
%if %{undefined rhel}
2022-06-21 20:53:30 +00:00
BuildRequires : libb2-devel
2023-09-08 02:51:19 +00:00
%endif
2011-07-08 16:54:16 +00:00
BuildRequires : libffi-devel
2018-01-12 15:06:48 +00:00
BuildRequires : libnsl2-devel
BuildRequires : libtirpc-devel
2011-07-08 16:54:16 +00:00
BuildRequires : libGL-devel
2017-11-28 12:47:21 +00:00
BuildRequires : libuuid-devel
2011-07-08 16:54:16 +00:00
BuildRequires : libX11-devel
2020-12-07 18:35:08 +00:00
BuildRequires : make
2021-05-14 12:46:08 +00:00
BuildRequires : mpdecimal-devel
2011-07-08 16:54:16 +00:00
BuildRequires : ncurses-devel
2017-08-22 12:33:31 +00:00
2011-07-08 16:54:16 +00:00
BuildRequires : openssl-devel
BuildRequires : pkgconfig
2022-10-27 14:50:15 +00:00
BuildRequires : python-rpm-macros
2011-07-08 16:54:16 +00:00
BuildRequires : readline-devel
2019-01-02 17:15:20 +00:00
BuildRequires : redhat-rpm-config >= 127
2011-07-08 16:54:16 +00:00
BuildRequires : sqlite-devel
2017-10-06 11:30:25 +00:00
BuildRequires : gdb
2011-07-08 16:54:16 +00:00
BuildRequires : tar
BuildRequires : tcl-devel
BuildRequires : tix-devel
BuildRequires : tk-devel
2020-11-14 17:30:57 +00:00
BuildRequires : tzdata
2011-07-08 16:54:16 +00:00
2017-08-16 13:36:04 +00:00
%if %{with valgrind}
2011-07-08 16:54:16 +00:00
BuildRequires : valgrind-devel
%endif
2012-07-24 18:59:47 +00:00
BuildRequires : xz-devel
2011-07-08 16:54:16 +00:00
BuildRequires : zlib-devel
2017-09-01 09:28:31 +00:00
BuildRequires : /usr/bin/dtrace
2017-09-01 09:48:50 +00:00
# workaround http://bugs.python.org/issue19804 (test_uuid requires ifconfig)
BuildRequires : /usr/sbin/ifconfig
2018-08-15 13:36:29 +00:00
%if %{with rpmwheels}
2023-05-23 09:04:35 +00:00
# Python 3.12 removed the deprecated imp module,
# the first compatible version of pip is 23.1.2.
BuildRequires : %{python_wheel_pkg_prefix} -pip-wheel >= 23.1.2
2023-05-26 13:54:59 +00:00
%if %{with tests}
BuildRequires : %{python_wheel_pkg_prefix} -setuptools-wheel
BuildRequires : %{python_wheel_pkg_prefix} -wheel-wheel
%endif
2014-04-15 07:52:32 +00:00
%endif
2019-04-25 16:55:05 +00:00
%if %{without bootstrap}
2022-11-15 16:07:29 +00:00
# for make regen-all
2020-11-30 17:49:05 +00:00
# Note that we're not using the %%{pkgname} macro here on purpose, because when
# upgrading the main python3 to a new Python version, this would pull in the
# old version instead.
2020-05-07 14:50:36 +00:00
BuildRequires : python%{pybasever}
2024-01-02 09:29:28 +00:00
%endif
%if %{without bootstrap} || %{without main_python}
2020-04-03 23:32:28 +00:00
# for proper automatic provides
BuildRequires : python3-rpm-generators
2019-04-25 16:55:05 +00:00
%endif
2011-07-08 16:54:16 +00:00
# =======================
# Source code and patches
# =======================
2019-11-01 07:09:41 +00:00
Source0 : %{url} ftp/python/%{general_version} /Python-%{upstream_version} .tar.xz
Source1 : %{url} ftp/python/%{general_version} /Python-%{upstream_version} .tar.xz.asc
2022-10-27 14:50:15 +00:00
# The release manager for Python 3.12 is Thomas Wouters
Source2 : https://github.com/Yhg1s.gpg
2010-01-28 19:09:18 +00:00
2013-10-30 09:50:01 +00:00
# A simple script to check timestamps of bytecode files
# Run in check section with Python that is currently being built
2018-07-26 12:19:23 +00:00
# Originally written by bkabrda
Source8 : check-pyc-timestamps.py
2010-03-12 22:40:23 +00:00
2017-02-28 13:33:44 +00:00
# Desktop menu entry for idle3
Source10 : idle3.desktop
# AppData file for idle3
Source11 : idle3.appdata.xml
2020-07-20 19:52:13 +00:00
# (Patches taken from github.com/fedora-python/cpython)
2022-11-15 16:07:29 +00:00
# 00251 # cae5a6abc5df08239c85b83e4e250b6f2702e4f5
2020-07-20 19:52:13 +00:00
# Change user install location
#
2022-08-09 10:11:02 +00:00
# Set values of base and platbase in sysconfig from /usr
# to /usr/local when RPM build is not detected
# to make pip and similar tools install into separate location.
2021-10-05 09:53:19 +00:00
#
2017-06-28 13:46:50 +00:00
# Fedora Change: https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe
2022-08-09 10:11:02 +00:00
# Downstream only.
2021-10-05 09:53:19 +00:00
#
2022-08-09 10:11:02 +00:00
# We've tried to rework in Fedora 36/Python 3.10 to follow https://bugs.python.org/issue43976
# but we have identified serious problems with that approach,
# see https://bugzilla.redhat.com/2026979 or https://bugzilla.redhat.com/2097183
2021-10-05 09:53:19 +00:00
#
2022-08-09 10:11:02 +00:00
# pypa/distutils integration: https://github.com/pypa/distutils/pull/70
2017-06-26 14:32:56 +00:00
Patch251 : 00251-change-user-install-location.patch
2023-06-07 06:39:56 +00:00
# 00371 # d917a50238c94c652bc30ae9061d65f60cc8accd
2022-06-24 09:59:24 +00:00
# Revert "bpo-1596321: Fix threading._shutdown() for the main thread (GH-28549) (GH-28589)"
#
# This reverts commit 38c67738c64304928c68d5c2bd78bbb01d979b94. It
# introduced regression causing FreeIPA's tests to fail.
#
# For more info see:
# https://bodhi.fedoraproject.org/updates/FEDORA-2021-e152ce5f31
# https://github.com/GrahamDumpleton/mod_wsgi/issues/730
Patch371 : 00371-revert-bpo-1596321-fix-threading-_shutdown-for-the-main-thread-gh-28549-gh-28589.patch
2024-02-07 13:54:16 +00:00
# 00415 # 5b830b814be638d1a167802780b5f498a4a5e97c
2023-12-18 12:17:51 +00:00
# [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() (#111116)
#
# Detect email address parsing errors and return empty tuple to
# indicate the parsing error (old API). Add an optional 'strict'
# parameter to getaddresses() and parseaddr() functions. Patch by
# Thomas Dwyer.
Patch415 : 00415-cve-2023-27043-gh-102988-reject-malformed-addresses-in-email-parseaddr-111116.patch
2024-02-07 13:54:16 +00:00
# 00418 # 153905265371131e1227ace0dfef34a5c5efde59
# Don't generate sbom in make regen-all
#
# The script and make target, added in Python 3.12.2, assumes a fixed
# location of pip wheel and other bundled libraries, resulting in an
# error and failed build when not found.
# Reported upstream: https://github.com/python/cpython/issues/114240
# and https://github.com/python/cpython/issues/114244
Patch418 : 00418-don-t-generate-sbom-in-make-regen-all.patch
2024-02-21 10:58:07 +00:00
# 00422 # a353cebef737c41420dc7ae2469dd657371b8881
# gh-115133: Fix tests for XMLPullParser with Expat 2.6.0
#
# Feeding the parser by too small chunks defers parsing to prevent
# CVE-2023-52425. Future versions of Expat may be more reactive.
Patch422 : 00422-gh-115133-fix-tests-for-xmlpullparser-with-expat-2-6-0.patch
2016-06-20 11:14:00 +00:00
# (New patches go here ^^^)
#
2016-08-09 12:27:26 +00:00
# When adding new patches to "python" and "python3" in Fedora, EL, etc.,
# please try to keep the patch numbers in-sync between all specfiles.
2016-06-20 11:14:00 +00:00
#
2016-08-09 12:27:26 +00:00
# More information, and a patch number catalog, is at:
2016-06-20 11:14:00 +00:00
#
2016-08-09 12:27:26 +00:00
# https://fedoraproject.org/wiki/SIGs/Python/PythonPatches
2019-05-07 15:13:12 +00:00
#
# The patches are stored and rebased at:
#
# https://github.com/fedora-python/cpython
2016-08-09 12:27:26 +00:00
2010-02-12 21:38:52 +00:00
2017-08-22 14:55:51 +00:00
# ==========================================
# Descriptions, and metadata for subpackages
# ==========================================
2010-01-13 21:25:18 +00:00
2022-03-30 13:38:21 +00:00
2020-03-23 13:26:46 +00:00
%if %{with main_python}
# Description for the python3X SRPM only:
%description
Python %{pybasever} is an accessible, high-level, dynamically typed, interpreted
programming language, designed with an emphasis on code readability.
It includes an extensive standard library, and has a vast ecosystem of
third-party libraries.
%package -n %{pkgname}
Summary : Python %{pybasever} interpreter
2017-08-22 13:48:41 +00:00
# In order to support multiple Python interpreters for development purposes,
2022-03-31 11:58:41 +00:00
# packages with fully versioned naming scheme (e.g. python3.9*) exist for
2017-08-22 13:48:41 +00:00
# non-default versions of Python 3.
2020-05-07 14:50:36 +00:00
# For consistency, we provide python3.X from python3 as well.
Provides : python%{pybasever} = %{version} -%{release}
Provides : python%{pybasever} %{?_isa} = %{version} -%{release}
2022-03-30 16:18:54 +00:00
%unversioned_obsoletes_of_python3_X_if_main
2016-09-13 15:08:19 +00:00
2019-07-12 17:03:54 +00:00
# https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package
# https://fedoraproject.org/wiki/Changes/Python_means_Python3
# We recommend /usr/bin/python so users get it by default
# Versioned recommends are problematic, and we know that the package requires
# python3 back with fixed version, so we just use the path here:
Recommends: %{_bindir} /python
2019-11-18 11:46:25 +00:00
%endif
2019-07-12 17:03:54 +00:00
2020-05-07 14:50:36 +00:00
# Python interpreter packages used to be named (or provide) name pythonXY (e.g.
# python39). However, to align it with the executable names and to prepare for
# Python 3.10, they were renamed to pythonX.Y (e.g. python3.9, python3.10). We
2022-04-27 08:59:38 +00:00
# provide the previous names.
2020-05-07 14:50:36 +00:00
Provides : python%{pyshortver} = %{version} -%{release}
2020-05-06 18:33:16 +00:00
2022-04-13 15:22:23 +00:00
%if %{with main_python} || %{with python_abi_provides_for_alt_pythons}
2020-05-06 18:33:16 +00:00
# Packages with Python modules in standard locations automatically
# depend on python(abi). Provide that here.
Provides : python(abi) = %{pybasever}
2022-03-31 11:58:41 +00:00
%else
2022-04-13 15:22:23 +00:00
# We exclude the `python(abi)` Provides
2022-03-31 11:58:41 +00:00
%global __requires_exclude ^python\\(abi\\) = 3\\..+
%global __provides_exclude ^python\\(abi\\) = 3\\..+
%endif
2020-05-06 18:33:16 +00:00
Requires : %{pkgname} -libs%{?_isa} = %{version} -%{release}
2018-02-21 13:35:54 +00:00
# This prevents ALL subpackages built from this spec to require
2020-07-30 13:38:01 +00:00
# /usr/bin/python3* or python(abi). Granularity per subpackage is impossible.
2018-02-21 13:35:54 +00:00
# It's intended for the libs package not to drag in the interpreter, see
# https://bugzilla.redhat.com/show_bug.cgi?id=1547131
2020-07-30 13:38:01 +00:00
# https://bugzilla.redhat.com/show_bug.cgi?id=1862082
# All other packages require %%{pkgname} explicitly.
%global __requires_exclude ^(/usr/bin/python3|python\\(abi\\))
2018-02-21 13:35:54 +00:00
2020-03-23 13:26:46 +00:00
%description -n %{pkgname}
Python %{pybasever} is an accessible, high-level, dynamically typed, interpreted
programming language, designed with an emphasis on code readability.
2017-08-21 11:46:14 +00:00
It includes an extensive standard library, and has a vast ecosystem of
third-party libraries.
2017-05-09 09:43:22 +00:00
2020-03-23 13:26:46 +00:00
The %{pkgname} package provides the " %{exename} " executable: the reference
2017-09-05 09:54:13 +00:00
interpreter for the Python language, version 3.
2020-03-23 13:26:46 +00:00
The majority of its standard library is provided in the %{pkgname} -libs package,
which should be installed automatically along with %{pkgname} .
2017-08-21 11:46:14 +00:00
The remaining parts of the Python standard library are broken out into the
2020-03-23 13:26:46 +00:00
%{pkgname} -tkinter and %{pkgname} -test packages, which may need to be installed
2017-08-21 11:46:14 +00:00
separately.
2017-05-09 09:43:22 +00:00
2020-03-23 13:26:46 +00:00
Documentation for Python is provided in the %{pkgname} -docs package.
2017-08-21 11:46:14 +00:00
Packages containing additional libraries for Python are generally named with
2020-03-23 13:26:46 +00:00
the " %{pkgname} - " prefix.
2017-05-09 09:43:22 +00:00
2010-01-13 21:25:18 +00:00
2019-11-18 11:46:25 +00:00
%if %{with main_python}
2019-07-12 17:03:54 +00:00
# https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package
# https://fedoraproject.org/wiki/Changes/Python_means_Python3
%package -n python-unversioned-command
Summary : The " p y t h o n " command that runs Python 3
BuildArch : noarch
# In theory this could require any python3 version
Requires : python3 == %{version} -%{release}
# But since we want to provide versioned python, we require exact version
Provides : python = %{version} -%{release}
# This also save us an explicit conflict for older python3 builds
2021-05-13 13:11:06 +00:00
# Also provide the name of the Ubuntu package with the same function,
# to be nice to people who temporarily forgot which distro they're on.
# C.f. https://packages.ubuntu.com/hirsute/all/python-is-python3/filelist
Provides : python-is-python3 = %{version} -%{release}
2019-07-12 17:03:54 +00:00
%description -n python-unversioned-command
This package contains /usr/bin/python - the " p y t h o n " command that runs Python 3.
2019-11-18 11:46:25 +00:00
%endif # with main_python
2019-07-12 17:03:54 +00:00
2020-03-23 13:26:46 +00:00
%package -n %{pkgname}-libs
2017-05-09 09:43:22 +00:00
Summary : Python runtime libraries
2010-01-13 21:25:18 +00:00
2018-08-15 13:36:29 +00:00
%if %{with rpmwheels}
2023-05-23 09:04:35 +00:00
Requires : %{python_wheel_pkg_prefix} -pip-wheel >= 23.1.2
2023-09-08 02:51:19 +00:00
# Bundled libb2 is CC0, covered by grandfathering exception
License : Python-2.0.1 AND CC0-1.0
2018-08-15 13:36:29 +00:00
%else
2020-07-02 11:36:21 +00:00
Provides : bundled(python3dist(pip)) = %{pip_version}
2023-05-30 16:19:42 +00:00
%pip_bundled_provides
# License manually combined form Python + pip
2023-09-08 02:51:19 +00:00
License : Python-2.0.1 AND CC0-1.0 AND MIT AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND LGPL-2.1-only AND MPL-2.0 AND (Apache-2.0 OR BSD-2-Clause)
2018-08-15 13:36:29 +00:00
%endif
2022-03-30 16:18:54 +00:00
%unversioned_obsoletes_of_python3_X_if_main libs
2023-09-08 02:51:19 +00:00
# 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
2018-02-21 13:35:54 +00:00
# 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.
# See https://bugzilla.redhat.com/show_bug.cgi?id=1547131
2020-03-23 13:26:46 +00:00
Recommends: %{pkgname} %{?_isa} = %{version} -%{release}
2018-02-21 13:35:54 +00:00
2019-11-20 12:48:19 +00:00
# tkinter is part of the standard library,
# but it is torn out to save an unwanted dependency on tk and X11.
# we recommend it when tk is already installed (for better UX)
2020-03-23 13:26:46 +00:00
Recommends: (%{pkgname} -tkinter%{?_isa} = %{version} -%{release} if tk%{?_isa} )
2019-11-20 12:48:19 +00:00
2020-11-14 17:30:57 +00:00
# The zoneinfo module needs tzdata
Requires : tzdata
2020-03-23 13:26:46 +00:00
%description -n %{pkgname}-libs
2017-05-09 09:43:22 +00:00
This package contains runtime libraries for use by Python:
2017-08-21 11:46:14 +00:00
- the majority of the Python standard library
- a dynamically linked library for use by applications that embed Python as
2020-03-23 13:26:46 +00:00
a scripting language, and by the main " %{exename} " executable
2017-08-21 11:46:14 +00:00
2010-01-13 21:25:18 +00:00
2020-03-23 13:26:46 +00:00
%package -n %{pkgname}-devel
2017-05-09 09:43:22 +00:00
Summary : Libraries and header files needed for Python development
2020-03-23 13:26:46 +00:00
Requires : %{pkgname} = %{version} -%{release}
Requires : %{pkgname} -libs%{?_isa} = %{version} -%{release}
2019-08-11 09:23:07 +00:00
# The RPM related dependencies bring nothing to a non-RPM Python developer
# But we want them when packages BuildRequire python3-devel
2021-10-06 14:40:28 +00:00
Requires : (python-rpm-macros if rpm-build)
Requires : (python3-rpm-macros if rpm-build)
2023-01-06 13:11:17 +00:00
# We omit this dependency on RHEL to avoid pulling the macros to AppStream:
# RHEL users can use the minimal implementation of %%pyproject_buildrequires
# from pyproject-srpm-macros instead.
# On Fedora, we keep this to avoid one additional round of %%generate_buildrequires.
%{!?rhel:Requires: (pyproject-rpm-macros if rpm-build)}
2019-07-08 09:44:23 +00:00
2022-03-30 16:18:54 +00:00
%unversioned_obsoletes_of_python3_X_if_main devel
2022-04-27 08:57:29 +00:00
%if %{with main_python}
2021-04-23 10:57:43 +00:00
# Python developers are very likely to need pip
Recommends: %{pkgname} -pip
2022-04-27 08:57:29 +00:00
%endif
2021-04-23 10:57:43 +00:00
2021-12-13 13:14:04 +00:00
# tox users are likely to need the devel subpackage
Supplements: tox
2024-01-02 09:29:28 +00:00
%if %{without bootstrap} || %{without main_python}
# Generators run on the main Python 3 so we cannot require them when bootstrapping it
2019-08-11 09:23:07 +00:00
Requires : (python3-rpm-generators if rpm-build)
2019-03-10 18:48:49 +00:00
%endif
2020-03-23 13:26:46 +00:00
Provides : %{pkgname} -2to3 = %{version} -%{release}
2022-03-30 13:38:21 +00:00
%if %{with main_python}
2018-01-18 21:57:38 +00:00
Provides : 2to3 = %{version} -%{release}
2022-03-30 13:38:21 +00:00
%endif
2018-01-18 21:57:38 +00:00
2020-03-23 13:26:46 +00:00
Conflicts : %{pkgname} < %{version} -%{release}
2010-01-13 21:25:18 +00:00
2020-03-23 13:26:46 +00:00
%description -n %{pkgname}-devel
2017-08-21 11:46:14 +00:00
This package contains the header files and configuration needed to compile
Python extension modules (typically written in C or C++), to embed Python
into other programs, and to make binary distributions for Python libraries.
2018-01-18 21:57:38 +00:00
It also contains the necessary macros to build RPM packages with Python modules
and 2to3 tool, an automatic source converter from Python 2.X.
2017-05-09 09:43:22 +00:00
2010-01-13 21:25:18 +00:00
2020-03-23 13:26:46 +00:00
%package -n %{pkgname}-idle
2018-01-18 21:57:38 +00:00
Summary : A basic graphical development environment for Python
2020-03-23 13:26:46 +00:00
Requires : %{pkgname} = %{version} -%{release}
Requires : %{pkgname} -tkinter = %{version} -%{release}
2010-01-13 21:25:18 +00:00
2022-03-30 16:18:54 +00:00
%unversioned_obsoletes_of_python3_X_if_main idle
2022-03-30 13:38:21 +00:00
%if %{with main_python}
2017-08-16 13:36:09 +00:00
Provides : idle3 = %{version} -%{release}
2019-07-12 17:03:54 +00:00
Provides : idle = %{version} -%{release}
2022-03-30 13:38:21 +00:00
%endif
2017-08-16 13:36:09 +00:00
2020-03-23 13:26:46 +00:00
Provides : %{pkgname} -tools = %{version} -%{release}
Provides : %{pkgname} -tools%{?_isa} = %{version} -%{release}
2017-08-31 21:01:10 +00:00
2020-03-23 13:26:46 +00:00
%description -n %{pkgname}-idle
2018-01-18 21:57:38 +00:00
IDLE is Python’ s Integrated Development and Learning Environment.
IDLE has the following features: Python shell window (interactive
interpreter) with colorizing of code input, output, and error messages;
multi-window text editor with multiple undo, Python colorizing,
smart indent, call tips, auto completion, and other features;
search within any window, replace within editor windows, and
search through multiple files (grep); debugger with persistent
breakpoints, stepping, and viewing of global and local namespaces;
configuration, browsers, and other dialogs.
2017-08-21 11:46:14 +00:00
2010-01-13 21:25:18 +00:00
2020-03-23 13:26:46 +00:00
%package -n %{pkgname}-tkinter
2017-05-09 09:43:22 +00:00
Summary : A GUI toolkit for Python
2020-03-23 13:26:46 +00:00
Requires : %{pkgname} = %{version} -%{release}
2010-01-13 21:25:18 +00:00
2022-03-30 16:18:54 +00:00
%unversioned_obsoletes_of_python3_X_if_main tkinter
2021-06-30 10:50:32 +00:00
# The importable module "turtle" is here, so provide python3-turtle.
# (We don't provide python3-turtledemo, that's not too useful when imported.)
%py_provides %{pkgname} -turtle
2020-03-23 13:26:46 +00:00
%description -n %{pkgname}-tkinter
2017-08-21 11:46:14 +00:00
The Tkinter (Tk interface) library is a graphical user interface toolkit for
the Python programming language.
2010-01-13 21:25:18 +00:00
2020-03-23 13:26:46 +00:00
%package -n %{pkgname}-test
2017-08-21 11:46:14 +00:00
Summary : The self-test suite for the main python3 package
2020-03-23 13:26:46 +00:00
Requires : %{pkgname} = %{version} -%{release}
Requires : %{pkgname} -libs%{?_isa} = %{version} -%{release}
2010-01-13 21:25:18 +00:00
2023-05-26 13:54:59 +00:00
%if %{with rpmwheels}
Requires : %{python_wheel_pkg_prefix} -setuptools-wheel
Requires : %{python_wheel_pkg_prefix} -wheel-wheel
%else
Provides : bundled(python3dist(setuptools)) = %{setuptools_version}
2023-05-30 16:19:42 +00:00
%setup tools_bundled_provides
2023-05-26 13:54:59 +00:00
Provides : bundled(python3dist(wheel)) = %{wheel_version}
2023-05-30 16:19:42 +00:00
%wheel_bundled_provides
# License manually combined from Python + setuptools + wheel
License : Python-2.0.1 AND MIT AND Apache-2.0 AND (Apache-2.0 OR BSD-2-Clause)
2023-05-26 13:54:59 +00:00
%endif
2022-03-30 16:18:54 +00:00
%unversioned_obsoletes_of_python3_X_if_main test
2020-03-23 13:26:46 +00:00
%description -n %{pkgname}-test
2017-08-21 11:46:14 +00:00
The self-test suite for the Python interpreter.
This is only useful to test Python itself. For testing general Python code,
2020-03-23 13:26:46 +00:00
you should use the unittest module from %{pkgname} -libs, or a library such as
%{pkgname} -pytest.
2010-01-13 21:25:18 +00:00
2017-08-16 13:36:04 +00:00
%if %{with debug_build}
2020-03-23 13:26:46 +00:00
%package -n %{pkgname}-debug
2017-05-09 09:43:22 +00:00
Summary : Debug version of the Python runtime
2010-05-24 23:45:40 +00:00
# The debug build is an all-in-one package version of the regular build, and
2018-02-12 16:43:19 +00:00
# shares the same .py/.pyc files and directories as the regular build. Hence
2010-05-24 23:45:40 +00:00
# we depend on all of the subpackages of the regular build:
2020-03-23 13:26:46 +00:00
Requires : %{pkgname} %{?_isa} = %{version} -%{release}
Requires : %{pkgname} -libs%{?_isa} = %{version} -%{release}
Requires : %{pkgname} -devel%{?_isa} = %{version} -%{release}
Requires : %{pkgname} -test%{?_isa} = %{version} -%{release}
Requires : %{pkgname} -tkinter%{?_isa} = %{version} -%{release}
Requires : %{pkgname} -idle%{?_isa} = %{version} -%{release}
2010-05-24 23:45:40 +00:00
2022-03-30 16:18:54 +00:00
%unversioned_obsoletes_of_python3_X_if_main debug
2020-03-23 13:26:46 +00:00
%description -n %{pkgname}-debug
2017-05-09 09:43:22 +00:00
python3-debug provides a version of the Python runtime with numerous debugging
2017-08-21 11:46:14 +00:00
features enabled, aimed at advanced Python users such as developers of Python
2010-05-24 23:45:40 +00:00
extension modules.
2017-05-09 09:43:22 +00:00
This version uses more memory and will be slower than the regular Python build,
2017-08-21 11:46:14 +00:00
but is useful for tracking down reference-counting issues and other bugs.
2010-05-24 23:45:40 +00:00
2017-08-21 11:46:14 +00:00
The debug build shares installation directories with the standard Python
2019-07-19 15:49:16 +00:00
runtime. Python modules -- source (.py), bytecode (.pyc), and C-API extensions
(.cpython*.so) -- are compatible between this and the standard version
of Python.
The debug runtime additionally supports debug builds of C-API extensions
(with the " d " ABI flag) for debugging issues in those extensions.
2017-08-16 13:36:04 +00:00
%endif # with debug_build
2010-05-24 23:45:40 +00:00
2017-08-21 11:46:14 +00:00
2011-07-08 16:54:16 +00:00
# ======================================================
# The prep phase of the build:
# ======================================================
2010-01-13 21:25:18 +00:00
%prep
2019-11-01 07:09:41 +00:00
%gpgverify -k2 -s1 -d0
2021-02-03 14:59:37 +00:00
%autosetup -S git_am -n Python-%{upstream_version}
2020-07-15 15:12:02 +00:00
2023-05-30 16:19:42 +00:00
# Verify the second level of bundled provides is up to date
# Arguably this should be done in %%check, but %%prep has a faster feedback loop
# setuptools.whl does not contain the vendored.txt files
if [ -f %{_rpmconfigdir} /pythonbundles.py ]; then
%{_rpmconfigdir} /pythonbundles.py <(unzip -p Lib/ensurepip/_bundled/pip-*.whl pip/_vendor/vendor.txt) --compare-with '%pip_bundled_provides'
2024-02-07 13:54:16 +00:00
%{_rpmconfigdir} /pythonbundles.py <(unzip -p Lib/test/wheeldata/wheel-*.whl wheel/vendored/vendor.txt) --compare-with '%wheel_bundled_provides'
2023-05-30 16:19:42 +00:00
fi
2020-07-15 15:12:02 +00:00
%if %{with rpmwheels}
2021-02-03 14:59:37 +00:00
rm Lib/ensurepip/_bundled/pip-%{pip_version} -py3-none-any.whl
2024-02-07 13:54:16 +00:00
rm Lib/test/wheeldata/setuptools-%{setuptools_version} -py3-none-any.whl
rm Lib/test/wheeldata/wheel-%{wheel_version} -py3-none-any.whl
2020-07-15 15:12:02 +00:00
%endif
2018-12-07 09:03:24 +00:00
# Remove all exe files to ensure we are not shipping prebuilt binaries
# note that those are only used to create Microsoft Windows installers
# and that functionality is broken on Linux anyway
find -name '*.exe' -print -delete
2010-01-16 01:20:39 +00:00
2017-08-28 15:38:51 +00:00
# Remove bundled libraries to ensure that we're using the system copy.
rm -r Modules/expat
2021-05-14 12:46:08 +00:00
rm -r Modules/_decimal/libmpdec
2010-01-28 19:56:39 +00:00
2017-08-29 13:13:05 +00:00
# Remove files that should be generated by the build
# (This is after patching, so that we can use patches directly from upstream)
rm configure pyconfig.h.in
2011-07-08 16:54:16 +00:00
# ======================================================
# Configuring and building the code:
# ======================================================
2010-01-13 21:25:18 +00:00
%build
2017-08-29 13:13:05 +00:00
2020-08-12 16:05:22 +00:00
# The build process embeds version info extracted from the Git repository
# into the Py_GetBuildInfo and sys.version strings.
# Our Git repository is artificial, so we don't want that.
# Tell configure to not use git.
export HAS_GIT=not-found
2017-08-29 13:13:05 +00:00
# Regenerate the configure script and pyconfig.h.in
autoconf
autoheader
2017-08-31 13:27:20 +00:00
# Remember the current directory (which has sources and the configure script),
# so we can refer to it after we "cd" elsewhere.
2010-05-24 23:45:40 +00:00
topdir=$(pwd)
2017-08-31 13:27:20 +00:00
# Get proper option names from bconds
%if %{with computed_gotos}
%global computed_gotos_flag yes
%else
%global computed_gotos_flag no
%endif
%if %{with optimizations}
%global optimizations_flag " - - e n a b l e - o p t i m i z a t i o n s "
%else
%global optimizations_flag " - - d i s a b l e - o p t i m i z a t i o n s "
%endif
# Set common compiler/linker flags
2019-01-02 17:15:20 +00:00
# We utilize the %%extension_...flags macros here so users building C/C++
# extensions with our python won't get all the compiler/linker flags used
# in Fedora RPMs.
# 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
2023-05-22 17:23:07 +00:00
# https://fedoraproject.org/wiki/Changes/Python_Extension_Flags_Reduction
export CFLAGS=" %{extension_cflags} "
2020-11-04 17:55:04 +00:00
export CFLAGS_NODIST=" %{build_cflags} - D _ G N U _ S O U R C E - f P I C - f w r a p v "
2023-05-22 17:23:07 +00:00
export CXXFLAGS=" %{extension_cxxflags} "
2017-08-31 13:27:20 +00:00
export CPPFLAGS=" $ ( p k g - c o n f i g - - c f l a g s - o n l y - I l i b f f i ) "
2023-05-22 17:23:07 +00:00
export OPT=" %{extension_cflags} "
2010-01-13 21:25:18 +00:00
export LINKCC=" g c c "
2017-08-31 13:27:20 +00:00
export CFLAGS=" $ C F L A G S $ ( p k g - c o n f i g - - c f l a g s o p e n s s l ) "
2023-05-22 17:23:07 +00:00
export LDFLAGS=" %{extension_ldflags} $ ( p k g - c o n f i g - - l i b s - o n l y - L o p e n s s l ) "
2020-11-04 17:55:04 +00:00
export LDFLAGS_NODIST=" %{build_ldflags} - g $ ( p k g - c o n f i g - - l i b s - o n l y - L o p e n s s l ) "
2010-01-13 21:25:18 +00:00
2017-08-31 13:27:20 +00:00
# We can build several different configurations of Python: regular and debug.
# Define a common function that does one build:
2010-05-24 23:45:40 +00:00
BuildPython() {
2016-03-24 15:53:25 +00:00
ConfName=$1
2017-08-31 13:27:20 +00:00
ExtraConfigArgs=$2
MoreCFlags=$3
2010-05-24 23:45:40 +00:00
2017-08-31 13:27:20 +00:00
# Each build is done in its own directory
2010-05-24 23:45:40 +00:00
ConfDir=build/$ConfName
2017-08-31 13:27:20 +00:00
echo STARTING: BUILD OF PYTHON FOR CONFIGURATION: $ConfName
2010-05-24 23:45:40 +00:00
mkdir -p $ConfDir
pushd $ConfDir
2017-08-31 13:27:20 +00:00
# Normally, %%configure looks for the "configure" script in the current
# directory.
# Since we changed directories, we need to tell %%configure where to look.
2010-05-24 23:45:40 +00:00
%global _configure $topdir/configure
2020-02-27 12:12:49 +00:00
# A workaround for https://bugs.python.org/issue39761
export DFLAGS=" "
2010-02-12 21:38:52 +00:00
%configure \
2020-03-24 17:56:52 +00:00
--with-platlibdir=%{_lib} \
2010-02-12 21:38:52 +00:00
--enable-ipv6 \
--enable-shared \
2017-08-16 13:36:04 +00:00
--with-computed-gotos=%{computed_gotos_flag} \
2012-05-04 19:53:42 +00:00
--with-dbmliborder=gdbm:ndbm:bdb \
--with-system-expat \
--with-system-ffi \
2021-05-14 12:46:08 +00:00
--with-system-libmpdec \
2014-02-19 13:30:28 +00:00
--enable-loadable-sqlite-extensions \
2016-12-02 15:12:46 +00:00
--with-dtrace \
2017-04-18 11:48:56 +00:00
--with-lto \
2018-02-01 10:20:15 +00:00
--with-ssl-default-suites=openssl \
2021-03-02 09:15:11 +00:00
--without-static-libpython \
2021-02-03 14:59:37 +00:00
%if %{with rpmwheels}
2021-10-20 14:48:24 +00:00
--with-wheel-pkg-dir=%{python_wheel_dir} \
2021-02-03 14:59:37 +00:00
%endif
2017-08-16 13:36:04 +00:00
%if %{with valgrind}
2011-01-04 15:53:01 +00:00
--with-valgrind \
%endif
2010-05-24 23:45:40 +00:00
$ExtraConfigArgs \
%{nil}
2010-02-12 21:38:52 +00:00
2019-10-14 21:06:52 +00:00
%global flags_override EXTRA_CFLAGS=" $ M o r e C F l a g s " CFLAGS_NODIST=" $ C F L A G S _ N O D I S T $ M o r e C F l a g s "
2019-04-25 16:55:05 +00:00
%if %{without bootstrap}
# Regenerate generated files (needs python3)
2019-10-14 21:06:52 +00:00
%make_build %{flags_override} regen-all PYTHON_FOR_REGEN=" p y t h o n %{pybasever} "
2019-04-25 16:55:05 +00:00
%endif
2017-08-31 13:27:20 +00:00
# Invoke the build
2019-10-14 21:06:52 +00:00
%make_build %{flags_override}
2010-01-13 21:25:18 +00:00
2010-05-24 23:45:40 +00:00
popd
2017-08-31 13:27:20 +00:00
echo FINISHED: BUILD OF PYTHON FOR CONFIGURATION: $ConfName
2010-05-24 23:45:40 +00:00
}
2017-08-31 13:27:20 +00:00
# Call the above to build each configuration.
2010-05-24 23:45:40 +00:00
2017-08-16 13:36:04 +00:00
%if %{with debug_build}
2021-01-15 17:35:43 +00:00
# The debug build is compiled with the lowest level of optimizations as to not optimize
# out frames. We also suppress the warnings as the default distro value of the FORTIFY_SOURCE
# option produces too many warnings when compiling at the O0 optimization level.
# See also: https://bugzilla.redhat.com/show_bug.cgi?id=1818857
2010-05-24 23:45:40 +00:00
BuildPython debug \
2017-08-31 13:27:20 +00:00
" - - w i t h o u t - e n s u r e p i p - - w i t h - p y d e b u g " \
2021-01-15 17:35:43 +00:00
" - O 0 - W n o - c p p "
2017-08-16 13:36:04 +00:00
%endif # with debug_build
2010-05-24 23:45:40 +00:00
BuildPython optimized \
2017-08-31 13:27:20 +00:00
" - - w i t h o u t - e n s u r e p i p %{optimizations_flag} " \
" "
2010-05-24 23:45:40 +00:00
2011-07-08 16:54:16 +00:00
# ======================================================
# Installing the built code:
# ======================================================
2010-01-13 21:25:18 +00:00
%install
2017-08-31 14:00:06 +00:00
# As in %%build, remember the current directory
2010-05-24 23:45:40 +00:00
topdir=$(pwd)
2010-01-13 21:25:18 +00:00
2017-08-31 14:00:06 +00:00
# We install a collection of hooks for gdb that make it easier to debug
# executables linked against libpython3* (such as /usr/bin/python3 itself)
#
# These hooks are implemented in Python itself (though they are for the version
# of python that gdb is linked with)
#
# gdb-archer looks for them in the same path as the ELF file or its .debug
# file, with a -gdb.py suffix.
# We put them next to the debug file, because ldconfig would complain if
# it found non-library files directly in /usr/lib/
# (see https://bugzilla.redhat.com/show_bug.cgi?id=562980)
#
# We'll put these files in the debuginfo package by installing them to e.g.:
# /usr/lib/debug/usr/lib/libpython3.2.so.1.0.debug-gdb.py
# (note that the debug path is /usr/lib/debug for both 32/64 bit)
#
# See https://fedoraproject.org/wiki/Features/EasierPythonDebugging for more
# information
%if %{with gdb_hooks}
2019-09-25 06:50:47 +00:00
DirHoldingGdbPy=%{_usr}/lib/debug/%{_libdir}
2017-08-31 14:00:06 +00:00
mkdir -p %{buildroot} $DirHoldingGdbPy
%endif # with gdb_hooks
2022-10-27 22:12:41 +00:00
# When the actual %%{dynload_dir} exists (it does when python3.X is installed for regen-all)
# %%{buildroot}%%{dynload_dir} is not created by make install and the extension modules are missing
# Reported upstream as https://github.com/python/cpython/issues/98782
# A workaround is to create the directory before running make install
mkdir -p %{buildroot} %{dynload_dir}
2017-09-01 12:01:43 +00:00
# Multilib support for pyconfig.h
# 32- and 64-bit versions of pyconfig.h are different. For multilib support
# (making it possible to install 32- and 64-bit versions simultaneously),
# we need to install them under different filenames, and to make the common
# "pyconfig.h" include the right file based on architecture.
# See https://bugzilla.redhat.com/show_bug.cgi?id=192747
# Filanames are defined here:
%global _pyconfig32_h pyconfig-32.h
%global _pyconfig64_h pyconfig-64.h
2020-02-24 09:23:04 +00:00
%global _pyconfig_h pyconfig-%{__isa_bits} .h
2017-09-01 12:01:43 +00:00
2017-08-31 14:00:06 +00:00
# Use a common function to do an install for all our configurations:
2010-05-24 23:45:40 +00:00
InstallPython() {
2016-03-24 15:53:25 +00:00
ConfName=$1
2010-05-24 23:45:40 +00:00
PyInstSoName=$2
2015-03-25 13:35:47 +00:00
MoreCFlags=$3
2017-09-01 11:49:50 +00:00
LDVersion=$4
2010-05-24 23:45:40 +00:00
2017-08-31 14:00:06 +00:00
# Switch to the directory with this configuration's built files
2010-05-24 23:45:40 +00:00
ConfDir=build/$ConfName
echo STARTING: INSTALL OF PYTHON FOR CONFIGURATION: $ConfName
mkdir -p $ConfDir
pushd $ConfDir
2020-07-21 16:43:48 +00:00
%make_install EXTRA_CFLAGS=" $ M o r e C F l a g s "
2010-01-13 21:25:18 +00:00
2011-07-08 18:10:58 +00:00
popd
2010-05-24 23:45:40 +00:00
2017-08-16 13:36:04 +00:00
%if %{with gdb_hooks}
2017-08-31 14:00:06 +00:00
# See comment on $DirHoldingGdbPy above
2017-07-31 12:02:39 +00:00
PathOfGdbPy=$DirHoldingGdbPy/$PyInstSoName-%{version} -%{release} .%{_arch}.debug-gdb.py
2011-07-08 18:10:58 +00:00
cp Tools/gdb/libpython.py %{buildroot} $PathOfGdbPy
2017-08-16 13:36:04 +00:00
%endif # with gdb_hooks
2010-05-24 23:45:40 +00:00
2017-09-01 11:49:50 +00:00
# Rename the -devel script that differs on different arches to arch specific name
mv %{buildroot} %{_bindir} /python${LDVersion}-{,`uname -m`-}config
2020-10-27 16:06:38 +00:00
echo -e '#!/bin/sh\nexec %{_bindir}/python' ${LDVersion}'-`uname -m`-config "$@"' > \
2017-09-01 11:49:50 +00:00
%{buildroot} %{_bindir} /python${LDVersion}-config
chmod +x %{buildroot} %{_bindir} /python${LDVersion}-config
2017-09-01 12:01:43 +00:00
# Make python3-devel multilib-ready
mv %{buildroot} %{_includedir} /python${LDVersion}/pyconfig.h \
%{buildroot} %{_includedir} /python${LDVersion}/%{_pyconfig_h}
cat > %{buildroot} %{_includedir} /python${LDVersion}/pyconfig.h << EOF
#include <bits/wordsize.h>
#if __WORDSIZE == 32
2018-03-24 07:02:08 +00:00
#include "%{_pyconfig32_h}"
2017-09-01 12:01:43 +00:00
#elif __WORDSIZE == 64
2018-03-24 07:02:08 +00:00
#include "%{_pyconfig64_h}"
2017-09-01 12:01:43 +00:00
#else
#error "Unknown word size"
#endif
EOF
2010-05-24 23:45:40 +00:00
echo FINISHED: INSTALL OF PYTHON FOR CONFIGURATION: $ConfName
}
2017-09-05 09:54:06 +00:00
# Install the "debug" build first; any common files will be overridden with
2017-08-31 14:00:06 +00:00
# later builds
2017-08-16 13:36:04 +00:00
%if %{with debug_build}
2010-05-24 23:45:40 +00:00
InstallPython debug \
2015-03-25 13:35:47 +00:00
%{py_INSTSONAME_debug} \
2017-09-01 11:49:50 +00:00
-O0 \
2018-02-13 15:23:24 +00:00
%{LDVERSION_debug}
2017-08-16 13:36:04 +00:00
%endif # with debug_build
2010-05-24 23:45:40 +00:00
# Now the optimized build:
InstallPython optimized \
2017-08-31 14:00:06 +00:00
%{py_INSTSONAME_optimized} \
2017-09-01 11:49:50 +00:00
" " \
2018-02-13 15:23:24 +00:00
%{LDVERSION_optimized}
2010-05-24 23:45:40 +00:00
2017-09-01 15:52:06 +00:00
# Install directories for additional packages
2017-09-01 09:14:37 +00:00
install -d -m 0755 %{buildroot} %{pylibdir} /site-packages/__pycache__
2017-09-01 15:52:06 +00:00
%if "%{_lib}" == "lib64"
# The 64-bit version needs to create "site-packages" in /usr/lib/ (for
# pure-Python modules) as well as in /usr/lib64/ (for packages with extension
# modules).
# Note that rpmlint will complain about hardcoded library path;
# this is intentional.
install -d -m 0755 %{buildroot} %{_prefix} /lib/python%{pybasever} /site-packages/__pycache__
%endif
2010-01-13 21:25:18 +00:00
2019-11-18 11:46:25 +00:00
%if %{with main_python}
2017-02-28 13:33:44 +00:00
# add idle3 to menu
2017-09-01 09:14:37 +00:00
install -D -m 0644 Lib/idlelib/Icons/idle_16.png %{buildroot} %{_datadir} /icons/hicolor/16x16/apps/idle3.png
install -D -m 0644 Lib/idlelib/Icons/idle_32.png %{buildroot} %{_datadir} /icons/hicolor/32x32/apps/idle3.png
install -D -m 0644 Lib/idlelib/Icons/idle_48.png %{buildroot} %{_datadir} /icons/hicolor/48x48/apps/idle3.png
2020-04-28 23:42:28 +00:00
install -D -m 0644 Lib/idlelib/Icons/idle_256.png %{buildroot} %{_datadir} /icons/hicolor/256x256/apps/idle3.png
2017-09-01 09:14:37 +00:00
desktop-file-install --dir=%{buildroot} %{_datadir} /applications %{SOURCE10}
2017-02-28 13:33:44 +00:00
# Install and validate appdata file
2018-06-18 21:44:35 +00:00
mkdir -p %{buildroot} %{_metainfodir}
cp -a %{SOURCE11} %{buildroot} %{_metainfodir}
appstream-util validate-relax --nonet %{buildroot} %{_metainfodir} /idle3.appdata.xml
2018-04-18 12:40:03 +00:00
%endif
2017-02-28 13:33:44 +00:00
2022-11-15 16:07:29 +00:00
# Make sure sysconfig looks at the right pyconfig-32.h/pyconfig-64.h file instead of pyconfig.h
2017-09-01 12:01:43 +00:00
# See https://bugzilla.redhat.com/show_bug.cgi?id=201434
2022-11-15 16:07:29 +00:00
# and https://bugzilla.redhat.com/show_bug.cgi?id=653058
2010-11-17 20:03:29 +00:00
sed -i -e " s / ' p y c o n f i g . h ' / ' % { _ p y c o n f i g _ h } ' / " \
%{buildroot} %{pylibdir} /sysconfig.py
2010-01-13 21:25:18 +00:00
2018-07-26 11:44:49 +00:00
# Install i18n tools to bindir
# They are also in python2, so we version them
# https://bugzilla.redhat.com/show_bug.cgi?id=1571474
for tool in pygettext msgfmt; do
cp -p Tools/i18n/${tool}.py %{buildroot} %{_bindir} /${tool}%{pybasever} .py
ln -s ${tool}%{pybasever} .py %{buildroot} %{_bindir} /${tool}3.py
done
2010-01-13 21:25:18 +00:00
# Switch all shebangs to refer to the specific Python version.
2017-09-14 08:26:07 +00:00
# This currently only covers files matching ^[a-zA-Z0-9_]+\.py$,
# so handle files named using other naming scheme separately.
2010-05-24 23:45:40 +00:00
LD_LIBRARY_PATH=./build/optimized ./build/optimized/python \
2022-10-27 14:50:15 +00:00
%{_rpmconfigdir} /redhat/pathfix.py \
2018-03-25 18:49:54 +00:00
-i " %{_bindir} / p y t h o n %{pybasever} " -pn \
%{buildroot} \
2018-07-26 11:44:49 +00:00
%{buildroot} %{_bindir} /*%{pybasever} .py \
2018-03-25 18:49:54 +00:00
%{?with_gdb_hooks:%{buildroot} $DirHoldingGdbPy/*.py}
2017-09-19 10:03:41 +00:00
2010-01-13 21:25:18 +00:00
# Remove shebang lines from .py files that aren't executable, and
# remove executability from .py files that don't have a shebang line:
2010-03-12 22:40:23 +00:00
find %{buildroot} -name \*.py \
2010-01-13 21:25:18 +00:00
\( \( \! -perm /u+x,g+x,o+x -exec sed -e '/^#!/Q 0' -e 'Q 1' {} \; \
-print -exec sed -i '1d' {} \; \) -o \( \
-perm /u+x,g+x,o+x ! -exec grep -m 1 -q '^#!' {} \; \
-exec chmod a-x {} \; \) \)
# Get rid of DOS batch files:
2010-03-12 22:40:23 +00:00
find %{buildroot} -name \*.bat -exec rm {} \;
2010-01-13 21:25:18 +00:00
# Get rid of backup files:
2010-03-12 22:40:23 +00:00
find %{buildroot} / -name " * ~ " -exec rm -f {} \;
2010-01-13 21:25:18 +00:00
find . -name " * ~ " -exec rm -f {} \;
2012-02-05 19:32:34 +00:00
# Do bytecompilation with the newly installed interpreter.
2012-02-06 10:28:14 +00:00
# This is similar to the script in macros.pybytecompile
2012-02-06 10:28:14 +00:00
# compile *.pyc
2020-01-22 10:24:23 +00:00
# Python CMD line options:
# -s - don't add user site directory to sys.path
# -B - don't write .pyc files on import
2022-12-19 11:00:14 +00:00
# Clamp the source mtime first, see https://fedoraproject.org/wiki/Changes/ReproducibleBuildsClampMtimes
# The clamp_source_mtime module is only guaranteed to exist on Fedoras that enabled this option:
%if 0%{?clamp_mtime_to_source_date_epoch}
LD_LIBRARY_PATH=" %{buildroot} %{dynload_dir} / : %{buildroot} %{_libdir} " \
PYTHONPATH=" %{_rpmconfigdir} / r e d h a t " \
%{buildroot} %{_bindir} /python%{pybasever} -s -B -m clamp_source_mtime %{buildroot} %{pylibdir}
%endif
2020-06-04 12:16:23 +00:00
# compileall CMD line options:
2020-01-22 10:24:23 +00:00
# -f - force rebuild even if timestamps are up to date
# -o - optimization levels to run compilation with
# -s - part of path to left-strip from path to source file (buildroot)
# -p - path to add as prefix to path to source file (/ to make it absolute)
2020-02-11 09:56:17 +00:00
# --hardlink-dupes - hardlink different optimization level pycs together if identical (saves space)
2022-12-19 11:00:14 +00:00
# --invalidation-mode - we prefer the timestamp invalidation mode for performance reasons
# -x - skip test modules with SyntaxErrors (taken from the Makefile)
2020-01-22 10:24:23 +00:00
LD_LIBRARY_PATH=" %{buildroot} %{dynload_dir} / : %{buildroot} %{_libdir} " \
2020-06-04 12:16:23 +00:00
%{buildroot} %{_bindir} /python%{pybasever} -s -B -m compileall \
2022-12-19 11:00:14 +00:00
-f %{_smp_mflags} -o 0 -o 1 -o 2 -s %{buildroot} -p / %{buildroot} --hardlink-dupes --invalidation-mode=timestamp \
-x 'bad_coding|badsyntax|site-packages|test/test_lib2to3/data'
2020-02-11 09:56:17 +00:00
# Turn this BRP off, it is done by compileall2 --hardlink-dupes above
%global __brp_python_hardlink %{nil}
2010-01-13 21:25:18 +00:00
2022-10-27 14:50:15 +00:00
# Since we have *.py files in bindir, this is created, but we don't want it
2017-09-19 10:03:41 +00:00
rm -rf %{buildroot} %{_bindir} /__pycache__
2010-01-13 21:25:18 +00:00
# Fixup permissions for shared libraries from non-standard 555 to standard 755:
2017-09-01 11:35:53 +00:00
find %{buildroot} -perm 555 -exec chmod 755 {} \;
2010-01-13 21:25:18 +00:00
2011-02-15 00:13:27 +00:00
# Create "/usr/bin/python3-debug", a symlink to the python3 debug binary, to
2017-08-28 13:04:48 +00:00
# avoid the user having to know the precise version and ABI flags.
# See e.g. https://bugzilla.redhat.com/show_bug.cgi?id=676748
2019-11-18 11:46:25 +00:00
%if %{with debug_build} && %{with main_python}
2011-02-15 00:13:27 +00:00
ln -s \
%{_bindir} /python%{LDVERSION_debug} \
%{buildroot} %{_bindir} /python3-debug
2011-09-14 04:10:35 +00:00
%endif
2011-02-15 00:13:27 +00:00
2019-11-18 11:46:25 +00:00
%if %{without main_python}
2018-04-18 12:40:03 +00:00
# Remove stuff that would conflict with python3 package
rm %{buildroot} %{_bindir} /python3
rm %{buildroot} %{_bindir} /pydoc3
2018-07-26 11:44:49 +00:00
rm %{buildroot} %{_bindir} /pygettext3.py
rm %{buildroot} %{_bindir} /msgfmt3.py
2018-04-18 12:40:03 +00:00
rm %{buildroot} %{_bindir} /idle3
rm %{buildroot} %{_bindir} /python3-*
2018-01-18 15:03:21 +00:00
rm %{buildroot} %{_bindir} /2to3
2018-04-18 12:40:03 +00:00
rm %{buildroot} %{_libdir} /libpython3.so
2020-10-09 10:25:22 +00:00
rm %{buildroot} %{_mandir} /man1/python3.1
2018-04-18 12:40:03 +00:00
rm %{buildroot} %{_libdir} /pkgconfig/python3.pc
2019-06-05 07:14:07 +00:00
rm %{buildroot} %{_libdir} /pkgconfig/python3-embed.pc
2019-07-12 17:03:54 +00:00
%else
# Link the unversioned stuff
# https://fedoraproject.org/wiki/Changes/Python_means_Python3
ln -s ./python3 %{buildroot} %{_bindir} /python
ln -s ./pydoc3 %{buildroot} %{_bindir} /pydoc
ln -s ./pygettext3.py %{buildroot} %{_bindir} /pygettext.py
ln -s ./msgfmt3.py %{buildroot} %{_bindir} /msgfmt.py
ln -s ./idle3 %{buildroot} %{_bindir} /idle
ln -s ./python3-config %{buildroot} %{_bindir} /python-config
ln -s ./python3.1 %{buildroot} %{_mandir} /man1/python.1
ln -s ./python3.pc %{buildroot} %{_libdir} /pkgconfig/python.pc
%if %{with debug_build}
ln -s ./python3-debug %{buildroot} %{_bindir} /python-debug
%endif
2018-04-18 12:40:03 +00:00
%endif
2017-06-27 16:02:44 +00:00
2020-07-14 10:58:56 +00:00
# Remove large, autogenerated sources and keep only the non-optimized pycache
for file in %{buildroot} %{pylibdir} /pydoc_data/topics.py $(grep --include='*.py' -lr %{buildroot} %{pylibdir} /encodings -e 'Python Character Mapping Codec .* from .* with gencodec.py' ); do
directory=$(dirname ${file})
module=$(basename ${file%%.py})
mv ${directory}/{__pycache__/${module}.cpython-%{pyshortver} .pyc,${module}.pyc}
rm ${directory}/{__pycache__/${module}.cpython-%{pyshortver} .opt-?.pyc,${module}.py}
done
2017-06-27 16:02:44 +00:00
2011-07-08 16:54:16 +00:00
# ======================================================
2017-09-01 11:43:34 +00:00
# Checks for packaging issues
2011-07-08 16:54:16 +00:00
# ======================================================
2010-01-13 21:25:18 +00:00
%check
2013-10-30 09:50:01 +00:00
# first of all, check timestamps of bytecode files
find %{buildroot} -type f -a -name " * . p y " -print0 | \
LD_LIBRARY_PATH=" %{buildroot} %{dynload_dir} / : %{buildroot} %{_libdir} " \
PYTHONPATH=" %{buildroot} %{_libdir} / p y t h o n %{pybasever} %{buildroot} %{_libdir} / p y t h o n %{pybasever} / s i t e - p a c k a g e s " \
xargs -0 %{buildroot} %{_bindir} /python%{pybasever} %{SOURCE8}
2017-09-01 11:43:34 +00:00
# Ensure that the curses module was linked against libncursesw.so, rather than
# libncurses.so
# See https://bugzilla.redhat.com/show_bug.cgi?id=539917
ldd %{buildroot} /%{dynload_dir} /_curses*.so \
| grep curses \
| grep libncurses.so && (echo " _ c u r s e s . s o l i n k e d a g a i n s t l i b n c u r s e s . s o " ; exit 1)
# Ensure that the debug modules are linked against the debug libpython, and
# likewise for the optimized modules and libpython:
for Module in %{buildroot} /%{dynload_dir} /*.so ; do
case $Module in
*.%{SOABI_debug} )
ldd $Module | grep %{py_INSTSONAME_optimized} &&
(echo Debug module $Module linked against optimized %{py_INSTSONAME_optimized} ; exit 1)
;;
*.%{SOABI_optimized} )
ldd $Module | grep %{py_INSTSONAME_debug} &&
(echo Optimized module $Module linked against debug %{py_INSTSONAME_debug} ; exit 1)
;;
esac
done
2017-11-30 08:54:54 +00:00
2017-09-01 11:43:34 +00:00
# ======================================================
# Running the upstream test suite
# ======================================================
2010-05-24 23:45:40 +00:00
topdir=$(pwd)
CheckPython() {
2016-03-24 15:53:25 +00:00
ConfName=$1
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
ConfDir=$(pwd)/build/$ConfName
2010-05-24 23:45:40 +00:00
echo STARTING: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
2011-09-10 12:23:40 +00:00
# Note that we're running the tests using the version of the code in the
# builddir, not in the buildroot.
2011-07-08 17:47:40 +00:00
2018-11-26 14:52:56 +00:00
# Show some info, helpful for debugging test failures
LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.pythoninfo
2019-03-05 14:50:30 +00:00
# Run the upstream test suite
2023-03-23 16:56:50 +00:00
# --timeout=2700: kill test running for longer than 45 minutes
2022-10-31 15:08:23 +00:00
# test_freeze_simple_script is skipped, because it fails without bundled libs.
# the freeze tool is only usable from the source checkout anyway,
# we don't ship it in the RPM package.
2023-08-07 07:11:47 +00:00
# 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
2021-10-06 14:40:28 +00:00
2011-08-31 19:08:01 +00:00
LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \
2023-03-23 16:56:50 +00:00
-wW --slowest %{_smp_mflags} --timeout=2700 \
2021-11-08 07:25:56 +00:00
-i test_freeze_simple_script \
2023-08-07 07:11:47 +00:00
-i test_check_probes \
2016-08-01 18:24:18 +00:00
%ifarch %{mips64}
2016-11-02 16:16:07 +00:00
-x test_ctypes \
2016-08-01 18:24:18 +00:00
%endif
2010-01-13 21:25:18 +00:00
2011-07-08 17:47:40 +00:00
echo FINISHED: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
2010-05-24 23:45:40 +00:00
}
2017-08-16 13:36:04 +00:00
%if %{with tests}
2011-09-14 04:09:45 +00:00
2010-05-24 23:45:40 +00:00
# Check each of the configurations:
2017-08-16 13:36:04 +00:00
%if %{with debug_build}
2010-05-24 23:45:40 +00:00
CheckPython debug
2017-08-16 13:36:04 +00:00
%endif # with debug_build
2010-05-24 23:45:40 +00:00
CheckPython optimized
2017-08-16 13:36:04 +00:00
%endif # with tests
2011-09-14 04:09:45 +00:00
2010-05-24 23:45:40 +00:00
2020-03-23 13:26:46 +00:00
%files -n %{pkgname}
2017-03-14 16:52:25 +00:00
%doc README.rst
2018-04-18 12:40:03 +00:00
2019-11-18 11:46:25 +00:00
%if %{with main_python}
2010-01-13 21:25:18 +00:00
%{_bindir} /pydoc*
%{_bindir} /python3
2018-04-18 12:40:03 +00:00
%else
%{_bindir} /pydoc%{pybasever}
%endif
2017-11-30 08:54:54 +00:00
2018-04-18 12:40:03 +00:00
%{_bindir} /python%{pybasever}
2019-05-07 15:13:12 +00:00
%{_bindir} /python%{LDVERSION_optimized}
2019-07-12 17:03:54 +00:00
%{_mandir} /*/*3*
2010-09-09 18:52:31 +00:00
2019-11-18 11:46:25 +00:00
%if %{with main_python}
2019-07-12 17:03:54 +00:00
%files -n python-unversioned-command
%{_bindir} /python
%{_mandir} /*/python.1*
2019-11-18 11:46:25 +00:00
%endif
2019-07-12 17:03:54 +00:00
2020-03-23 13:26:46 +00:00
%files -n %{pkgname}-libs
2017-03-14 16:52:25 +00:00
%doc README.rst
2016-02-16 17:22:04 +00:00
2017-08-21 11:33:07 +00:00
%dir %{pylibdir}
%dir %{dynload_dir}
2019-07-11 14:20:09 +00:00
%license %{pylibdir} /LICENSE.txt
2016-02-16 17:22:04 +00:00
%{pylibdir} /lib2to3
%dir %{pylibdir} /unittest/
%dir %{pylibdir} /unittest/__pycache__/
%{pylibdir} /unittest/*.py
%{pylibdir} /unittest/__pycache__/*%{bytecode_suffixes}
%dir %{pylibdir} /asyncio/
%dir %{pylibdir} /asyncio/__pycache__/
%{pylibdir} /asyncio/*.py
%{pylibdir} /asyncio/__pycache__/*%{bytecode_suffixes}
%dir %{pylibdir} /venv/
%dir %{pylibdir} /venv/__pycache__/
%{pylibdir} /venv/*.py
%{pylibdir} /venv/__pycache__/*%{bytecode_suffixes}
%{pylibdir} /venv/scripts
%{pylibdir} /wsgiref
%{pylibdir} /xmlrpc
%dir %{pylibdir} /ensurepip/
%dir %{pylibdir} /ensurepip/__pycache__/
%{pylibdir} /ensurepip/*.py
%{pylibdir} /ensurepip/__pycache__/*%{bytecode_suffixes}
2018-04-18 12:40:03 +00:00
2018-08-15 13:36:29 +00:00
%if %{with rpmwheels}
2016-02-16 17:22:04 +00:00
%exclude %{pylibdir} /ensurepip/_bundled
2018-04-18 12:40:03 +00:00
%else
%dir %{pylibdir} /ensurepip/_bundled
2021-02-03 14:59:37 +00:00
%{pylibdir} /ensurepip/_bundled/pip-%{pip_version} -py3-none-any.whl
2018-04-18 12:40:03 +00:00
%endif
2016-02-16 17:22:04 +00:00
%dir %{pylibdir} /concurrent/
%dir %{pylibdir} /concurrent/__pycache__/
%{pylibdir} /concurrent/*.py
%{pylibdir} /concurrent/__pycache__/*%{bytecode_suffixes}
%dir %{pylibdir} /concurrent/futures/
%dir %{pylibdir} /concurrent/futures/__pycache__/
%{pylibdir} /concurrent/futures/*.py
%{pylibdir} /concurrent/futures/__pycache__/*%{bytecode_suffixes}
%{pylibdir} /pydoc_data
2016-10-07 17:22:17 +00:00
%{dynload_dir} /_blake2.%{SOABI_optimized} .so
2016-10-12 14:52:17 +00:00
%{dynload_dir} /_md5.%{SOABI_optimized} .so
2016-10-07 17:22:17 +00:00
%{dynload_dir} /_sha1.%{SOABI_optimized} .so
2023-03-08 06:36:52 +00:00
%{dynload_dir} /_sha2.%{SOABI_optimized} .so
2016-10-07 17:22:17 +00:00
%{dynload_dir} /_sha3.%{SOABI_optimized} .so
2016-11-02 16:16:07 +00:00
%{dynload_dir} /_asyncio.%{SOABI_optimized} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_bisect.%{SOABI_optimized} .so
2012-07-20 20:34:09 +00:00
%{dynload_dir} /_bz2.%{SOABI_optimized} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_codecs_cn.%{SOABI_optimized} .so
%{dynload_dir} /_codecs_hk.%{SOABI_optimized} .so
%{dynload_dir} /_codecs_iso2022.%{SOABI_optimized} .so
%{dynload_dir} /_codecs_jp.%{SOABI_optimized} .so
%{dynload_dir} /_codecs_kr.%{SOABI_optimized} .so
%{dynload_dir} /_codecs_tw.%{SOABI_optimized} .so
2018-02-01 17:50:40 +00:00
%{dynload_dir} /_contextvars.%{SOABI_optimized} .so
2012-07-20 20:34:09 +00:00
%{dynload_dir} /_crypt.%{SOABI_optimized} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_csv.%{SOABI_optimized} .so
%{dynload_dir} /_ctypes.%{SOABI_optimized} .so
%{dynload_dir} /_curses.%{SOABI_optimized} .so
%{dynload_dir} /_curses_panel.%{SOABI_optimized} .so
%{dynload_dir} /_dbm.%{SOABI_optimized} .so
2012-07-20 20:34:09 +00:00
%{dynload_dir} /_decimal.%{SOABI_optimized} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_elementtree.%{SOABI_optimized} .so
2017-08-16 13:36:04 +00:00
%if %{with gdbm}
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_gdbm.%{SOABI_optimized} .so
2011-09-13 18:59:31 +00:00
%endif
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_hashlib.%{SOABI_optimized} .so
%{dynload_dir} /_heapq.%{SOABI_optimized} .so
%{dynload_dir} /_json.%{SOABI_optimized} .so
%{dynload_dir} /_lsprof.%{SOABI_optimized} .so
2012-07-20 20:34:09 +00:00
%{dynload_dir} /_lzma.%{SOABI_optimized} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_multibytecodec.%{SOABI_optimized} .so
%{dynload_dir} /_multiprocessing.%{SOABI_optimized} .so
2013-11-28 09:43:42 +00:00
%{dynload_dir} /_opcode.%{SOABI_optimized} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_pickle.%{SOABI_optimized} .so
%{dynload_dir} /_posixsubprocess.%{SOABI_optimized} .so
2018-02-01 17:50:40 +00:00
%{dynload_dir} /_queue.%{SOABI_optimized} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_random.%{SOABI_optimized} .so
%{dynload_dir} /_socket.%{SOABI_optimized} .so
%{dynload_dir} /_sqlite3.%{SOABI_optimized} .so
%{dynload_dir} /_ssl.%{SOABI_optimized} .so
2019-08-30 13:47:05 +00:00
%{dynload_dir} /_statistics.%{SOABI_optimized} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_struct.%{SOABI_optimized} .so
%{dynload_dir} /array.%{SOABI_optimized} .so
%{dynload_dir} /audioop.%{SOABI_optimized} .so
%{dynload_dir} /binascii.%{SOABI_optimized} .so
%{dynload_dir} /cmath.%{SOABI_optimized} .so
%{dynload_dir} /_datetime.%{SOABI_optimized} .so
%{dynload_dir} /fcntl.%{SOABI_optimized} .so
%{dynload_dir} /grp.%{SOABI_optimized} .so
%{dynload_dir} /math.%{SOABI_optimized} .so
%{dynload_dir} /mmap.%{SOABI_optimized} .so
%{dynload_dir} /nis.%{SOABI_optimized} .so
%{dynload_dir} /ossaudiodev.%{SOABI_optimized} .so
2019-02-05 00:40:25 +00:00
%{dynload_dir} /_posixshmem.%{SOABI_optimized} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /pyexpat.%{SOABI_optimized} .so
%{dynload_dir} /readline.%{SOABI_optimized} .so
%{dynload_dir} /resource.%{SOABI_optimized} .so
%{dynload_dir} /select.%{SOABI_optimized} .so
%{dynload_dir} /spwd.%{SOABI_optimized} .so
%{dynload_dir} /syslog.%{SOABI_optimized} .so
%{dynload_dir} /termios.%{SOABI_optimized} .so
%{dynload_dir} /unicodedata.%{SOABI_optimized} .so
2017-11-28 12:47:21 +00:00
%{dynload_dir} /_uuid.%{SOABI_optimized} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /xxlimited.%{SOABI_optimized} .so
2021-01-04 21:52:05 +00:00
%{dynload_dir} /xxlimited_35.%{SOABI_optimized} .so
2019-02-05 00:40:25 +00:00
%{dynload_dir} /_xxsubinterpreters.%{SOABI_optimized} .so
2022-10-27 14:50:15 +00:00
%{dynload_dir} /xxsubtype.%{SOABI_optimized} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /zlib.%{SOABI_optimized} .so
2020-05-19 07:45:44 +00:00
%{dynload_dir} /_zoneinfo.%{SOABI_optimized} .so
2010-01-28 19:09:18 +00:00
2010-08-22 18:48:47 +00:00
%dir %{pylibdir} /site-packages/
%dir %{pylibdir} /site-packages/__pycache__/
2016-10-07 17:22:17 +00:00
%{pylibdir} /site-packages/README.txt
2022-04-27 10:42:51 +00:00
2022-05-31 19:30:38 +00:00
%if %{with debug_build}
2022-05-31 19:47:07 +00:00
%exclude %{pylibdir} /_sysconfigdata_%{ABIFLAGS_debug} _linux_%{platform_triplet} .py
%exclude %{pylibdir} /__pycache__/_sysconfigdata_%{ABIFLAGS_debug} _linux_%{platform_triplet} %{bytecode_suffixes}
2022-05-31 19:30:38 +00:00
%endif
2022-04-27 10:42:51 +00:00
3.2a1
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
- 3.2a1; add alphatag
- rework %%files in the light of PEP 3147 (__pycache__)
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
better job of things, and the %%files explicitly lists our modules (r82746
appears to break the old way of doing things). This leads to various modules
changing from "foomodule.so" to "foo.so". It also leads to the optimized build
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
testing/devel purposes)
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
- add machinery for rebuilding "configure" and friends, using the correct
version of autoconf (patch 300)
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
- "modulator" was removed upstream
- drop "-b" from patch applications affecting .py files to avoid littering the
installation tree
2010-08-21 22:08:26 +00:00
%{pylibdir} /*.py
2010-09-08 23:01:56 +00:00
%dir %{pylibdir} /__pycache__/
3.2a1
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
- 3.2a1; add alphatag
- rework %%files in the light of PEP 3147 (__pycache__)
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
better job of things, and the %%files explicitly lists our modules (r82746
appears to break the old way of doing things). This leads to various modules
changing from "foomodule.so" to "foo.so". It also leads to the optimized build
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
testing/devel purposes)
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
- add machinery for rebuilding "configure" and friends, using the correct
version of autoconf (patch 300)
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
- "modulator" was removed upstream
- drop "-b" from patch applications affecting .py files to avoid littering the
installation tree
2010-08-21 22:08:26 +00:00
%{pylibdir} /__pycache__/*%{bytecode_suffixes}
2012-07-20 20:34:09 +00:00
%dir %{pylibdir} /collections/
%dir %{pylibdir} /collections/__pycache__/
%{pylibdir} /collections/*.py
%{pylibdir} /collections/__pycache__/*%{bytecode_suffixes}
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%dir %{pylibdir} /ctypes/
2010-09-08 23:01:56 +00:00
%dir %{pylibdir} /ctypes/__pycache__/
3.2a1
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
- 3.2a1; add alphatag
- rework %%files in the light of PEP 3147 (__pycache__)
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
better job of things, and the %%files explicitly lists our modules (r82746
appears to break the old way of doing things). This leads to various modules
changing from "foomodule.so" to "foo.so". It also leads to the optimized build
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
testing/devel purposes)
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
- add machinery for rebuilding "configure" and friends, using the correct
version of autoconf (patch 300)
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
- "modulator" was removed upstream
- drop "-b" from patch applications affecting .py files to avoid littering the
installation tree
2010-08-21 22:08:26 +00:00
%{pylibdir} /ctypes/*.py
%{pylibdir} /ctypes/__pycache__/*%{bytecode_suffixes}
2010-01-13 21:25:18 +00:00
%{pylibdir} /ctypes/macholib
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
2010-01-13 21:25:18 +00:00
%{pylibdir} /curses
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%dir %{pylibdir} /dbm/
2010-09-08 23:01:56 +00:00
%dir %{pylibdir} /dbm/__pycache__/
3.2a1
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
- 3.2a1; add alphatag
- rework %%files in the light of PEP 3147 (__pycache__)
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
better job of things, and the %%files explicitly lists our modules (r82746
appears to break the old way of doing things). This leads to various modules
changing from "foomodule.so" to "foo.so". It also leads to the optimized build
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
testing/devel purposes)
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
- add machinery for rebuilding "configure" and friends, using the correct
version of autoconf (patch 300)
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
- "modulator" was removed upstream
- drop "-b" from patch applications affecting .py files to avoid littering the
installation tree
2010-08-21 22:08:26 +00:00
%{pylibdir} /dbm/*.py
%{pylibdir} /dbm/__pycache__/*%{bytecode_suffixes}
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%dir %{pylibdir} /email/
2010-09-08 23:01:56 +00:00
%dir %{pylibdir} /email/__pycache__/
3.2a1
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
- 3.2a1; add alphatag
- rework %%files in the light of PEP 3147 (__pycache__)
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
better job of things, and the %%files explicitly lists our modules (r82746
appears to break the old way of doing things). This leads to various modules
changing from "foomodule.so" to "foo.so". It also leads to the optimized build
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
testing/devel purposes)
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
- add machinery for rebuilding "configure" and friends, using the correct
version of autoconf (patch 300)
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
- "modulator" was removed upstream
- drop "-b" from patch applications affecting .py files to avoid littering the
installation tree
2010-08-21 22:08:26 +00:00
%{pylibdir} /email/*.py
%{pylibdir} /email/__pycache__/*%{bytecode_suffixes}
2010-01-13 21:25:18 +00:00
%{pylibdir} /email/mime
2012-07-20 20:34:09 +00:00
%doc %{pylibdir} /email/architecture.rst
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
2010-01-13 21:25:18 +00:00
%{pylibdir} /encodings
2013-11-28 09:27:48 +00:00
2010-01-13 21:25:18 +00:00
%{pylibdir} /html
%{pylibdir} /http
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%dir %{pylibdir} /importlib/
2010-09-08 23:01:56 +00:00
%dir %{pylibdir} /importlib/__pycache__/
3.2a1
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
- 3.2a1; add alphatag
- rework %%files in the light of PEP 3147 (__pycache__)
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
better job of things, and the %%files explicitly lists our modules (r82746
appears to break the old way of doing things). This leads to various modules
changing from "foomodule.so" to "foo.so". It also leads to the optimized build
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
testing/devel purposes)
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
- add machinery for rebuilding "configure" and friends, using the correct
version of autoconf (patch 300)
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
- "modulator" was removed upstream
- drop "-b" from patch applications affecting .py files to avoid littering the
installation tree
2010-08-21 22:08:26 +00:00
%{pylibdir} /importlib/*.py
%{pylibdir} /importlib/__pycache__/*%{bytecode_suffixes}
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
2021-05-04 05:37:41 +00:00
%dir %{pylibdir} /importlib/metadata/
%dir %{pylibdir} /importlib/metadata/__pycache__/
%{pylibdir} /importlib/metadata/*.py
%{pylibdir} /importlib/metadata/__pycache__/*%{bytecode_suffixes}
2022-01-17 07:31:40 +00:00
%dir %{pylibdir} /importlib/resources/
%dir %{pylibdir} /importlib/resources/__pycache__/
%{pylibdir} /importlib/resources/*.py
%{pylibdir} /importlib/resources/__pycache__/*%{bytecode_suffixes}
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%dir %{pylibdir} /json/
2010-09-08 23:01:56 +00:00
%dir %{pylibdir} /json/__pycache__/
3.2a1
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
- 3.2a1; add alphatag
- rework %%files in the light of PEP 3147 (__pycache__)
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
better job of things, and the %%files explicitly lists our modules (r82746
appears to break the old way of doing things). This leads to various modules
changing from "foomodule.so" to "foo.so". It also leads to the optimized build
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
testing/devel purposes)
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
- add machinery for rebuilding "configure" and friends, using the correct
version of autoconf (patch 300)
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
- "modulator" was removed upstream
- drop "-b" from patch applications affecting .py files to avoid littering the
installation tree
2010-08-21 22:08:26 +00:00
%{pylibdir} /json/*.py
%{pylibdir} /json/__pycache__/*%{bytecode_suffixes}
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
2010-01-13 21:25:18 +00:00
%{pylibdir} /logging
%{pylibdir} /multiprocessing
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
2022-04-06 09:36:00 +00:00
%dir %{pylibdir} /re/
2023-12-05 11:00:52 +00:00
%dir %{pylibdir} /re/__pycache__/
2022-04-06 09:36:00 +00:00
%{pylibdir} /re/*.py
%{pylibdir} /re/__pycache__/*%{bytecode_suffixes}
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%dir %{pylibdir} /sqlite3/
2010-09-08 23:01:56 +00:00
%dir %{pylibdir} /sqlite3/__pycache__/
3.2a1
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
- 3.2a1; add alphatag
- rework %%files in the light of PEP 3147 (__pycache__)
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
better job of things, and the %%files explicitly lists our modules (r82746
appears to break the old way of doing things). This leads to various modules
changing from "foomodule.so" to "foo.so". It also leads to the optimized build
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
testing/devel purposes)
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
- add machinery for rebuilding "configure" and friends, using the correct
version of autoconf (patch 300)
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
- "modulator" was removed upstream
- drop "-b" from patch applications affecting .py files to avoid littering the
installation tree
2010-08-21 22:08:26 +00:00
%{pylibdir} /sqlite3/*.py
%{pylibdir} /sqlite3/__pycache__/*%{bytecode_suffixes}
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
2022-04-06 09:36:00 +00:00
%dir %{pylibdir} /tomllib/
2023-12-05 11:00:52 +00:00
%dir %{pylibdir} /tomllib/__pycache__/
2022-04-06 09:36:00 +00:00
%{pylibdir} /tomllib/*.py
%{pylibdir} /tomllib/__pycache__/*%{bytecode_suffixes}
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%exclude %{pylibdir} /turtle.py
%exclude %{pylibdir} /__pycache__/turtle*%{bytecode_suffixes}
2010-01-13 21:25:18 +00:00
%{pylibdir} /urllib
2016-07-08 12:03:34 +00:00
%{pylibdir} /xml
2022-12-07 11:12:34 +00:00
%dir %{pylibdir} /zipfile/
2023-12-05 11:00:52 +00:00
%dir %{pylibdir} /zipfile/__pycache__/
2022-12-07 11:12:34 +00:00
%{pylibdir} /zipfile/*.py
%{pylibdir} /zipfile/__pycache__/*%{bytecode_suffixes}
2023-12-05 11:00:52 +00:00
%dir %{pylibdir} /zipfile/_path/
%dir %{pylibdir} /zipfile/_path/__pycache__/
2023-08-07 07:11:47 +00:00
%{pylibdir} /zipfile/_path/*.py
%{pylibdir} /zipfile/_path/__pycache__/*%{bytecode_suffixes}
2022-12-07 11:12:34 +00:00
2020-06-09 09:36:59 +00:00
%{pylibdir} /zoneinfo
2012-07-20 20:34:09 +00:00
2023-12-05 11:00:52 +00:00
%dir %{pylibdir} /__phello__/
%dir %{pylibdir} /__phello__/__pycache__/
2021-10-06 14:40:28 +00:00
%{pylibdir} /__phello__/__init__.py
%{pylibdir} /__phello__/spam.py
%{pylibdir} /__phello__/__pycache__/*%{bytecode_suffixes}
2010-01-13 21:25:18 +00:00
%if "%{_lib}" == "lib64"
2010-01-13 22:33:42 +00:00
%attr (0755,root,root) %dir %{_prefix} /lib/python%{pybasever}
%attr (0755,root,root) %dir %{_prefix} /lib/python%{pybasever} /site-packages
2010-08-22 18:48:47 +00:00
%attr (0755,root,root) %dir %{_prefix} /lib/python%{pybasever} /site-packages/__pycache__/
2010-01-13 21:25:18 +00:00
%endif
# "Makefile" and the config-32/64.h file are needed by
2022-11-15 16:07:29 +00:00
# sysconfig.py:get_config_vars(), so we include them in the core
2010-01-13 21:25:18 +00:00
# package, along with their parent directories (bug 531901):
2020-09-25 13:03:23 +00:00
%dir %{pylibdir} /config-%{LDVERSION_optimized} -%{platform_triplet} /
%{pylibdir} /config-%{LDVERSION_optimized} -%{platform_triplet} /Makefile
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%dir %{_includedir} /python%{LDVERSION_optimized} /
%{_includedir} /python%{LDVERSION_optimized} /%{_pyconfig_h}
2010-01-13 21:25:18 +00:00
2015-11-11 09:35:39 +00:00
%{_libdir} /%{py_INSTSONAME_optimized}
2019-11-18 11:46:25 +00:00
%if %{with main_python}
2011-01-17 21:25:14 +00:00
%{_libdir} /libpython3.so
2018-04-18 12:40:03 +00:00
%endif
2010-01-13 21:25:18 +00:00
2017-11-30 08:54:54 +00:00
2020-03-23 13:26:46 +00:00
%files -n %{pkgname}-devel
2020-09-25 13:03:23 +00:00
%{pylibdir} /config-%{LDVERSION_optimized} -%{platform_triplet} /*
%exclude %{pylibdir} /config-%{LDVERSION_optimized} -%{platform_triplet} /Makefile
2018-04-18 12:40:03 +00:00
%exclude %{_includedir} /python%{LDVERSION_optimized} /%{_pyconfig_h}
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{_includedir} /python%{LDVERSION_optimized} /*.h
2018-12-12 06:58:52 +00:00
%{_includedir} /python%{LDVERSION_optimized} /internal/
2019-02-05 00:40:25 +00:00
%{_includedir} /python%{LDVERSION_optimized} /cpython/
2023-04-05 07:24:42 +00:00
%doc Misc/README.valgrind Misc/valgrind-python.supp
2018-04-18 12:40:03 +00:00
2019-11-18 11:46:25 +00:00
%if %{with main_python}
2020-10-21 13:55:18 +00:00
%{_bindir} /2to3
2010-01-13 21:25:18 +00:00
%{_bindir} /python3-config
2019-07-12 17:03:54 +00:00
%{_bindir} /python-config
2018-04-18 12:40:03 +00:00
%{_libdir} /pkgconfig/python3.pc
2019-07-12 17:03:54 +00:00
%{_libdir} /pkgconfig/python.pc
2019-06-05 07:14:07 +00:00
%{_libdir} /pkgconfig/python3-embed.pc
2018-07-26 11:44:49 +00:00
%{_bindir} /pygettext3.py
2019-07-12 17:03:54 +00:00
%{_bindir} /pygettext.py
2018-07-26 11:44:49 +00:00
%{_bindir} /msgfmt3.py
2019-07-12 17:03:54 +00:00
%{_bindir} /msgfmt.py
2018-04-18 12:40:03 +00:00
%endif
2020-10-21 13:55:18 +00:00
%{_bindir} /2to3-%{pybasever}
2018-07-26 11:44:49 +00:00
%{_bindir} /pygettext%{pybasever} .py
%{_bindir} /msgfmt%{pybasever} .py
2010-01-13 21:25:18 +00:00
%{_bindir} /python%{pybasever} -config
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{_bindir} /python%{LDVERSION_optimized} -config
2014-05-30 09:41:17 +00:00
%{_bindir} /python%{LDVERSION_optimized} -*-config
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{_libdir} /libpython%{LDVERSION_optimized} .so
%{_libdir} /pkgconfig/python-%{LDVERSION_optimized} .pc
2019-06-05 07:14:07 +00:00
%{_libdir} /pkgconfig/python-%{LDVERSION_optimized} -embed.pc
2010-05-24 23:45:40 +00:00
%{_libdir} /pkgconfig/python-%{pybasever} .pc
2019-06-05 07:14:07 +00:00
%{_libdir} /pkgconfig/python-%{pybasever} -embed.pc
2010-01-13 21:25:18 +00:00
2017-11-30 08:54:54 +00:00
2020-03-23 13:26:46 +00:00
%files -n %{pkgname}-idle
2019-11-18 11:46:25 +00:00
%if %{with main_python}
2010-01-13 21:25:18 +00:00
%{_bindir} /idle*
2018-04-18 12:40:03 +00:00
%else
%{_bindir} /idle%{pybasever}
%endif
2018-01-18 21:57:38 +00:00
%{pylibdir} /idlelib
2018-04-18 12:40:03 +00:00
2019-11-18 11:46:25 +00:00
%if %{with main_python}
2018-06-18 21:44:35 +00:00
%{_metainfodir} /idle3.appdata.xml
2017-02-28 13:33:44 +00:00
%{_datadir} /applications/idle3.desktop
%{_datadir} /icons/hicolor/*/apps/idle3.*
2018-04-18 12:40:03 +00:00
%endif
2010-01-13 21:25:18 +00:00
2020-03-23 13:26:46 +00:00
%files -n %{pkgname}-tkinter
2010-01-13 21:25:18 +00:00
%{pylibdir} /tkinter
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_tkinter.%{SOABI_optimized} .so
%{pylibdir} /turtle.py
%{pylibdir} /__pycache__/turtle*%{bytecode_suffixes}
%dir %{pylibdir} /turtledemo
%{pylibdir} /turtledemo/*.py
%{pylibdir} /turtledemo/*.cfg
%dir %{pylibdir} /turtledemo/__pycache__/
%{pylibdir} /turtledemo/__pycache__/*%{bytecode_suffixes}
2010-01-13 21:25:18 +00:00
2017-11-30 08:54:54 +00:00
2020-03-23 13:26:46 +00:00
%files -n %{pkgname}-test
2010-01-13 21:25:18 +00:00
%{pylibdir} /test
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_ctypes_test.%{SOABI_optimized} .so
2012-07-20 20:34:09 +00:00
%{dynload_dir} /_testbuffer.%{SOABI_optimized} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_testcapi.%{SOABI_optimized} .so
2022-12-07 11:12:34 +00:00
%{dynload_dir} /_testclinic.%{SOABI_optimized} .so
2013-11-08 13:59:25 +00:00
%{dynload_dir} /_testimportmultiple.%{SOABI_optimized} .so
2019-05-07 15:13:12 +00:00
%{dynload_dir} /_testinternalcapi.%{SOABI_optimized} .so
%{dynload_dir} /_testmultiphase.%{SOABI_optimized} .so
2022-11-15 16:07:29 +00:00
%{dynload_dir} /_testsinglephase.%{SOABI_optimized} .so
2023-02-08 14:59:17 +00:00
%{dynload_dir} /_xxinterpchannels.%{SOABI_optimized} .so
2017-11-28 12:47:21 +00:00
%{dynload_dir} /_xxtestfuzz.%{SOABI_optimized} .so
2010-01-13 21:25:18 +00:00
2010-05-24 23:45:40 +00:00
# We don't bother splitting the debug build out into further subpackages:
# if you need it, you're probably a developer.
# Hence the manifest is the combination of analogous files in the manifests of
# all of the other subpackages
2017-08-16 13:36:04 +00:00
%if %{with debug_build}
2020-03-23 13:26:46 +00:00
%files -n %{pkgname}-debug
2019-11-18 11:46:25 +00:00
%if %{with main_python}
2018-04-18 12:40:03 +00:00
%{_bindir} /python3-debug
2019-07-12 17:03:54 +00:00
%{_bindir} /python-debug
2018-04-18 12:40:03 +00:00
%endif
2010-05-24 23:45:40 +00:00
# Analog of the core subpackage's files:
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{_bindir} /python%{LDVERSION_debug}
2010-05-24 23:45:40 +00:00
2010-09-09 18:52:31 +00:00
# Analog of the -libs subpackage's files:
2010-05-24 23:45:40 +00:00
# ...with debug builds of the built-in "extension" modules:
2016-10-12 14:52:17 +00:00
2016-10-07 17:22:17 +00:00
%{dynload_dir} /_blake2.%{SOABI_debug} .so
2016-10-12 14:52:17 +00:00
%{dynload_dir} /_md5.%{SOABI_debug} .so
2016-10-07 17:22:17 +00:00
%{dynload_dir} /_sha1.%{SOABI_debug} .so
2023-03-08 06:36:52 +00:00
%{dynload_dir} /_sha2.%{SOABI_debug} .so
2016-10-07 17:22:17 +00:00
%{dynload_dir} /_sha3.%{SOABI_debug} .so
2016-11-02 16:16:07 +00:00
%{dynload_dir} /_asyncio.%{SOABI_debug} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_bisect.%{SOABI_debug} .so
2012-07-20 20:34:09 +00:00
%{dynload_dir} /_bz2.%{SOABI_debug} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_codecs_cn.%{SOABI_debug} .so
%{dynload_dir} /_codecs_hk.%{SOABI_debug} .so
%{dynload_dir} /_codecs_iso2022.%{SOABI_debug} .so
%{dynload_dir} /_codecs_jp.%{SOABI_debug} .so
%{dynload_dir} /_codecs_kr.%{SOABI_debug} .so
%{dynload_dir} /_codecs_tw.%{SOABI_debug} .so
2018-02-01 17:50:40 +00:00
%{dynload_dir} /_contextvars.%{SOABI_debug} .so
2012-07-20 20:34:09 +00:00
%{dynload_dir} /_crypt.%{SOABI_debug} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_csv.%{SOABI_debug} .so
%{dynload_dir} /_ctypes.%{SOABI_debug} .so
%{dynload_dir} /_curses.%{SOABI_debug} .so
%{dynload_dir} /_curses_panel.%{SOABI_debug} .so
%{dynload_dir} /_dbm.%{SOABI_debug} .so
2012-07-20 20:34:09 +00:00
%{dynload_dir} /_decimal.%{SOABI_debug} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_elementtree.%{SOABI_debug} .so
2017-08-16 13:36:04 +00:00
%if %{with gdbm}
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_gdbm.%{SOABI_debug} .so
2011-09-13 18:59:31 +00:00
%endif
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_hashlib.%{SOABI_debug} .so
%{dynload_dir} /_heapq.%{SOABI_debug} .so
%{dynload_dir} /_json.%{SOABI_debug} .so
%{dynload_dir} /_lsprof.%{SOABI_debug} .so
2012-07-20 20:34:09 +00:00
%{dynload_dir} /_lzma.%{SOABI_debug} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_multibytecodec.%{SOABI_debug} .so
%{dynload_dir} /_multiprocessing.%{SOABI_debug} .so
2013-11-28 09:43:42 +00:00
%{dynload_dir} /_opcode.%{SOABI_debug} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_pickle.%{SOABI_debug} .so
%{dynload_dir} /_posixsubprocess.%{SOABI_debug} .so
2018-02-01 17:50:40 +00:00
%{dynload_dir} /_queue.%{SOABI_debug} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_random.%{SOABI_debug} .so
%{dynload_dir} /_socket.%{SOABI_debug} .so
%{dynload_dir} /_sqlite3.%{SOABI_debug} .so
%{dynload_dir} /_ssl.%{SOABI_debug} .so
2019-08-30 13:47:05 +00:00
%{dynload_dir} /_statistics.%{SOABI_debug} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_struct.%{SOABI_debug} .so
%{dynload_dir} /array.%{SOABI_debug} .so
%{dynload_dir} /audioop.%{SOABI_debug} .so
%{dynload_dir} /binascii.%{SOABI_debug} .so
%{dynload_dir} /cmath.%{SOABI_debug} .so
%{dynload_dir} /_datetime.%{SOABI_debug} .so
%{dynload_dir} /fcntl.%{SOABI_debug} .so
%{dynload_dir} /grp.%{SOABI_debug} .so
%{dynload_dir} /math.%{SOABI_debug} .so
%{dynload_dir} /mmap.%{SOABI_debug} .so
%{dynload_dir} /nis.%{SOABI_debug} .so
%{dynload_dir} /ossaudiodev.%{SOABI_debug} .so
2019-02-05 00:40:25 +00:00
%{dynload_dir} /_posixshmem.%{SOABI_debug} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /pyexpat.%{SOABI_debug} .so
%{dynload_dir} /readline.%{SOABI_debug} .so
%{dynload_dir} /resource.%{SOABI_debug} .so
%{dynload_dir} /select.%{SOABI_debug} .so
%{dynload_dir} /spwd.%{SOABI_debug} .so
%{dynload_dir} /syslog.%{SOABI_debug} .so
%{dynload_dir} /termios.%{SOABI_debug} .so
%{dynload_dir} /unicodedata.%{SOABI_debug} .so
2017-11-28 12:47:21 +00:00
%{dynload_dir} /_uuid.%{SOABI_debug} .so
2021-01-04 21:52:05 +00:00
%{dynload_dir} /xxlimited.%{SOABI_debug} .so
%{dynload_dir} /xxlimited_35.%{SOABI_debug} .so
2019-02-05 00:40:25 +00:00
%{dynload_dir} /_xxsubinterpreters.%{SOABI_debug} .so
2022-10-27 14:50:15 +00:00
%{dynload_dir} /xxsubtype.%{SOABI_debug} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /zlib.%{SOABI_debug} .so
2020-05-19 07:45:44 +00:00
%{dynload_dir} /_zoneinfo.%{SOABI_debug} .so
2010-05-24 23:45:40 +00:00
# No need to split things out the "Makefile" and the config-32/64.h file as we
# do for the regular build above (bug 531901), since they're all in one package
# now; they're listed below, under "-devel":
2015-11-11 09:35:39 +00:00
%{_libdir} /%{py_INSTSONAME_debug}
2010-05-24 23:45:40 +00:00
# Analog of the -devel subpackage's files:
2020-09-25 13:03:23 +00:00
%{pylibdir} /config-%{LDVERSION_debug} -%{platform_triplet}
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{_includedir} /python%{LDVERSION_debug}
%{_bindir} /python%{LDVERSION_debug} -config
2017-04-13 14:20:52 +00:00
%{_bindir} /python%{LDVERSION_debug} -*-config
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{_libdir} /libpython%{LDVERSION_debug} .so
2020-01-22 14:54:21 +00:00
%{_libdir} /libpython%{LDVERSION_debug} .so.%{py_SOVERSION}
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{_libdir} /pkgconfig/python-%{LDVERSION_debug} .pc
2019-06-05 07:14:07 +00:00
%{_libdir} /pkgconfig/python-%{LDVERSION_debug} -embed.pc
2010-05-24 23:45:40 +00:00
# Analog of the -tools subpackage's files:
# None for now; we could build precanned versions that have the appropriate
# shebang if needed
# Analog of the tkinter subpackage's files:
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_tkinter.%{SOABI_debug} .so
2010-05-24 23:45:40 +00:00
# Analog of the -test subpackage's files:
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_ctypes_test.%{SOABI_debug} .so
2012-07-20 20:34:09 +00:00
%{dynload_dir} /_testbuffer.%{SOABI_debug} .so
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
%{dynload_dir} /_testcapi.%{SOABI_debug} .so
2022-12-07 11:12:34 +00:00
%{dynload_dir} /_testclinic.%{SOABI_debug} .so
2013-11-08 13:59:25 +00:00
%{dynload_dir} /_testimportmultiple.%{SOABI_debug} .so
2019-05-07 15:13:12 +00:00
%{dynload_dir} /_testinternalcapi.%{SOABI_debug} .so
%{dynload_dir} /_testmultiphase.%{SOABI_debug} .so
2022-11-15 16:07:29 +00:00
%{dynload_dir} /_testsinglephase.%{SOABI_debug} .so
2023-02-08 14:59:17 +00:00
%{dynload_dir} /_xxinterpchannels.%{SOABI_debug} .so
2022-11-15 16:07:29 +00:00
%{dynload_dir} /_xxtestfuzz.%{SOABI_debug} .so
2010-05-24 23:45:40 +00:00
2022-05-31 19:47:07 +00:00
%{pylibdir} /_sysconfigdata_%{ABIFLAGS_debug} _linux_%{platform_triplet} .py
%{pylibdir} /__pycache__/_sysconfigdata_%{ABIFLAGS_debug} _linux_%{platform_triplet} %{bytecode_suffixes}
2022-04-27 10:42:51 +00:00
2017-08-16 13:36:04 +00:00
%endif # with debug_build
2010-08-21 20:26:53 +00:00
2017-08-28 13:04:48 +00:00
# We put the debug-gdb.py file inside /usr/lib/debug to avoid noise from ldconfig
# See https://bugzilla.redhat.com/show_bug.cgi?id=562980
2016-03-24 15:53:25 +00:00
#
2017-11-29 15:46:46 +00:00
# The /usr/lib/rpm/redhat/macros defines %%__debug_package to use
2010-02-09 03:51:42 +00:00
# debugfiles.list, and it appears that everything below /usr/lib/debug and
# (/usr/src/debug) gets added to this file (via LISTFILES) in
# /usr/lib/rpm/find-debuginfo.sh
2016-03-24 15:53:25 +00:00
#
2010-02-09 03:51:42 +00:00
# Hence by installing it below /usr/lib/debug we ensure it is added to the
# -debuginfo subpackage
2016-03-24 15:53:25 +00:00
# (if it doesn't, then the rpmbuild ought to fail since the debug-gdb.py
2010-02-09 03:51:42 +00:00
# payload file would be unpackaged)
2017-08-28 13:04:48 +00:00
# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1476593
2017-07-30 15:13:49 +00:00
%undefine _debuginfo_subpackages
2010-02-09 03:51:42 +00:00
2011-07-08 16:54:16 +00:00
# ======================================================
# Finally, the changelog:
# ======================================================
2010-01-13 21:25:18 +00:00
%changelog
2024-02-21 10:58:07 +00:00
* Wed Feb 21 2024 Miro Hrončok <mhroncok@redhat.com> - 3.12.2-2
- Fix tests for XMLPullParser with Expat 2.6.0
2024-02-07 13:54:16 +00:00
* Wed Feb 07 2024 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.2-1
- Update to 3.12.2
2024-01-26 13:32:50 +00:00
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2024-01-22 09:22:06 +00:00
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2023-12-18 12:17:51 +00:00
* Mon Dec 18 2023 Lumír Balhar <lbalhar@redhat.com> - 3.12.1-2
- Security fix for CVE-2023-27043 (rhbz#2196190)
2023-12-08 09:04:15 +00:00
* Fri Dec 08 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.1-1
- Update to 3.12.1
2023-12-05 11:00:52 +00:00
- Own stray directories in /usr/lib64/python3.12
- Fixes: rhbz#2252143
2023-12-08 09:04:15 +00:00
2023-09-08 02:51:19 +00:00
* Thu Oct 05 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 3.12.0-2
- Use bundled libb2 in RHEL builds
2023-10-02 16:40:13 +00:00
* Mon Oct 02 2023 Miro Hrončok <mhroncok@redhat.com> - 3.12.0-1
- Update to 3.12.0 final
2023-09-19 21:20:46 +00:00
* Tue Sep 19 2023 Miro Hrončok <mhroncok@redhat.com> - 3.12.0~rc3-1
- Update to 3.12.0rc3
2023-09-06 12:15:23 +00:00
* Wed Sep 06 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.0~rc2-1
- Update to 3.12.0rc2
2023-08-07 07:11:47 +00:00
* Mon Aug 07 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.0~rc1-1
- Update to 3.12.0rc1
2023-05-22 17:23:07 +00:00
* Wed Aug 02 2023 Charalampos Stratakis <cstratak@redhat.com> - 3.12.0~b4-3
- Remove extra distro-applied CFLAGS passed to user built C extensions
- https://fedoraproject.org/wiki/Changes/Python_Extension_Flags_Reduction
2023-07-21 15:42:31 +00:00
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.0~b4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2023-07-12 04:58:31 +00:00
* Wed Jul 12 2023 Miro Hrončok <mhroncok@redhat.com> - 3.12.0~b4-1
- Update to 3.12.0b4
2023-06-21 08:04:34 +00:00
* Wed Jun 21 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.0~b3-2
- Backport upstream patch to add PyType_GetDict() function
2023-06-20 16:45:12 +00:00
* Tue Jun 20 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.0~b3-1
- Update to 3.12.0b3
2023-06-13 15:23:48 +00:00
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.12.0~b2-3
- Rebuilt for Python 3.12
2023-06-13 13:03:26 +00:00
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.12.0~b2-2
- Bootstrap for Python 3.12
2023-06-07 06:39:56 +00:00
* Wed Jun 07 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.0~b2-1
- Update to 3.12.0b2
2023-05-26 13:54:59 +00:00
* Mon May 29 2023 Miro Hrončok <mhroncok@redhat.com> - 3.12.0~b1-2
- Use wheels from RPMs, at least on Fedora 39+
2023-05-30 16:19:42 +00:00
- On older Fedora releases, declare bundled() provides and a complex License tag
2023-05-26 13:54:59 +00:00
2023-05-23 09:04:35 +00:00
* Tue May 23 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.0~b1-1
- Update to 3.12.0b1
2023-04-05 07:24:42 +00:00
* Wed Apr 05 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.0~a7-1
- Update to 3.12.0a7
2023-03-23 16:56:50 +00:00
* Thu Mar 23 2023 Miro Hrončok <mhroncok@redhat.com> - 3.12.0~a6-2
- Increase the test timeout during package build
2023-03-08 06:36:52 +00:00
* Wed Mar 08 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.0~a6-1
- Update to 3.12.0a6
2023-02-08 14:59:17 +00:00
* Wed Feb 08 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.0~a5-1
- Update to 3.12.0a5
2023-01-20 18:45:19 +00:00
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.0~a4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2023-01-11 09:52:12 +00:00
* Wed Jan 11 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.0~a4-1
- Update to 3.12.0a4
2022-12-19 11:00:14 +00:00
* Mon Dec 19 2022 Miro Hrončok <mhroncok@redhat.com> - 3.12.0~a3-2
- No longer patch the default bytecode cache invalidation policy
2022-12-07 11:12:34 +00:00
* Wed Dec 07 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.0~a3-1
- Update to 3.12.0a3
2022-11-15 16:07:29 +00:00
* Tue Nov 15 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.0~a2-1
- Update to 3.12.0a2
- Fixes: rhbz#2133847
2022-10-27 23:55:47 +00:00
* Thu Oct 27 2022 Miro Hrončok <mhroncok@redhat.com> - 3.12.0~a1-2
- Finish initial bootstrap of Python 3.12.0a1
2022-10-27 14:50:15 +00:00
* Wed Oct 26 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.0~a1-1
- Initial Python 3.12 package forked from Python 3.11