2017-08-16 13:36:04 +00:00
# ==================
# Top-level metadata
# ==================
2017-11-28 12:47:21 +00:00
%global pybasever 3.7
2011-07-08 16:54:16 +00:00
2017-08-16 13:36:04 +00:00
# pybasever without the dot:
2017-11-28 12:47:21 +00:00
%global pyshortver 37
2017-11-30 08:54:54 +00:00
Name : python%{pyshortver}
Summary : Version %{pybasever} of the Python interpreter
URL : https://www.python.org/
2017-11-28 12:47:21 +00:00
# Second alpha
%global prerel a2
2017-08-16 13:36:04 +00:00
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
2017-11-28 12:47:21 +00:00
Version : %{pybasever} .0
Release : 0.1.%{?prerel} %{?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
# 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
# and always keep it on for python37 etc.
# WARNING: This does not change the package name and summary above
%bcond_without flatpackage
2017-08-17 07:13:29 +00:00
# Expensive optimizations (mainly, profile-guided optimizations)
2017-08-16 15:55:57 +00:00
%ifarch %{ix86} x86_64
%bcond_without optimizations
%else
2017-08-17 07:13:29 +00:00
# On some architectures, the optimized build takes tens of hours, possibly
# longer than Koji's 24-hour timeout. Disable optimizations here.
2017-08-16 15:55:57 +00:00
%bcond_with optimizations
%endif
2017-08-17 07:13:29 +00:00
# Run the test suite in %%check
2017-08-16 13:36:04 +00:00
%bcond_without tests
2017-08-17 07:13:29 +00:00
# Ability to reuse RPM-installed pip using rewheel
2017-11-30 08:54:54 +00:00
%if %{with flatpackage}
%bcond_with rewheel
%else
2017-08-16 13:36:04 +00:00
%bcond_without rewheel
2017-11-30 08:54:54 +00:00
%endif
2017-08-17 07:13:29 +00:00
# Extra build for debugging the interpreter or C-API extensions
# (the -debug subpackages)
2017-11-30 08:54:54 +00:00
%if %{with flatpackage}
%bcond_with debug_build
%else
2017-08-16 13:36:04 +00:00
%bcond_without debug_build
2017-11-30 08:54:54 +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
# Support for systemtap instrumentation
2017-08-16 13:36:04 +00:00
%bcond_with systemtap
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
2017-08-16 13:36:04 +00:00
%ifnarch s390 %{mips} riscv64
%bcond_without valgrind
%else
2017-08-17 07:13:29 +00:00
# Some arches don't have valgrind, disable support for it there.
2017-08-16 13:36:04 +00:00
%bcond_with valgrind
%endif
# ==================================
# Notes from bootstraping Python 3.6
# ==================================
2014-05-30 09:52:51 +00:00
#
2017-08-17 07:41:37 +00:00
# New Python major version (3.X) break ABI and bytecode compatibility,
# so all packages depending on it need to be rebuilt.
#
2017-05-16 09:06:53 +00:00
# Due to a dependency cycle between Python, gdb, rpm, pip, setuptools, wheel,
2017-08-17 07:41:37 +00:00
# and other packages, this isn't straightforward.
# Build in the following order:
2014-05-30 09:52:51 +00:00
#
2017-05-05 14:47:58 +00:00
# 1. At the same time:
2017-08-17 07:41:37 +00:00
# - gdb without python support (add %%global _without_python 1 on top of
# gdb's SPEC file)
2017-05-05 14:47:58 +00:00
# - python-rpm-generators with bootstrapping_python set to 1
# (this can be done also during step 2., but should be done before 3.)
2017-08-17 07:41:37 +00:00
# 2. python3 without rewheel (use %%bcond_with rewheel instead of
# %%bcond_without)
2017-05-05 14:47:58 +00:00
# 3. At the same time:
2017-08-17 07:41:37 +00:00
# - gdb with python support (remove %%global _without_python 1 on top of
# gdb's SPEC file)
2017-05-05 14:47:58 +00:00
# - python-rpm-generators with bootstrapping_python set to 0
# (this can be done at any later step without negative effects)
2017-05-16 09:06:53 +00:00
# 4. rpm
# 5. python-setuptools with bootstrap set to 1
# 6. python-pip with build_wheel set to 0
# 7. python-wheel with %%bcond_without bootstrap
# 8. python-setuptools with bootstrap set to 0 and also with_check set to 0
# 9. python-pip with build_wheel set to 1
# 10. pyparsing
2017-08-17 07:41:37 +00:00
# 11. python3 with rewheel
2017-05-16 09:06:53 +00:00
#
2017-08-17 07:41:37 +00:00
# Then the most important packages have to be built, in dependency order.
# These were:
2017-05-16 09:06:53 +00:00
# python-sphinx, pytest, python-requests, cloud-init, dnf, anaconda, abrt
2017-08-17 07:41:37 +00:00
#
# After these have been built, a targeted rebuild should be done for the rest.
2014-05-30 09:52:51 +00:00
2014-04-15 07:52:32 +00:00
2017-08-16 13:36:04 +00:00
# =====================
# 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/
2012-07-20 20:34:09 +00:00
%global ABIFLAGS_optimized m
%global ABIFLAGS_debug dm
* 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
# foo/__pycache__/bar.cpython-%%{pyshortver}.opt-2.pyc
%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}
2011-07-08 16:54:16 +00:00
BuildRequires : gdbm-devel
2011-09-13 18:59:31 +00:00
%endif
2011-07-08 16:54:16 +00:00
BuildRequires : glibc-devel
BuildRequires : gmp-devel
2017-08-22 12:33:31 +00:00
BuildRequires : libappstream-glib
2011-07-08 16:54:16 +00:00
BuildRequires : libffi-devel
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
BuildRequires : sqlite-devel
2017-10-06 11:30:25 +00:00
BuildRequires : gdb
2011-07-08 16:54:16 +00:00
2017-09-01 09:28:31 +00:00
%if %{with systemtap}
2016-12-02 15:12:46 +00:00
BuildRequires : systemtap-devel
2017-09-01 09:28:31 +00:00
BuildRequires : systemtap-sdt-devel
2011-07-08 16:54:16 +00:00
%global tapsetdir /usr/share/systemtap/tapset
2017-09-01 09:28:31 +00:00
%endif
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
2017-08-16 13:36:04 +00:00
%if %{with rewheel}
2014-04-15 07:52:32 +00:00
BuildRequires : python3-setuptools
BuildRequires : python3-pip
%endif
2011-07-08 16:54:16 +00:00
# =======================
# Source code and patches
# =======================
2017-11-28 12:47:21 +00:00
Source : https://www.python.org/ftp/python/%{version} /Python-%{version} %{prerel} .tar.xz
2010-01-13 21:25:18 +00:00
2010-01-28 19:09:18 +00:00
# Supply an RPM macro "py_byte_compile" for the python3-devel subpackage
# to enable specfiles to selectively byte-compile individual files and paths
# with different Python runtimes as necessary:
2015-03-25 13:35:47 +00:00
Source3 : macros.pybytecompile%{pybasever}
2010-01-28 19:09:18 +00:00
2010-02-12 21:38:52 +00:00
# Systemtap tapset to make it easier to use the systemtap static probes
# (actually a template; LIBRARY_PATH will get fixed up during install)
# Written by dmalcolm; not yet sent upstream
Source5 : libpython.stp
# Example systemtap script using the tapset
# Written by wcohen, mjw, dmalcolm; not yet sent upstream
Source6 : systemtap-example.stp
2010-03-12 22:40:23 +00:00
# Another example systemtap script that uses the tapset
# Written by dmalcolm; not yet sent upstream
Source7 : pyfuntop.stp
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
# Written by bkabrda
Source8 : check-pyc-and-pyo-timestamps.py
2010-03-12 22:40:23 +00:00
2017-08-21 11:33:07 +00:00
# Backward compatible no-op macro for system-python
# Remove in Fedora 29
2016-02-16 17:22:04 +00:00
Source9 : macros.systempython
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
2012-05-04 19:24:50 +00:00
# 00055 #
2010-02-12 21:38:52 +00:00
# Systemtap support: add statically-defined probe points
2012-07-20 20:34:09 +00:00
# Patch sent upstream as http://bugs.python.org/issue14776
2012-08-14 01:11:12 +00:00
# with some subsequent reworking to cope with LANG=C in an rpmbuild
# (where sys.getfilesystemencoding() == 'ascii')
2011-09-12 21:39:27 +00:00
Patch55 : 00055-systemtap.patch
2010-02-12 21:38:52 +00:00
2017-08-28 12:52:51 +00:00
# 00102 #
# Change the various install paths to use /usr/lib64/ instead or /usr/lib
2011-09-12 21:39:27 +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
2012-05-04 19:24:50 +00:00
# 00132 #
2011-09-10 11:59:22 +00:00
# Add non-standard hooks to unittest for use in the "check" phase below, when
# running selftests within the build:
# @unittest._skipInRpmBuild(reason)
# for tests that hang or fail intermittently within the build environment, and:
# @unittest._expectedFailureInRpmBuild
# for tests that always fail within the build environment
#
# The hooks only take effect if WITHIN_PYTHON_RPM_BUILD is set in the
# environment, which we set manually in the appropriate portion of the "check"
# phase below (and which potentially other python-* rpms could set, to reuse
# these unittest hooks in their own "check" phases)
Patch132 : 00132-add-rpmbuild-hooks-to-unittest.patch
2012-05-04 19:24:50 +00:00
# 00155 #
2012-04-20 19:28:39 +00:00
# Avoid allocating thunks in ctypes unless absolutely necessary, to avoid
# generating SELinux denials on "import ctypes" and "import uuid" when
2017-08-28 13:04:48 +00:00
# embedding Python within httpd
# See https://bugzilla.redhat.com/show_bug.cgi?id=814391
2012-04-20 19:28:39 +00:00
Patch155 : 00155-avoid-ctypes-thunks.patch
2012-07-24 15:21:34 +00:00
# 00160 #
2012-07-23 18:05:53 +00:00
# Python 3.3 added os.SEEK_DATA and os.SEEK_HOLE, which may be present in the
# header files in the build chroot, but may not be supported in the running
# kernel, hence we disable this test in an rpm build.
# Adding these was upstream issue http://bugs.python.org/issue10142
# Not yet sent upstream
2012-07-24 15:21:34 +00:00
Patch160 : 00160-disable-test_fs_holes-in-rpm-build.patch
2012-07-23 18:05:53 +00:00
2012-07-24 19:59:17 +00:00
# 00163 #
# Some tests within test_socket fail intermittently when run inside Koji;
# disable them using unittest._skipInRpmBuild
# Not yet sent upstream
Patch163 : 00163-disable-parts-of-test_socket-in-rpm-build.patch
2016-03-24 15:53:25 +00:00
# 00170 #
# In debug builds, try to print repr() when a C-level assert fails in the
# garbage collector (typically indicating a reference-counting error
# somewhere else e.g in an extension module)
2017-08-28 13:36:10 +00:00
# The new macros/functions within gcmodule.c are hidden to avoid exposing
2016-03-24 15:53:25 +00:00
# them within the extension API.
2017-08-28 13:36:10 +00:00
# Sent upstream: http://bugs.python.org/issue9263
# See https://bugzilla.redhat.com/show_bug.cgi?id=614680
2014-12-16 12:41:03 +00:00
Patch170 : 00170-gc-assertions.patch
2013-03-04 21:30:51 +00:00
2013-04-10 12:30:09 +00:00
# 00178 #
# Don't duplicate various FLAGS in sysconfig values
# http://bugs.python.org/issue17679
# Does not affect python2 AFAICS (different sysconfig values initialization)
Patch178 : 00178-dont-duplicate-flags-in-sysconfig.patch
2013-03-14 15:18:03 +00:00
2014-04-15 07:52:32 +00:00
# 00189 #
# Add the rewheel module, allowing to recreate wheels from already installed
# ones
# https://github.com/bkabrda/rewheel
Patch189 : 00189-add-rewheel-module.patch
2013-07-26 17:13:47 +00:00
2016-07-08 16:47:00 +00:00
# 00205 #
2015-09-21 13:55:00 +00:00
# LIBPL variable in makefile takes LIBPL from configure.ac
# but the LIBPL variable defined there doesn't respect libdir macro
Patch205 : 00205-make-libpl-respect-lib64.patch
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
2017-06-26 14:32:56 +00:00
Patch251 : 00251-change-user-install-location.patch
2017-05-09 14:57:18 +00:00
# 00264 #
# test_pass_by_value was added in Python 3.6.1 and on aarch64
# it is catching an error that was there, but wasn't tested before.
# Therefore skipping the test on aarch64 until fixed upstream.
# Reported upstream: http://bugs.python.org/issue29804
Patch264 : 00264-skip-test-failing-on-aarch64.patch
2017-08-23 21:42:09 +00:00
# 00273 #
# Skip test_float_with_comma, which fails in Koji with UnicodeDecodeError
2017-08-28 13:04:48 +00:00
# See https://bugzilla.redhat.com/show_bug.cgi?id=1484497
2017-08-23 21:42:09 +00:00
Patch273 : 00273-skip-float-test.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
2017-10-09 11:10:17 +00:00
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
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
2017-11-30 08:54:54 +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}
2017-08-21 11:33:07 +00:00
# For backward compatibility only, remove in F29:
Provides : system-python(abi) = %{pybasever}
Provides : system-python = %{version} -%{release}
Provides : system-python%{?_isa} = %{version} -%{release}
Obsoletes : system-python < %{version} -%{release}
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,
2017-11-30 08:54:54 +00:00
# packages with 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
2017-11-15 15:05:21 +00:00
# Shall be removed in Fedora 31
2017-11-21 10:04:48 +00:00
# The release is bumped to 20, so we can do f27 platform-python updates
# If the release in f27 ever goes >= 20, raise it here
# If platform-python is ever reintroduced, make it higher version than this:
%global platpyver 3.6.2-20
2017-11-15 15:05:21 +00:00
Obsoletes : platform-python < %{platpyver}
2017-08-16 13:36:04 +00:00
%if %{with rewheel}
2014-05-27 15:33:00 +00:00
Requires : python3-setuptools
Requires : python3-pip
2014-05-12 07:51:48 +00:00
%endif
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
language, designed with an emphasis on code readibility.
It includes an extensive standard library, and has a vast ecosystem of
third-party libraries.
2017-05-09 09:43:22 +00:00
2017-09-05 09:54:13 +00:00
The ${name} package provides the " p y t h o n 3 " executable: the reference
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
%package libs
2017-05-09 09:43:22 +00:00
Summary : Python runtime libraries
2010-01-13 21:25:18 +00:00
2017-08-22 14:55:51 +00:00
# The "enum" module is included in the standard library.
# Provide an upgrade path from the external library.
2016-02-24 13:38:24 +00:00
Provides : python3-enum34 = 1.0.4-5%{?dist}
Obsoletes : python3-enum34 < 1.0.4-5%{?dist}
2012-04-20 19:24:24 +00:00
2017-08-22 14:55:51 +00:00
# Python 3 built with glibc >= 2.24.90-26 needs to require it
# See https://bugzilla.redhat.com/show_bug.cgi?id=1410644
2017-08-21 11:33:07 +00:00
Requires : glibc%{?_isa} >= 2.24.90-26
# For backward compatibility only, remove in F29:
Provides : system-python-libs = %{version} -%{release}
Provides : system-python-libs%{?_isa} = %{version} -%{release}
Obsoletes : system-python-libs < %{version} -%{release}
2017-11-15 15:05:21 +00:00
# Shall be removed in Fedora 31
Obsoletes : platform-python-libs < %{platpyver}
Obsoletes : platform-python-libs-devel < %{platpyver}
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
Requires : python-rpm-macros
Requires : python3-rpm-macros
2017-05-05 14:47:58 +00:00
Requires : python3-rpm-generators
2017-09-29 10:30:12 +00:00
# https://bugzilla.redhat.com/show_bug.cgi?id=1217376
# https://bugzilla.redhat.com/show_bug.cgi?id=1496757
# https://bugzilla.redhat.com/show_bug.cgi?id=1218294
# TODO change to a specific subpackage once available (#1218294)
Requires : redhat-rpm-config
2010-01-13 21:25:18 +00:00
Conflicts : %{name} < %{version} -%{release}
2017-11-15 15:05:21 +00:00
# Shall be removed in Fedora 31
Obsoletes : platform-python-devel < %{platpyver}
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.
It also contains the necessary macros to build RPM packages with Python modules.
2017-05-09 09:43:22 +00:00
2010-01-13 21:25:18 +00:00
%package tools
2017-08-16 13:36:09 +00:00
Summary : A collection of tools included with Python including 2to3 and idle
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 : %{name} -2to3 = %{version} -%{release}
Provides : %{name} -idle = %{version} -%{release}
Provides : 2to3 = %{version} -%{release}
Provides : idle3 = %{version} -%{release}
2017-08-31 21:01:10 +00:00
# https://bugzilla.redhat.com/show_bug.cgi?id=1111275
# /usr/bin/2to3 was moved from here
# TODO Remove in Fedora 29
Conflicts : python2-tools < 2.7.13-17
Conflicts : python-tools < 2.7.13-17
2017-11-15 15:05:21 +00:00
# Shall be removed in Fedora 31
Obsoletes : platform-python-tools < %{platpyver}
2010-01-13 21:25:18 +00:00
%description tools
2017-08-21 11:46:14 +00:00
This package contains several tools included with Python, including:
- 2to3, an automatic source converter from Python 2.X
- idle, a basic graphical development environment
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}
2017-11-15 15:05:21 +00:00
# Shall be removed in Fedora 31
Obsoletes : platform-python-tkinter < %{platpyver}
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}
Requires : %{name} -tools = %{version} -%{release}
2017-11-15 15:05:21 +00:00
# Shall be removed in Fedora 31
Obsoletes : platform-python-test < %{platpyver}
2017-08-21 11:46:14 +00:00
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
${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
# shares the same .py/.pyc files and directories as the regular build. Hence
# 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}
Requires : %{name} -tools%{?_isa} = %{version} -%{release}
%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 bytecode format is unchanged, so that .pyc files are compatible between
this and the standard version of Python, but the debugging features mean that
C/C++ extension modules are ABI-incompatible and must be built for each version
separately.
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
runtime, so that .py and .pyc files can be shared.
Compiled extension modules use a special ABI flag (" d " ) in the filename,
so extensions for both verisons can co-exist in the same directory.
2017-08-16 13:36:04 +00:00
%endif # with debug_build
2010-05-24 23:45:40 +00:00
2017-11-30 08:54:54 +00:00
%else # with flatpackage
Requires : redhat-rpm-config
# 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\\..$
# We keep those inside on purpose
Provides : bundled(python3-pip) = 9.0.1
Provides : bundled(python3-setuptools) = 28.8.0
# The descripton for the flat flatpackage package
%description
This package exists to allow developers to test their code against an newer
version of Python. This is not a full Python stack and if you wish to run
your applications with Python %{pybasever} , update your Fedora to a newer
version once Python %{pybasever} is stable.
%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
Update to Python 3.4 alpha 4.
- Refreshed patches: 55 (systemtap), 102 (lib64), 111 (no static lib),
114 (statvfs flags), 132 (unittest rpmbuild hooks), 134 (fix COUNT_ALLOCS in
test_sys), 143 (tsc on ppc64), 146 (hashlib fips), 153 (test gdb noise),
157 (UID+GID overflows), 173 (ENOPROTOOPT in bind_port), 186 (dont raise
from py_compile)
- Removed patches: 129 (test_subprocess nonreadable dir - no longer fails in
Koji), 142 (the mock issue that caused this is fixed)
- Added patch 187 (remove thread atfork) - will be in next version
- Refreshed script for checking pyc and pyo timestamps with new ignored files.
- The fips patch is disabled for now until upstream makes a final decision
what to do with sha3 implementation for 3.4.0.
2013-11-05 11:39:14 +00:00
%setup -q -n Python-%{version} %{?prerel}
2010-01-16 01:20:39 +00:00
2017-08-16 13:36:04 +00:00
%if %{with systemtap}
2010-02-12 21:38:52 +00:00
# Provide an example of usage of the tapset:
cp -a %{SOURCE6} .
2010-03-12 22:40:23 +00:00
cp -a %{SOURCE7} .
2017-08-16 13:36:04 +00:00
%endif # with systemtap
2010-02-12 21:38:52 +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
2017-08-16 13:36:04 +00:00
%if %{with rewheel}
2016-12-05 12:46:29 +00:00
%global pip_version 9.0.1
2015-06-19 09:58:26 +00:00
sed -r -i s/'_PIP_VERSION = "[0-9.]+"' /'_PIP_VERSION = "%{pip_version}"' / Lib/ensurepip/__init__.py
%endif
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
2017-08-16 13:36:04 +00:00
%if %{with systemtap}
2011-09-12 21:39:27 +00:00
%patch55 -p1 -b .systemtap
2010-02-12 21:38:52 +00:00
%endif
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
%patch132 -p1
2012-04-20 19:28:39 +00:00
%patch155 -p1
2012-07-24 15:21:34 +00:00
%patch160 -p1
2012-07-24 19:59:17 +00:00
%patch163 -p1
2016-09-29 14:17:06 +00:00
%patch170 -p1
2013-04-10 12:30:09 +00:00
%patch178 -p1
2011-09-10 11:59:22 +00:00
2017-08-16 13:36:04 +00:00
%if %{with rewheel}
2014-04-15 07:52:32 +00:00
%patch189 -p1
%endif
2015-09-21 13:55:00 +00:00
%patch205 -p1
2017-06-26 14:32:56 +00:00
%patch251 -p1
2011-09-10 11:59:22 +00:00
2017-03-14 16:52:25 +00:00
%ifarch aarch64
%patch264 -p1
%endif
2017-08-23 21:42:09 +00:00
%patch273 -p1
2017-08-28 15:16:46 +00:00
%patch274 -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
2010-06-04 19:56:30 +00:00
export CFLAGS=" $RPM_OPT_FLAGS - D _ G N U _ S O U R C E - f P I C - f w r a p v "
export CXXFLAGS=" $RPM_OPT_FLAGS - 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 ) "
2010-06-04 19:56:30 +00:00
export OPT=" $RPM_OPT_FLAGS - 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 ) "
2017-09-06 12:29:47 +00:00
export LDFLAGS=" $RPM_LD_FLAGS - 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 \
2017-08-16 13:36:04 +00:00
%if %{with systemtap}
2012-07-20 20:34:09 +00:00
--with-systemtap \
2010-02-12 21:38:52 +00:00
%endif
2017-08-16 13:36:04 +00:00
%if %{with valgrind}
2011-01-04 15:53:01 +00:00
--with-valgrind \
%endif
2010-05-24 23:45:40 +00:00
$ExtraConfigArgs \
%{nil}
2010-02-12 21:38:52 +00:00
2017-08-31 13:27:20 +00:00
# Invoke the build
2015-03-25 13:35:47 +00:00
make EXTRA_CFLAGS=" $ C F L A G S $ M o r e C F l a g s " %{?_smp_mflags}
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 " \
" - O 0 "
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}
DirHoldingGdbPy=%{_prefix} /lib/debug/%{_libdir}
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
2017-09-01 12:17:21 +00:00
Postfix=$5
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
#include "%{_pyconfig32_h}"
#elif __WORDSIZE == 64
#include "%{_pyconfig64_h}"
#else
#error "Unknown word size"
#endif
EOF
2017-09-01 12:17:21 +00:00
# Systemtap hooks
%if %{with systemtap}
mkdir -p %{buildroot} %{tapsetdir}
sed \
-e " s | L I B R A R Y _ P A T H | %{_libdir} / $ { P y I n s t S o N a m e } | " \
-e 's|"python3"|"python3${Postfix}"|' \
%{_sourcedir} /libpython.stp \
> %{buildroot} %{tapsetdir} /libpython%{pybasever} ${Postfix}-%{wordsize} .stp
%endif # with systemtap
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 \
2017-09-01 12:17:21 +00:00
%{LDVERSION_debug} \
-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
" " \
2017-09-01 12:17:21 +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
2017-11-30 08:54:54 +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
2017-09-01 09:14:37 +00:00
mkdir -p %{buildroot} %{_datadir} /appdata
cp -a %{SOURCE11} %{buildroot} %{_datadir} /appdata
appstream-util validate-relax --nonet %{buildroot} %{_datadir} /appdata/idle3.appdata.xml
2017-11-30 08:54:54 +00:00
%endif
2017-02-28 13:33:44 +00:00
2010-01-13 21:25:18 +00:00
# Development tools
2017-09-01 09:14:37 +00:00
install -m755 -d %{buildroot} %{pylibdir} /Tools
install Tools/README %{buildroot} %{pylibdir} /Tools/
cp -ar Tools/freeze %{buildroot} %{pylibdir} /Tools/
cp -ar Tools/i18n %{buildroot} %{pylibdir} /Tools/
cp -ar Tools/pynche %{buildroot} %{pylibdir} /Tools/
cp -ar Tools/scripts %{buildroot} %{pylibdir} /Tools/
2010-01-13 21:25:18 +00:00
# Documentation tools
2010-03-12 22:40:23 +00:00
install -m755 -d %{buildroot} %{pylibdir} /Doc
cp -ar Doc/tools %{buildroot} %{pylibdir} /Doc/
2010-01-13 21:25:18 +00:00
# Demo scripts
2011-01-17 21:25:14 +00:00
cp -ar Tools/demo %{buildroot} %{pylibdir} /Tools/
2010-01-13 21:25:18 +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
# 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 \
-i " %{_bindir} / p y t h o n %{pybasever} " \
2017-09-14 08:26:07 +00:00
%{buildroot} %{buildroot} %{pylibdir} /Tools/scripts/*-*.py \
%{buildroot} %{pylibdir} /Tools/pynche/{pynche,pynche.pyw}
2017-09-01 15:42:46 +00:00
# not covered, also redundant and useless:
2017-09-14 08:26:07 +00:00
rm %{buildroot} %{pylibdir} /Tools/scripts/{2to3,idle3,pydoc3,pyvenv}
2017-09-01 15:42:46 +00:00
2010-01-13 21:25:18 +00:00
2017-09-19 10:03:41 +00:00
# Move pathfix.py to bindir
# See https://github.com/fedora-python/python-rpm-porting/issues/24
mv %{buildroot} %{pylibdir} /Tools/scripts/pathfix.py %{buildroot} %{_bindir} /
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 {} \; \) \)
# Remove executable flag from files that shouldn't have it:
chmod a-x \
2011-01-17 21:25:14 +00:00
%{buildroot} %{pylibdir} /Tools/README
2010-01-13 21:25:18 +00:00
# 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 {} \;
2017-09-01 11:35:53 +00:00
# Get rid of a stray copy of the license:
rm %{buildroot} %{pylibdir} /LICENSE.txt
2010-01-13 21:25:18 +00:00
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-08-22 19:38:24 +00:00
# Install macros for rpm:
2014-02-04 12:35:09 +00:00
mkdir -p %{buildroot} /%{_rpmconfigdir} /macros.d/
install -m 644 %{SOURCE3} %{buildroot} /%{_rpmconfigdir} /macros.d/
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2016-02-16 17:22:04 +00:00
install -m 644 %{SOURCE9} %{buildroot} /%{_rpmconfigdir} /macros.d/
2017-11-30 08:54:54 +00:00
%endif
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
2017-11-30 08:54:54 +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
2017-08-21 11:33:07 +00:00
# System Python: Link the executable to libexec
# This is for backwards compatibility only and should be removed in Fedora 29
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2016-02-16 17:22:04 +00:00
mkdir -p %{buildroot} %{_libexecdir}
2017-08-21 11:33:07 +00:00
ln -s %{_bindir} /python%{pybasever} %{buildroot} %{_libexecdir} /system-python
2017-11-30 08:54:54 +00:00
%endif
2016-02-16 17:22:04 +00:00
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 15:47:53 +00:00
# There's no point of having this, as decided in
# https://bugzilla.redhat.com/show_bug.cgi?id=1111275
rm %{buildroot} %{_bindir} /2to3-%{pybasever}
2017-11-30 08:54:54 +00:00
%if %{with flatpackage}
# Remove stuff that would conflict with python3 package
mv %{buildroot} %{_bindir} /python{3,%{pyshortver} }
rm %{buildroot} %{_bindir} /pydoc3
rm %{buildroot} %{_bindir} /pathfix.py
rm %{buildroot} %{_bindir} /idle3
rm %{buildroot} %{_bindir} /python3-*
rm %{buildroot} %{_bindir} /pyvenv
rm %{buildroot} %{_bindir} /2to3
rm %{buildroot} %{_libdir} /libpython3.so
rm %{buildroot} %{_mandir} /man1/python3.1*
rm %{buildroot} %{_libdir} /pkgconfig/python3.pc
%endif
2017-09-01 11:43:34 +00:00
# ======================================================
# Running the upstream test suite
# ======================================================
2017-08-28 13:04:48 +00:00
# For ppc64 we need a larger stack than default
# See https://bugzilla.redhat.com/show_bug.cgi?id=1292462
2015-12-21 14:55:55 +00:00
%ifarch %{power64}
ulimit -a
ulimit -s 16384
%endif
2013-10-30 09:50:01 +00:00
2017-09-01 11:43:34 +00:00
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
2011-09-10 11:59:22 +00:00
# Run the upstream test suite, setting "WITHIN_PYTHON_RPM_BUILD" so that the
# our non-standard decorators take effect on the relevant tests:
# @unittest._skipInRpmBuild(reason)
# @unittest._expectedFailureInRpmBuild
2014-05-28 07:27:08 +00:00
# test_faulthandler.test_register_chain currently fails on ppc64le and
# aarch64, see upstream bug http://bugs.python.org/issue21131
2011-09-10 11:59:22 +00:00
WITHIN_PYTHON_RPM_BUILD= \
2011-08-31 19:08:01 +00:00
LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \
2017-07-20 15:50:38 +00:00
-wW --slowest --findleaks \
2015-03-25 13:35:47 +00:00
-x test_distutils \
2017-08-28 13:09:16 +00:00
-x test_bdist_rpm \
2014-05-28 07:27:08 +00:00
%ifarch ppc64le aarch64
2016-11-02 16:16:07 +00:00
-x test_faulthandler \
2014-09-07 10:29:29 +00:00
%endif
2016-08-01 18:24:18 +00:00
%ifarch %{mips64}
2016-11-02 16:16:07 +00:00
-x test_ctypes \
2016-08-01 18:24:18 +00:00
%endif
%ifarch %{power64} s390 s390x armv7hl aarch64 %{mips}
2016-11-02 16:16:07 +00:00
-x test_gdb
2014-05-18 21:39:35 +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
2011-07-08 16:54:16 +00:00
# ======================================================
# Scriptlets
# ======================================================
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2010-01-13 21:25:18 +00:00
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
2017-11-30 08:54:54 +00:00
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir} /icons/hicolor &>/dev/null || :
%endif
2017-02-28 13:33:44 +00:00
%post
2017-11-30 08:54:54 +00:00
%if %{with flatpackage}
/sbin/ldconfig
%else
2017-02-28 13:33:44 +00:00
/bin/touch --no-create %{_datadir} /icons/hicolor &>/dev/null || :
2017-11-30 08:54:54 +00:00
%endif
2017-02-28 13:33:44 +00:00
%postun
2017-11-30 08:54:54 +00:00
%if %{with flatpackage}
/sbin/ldconfig
%else
2017-02-28 13:33:44 +00:00
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir} /icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datadir} /icons/hicolor &>/dev/null || :
fi
2017-11-30 08:54:54 +00:00
%endif
2011-07-08 16:54:16 +00:00
2010-01-28 19:09:18 +00:00
%files
2010-01-13 21:25:18 +00:00
%defattr (-, root, root)
2017-02-02 01:52:15 +00:00
%license LICENSE
2017-03-14 16:52:25 +00:00
%doc README.rst
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2010-01-13 21:25:18 +00:00
%{_bindir} /pydoc*
%{_bindir} /python3
2017-11-30 08:54:54 +00:00
%{_bindir} /pyvenv
# Remove in Fedora 29:
%{_libexecdir} /system-python
%else
%{_bindir} /pydoc%{pybasever}
%{_bindir} /python%{pyshortver}
%endif
2010-01-13 21:25:18 +00:00
%{_bindir} /python%{pybasever}
2012-07-20 20:34:09 +00:00
%{_bindir} /python%{pybasever} m
2013-11-08 07:09:40 +00:00
%{_bindir} /pyvenv-%{pybasever}
2010-01-13 21:25:18 +00:00
%{_mandir} /*/*
2010-09-09 18:52:31 +00:00
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2010-09-09 18:52:31 +00:00
%files libs
%defattr (-,root,root,-)
2017-02-02 01:52:15 +00:00
%license LICENSE
2017-03-14 16:52:25 +00:00
%doc README.rst
2017-11-30 08:54:54 +00:00
%endif
2016-02-16 17:22:04 +00:00
2017-08-21 11:33:07 +00:00
%dir %{pylibdir}
%dir %{dynload_dir}
2016-02-16 17:22:04 +00:00
%{pylibdir} /lib2to3
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2016-02-16 17:22:04 +00:00
%exclude %{pylibdir} /lib2to3/tests
2017-11-30 08:54:54 +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}
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2016-02-16 17:22:04 +00:00
%exclude %{pylibdir} /ensurepip/_bundled
2017-11-30 08:54:54 +00:00
%else
%dir %{pylibdir} /ensurepip/_bundled
%{pylibdir} /ensurepip/_bundled/*.whl
%endif
2016-02-16 17:22:04 +00:00
2017-08-16 13:36:04 +00:00
%if %{with rewheel}
2016-02-16 17:22:04 +00:00
%dir %{pylibdir} /ensurepip/rewheel/
%dir %{pylibdir} /ensurepip/rewheel/__pycache__/
%{pylibdir} /ensurepip/rewheel/*.py
%{pylibdir} /ensurepip/rewheel/__pycache__/*%{bytecode_suffixes}
%endif
%{pylibdir} /idlelib
%dir %{pylibdir} /test/
%dir %{pylibdir} /test/__pycache__/
%dir %{pylibdir} /test/support/
%dir %{pylibdir} /test/support/__pycache__/
%{pylibdir} /test/__init__.py
%{pylibdir} /test/__pycache__/__init__%{bytecode_suffixes}
%{pylibdir} /test/support/__init__.py
%{pylibdir} /test/support/__pycache__/__init__%{bytecode_suffixes}
%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
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
%{dynload_dir} /_random.%{SOABI_optimized} .so
%{dynload_dir} /_socket.%{SOABI_optimized} .so
%{dynload_dir} /_sqlite3.%{SOABI_optimized} .so
%{dynload_dir} /_ssl.%{SOABI_optimized} .so
%{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
%{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
2015-09-16 06:36:17 +00:00
#%{dynload_dir}/time.%{SOABI_optimized}.so
%{dynload_dir} /_testmultiphase.%{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} /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
%{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
2017-04-18 11:51:54 +00:00
%exclude %{pylibdir} /distutils/command/wininst-*.exe
2016-03-04 13:30:32 +00:00
* 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
2017-11-30 08:54:54 +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}
2017-11-30 08:54:54 +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}
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2011-01-17 21:25:14 +00:00
%{_libdir} /libpython3.so
2017-11-30 08:54:54 +00:00
%endif
2017-08-16 13:36:04 +00:00
%if %{with systemtap}
2015-02-17 19:45:32 +00:00
%dir %(dirname %{tapsetdir} )
%dir %{tapsetdir}
2010-05-24 23:45:40 +00:00
%{tapsetdir} /%{libpython_stp_optimized}
2010-03-12 22:40:23 +00:00
%doc systemtap-example.stp pyfuntop.stp
2010-02-12 21:38:52 +00:00
%endif
2010-01-13 21:25:18 +00:00
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2010-01-13 21:25:18 +00:00
%files devel
%defattr (-,root,root)
2017-11-30 08:54:54 +00:00
%endif
2017-04-05 16:08:56 +00:00
%{pylibdir} /config-%{LDVERSION_optimized} -%{_arch}-linux%{_gnu}/*
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2017-04-05 16:08:56 +00:00
%exclude %{pylibdir} /config-%{LDVERSION_optimized} -%{_arch}-linux%{_gnu}/Makefile
2017-11-30 08:54:54 +00:00
%exclude %{_includedir} /python%{LDVERSION_optimized} /%{_pyconfig_h}
%endif
2017-04-18 11:51:54 +00:00
%{pylibdir} /distutils/command/wininst-*.exe
* 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
2010-01-13 21:25:18 +00:00
%doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2010-01-13 21:25:18 +00:00
%{_bindir} /python3-config
2017-11-30 08:54:54 +00:00
%{_libdir} /pkgconfig/python3.pc
%{_rpmconfigdir} /macros.d/macros.systempython
%{_bindir} /pathfix.py
%endif
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
2010-05-24 23:45:40 +00:00
%{_libdir} /pkgconfig/python-%{pybasever} .pc
2015-03-25 13:35:47 +00:00
%{_rpmconfigdir} /macros.d/macros.pybytecompile%{pybasever}
2010-01-13 21:25:18 +00:00
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2010-01-13 21:25:18 +00:00
%files tools
%defattr (-,root,root,755)
2017-11-30 08:54:54 +00:00
2017-08-16 13:36:09 +00:00
%{_bindir} /2to3
2017-11-30 08:54:54 +00:00
%{_bindir} /idle*
%else
%{_bindir} /idle%{pybasever}
%endif
2010-01-13 21:25:18 +00:00
%{pylibdir} /Tools
%doc %{pylibdir} /Doc
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2017-02-28 13:33:44 +00:00
%{_datadir} /appdata/idle3.appdata.xml
%{_datadir} /applications/idle3.desktop
%{_datadir} /icons/hicolor/*/apps/idle3.*
2017-11-30 08:54:54 +00:00
%endif
2010-01-13 21:25:18 +00:00
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2010-01-13 21:25:18 +00:00
%files tkinter
%defattr (-,root,root,755)
2017-11-30 08:54:54 +00:00
%endif
2010-01-13 21:25:18 +00:00
%{pylibdir} /tkinter
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2010-01-13 21:25:18 +00:00
%exclude %{pylibdir} /tkinter/test
2017-11-30 08:54:54 +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
%if %{without flatpackage}
2010-01-13 21:25:18 +00:00
%files test
%defattr (-, root, root)
2017-11-30 08:54:54 +00:00
%endif
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
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}
2017-11-30 08:54:54 +00:00
%if %{without flatpackage}
2010-05-24 23:45:40 +00:00
%files debug
%defattr (-,root,root,-)
2017-11-30 08:54:54 +00:00
%{_bindir} /python3-debug
%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
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
%{dynload_dir} /_random.%{SOABI_debug} .so
%{dynload_dir} /_socket.%{SOABI_debug} .so
%{dynload_dir} /_sqlite3.%{SOABI_debug} .so
%{dynload_dir} /_ssl.%{SOABI_debug} .so
%{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
%{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
2015-09-16 06:36:17 +00:00
#%{dynload_dir}/time.%{SOABI_debug}.so
%{dynload_dir} /_testmultiphase.%{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} /unicodedata.%{SOABI_debug} .so
2017-11-28 12:47:21 +00:00
%{dynload_dir} /_uuid.%{SOABI_debug} .so
%{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}
2017-08-16 13:36:04 +00:00
%if %{with systemtap}
2015-02-17 19:45:32 +00:00
%dir %(dirname %{tapsetdir} )
%dir %{tapsetdir}
2010-05-24 23:45:40 +00:00
%{tapsetdir} /%{libpython_stp_debug}
%endif
# 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
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
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
#
2010-02-09 03:51:42 +00:00
# The /usr/lib/rpm/redhat/macros defines %__debug_package to use
# 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
2017-11-28 12:47:21 +00:00
* Tue Nov 28 2017 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-0.1.a2
- Update to 3.7.0 alpha 2
- Removed merged patches 262, 277, 279