2017-08-16 13:36:04 +00:00
# ==================
# Top-level metadata
# ==================
2020-10-09 10:25:22 +00:00
%global pybasever 3.10
2011-07-08 16:54:16 +00:00
2017-08-16 13:36:04 +00:00
# pybasever without the dot:
2020-10-09 10:25:22 +00:00
%global pyshortver 310
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
2019-02-05 00:40:25 +00:00
%global general_version %{pybasever} .0
2021-05-04 05:37:41 +00:00
%global prerel b1
2019-02-05 00:40:25 +00:00
%global upstream_version %{general_version} %{?prerel}
Version : %{general_version} %{?prerel:~%{prerel} }
2021-05-14 12:46:08 +00:00
Release : 2%{?dist}
2017-08-16 13:36:04 +00:00
License : Python
# ==================================
# 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
# WARNING: This also influences the flatpackage bcond below.
# 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
# Flat package, i.e. no separate subpackages
# Default (in Fedora): if this is a main Python, it is not a flatpackage
2020-05-06 18:33:16 +00:00
# Not supported: Combination of flatpackage enabled and main_python enabled
2020-03-23 13:26:46 +00:00
%if %{with main_python}
%bcond_with flatpackage
2019-11-18 11:46:25 +00:00
%else
2020-03-23 13:26:46 +00:00
%bcond_without flatpackage
2019-11-18 11:46:25 +00:00
%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.
#
2020-04-29 09:47:57 +00:00
# We also use the previous build of Python in "make regen-all"
# and in "distutils.tests.test_bdist_rpm".
#
2019-03-10 18:48:49 +00:00
# Procedure: https://fedoraproject.org/wiki/SIGs/Python/UpgradingPython
#
# IMPORTANT: When bootstrapping, it's very likely the wheels for pip and
# setuptools are not available. Turn off the rpmwheels bcond until
# the two packages are built with wheels to get around the issue.
2020-10-12 19:03:07 +00:00
%bcond_with bootstrap
2019-03-10 18:48:49 +00:00
2018-08-15 13:36:29 +00:00
# Whether to use RPM build wheels from the python-{pip,setuptools}-wheel package
# Uses upstream bundled prebuilt wheels otherwise
%bcond_without rpmwheels
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.
2021-05-04 05:37:41 +00:00
%global pip_version 21.1.1
%global setuptools_version 56.0.0
2018-04-18 12:40:03 +00:00
2017-08-17 07:13:29 +00:00
# Expensive optimizations (mainly, profile-guided optimizations)
2018-06-13 17:14:30 +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
2018-06-13 17:14:30 +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)
2018-04-18 12:40:03 +00:00
%if %{with flatpackage}
%bcond_with debug_build
%else
2017-08-16 13:36:04 +00:00
%bcond_without debug_build
2018-04-18 12:40:03 +00:00
%endif
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
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
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
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}
BuildRequires : python-setuptools-wheel
BuildRequires : python-pip-wheel
2014-04-15 07:52:32 +00:00
%endif
2019-04-25 16:55:05 +00:00
%if %{without bootstrap}
2019-06-17 15:29:58 +00:00
# for make regen-all and distutils.tests.test_bdist_rpm
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}
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
2020-10-09 10:25:22 +00:00
# The release manager for Python 3.10 is pablogsal
Source2 : https://keybase.io/pablogsal/pgp_keys.asc
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)
# 00001 # d06a8853cf4bae9e115f45e1d531d2dc152c5cc8
# Fixup distutils/unixccompiler.py to remove standard library path from rpath
# Was Patch0 in ivazquez' python3000 specfile
Patch1 : 00001-rpath.patch
2020-10-09 10:25:22 +00:00
# 00251 # 5c445123f04d96be42a35eef5119378ba1713a96
2020-07-20 19:52:13 +00:00
# Change user install location
#
2017-06-26 14:32:56 +00:00
# Set values of prefix and exec_prefix in distutils install command
# to /usr/local if executable is /usr/bin/python* and RPM build
2020-07-20 19:52:13 +00:00
# is not detected to make pip and distutils install into separate location.
#
2017-06-28 13:46:50 +00:00
# Fedora Change: https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe
2019-11-25 12:20:27 +00:00
# Downstream only: Awaiting resources to work on upstream PEP
2017-06-26 14:32:56 +00:00
Patch251 : 00251-change-user-install-location.patch
2020-10-09 10:25:22 +00:00
# 00328 # 318e500c98f5e59eb1f23e0fcd32db69b9bd17e1
2020-07-20 19:52:13 +00:00
# Restore pyc to TIMESTAMP invalidation mode as default in rpmbuild
#
# Since Fedora 31, the $SOURCE_DATE_EPOCH is set in rpmbuild to the latest
# %%changelog date. This makes Python default to the CHECKED_HASH pyc
# invalidation mode, bringing more reproducible builds traded for an import
# performance decrease. To avoid that, we don't default to CHECKED_HASH
# when $RPM_BUILD_ROOT is set (i.e. when we are building RPM packages).
#
2019-07-15 13:38:52 +00:00
# See https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/57#comment-27426
2019-11-25 12:20:27 +00:00
# Downstream only: only used when building RPM packages
# Ideally, we should talk to upstream and explain why we don't want this
2019-07-15 13:38:52 +00:00
Patch328 : 00328-pyc-timestamp-invalidation-mode.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
2020-03-23 13:26:46 +00:00
# this if branch is ~300 lines long and contains subpackages' definitions
%if %{without flatpackage}
%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,
2020-05-07 14:50:36 +00:00
# packages with the naming scheme flatpackage (e.g. python3.5) 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}
# To keep the upgrade path clean, we Obsolete python3.X.
2017-08-22 13:48:41 +00:00
# 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
2020-05-07 14:50:36 +00:00
# replace python3.6-3.6.2.
Obsoletes : python%{pybasever}
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
# provide and obsolete the previous names.
# - Here are the tags for the nonflat package, regardless if main_python (e.g.
# python3) or not (e.g. python39). For the flat package, the provide is
# repeated many lines later.
Provides : python%{pyshortver} = %{version} -%{release}
Obsoletes : python%{pyshortver} < %{version} -%{release}
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}
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}
Requires : python-setuptools-wheel
Requires : python-pip-wheel
%else
2020-07-02 11:36:21 +00:00
Provides : bundled(python3dist(pip)) = %{pip_version}
Provides : bundled(python3dist(setuptools)) = %{setuptools_version}
2018-08-15 13:36:29 +00:00
%endif
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
2019-07-12 17:03:54 +00:00
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
Requires : (python-rpm-macros if rpm-build)
Requires : (python3-rpm-macros if rpm-build)
2019-07-08 09:44:23 +00:00
2021-04-23 10:57:43 +00:00
# Python developers are very likely to need pip
Recommends: %{pkgname} -pip
2019-03-10 18:48:49 +00:00
%if %{without bootstrap}
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}
2018-01-18 21:57:38 +00:00
Provides : 2to3 = %{version} -%{release}
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
2017-08-16 13:36:09 +00:00
Provides : idle3 = %{version} -%{release}
2019-07-12 17:03:54 +00:00
Provides : idle = %{version} -%{release}
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}
Obsoletes : %{pkgname} -tools < %{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
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
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
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
2018-04-18 12:40:03 +00:00
%else # with flatpackage
# We'll not provide this, on purpose
# No package in Fedora shall ever depend on flatpackage via this
2021-03-22 11:40:04 +00:00
%global __requires_exclude ^python\\(abi\\) = 3\\..+
%global __provides_exclude ^python\\(abi\\) = 3\\..+
2018-04-18 12:40:03 +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
# provide and obsolete the previous names.
# - Here are the tags for the flat package. For the nonflat package, the
# provide is repeated many lines above.
Provides : python%{pyshortver} = %{version} -%{release}
Obsoletes : python%{pyshortver} < %{version} -%{release}
2020-03-23 13:26:46 +00:00
2018-08-15 13:36:29 +00:00
%if %{with rpmwheels}
Requires : python-setuptools-wheel
Requires : python-pip-wheel
%else
2020-07-02 11:36:21 +00:00
Provides : bundled(python3dist(pip)) = %{pip_version}
Provides : bundled(python3dist(setuptools)) = %{setuptools_version}
2018-08-15 13:36:29 +00:00
%endif
2018-04-18 12:40:03 +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
# The description for the flat package (SRPM and built)
2018-04-18 12:40:03 +00:00
%description
Python %{pybasever} package for developers.
2018-04-18 15:14:16 +00:00
This package exists to allow developers to test their code against a newer
2018-04-18 12:40:03 +00:00
version of Python. This is not a full Python stack and if you wish to run
2017-11-30 08:54:54 +00:00
your applications with Python %{pybasever} , update your Fedora to a newer
version once Python %{pybasever} is stable.
2018-04-18 12:40:03 +00:00
%endif # with flatpackage
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
%if %{with rpmwheels}
2021-02-03 14:59:37 +00:00
rm Lib/ensurepip/_bundled/pip-%{pip_version} -py3-none-any.whl
rm Lib/ensurepip/_bundled/setuptools-%{setuptools_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
export CFLAGS=" %{extension_cflags} - D _ G N U _ S O U R C E - f P I C - f w r a p v "
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 "
2019-01-02 17:15:20 +00:00
export CXXFLAGS=" %{extension_cxxflags} - D _ G N U _ S O U R C E - f P I C - f w r a p v "
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 ) "
2019-01-02 17:15:20 +00:00
export OPT=" %{extension_cflags} - D _ G N U _ S O U R C E - f P I C - f w r a p v "
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 ) "
2019-01-02 17:15:20 +00:00
export LDFLAGS=" %{extension_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 ) "
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}
--with-wheel-pkg-dir=%{_datadir} /python-wheels \
%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
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
2017-09-01 12:01:43 +00:00
# Make sure distutils looks at the right pyconfig.h file
# See https://bugzilla.redhat.com/show_bug.cgi?id=201434
2010-11-17 20:03:29 +00:00
# Similar for sysconfig: sysconfig.get_config_h_filename tries to locate
# pyconfig.h so it can be parsed, and needs to do this at runtime in site.py
2017-09-01 12:01:43 +00:00
# when python starts up (see https://bugzilla.redhat.com/show_bug.cgi?id=653058)
2010-11-17 20:03:29 +00:00
#
# Split this out so it goes directly to the pyconfig-32.h/pyconfig-64.h
# variants:
sed -i -e " s / ' p y c o n f i g . h ' / ' % { _ p y c o n f i g _ h } ' / " \
%{buildroot} %{pylibdir} /distutils/sysconfig.py \
%{buildroot} %{pylibdir} /sysconfig.py
2010-01-13 21:25:18 +00:00
2018-01-18 21:57:38 +00:00
# Install pathfix.py to bindir
# See https://github.com/fedora-python/python-rpm-porting/issues/24
2020-07-21 12:24:49 +00:00
cp -p Tools/scripts/pathfix.py %{buildroot} %{_bindir} /pathfix%{pybasever} .py
2018-01-18 21:57:38 +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 \
Tools/scripts/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
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)
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 \
-f %{_smp_mflags} -o 0 -o 1 -o 2 -s %{buildroot} -p / %{buildroot} --hardlink-dupes || :
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
2017-09-19 10:03:41 +00:00
# Since we have pathfix.py in bindir, this is created, but we don't want it
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
2020-07-21 12:24:49 +00:00
ln -s ./pathfix%{pybasever} .py %{buildroot} %{_bindir} /pathfix.py
2019-07-12 17:03:54 +00:00
%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
2020-01-27 17:03:37 +00:00
# --timeout=1800: kill test running for longer than 30 minutes
2019-06-17 15:29:58 +00:00
# test_distutils
# distutils.tests.test_bdist_rpm tests fail when bootstraping the Python
# package: rpmbuild requires /usr/bin/pythonX.Y to be installed
2021-03-02 09:15:11 +00:00
# test_frozentable fails with Python 3.10.0a6 (https://bugs.python.org/issue43372)
2011-08-31 19:08:01 +00:00
LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \
2020-01-27 17:03:37 +00:00
-wW --slowest -j0 --timeout=1800 \
2021-03-02 09:15:11 +00:00
-i test_frozentable \
2019-06-17 15:29:58 +00:00
%if %{with bootstrap}
-x test_distutils \
%endif
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}
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
2019-07-12 17:03:54 +00:00
%files -n python-unversioned-command
2019-11-18 11:46:25 +00:00
%endif
2019-07-12 17:03:54 +00:00
%{_bindir} /python
%{_mandir} /*/python.1*
2019-11-18 11:46:25 +00:00
%endif
2019-07-12 17:03:54 +00:00
2019-11-18 11:46:25 +00:00
%if %{without flatpackage}
2020-03-23 13:26:46 +00:00
%files -n %{pkgname}-libs
2017-03-14 16:52:25 +00:00
%doc README.rst
2018-04-18 12:40:03 +00:00
%endif
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
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
2016-02-16 17:22:04 +00:00
%exclude %{pylibdir} /lib2to3/tests
2018-04-18 12:40:03 +00:00
%endif
2016-02-16 17:22:04 +00:00
%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
%{pylibdir} /ensurepip/_bundled/setuptools-%{setuptools_version} -py3-none-any.whl
2020-01-03 13:25:58 +00:00
%{pylibdir} /ensurepip/_bundled/__init__.py
%{pylibdir} /ensurepip/_bundled/__pycache__/*%{bytecode_suffixes}
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
2016-10-12 14:52:17 +00:00
%{dynload_dir} /_sha256.%{SOABI_optimized} .so
2016-10-07 17:22:17 +00:00
%{dynload_dir} /_sha3.%{SOABI_optimized} .so
2016-10-12 14:52:17 +00:00
%{dynload_dir} /_sha512.%{SOABI_optimized} .so
2016-10-07 17:22:17 +00:00
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
* 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
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
2016-03-04 13:30:32 +00:00
%dir %{pylibdir} /distutils/
%dir %{pylibdir} /distutils/__pycache__/
%{pylibdir} /distutils/*.py
%{pylibdir} /distutils/__pycache__/*%{bytecode_suffixes}
%{pylibdir} /distutils/README
%{pylibdir} /distutils/command
* 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}
* 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
%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
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
* 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}
2018-04-18 12:40:03 +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
2010-01-13 21:25:18 +00:00
%{pylibdir} /urllib
2016-07-08 12:03:34 +00:00
%{pylibdir} /xml
2020-06-09 09:36:59 +00:00
%{pylibdir} /zoneinfo
2012-07-20 20:34:09 +00:00
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
# distutils/sysconfig.py:_init_posix(), so we include them in the core
# 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
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
2020-03-23 13:26:46 +00:00
%files -n %{pkgname}-devel
2019-11-18 11:46:25 +00:00
%endif
2020-09-25 13:03:23 +00:00
%{pylibdir} /config-%{LDVERSION_optimized} -%{platform_triplet} /*
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
2020-09-25 13:03:23 +00:00
%exclude %{pylibdir} /config-%{LDVERSION_optimized} -%{platform_triplet} /Makefile
2018-04-18 12:40:03 +00:00
%exclude %{_includedir} /python%{LDVERSION_optimized} /%{_pyconfig_h}
%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
%{_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/
2010-01-13 21:25:18 +00:00
%doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit
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-04-18 12:40:03 +00:00
%{_bindir} /pathfix.py
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}
2020-07-21 12:24:49 +00:00
%{_bindir} /pathfix%{pybasever} .py
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
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
2020-03-23 13:26:46 +00:00
%files -n %{pkgname}-idle
2019-11-18 11:46:25 +00:00
%endif
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} /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
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
2020-03-23 13:26:46 +00:00
%files -n %{pkgname}-tkinter
2018-04-18 12:40:03 +00:00
%endif
2010-01-13 21:25:18 +00:00
%{pylibdir} /tkinter
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
2010-01-13 21:25:18 +00:00
%exclude %{pylibdir} /tkinter/test
2018-04-18 12:40:03 +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} /_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
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
2020-03-23 13:26:46 +00:00
%files -n %{pkgname}-test
2018-04-18 12:40:03 +00:00
%endif
2017-11-30 08:54:54 +00:00
2010-01-13 21:25:18 +00:00
%{pylibdir} /ctypes/test
%{pylibdir} /distutils/tests
%{pylibdir} /sqlite3/test
%{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
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
2017-11-28 12:47:21 +00:00
%{dynload_dir} /_xxtestfuzz.%{SOABI_optimized} .so
2010-01-13 21:25:18 +00:00
%{pylibdir} /lib2to3/tests
%{pylibdir} /tkinter/test
2010-09-08 23:01:56 +00:00
%{pylibdir} /unittest/test
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}
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
2020-03-23 13:26:46 +00:00
%files -n %{pkgname}-debug
2019-11-18 11:46:25 +00:00
%endif
%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
2016-10-12 14:52:17 +00:00
%{dynload_dir} /_sha256.%{SOABI_debug} .so
2016-10-07 17:22:17 +00:00
%{dynload_dir} /_sha3.%{SOABI_debug} .so
2016-10-12 14:52:17 +00:00
%{dynload_dir} /_sha512.%{SOABI_debug} .so
2016-10-07 17:22:17 +00:00
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
2017-11-28 12:47:21 +00:00
%{dynload_dir} /_xxtestfuzz.%{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
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
2010-05-24 23:45:40 +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
2021-05-14 12:46:08 +00:00
* Fri May 14 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.10.0~b1-2
- Use the system installed mpdecimal instead of the bundled copy (#1943359)
2021-05-04 05:37:41 +00:00
* Tue May 04 2021 Tomas Hrnciar <thrnciar@redhat.com> - 3.10.0~b1-1
- Update to 3.10.0b1
2021-04-06 12:26:59 +00:00
* Tue Apr 06 2021 Tomas Hrnciar <thrnciar@redhat.com> - 3.10.0~a7-1
- Update to 3.10.0a7
2021-03-22 11:40:04 +00:00
* Mon Mar 22 2021 Miro Hrončok <mhroncok@redhat.com> - 3.10.0~a6-2
- When flat, don't require/provide python(abi) = 3.10
2021-03-02 09:15:11 +00:00
* Tue Mar 02 2021 Tomas Hrnciar <thrnciar@redhat.com> - 3.10.0~a6-1
- Update to 3.10.0a6
2021-02-03 14:59:37 +00:00
* Wed Feb 3 15:01:21 CET 2021 Tomas Hrnciar <thrnciar@redhat.com> - 3.10.0~a5-1
- Update to 3.10.0a5
2021-01-27 14:27:44 +00:00
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.0~a4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2021-01-15 17:35:43 +00:00
* Fri Jan 15 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.10.0~a4-2
- Compile the debug build with -O0 instead of -Og (rhbz#1818857)
2021-01-04 21:52:05 +00:00
* Mon Jan 04 2021 Miro Hrončok <mhroncok@redhat.com> - 3.10.0~a4-1
- Update to 3.10.0a4
2020-12-08 08:44:22 +00:00
* Tue Dec 08 2020 Tomas Hrnciar <thrnciar@redhat.com> - 3.10.0~a3-1
- Update to 3.10.0a3
2020-11-04 00:41:02 +00:00
* Wed Nov 04 2020 Miro Hrončok <mhroncok@redhat.com> - 3.10.0~a2-1
- Update to 3.10.0a2
2020-10-12 19:03:07 +00:00
* Mon Oct 12 2020 Miro Hrončok <mhroncok@redhat.com> - 3.10.0~a1-2
- Finish initial bootstrap, build Python 3.10 with Python 3.10
2020-10-09 10:25:22 +00:00
* Fri Oct 09 2020 Miro Hrončok <mhroncok@redhat.com> - 3.10.0~a1-1
- Initial Python 3.10 package forked from Python 3.9