2017-08-16 13:36:04 +00:00
# ==================
# Top-level metadata
# ==================
2019-02-05 00:40:25 +00:00
%global pybasever 3.8
2011-07-08 16:54:16 +00:00
2017-08-16 13:36:04 +00:00
# pybasever without the dot:
2019-02-05 00:40:25 +00:00
%global pyshortver 38
2017-08-16 13:36:04 +00:00
2019-02-05 11:35:53 +00:00
Name : python%{pyshortver}
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
2019-10-14 20:19:24 +00:00
#global prerel ...
2019-02-05 00:40:25 +00:00
%global upstream_version %{general_version} %{?prerel}
Version : %{general_version} %{?prerel:~%{prerel} }
2019-08-30 13:47:05 +00:00
Release : 1%{?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"
2017-11-30 08:54:54 +00:00
2018-04-18 12:40:03 +00:00
# Flat package, i.e. python36, python37, python38 for tox etc.
# warning: changes some other defaults
# in Fedora, never turn this on for the python3 package
2017-11-30 08:54:54 +00:00
# and always keep it on for python37 etc.
2018-04-18 12:40:03 +00:00
# WARNING: This does not change the package name and summary above
2019-02-05 11:35:53 +00:00
%bcond_without flatpackage
2018-04-18 12:40:03 +00:00
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.
#
# 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.
%bcond_with bootstrap
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
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
# =====================
* 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}
2015-09-23 13:03:18 +00:00
%global SOABI_optimized cpython-%{pyshortver} %{ABIFLAGS_optimized} -%{_arch}-linux%{_gnu}
%global SOABI_debug cpython-%{pyshortver} %{ABIFLAGS_debug} -%{_arch}-linux%{_gnu}
* 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
2017-09-01 12:17:21 +00:00
# For multilib support, files that are different between 32- and 64-bit arches
# need different filenames. Use "64" or "32" according to the word size.
2017-09-05 09:40:37 +00:00
# Currently, the best way to determine an architecture's word size happens to
# be checking %%{_lib}.
%if "%{_lib}" == "lib64"
2017-09-01 12:17:21 +00:00
%global wordsize 64
%else
%global wordsize 32
%endif
2011-07-08 16:54:16 +00:00
# =======================
# Build-time requirements
# =======================
# (keep this list alphabetized)
BuildRequires : autoconf
2012-12-11 20:42:13 +00:00
BuildRequires : bluez-libs-devel
2011-07-08 16:54:16 +00:00
BuildRequires : bzip2
BuildRequires : bzip2-devel
2017-08-22 12:33:31 +00:00
BuildRequires : desktop-file-utils
2017-09-01 09:04:02 +00:00
BuildRequires : expat-devel
2012-04-20 19:24:24 +00:00
2011-07-08 16:54:16 +00:00
BuildRequires : findutils
BuildRequires : gcc-c++
2017-08-16 13:36:04 +00:00
%if %{with gdbm}
2019-01-28 11:54:13 +00:00
BuildRequires : gdbm-devel
2011-09-13 18:59:31 +00:00
%endif
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
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
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
2019-07-08 09:44:23 +00:00
# For %%python_provide
BuildRequires : python-rpm-macros
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
BuildRequires : python%{pyshortver}
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
Source2 : %{url} static/files/pubkeys.txt
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
2017-08-28 12:45:54 +00:00
# 00001 #
2010-01-13 21:25:18 +00:00
# Fixup distutils/unixccompiler.py to remove standard library path from rpath:
# Was Patch0 in ivazquez' python3000 specfile:
2017-08-28 12:45:54 +00:00
Patch1 : 00001-rpath.patch
2010-01-13 21:25:18 +00:00
2017-08-28 12:52:51 +00:00
# 00102 #
# Change the various install paths to use /usr/lib64/ instead or /usr/lib
2017-11-29 15:46:46 +00:00
# Only used when "%%{_lib}" == "lib64"
2017-08-28 12:52:51 +00:00
# Not yet sent upstream.
Patch102 : 00102-lib64.patch
2011-09-12 21:39:27 +00:00
2012-05-04 19:24:50 +00:00
# 00111 #
2011-09-12 21:39:27 +00:00
# Patch the Makefile.pre.in so that the generated Makefile doesn't try to build
2017-08-28 13:04:48 +00:00
# a libpythonMAJOR.MINOR.a
# See https://bugzilla.redhat.com/show_bug.cgi?id=556092
2012-05-11 23:35:32 +00:00
# Downstream only: not appropriate for upstream
2011-09-12 21:39:27 +00:00
Patch111 : 00111-no-static-lib.patch
2014-04-15 07:52:32 +00:00
# 00189 #
2018-08-15 13:36:29 +00:00
# Instead of bundled wheels, use our RPM packaged wheels from
# /usr/share/python-wheels
2019-11-25 12:20:27 +00:00
# Downstream only: upstream bundles
# We might eventually pursuit upstream support, but it's low prio
2018-08-15 13:36:29 +00:00
Patch189 : 00189-use-rpm-wheels.patch
2013-07-26 17:13:47 +00:00
2017-06-26 14:32:56 +00:00
# 00251
# Set values of prefix and exec_prefix in distutils install command
# to /usr/local if executable is /usr/bin/python* and RPM build
# 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
2017-08-28 15:16:46 +00:00
# 00274 #
# Upstream uses Debian-style architecture naming. Change to match Fedora.
Patch274 : 00274-fix-arch-names.patch
2019-07-15 13:38:52 +00:00
# 00328 #
# Restore pyc to TIMESTAMP invalidation mode as default in rpmbubild
# 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
2019-01-28 11:54:13 +00:00
# People might want to dnf install pythonX.Y instead of pythonXY;
# we enable this in both flat and nonflat package.
Provides : python%{pybasever} = %{version} -%{release}
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
2017-08-22 14:55:51 +00:00
# Packages with Python modules in standard locations automatically
# depend on python(abi). Provide that here.
2010-01-13 21:25:18 +00:00
Provides : python(abi) = %{pybasever}
2010-09-09 18:52:31 +00:00
Requires : %{name} -libs%{?_isa} = %{version} -%{release}
2017-08-22 13:48:41 +00:00
# In order to support multiple Python interpreters for development purposes,
2018-04-18 12:40:03 +00:00
# packages with the naming scheme flatpackage (e.g. python35) exist for
2017-08-22 13:48:41 +00:00
# non-default versions of Python 3.
# For consistency, and to keep the upgrade path clean, we Provide/Obsolete
# these names here.
2016-09-13 15:08:19 +00:00
Provides : python%{pyshortver} = %{version} -%{release}
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
# replace python36-3.6.2.
Obsoletes : python%{pyshortver}
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
# In Fedora 31, /usr/bin/pydoc was moved here from Python 2.
# Ideally we'd have an explicit conflict with "/usr/bin/pydoc < 3",
# but file provides aren't versioned and the file moved across packages.
# Instead, we rely on the conflict in python3-libs.
2018-08-16 10:30:28 +00:00
# Previously, this was required for our rewheel patch to work.
# This is technically no longer needed, but we keep it recommended
# for the developer experience.
Recommends: python3-setuptools
Recommends: python3-pip
2018-02-21 13:35:54 +00:00
# This prevents ALL subpackages built from this spec to require
# /usr/bin/python3*. Granularity per subpackage is impossible.
# It's intended for the libs package not to drag in the interpreter, see
# https://bugzilla.redhat.com/show_bug.cgi?id=1547131
# All others require %%{name} anyway.
%global __requires_exclude ^/usr/bin/python3
2017-09-05 09:54:13 +00:00
# The description used both for the SRPM and the main `python3` subpackage:
2010-01-13 21:25:18 +00:00
%description
2017-08-21 11:46:14 +00:00
Python is an accessible, high-level, dynamically typed, interpreted programming
2018-02-12 16:43:19 +00:00
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
2018-02-08 13:54:08 +00:00
The %{name} package provides the " p y t h o n 3 " executable: the reference
2017-09-05 09:54:13 +00:00
interpreter for the Python language, version 3.
2017-08-21 11:46:14 +00:00
The majority of its standard library is provided in the %{name} -libs package,
which should be installed automatically along with %{name} .
The remaining parts of the Python standard library are broken out into the
%{name} -tkinter and %{name} -test packages, which may need to be installed
separately.
2017-05-09 09:43:22 +00:00
2017-08-21 11:46:14 +00:00
Documentation for Python is provided in the %{name} -docs package.
Packages containing additional libraries for Python are generally named with
the " %{name} - " prefix.
2017-05-09 09:43:22 +00:00
2010-01-13 21:25:18 +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
%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
%description -n python-unversioned-command
This package contains /usr/bin/python - the " p y t h o n " command that runs Python 3.
2010-01-13 21:25:18 +00:00
%package 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
2019-08-30 13:47:05 +00:00
Provides : bundled(python3-pip) = 19.2.3
Provides : bundled(python3-setuptools) = 41.2.0
2018-08-15 13:36:29 +00:00
%endif
2019-07-08 09:44:23 +00:00
%{?python_provide:%python_provide python3-libs}
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
Recommends: %{name} %{?_isa} = %{version} -%{release}
2019-07-12 17:03:54 +00:00
# https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package
# In Fedora 31, several "unversioned" files like /usr/bin/pydoc and all the
# "unversioned" provides were moved from python2 to python3.
# So, newer python3 packages need to conflict with old Python 2 builds that
# still provided unversioned Python.
# Since all python packages, new and old, have versioned requires on
# python?-libs, we do it here:
Conflicts : python-libs < 3
# (We explicitly conflict with python-libs and not python2-libs, so only the
# old Python 2 builds that still provided unversioned Python are handled.)
2010-01-13 21:25:18 +00:00
%description 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
a scripting language, and by the main " p y t h o n 3 " executable
2010-01-13 21:25:18 +00:00
%package devel
2017-05-09 09:43:22 +00:00
Summary : Libraries and header files needed for Python development
2014-05-26 17:38:24 +00:00
Requires : %{name} = %{version} -%{release}
Requires : %{name} -libs%{?_isa} = %{version} -%{release}
2016-01-13 19:03:23 +00:00
BuildRequires : python-rpm-macros
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
2019-03-10 18:48:49 +00:00
%if %{without bootstrap}
2018-08-30 13:17:04 +00:00
# This is not "API" (packages that need setuptools should still BuildRequire it)
# However some packages apparently can build both with and without setuptools
# producing egg-info as file or directory (depending on setuptools presence).
# Directory-to-file updates are problematic in RPM, so we ensure setuptools is
# installed when -devel is required.
# See https://bugzilla.redhat.com/show_bug.cgi?id=1623914
# See https://fedoraproject.org/wiki/Packaging:Directory_Replacement
2019-08-11 09:23:07 +00:00
Requires : (python3-setuptools if rpm-build)
2018-08-30 13:17:04 +00:00
2019-08-11 09:23:07 +00:00
Requires : (python3-rpm-generators if rpm-build)
2019-03-10 18:48:49 +00:00
%endif
2019-08-11 09:23:07 +00:00
%{?python_provide:%python_provide python3-devel}
2018-01-18 21:57:38 +00:00
Provides : %{name} -2to3 = %{version} -%{release}
Provides : 2to3 = %{version} -%{release}
2010-01-13 21:25:18 +00:00
Conflicts : %{name} < %{version} -%{release}
2019-07-12 17:03:54 +00:00
# In Fedora 31, several "unversioned" files were moved here from Python 2:
# pygettext.py, msgfmt.py, python-config, python.pc
Conflicts : python-devel < 3
2010-01-13 21:25:18 +00:00
%description 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
2018-01-18 21:57:38 +00:00
%package idle
Summary : A basic graphical development environment for Python
2010-01-13 21:25:18 +00:00
Requires : %{name} = %{version} -%{release}
Requires : %{name} -tkinter = %{version} -%{release}
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
2018-01-18 21:57:38 +00:00
Provides : %{name} -tools = %{version} -%{release}
Provides : %{name} -tools%{?_isa} = %{version} -%{release}
Obsoletes : %{name} -tools < %{version} -%{release}
2017-08-31 21:01:10 +00:00
2019-07-12 17:03:54 +00:00
# In Fedora 31, /usr/bin/idle was moved here from Python 2.
Conflicts : python-tools < 3
2019-07-08 09:44:23 +00:00
%{?python_provide:%python_provide python3-idle}
2018-01-18 21:57:38 +00:00
%description idle
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
%package tkinter
2017-05-09 09:43:22 +00:00
Summary : A GUI toolkit for Python
2010-01-13 21:25:18 +00:00
Requires : %{name} = %{version} -%{release}
2019-07-08 09:44:23 +00:00
%{?python_provide:%python_provide python3-tkinter}
2010-01-13 21:25:18 +00:00
%description 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
%package test
2017-08-21 11:46:14 +00:00
Summary : The self-test suite for the main python3 package
2010-01-13 21:25:18 +00:00
Requires : %{name} = %{version} -%{release}
2018-11-19 14:55:55 +00:00
Requires : %{name} -libs%{?_isa} = %{version} -%{release}
2010-01-13 21:25:18 +00:00
2019-07-08 09:44:23 +00:00
%{?python_provide:%python_provide python3-test}
2010-01-13 21:25:18 +00:00
%description 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,
you should use the unittest module from %{name} -libs, or a library such as
2018-02-15 13:34:07 +00:00
%{name} -pytest or %{name} -nose.
2010-01-13 21:25:18 +00:00
2017-08-16 13:36:04 +00:00
%if %{with debug_build}
2010-05-24 23:45:40 +00:00
%package 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:
Requires : %{name} %{?_isa} = %{version} -%{release}
Requires : %{name} -libs%{?_isa} = %{version} -%{release}
Requires : %{name} -devel%{?_isa} = %{version} -%{release}
Requires : %{name} -test%{?_isa} = %{version} -%{release}
Requires : %{name} -tkinter%{?_isa} = %{version} -%{release}
2018-01-18 21:57:38 +00:00
Requires : %{name} -idle%{?_isa} = %{version} -%{release}
2010-05-24 23:45:40 +00:00
2019-07-12 17:03:54 +00:00
# In Fedora 31, /usr/bin/python-debug was moved here from Python 2.
Conflicts : python-debug < 3
2019-07-08 09:44:23 +00:00
%{?python_provide:%python_provide python3-debug}
2010-05-24 23:45:40 +00:00
%description 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
%global __requires_exclude ^python\\(abi\\) = 3\\..$
%global __provides_exclude ^python\\(abi\\) = 3\\..$
2018-08-15 13:36:29 +00:00
%if %{with rpmwheels}
Requires : python-setuptools-wheel
Requires : python-pip-wheel
%else
2019-08-30 13:47:05 +00:00
Provides : bundled(python3-pip) = 19.2.3
Provides : bundled(python3-setuptools) = 41.2.0
2018-08-15 13:36:29 +00:00
%endif
2018-04-18 12:40:03 +00:00
# The description for the flat package
%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
2019-02-05 00:40:25 +00:00
%setup -q -n Python-%{upstream_version}
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
2010-01-28 19:56:39 +00:00
#
# Apply patches:
#
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
%patch1 -p1
2010-01-13 21:25:18 +00:00
%if "%{_lib}" == "lib64"
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
%patch102 -p1
2010-01-13 21:25:18 +00:00
%endif
2015-09-21 13:37:07 +00:00
%patch111 -p1
2011-09-10 11:59:22 +00:00
2018-08-15 13:36:29 +00:00
%if %{with rpmwheels}
2014-04-15 07:52:32 +00:00
%patch189 -p1
2018-08-15 13:36:29 +00:00
rm Lib/ensurepip/_bundled/*.whl
2014-04-15 07:52:32 +00:00
%endif
2017-06-26 14:32:56 +00:00
%patch251 -p1
2017-08-28 15:16:46 +00:00
%patch274 -p1
2019-07-15 13:38:52 +00:00
%patch328 -p1
2017-05-09 14:57:18 +00:00
2015-11-13 17:50:47 +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
# 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 "
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 "
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 ) "
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
2010-02-12 21:38:52 +00:00
%configure \
--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 \
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 \
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}
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 " \
2018-09-27 09:32:47 +00:00
" - O g "
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
2017-09-01 12:17:21 +00:00
%global _pyconfig_h pyconfig-%{wordsize} .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
2017-08-31 14:00:06 +00:00
make \
DESTDIR=%{buildroot} \
INSTALL=" i n s t a l l - p " \
EXTRA_CFLAGS=" $ M o r e C F l a g s " \
install
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
echo -e '#!/bin/sh\nexec `dirname $0`/python' ${LDVersion}'-`uname -m`-config "$@"' > \
%{buildroot} %{_bindir} /python${LDVersion}-config
echo '[ $? -eq 127 ] && echo "Could not find python' ${LDVersion}'-`uname -m`-config. Look around to see available arches." >&2' >> \
%{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
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
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
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
cp -p Tools/scripts/pathfix.py %{buildroot} %{_bindir} /
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
2018-01-18 21:57:38 +00:00
# Remove tests for python3-tools which was removed in
# https://bugzilla.redhat.com/show_bug.cgi?id=1312030
rm -rf %{buildroot} %{pylibdir} /test/test_tools
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
find %{buildroot} -type f -a -name " * . p y " -print0 | \
LD_LIBRARY_PATH=" %{buildroot} %{dynload_dir} / : %{buildroot} %{_libdir} " \
2013-10-30 09:50:01 +00:00
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 " \
2016-09-09 11:27:29 +00:00
xargs -0 %{buildroot} %{_bindir} /python%{pybasever} -O -c 'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("%{buildroot}")[2], optimize=opt) for opt in range(3) for f in sys.argv[1:]]' || :
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
2018-04-18 12:40:03 +00:00
%if %{with debug_build} && %{without flatpackage}
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
2018-01-18 21:57:38 +00:00
# There's 2to3-X.X executable and 2to3 soft link to it.
# No reason to have both, so keep only 2to3 as an executable.
# See https://bugzilla.redhat.com/show_bug.cgi?id=1111275
mv %{buildroot} %{_bindir} /2to3-%{pybasever} %{buildroot} %{_bindir} /2to3
2018-01-18 15:03:21 +00:00
2018-04-18 12:40:03 +00:00
%if %{with flatpackage}
# Remove stuff that would conflict with python3 package
rm %{buildroot} %{_bindir} /python3
rm %{buildroot} %{_bindir} /pydoc3
rm %{buildroot} %{_bindir} /pathfix.py
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
rm %{buildroot} %{_mandir} /man1/python3.1*
rm %{buildroot} %{_libdir} /pkgconfig/python3.pc
2019-06-05 07:14:07 +00:00
rm %{buildroot} %{_libdir} /pkgconfig/python3-embed.pc
2019-07-12 17:03:54 +00:00
%else
# Link the unversioned stuff
# https://fedoraproject.org/wiki/Changes/Python_means_Python3
ln -s ./python3 %{buildroot} %{_bindir} /python
ln -s ./pydoc3 %{buildroot} %{_bindir} /pydoc
ln -s ./pygettext3.py %{buildroot} %{_bindir} /pygettext.py
ln -s ./msgfmt3.py %{buildroot} %{_bindir} /msgfmt.py
ln -s ./idle3 %{buildroot} %{_bindir} /idle
ln -s ./python3-config %{buildroot} %{_bindir} /python-config
ln -s ./python3.1 %{buildroot} %{_mandir} /man1/python.1
ln -s ./python3.pc %{buildroot} %{_libdir} /pkgconfig/python.pc
%if %{with debug_build}
ln -s ./python3-debug %{buildroot} %{_bindir} /python-debug
%endif
2018-04-18 12:40:03 +00:00
%endif
2017-06-27 16:02:44 +00:00
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
2019-01-31 10:56:28 +00:00
# test_gdb skipped on s390x:
# https://bugzilla.redhat.com/show_bug.cgi?id=1678277
2019-08-09 18:57:37 +00:00
# test_gdb skipped everywhere:
# https://bugzilla.redhat.com/show_bug.cgi?id=1734327
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
2011-08-31 19:08:01 +00:00
LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \
2018-12-10 16:29:57 +00:00
-wW --slowest -j0 \
2019-06-17 15:29:58 +00:00
%if %{with bootstrap}
-x test_distutils \
%endif
2018-09-27 11:57:12 +00:00
-x test_gdb \
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
2010-01-28 19:09:18 +00:00
%files
2017-03-14 16:52:25 +00:00
%doc README.rst
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
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
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
2019-07-12 17:03:54 +00:00
%files -n python-unversioned-command
%{_bindir} /python
%{_mandir} /*/python.1*
2010-09-09 18:52:31 +00:00
%files 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
%{pylibdir} /ensurepip/_bundled/*.whl
%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
%{dynload_dir} /parser.%{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
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
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
%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
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):
2017-04-05 16:08:56 +00:00
%dir %{pylibdir} /config-%{LDVERSION_optimized} -%{_arch}-linux%{_gnu}/
%{pylibdir} /config-%{LDVERSION_optimized} -%{_arch}-linux%{_gnu}/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}
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
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}
2010-01-13 21:25:18 +00:00
%files devel
2018-01-18 21:57:38 +00:00
%{_bindir} /2to3
2018-04-18 12:40:03 +00:00
%endif
2017-04-05 16:08:56 +00:00
%{pylibdir} /config-%{LDVERSION_optimized} -%{_arch}-linux%{_gnu}/*
2018-04-18 12:40:03 +00:00
%if %{without flatpackage}
2017-04-05 16:08:56 +00:00
%exclude %{pylibdir} /config-%{LDVERSION_optimized} -%{_arch}-linux%{_gnu}/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
%if %{without flatpackage}
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
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}
2018-01-18 21:57:38 +00:00
%files idle
2018-04-18 12:40:03 +00:00
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
%if %{without flatpackage}
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}
2010-01-13 21:25:18 +00:00
%files 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}
2010-01-13 21:25:18 +00:00
%files 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}
2010-05-24 23:45:40 +00:00
%files debug
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
%{dynload_dir} /parser.%{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
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
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:
2017-04-05 16:08:56 +00:00
%{pylibdir} /config-%{LDVERSION_debug} -%{_arch}-linux%{_gnu}
* 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
2015-09-16 06:36:17 +00:00
%{_libdir} /libpython%{LDVERSION_debug} .so.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
%{_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
2019-10-14 20:19:24 +00:00
* Mon Oct 14 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0-1
- Update to Python 3.8.0 final
2019-10-01 21:05:55 +00:00
* Tue Oct 01 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~rc1-1
- Rebased to Python 3.8.0rc1
2019-08-30 13:47:05 +00:00
* Sat Aug 31 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~b4-1
- Rebased to Python 3.8.0b4
2019-08-15 14:51:16 +00:00
- Enable Profile-guided optimization for all arches, not just x86 (#1741015)
2019-07-29 22:48:16 +00:00
* Mon Jul 29 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~b3-1
- Update to 3.8.0b3
2019-07-26 17:27:40 +00:00
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0~b2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-07-05 10:10:54 +00:00
* Fri Jul 05 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~b2-1
- Update to 3.8.0b2
2019-06-05 07:14:07 +00:00
* Wed Jun 05 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~b1-1
- Update to 3.8.0b1
2019-05-17 11:24:33 +00:00
* Fri May 17 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~a4-2
- Remove a faulty patch that resulted in invalid value of
distutils.sysconfig.get_config_var('LIBPL' ) (#1710767)
2019-05-07 15:13:12 +00:00
* Tue May 07 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~a4-1
- Update to 3.8.0a4
2019-03-27 00:14:40 +00:00
* Tue Mar 26 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~a3-1
- Update to 3.8.0a3
2019-02-25 23:51:48 +00:00
* Mon Feb 25 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~a2-1
- Update to 3.8.0a2
2019-01-02 17:15:20 +00:00
* Mon Feb 18 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~a1-3
- Reduced default build flags used to build extension modules
https://fedoraproject.org/wiki/Changes/Python_Extension_Flags
2019-02-17 08:30:52 +00:00
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.8.0~a1-2
- Rebuild for readline 8.0
2019-02-05 00:40:25 +00:00
* Tue Feb 05 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~a1-1
- Update to 3.8.0a1