churchyard / rpms / python3

Forked from rpms/python3 2 years ago
Clone
043c57
# ==================
043c57
# Top-level metadata
043c57
# ==================
043c57
1fb3c0
%global pybasever 3.8
c769a6
043c57
# pybasever without the dot:
1fb3c0
%global pyshortver 38
043c57
8c67ba
Name: python3
8c67ba
Summary: Interpreter of the Python programming language
8c67ba
URL: https://www.python.org/
8c67ba
b7855d
#  WARNING  When rebasing to a new Python version,
b7855d
#           remember to update the python3-docs package as well
1fb3c0
%global general_version %{pybasever}.0
29530b
%global prerel b3
45a436
%global upstream_version %{general_version}%{?prerel}
45a436
Version: %{general_version}%{?prerel:~%{prerel}}
29530b
Release: 1%{?dist}
043c57
License: Python
043c57
043c57
043c57
# ==================================
043c57
# Conditionals controlling the build
043c57
# ==================================
043c57
043c57
# Note that the bcond macros are named for the CLI option they create.
043c57
# "%%bcond_without" means "ENABLE by default and create a --without option"
043c57
63459d
8c67ba
# Flat package, i.e. python36, python37, python38 for tox etc.
8c67ba
# warning: changes some other defaults
8c67ba
# in Fedora, never turn this on for the python3 package
63459d
# and always keep it on for python37 etc.
8c67ba
# WARNING: This does not change the package name and summary above
8c67ba
%bcond_with flatpackage
8c67ba
ad7d85
# When bootstrapping python3, we need to build setuptools.
ad7d85
# but setuptools BR python3-devel and that brings in python3-rpm-generators;
ad7d85
# python3-rpm-generators needs python3-setuptools, so we cannot have it yet.
ad7d85
#
ad7d85
# Procedure: https://fedoraproject.org/wiki/SIGs/Python/UpgradingPython
ad7d85
#
ad7d85
#   IMPORTANT: When bootstrapping, it's very likely the wheels for pip and
ad7d85
#   setuptools are not available. Turn off the rpmwheels bcond until
ad7d85
#   the two packages are built with wheels to get around the issue.
ad7d85
%bcond_with bootstrap
ad7d85
0b241a
# Whether to use RPM build wheels from the python-{pip,setuptools}-wheel package
0b241a
# Uses upstream bundled prebuilt wheels otherwise
0b241a
%bcond_without rpmwheels
8c67ba
f63e27
# Expensive optimizations (mainly, profile-guided optimizations)
a7a170
%ifarch %{ix86} x86_64
3ba1d1
%bcond_without optimizations
a7a170
%else
f63e27
# On some architectures, the optimized build takes tens of hours, possibly
f63e27
# longer than Koji's 24-hour timeout. Disable optimizations here.
a7a170
%bcond_with optimizations
a7a170
%endif
a7a170
f63e27
# Run the test suite in %%check
3ba1d1
%bcond_without tests
f63e27
f63e27
# Extra build for debugging the interpreter or C-API extensions
f63e27
# (the -debug subpackages)
8c67ba
%if %{with flatpackage}
8c67ba
%bcond_with debug_build
8c67ba
%else
043c57
%bcond_without debug_build
8c67ba
%endif
f63e27
f63e27
# Support for the GDB debugger
043c57
%bcond_without gdb_hooks
f63e27
f63e27
# The dbm.gnu module (key-value database)
043c57
%bcond_without gdbm
f63e27
f63e27
# Main interpreter loop optimization
043c57
%bcond_without computed_gotos
043c57
f63e27
# Support for the Valgrind debugger/profiler
a64e7f
%ifarch %{valgrind_arches}
043c57
%bcond_without valgrind
043c57
%else
043c57
%bcond_with valgrind
043c57
%endif
043c57
043c57
043c57
# =====================
043c57
# General global macros
043c57
# =====================
5080ff
a3483f
%global pylibdir %{_libdir}/python%{pybasever}
4aab45
%global dynload_dir %{pylibdir}/lib-dynload
a3483f
0c74e1
# ABIFLAGS, LDVERSION and SOABI are in the upstream configure.ac
0c74e1
# See PEP 3149 for some background: http://www.python.org/dev/peps/pep-3149/
285f55
%global ABIFLAGS_optimized %{nil}
285f55
%global ABIFLAGS_debug     d
5080ff
5080ff
%global LDVERSION_optimized %{pybasever}%{ABIFLAGS_optimized}
5080ff
%global LDVERSION_debug     %{pybasever}%{ABIFLAGS_debug}
5080ff
Robert Kuska 08f373
%global SOABI_optimized cpython-%{pyshortver}%{ABIFLAGS_optimized}-%{_arch}-linux%{_gnu}
Robert Kuska 08f373
%global SOABI_debug     cpython-%{pyshortver}%{ABIFLAGS_debug}-%{_arch}-linux%{_gnu}
5080ff
0c74e1
# All bytecode files are in a __pycache__ subdirectory, with a name
0c74e1
# reflecting the version of the bytecode.
0c74e1
# See PEP 3147: http://www.python.org/dev/peps/pep-3147/
7eb10c
# For example,
7eb10c
#   foo/bar.py
0c74e1
# has bytecode at:
043c57
#   foo/__pycache__/bar.cpython-%%{pyshortver}.pyc
043c57
#   foo/__pycache__/bar.cpython-%%{pyshortver}.opt-1.pyc
3bbc2a
#   foo/__pycache__/bar.cpython-%%{pyshortver}.opt-2.pyc
043c57
%global bytecode_suffixes .cpython-%{pyshortver}*.pyc
7eb10c
d5a5bf
# Python's configure script defines SOVERSION, and this is used in the Makefile
d5a5bf
# to determine INSTSONAME, the name of the libpython DSO:
d5a5bf
#   LDLIBRARY='libpython$(VERSION).so'
d5a5bf
#   INSTSONAME="$LDLIBRARY".$SOVERSION
d5a5bf
# We mirror this here in order to make it easier to add the -gdb.py hooks.
d5a5bf
# (if these get out of sync, the payload of the libs subpackage will fail
d5a5bf
# and halt the build)
d5a5bf
%global py_SOVERSION 1.0
5080ff
%global py_INSTSONAME_optimized libpython%{LDVERSION_optimized}.so.%{py_SOVERSION}
5080ff
%global py_INSTSONAME_debug     libpython%{LDVERSION_debug}.so.%{py_SOVERSION}
d5a5bf
1824b3
# Disable automatic bytecompilation. The python3 binary is not yet be
1824b3
# available in /usr/bin when Python is built. Also, the bytecompilation fails
1824b3
# on files that test invalid syntax.
1824b3
%undefine py_auto_byte_compile
7eb10c
64593a
# For multilib support, files that are different between 32- and 64-bit arches
64593a
# need different filenames. Use "64" or "32" according to the word size.
4ced9a
# Currently, the best way to determine an architecture's word size happens to
4ced9a
# be checking %%{_lib}.
4ced9a
%if "%{_lib}" == "lib64"
64593a
%global wordsize 64
64593a
%else
64593a
%global wordsize 32
64593a
%endif
64593a
64593a
c769a6
# =======================
c769a6
# Build-time requirements
c769a6
# =======================
c769a6
c769a6
# (keep this list alphabetized)
c769a6
c769a6
BuildRequires: autoconf
81ac8c
BuildRequires: bluez-libs-devel
c769a6
BuildRequires: bzip2
c769a6
BuildRequires: bzip2-devel
66c621
BuildRequires: desktop-file-utils
33e110
BuildRequires: expat-devel
5974f1
c769a6
BuildRequires: findutils
c769a6
BuildRequires: gcc-c++
043c57
%if %{with gdbm}
75005c
BuildRequires: gdbm-devel
5fe31d
%endif
7be8ee
BuildRequires: glibc-all-langpacks
c769a6
BuildRequires: glibc-devel
c769a6
BuildRequires: gmp-devel
66c621
BuildRequires: libappstream-glib
c769a6
BuildRequires: libffi-devel
6ff303
BuildRequires: libnsl2-devel
6ff303
BuildRequires: libtirpc-devel
c769a6
BuildRequires: libGL-devel
d668c1
BuildRequires: libuuid-devel
c769a6
BuildRequires: libX11-devel
c769a6
BuildRequires: ncurses-devel
66c621
c769a6
BuildRequires: openssl-devel
c769a6
BuildRequires: pkgconfig
c769a6
BuildRequires: readline-devel
8927d3
BuildRequires: redhat-rpm-config >= 127
c769a6
BuildRequires: sqlite-devel
47069f
BuildRequires: gdb
c769a6
c769a6
BuildRequires: tar
c769a6
BuildRequires: tcl-devel
c769a6
BuildRequires: tix-devel
c769a6
BuildRequires: tk-devel
c769a6
043c57
%if %{with valgrind}
c769a6
BuildRequires: valgrind-devel
c769a6
%endif
c769a6
f2b86e
BuildRequires: xz-devel
c769a6
BuildRequires: zlib-devel
c769a6
51501f
BuildRequires: /usr/bin/dtrace
51501f
5f24f3
# workaround http://bugs.python.org/issue19804 (test_uuid requires ifconfig)
5f24f3
BuildRequires: /usr/sbin/ifconfig
5f24f3
f7475d
# For %%python_provide
f7475d
BuildRequires: python-rpm-macros
f7475d
0b241a
%if %{with rpmwheels}
0b241a
BuildRequires: python-setuptools-wheel
0b241a
BuildRequires: python-pip-wheel
Matej Stuchlik 11fb59
%endif
Matej Stuchlik 11fb59
7e0c12
%if %{without bootstrap}
17d397
# for make regen-all and distutils.tests.test_bdist_rpm
17d397
BuildRequires: python%{pyshortver}
7e0c12
%endif
c769a6
c769a6
# =======================
c769a6
# Source code and patches
c769a6
# =======================
c769a6
45a436
Source: https://www.python.org/ftp/python/%{general_version}/Python-%{upstream_version}.tar.xz
4aab45
3dbbc1
# A simple script to check timestamps of bytecode files
3dbbc1
# Run in check section with Python that is currently being built
37056b
# Originally written by bkabrda
37056b
Source8: check-pyc-timestamps.py
71040c
860f39
# Desktop menu entry for idle3
860f39
Source10: idle3.desktop
860f39
860f39
# AppData file for idle3
860f39
Source11: idle3.appdata.xml
860f39
d27ccf
# 00001 #
a3483f
# Fixup distutils/unixccompiler.py to remove standard library path from rpath:
a3483f
# Was Patch0 in ivazquez' python3000 specfile:
d27ccf
Patch1:         00001-rpath.patch
a3483f
2c6abc
# 00102 #
2c6abc
# Change the various install paths to use /usr/lib64/ instead or /usr/lib
15a050
# Only used when "%%{_lib}" == "lib64"
2c6abc
# Not yet sent upstream.
2c6abc
Patch102: 00102-lib64.patch
c923b5
6b3496
# 00111 #
c923b5
# Patch the Makefile.pre.in so that the generated Makefile doesn't try to build
c4a573
# a libpythonMAJOR.MINOR.a
c4a573
# See https://bugzilla.redhat.com/show_bug.cgi?id=556092
bbb508
# Downstream only: not appropriate for upstream
c923b5
Patch111: 00111-no-static-lib.patch
c923b5
Matej Stuchlik 11fb59
# 00189 #
0b241a
# Instead of bundled wheels, use our RPM packaged wheels from
0b241a
# /usr/share/python-wheels
0b241a
Patch189: 00189-use-rpm-wheels.patch
486eb4
332b94
# 00251
332b94
# Set values of prefix and exec_prefix in distutils install command
332b94
# to /usr/local if executable is /usr/bin/python* and RPM build
332b94
# is not detected to make pip and distutils install into separate location
46034c
# Fedora Change: https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe
332b94
Patch251: 00251-change-user-install-location.patch
332b94
9423d3
# 00274 #
9423d3
# Upstream uses Debian-style architecture naming. Change to match Fedora.
9423d3
Patch274: 00274-fix-arch-names.patch
9423d3
ec995d
# 00328 #
ec995d
# Restore pyc to TIMESTAMP invalidation mode as default in rpmbubild
ec995d
# See https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/57#comment-27426
ec995d
Patch328: 00328-pyc-timestamp-invalidation-mode.patch
ec995d
99ac2f
# (New patches go here ^^^)
99ac2f
#
77a5f9
# When adding new patches to "python" and "python3" in Fedora, EL, etc.,
77a5f9
# please try to keep the patch numbers in-sync between all specfiles.
99ac2f
#
77a5f9
# More information, and a patch number catalog, is at:
99ac2f
#
77a5f9
#     https://fedoraproject.org/wiki/SIGs/Python/PythonPatches
285f55
#
285f55
# The patches are stored and rebased at:
285f55
#
285f55
#     https://github.com/fedora-python/cpython
77a5f9
c96960
094ccc
# ==========================================
094ccc
# Descriptions, and metadata for subpackages
094ccc
# ==========================================
a3483f
75005c
# People might want to dnf install pythonX.Y instead of pythonXY;
75005c
# we enable this in both flat and nonflat package.
75005c
Provides: python%{pybasever} = %{version}-%{release}
75005c
8c67ba
%if %{without flatpackage}
8c67ba
094ccc
# Packages with Python modules in standard locations automatically
094ccc
# depend on python(abi). Provide that here.
a3483f
Provides: python(abi) = %{pybasever}
a3483f
26c1be
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
26c1be
f50a7d
# In order to support multiple Python interpreters for development purposes,
8c67ba
# packages with the naming scheme flatpackage (e.g. python35) exist for
f50a7d
# non-default versions of Python 3.
f50a7d
# For consistency, and to keep the upgrade path clean, we Provide/Obsolete
f50a7d
# these names here.
176898
Provides: python%{pyshortver} = %{version}-%{release}
f50a7d
# Note that using Obsoletes without package version is not standard practice.
f50a7d
# Here we assert that *any* version of the system's default interpreter is
f50a7d
# preferable to an "extra" interpreter. For example, python3-3.6.1 will
f50a7d
# replace python36-3.6.2.
f50a7d
Obsoletes: python%{pyshortver}
176898
337d33
# https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package
337d33
# https://fedoraproject.org/wiki/Changes/Python_means_Python3
337d33
# We recommend /usr/bin/python so users get it by default
337d33
# Versioned recommends are problematic, and we know that the package requires
337d33
# python3 back with fixed version, so we just use the path here:
337d33
Recommends: %{_bindir}/python
337d33
337d33
# In Fedora 31, /usr/bin/pydoc was moved here from Python 2.
337d33
# Ideally we'd have an explicit conflict with "/usr/bin/pydoc < 3",
337d33
# but file provides aren't versioned and the file moved across packages.
337d33
# Instead, we rely on the conflict in python3-libs.
337d33
b9e8a4
# Previously, this was required for our rewheel patch to work.
b9e8a4
# This is technically no longer needed, but we keep it recommended
b9e8a4
# for the developer experience.
b9e8a4
Recommends: python3-setuptools
b9e8a4
Recommends: python3-pip
b9e8a4
3f778c
# This prevents ALL subpackages built from this spec to require
3f778c
# /usr/bin/python3*. Granularity per subpackage is impossible.
3f778c
# It's intended for the libs package not to drag in the interpreter, see
3f778c
# https://bugzilla.redhat.com/show_bug.cgi?id=1547131
3f778c
# All others require %%{name} anyway.
3f778c
%global __requires_exclude ^/usr/bin/python3
3f778c
3f778c
15a5ab
# The description used both for the SRPM and the main `python3` subpackage:
a3483f
%description
c2f871
Python is an accessible, high-level, dynamically typed, interpreted programming
3bbc2a
language, designed with an emphasis on code readability.
c2f871
It includes an extensive standard library, and has a vast ecosystem of
c2f871
third-party libraries.
624586
af1dc2
The %{name} package provides the "python3" executable: the reference
15a5ab
interpreter for the Python language, version 3.
c2f871
The majority of its standard library is provided in the %{name}-libs package,
c2f871
which should be installed automatically along with %{name}.
c2f871
The remaining parts of the Python standard library are broken out into the
c2f871
%{name}-tkinter and %{name}-test packages, which may need to be installed
c2f871
separately.
624586
c2f871
Documentation for Python is provided in the %{name}-docs package.
c2f871
c2f871
Packages containing additional libraries for Python are generally named with
c2f871
the "%{name}-" prefix.
624586
a3483f
337d33
# https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package
337d33
# https://fedoraproject.org/wiki/Changes/Python_means_Python3
337d33
%package -n python-unversioned-command
337d33
Summary: The "python" command that runs Python 3
337d33
BuildArch: noarch
337d33
337d33
# In theory this could require any python3 version
337d33
Requires: python3 == %{version}-%{release}
337d33
# But since we want to provide versioned python, we require exact version
337d33
Provides: python = %{version}-%{release}
337d33
# This also save us an explicit conflict for older python3 builds
337d33
337d33
%description -n python-unversioned-command
337d33
This package contains /usr/bin/python - the "python" command that runs Python 3.
337d33
337d33
a3483f
%package libs
624586
Summary:        Python runtime libraries
a3483f
0b241a
%if %{with rpmwheels}
0b241a
Requires: python-setuptools-wheel
0b241a
Requires: python-pip-wheel
0b241a
%else
29530b
Provides: bundled(python3-pip) = 19.2.1
29530b
Provides: bundled(python3-setuptools) = 41.0.1
0b241a
%endif
0b241a
f7475d
%{?python_provide:%python_provide python3-libs}
f7475d
3f778c
# There are files in the standard library that have python shebang.
3f778c
# We've filtered the automatic requirement out so libs are installable without
3f778c
# the main package. This however makes it pulled in by default.
3f778c
# See https://bugzilla.redhat.com/show_bug.cgi?id=1547131
3f778c
Recommends: %{name}%{?_isa} = %{version}-%{release}
3f778c
337d33
# https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package
337d33
# In Fedora 31, several "unversioned" files like /usr/bin/pydoc and all the
337d33
# "unversioned" provides were moved from python2 to python3.
337d33
# So, newer python3 packages need to conflict with old Python 2 builds that
337d33
# still provided unversioned Python.
337d33
# Since all python packages, new and old, have versioned requires on
337d33
# python?-libs, we do it here:
337d33
Conflicts: python-libs < 3
337d33
# (We explicitly conflict with python-libs and not python2-libs, so only the
337d33
# old Python 2 builds that still provided unversioned Python are handled.)
337d33
337d33
a3483f
%description libs
624586
This package contains runtime libraries for use by Python:
c2f871
- the majority of the Python standard library
c2f871
- a dynamically linked library for use by applications that embed Python as
c2f871
  a scripting language, and by the main "python3" executable
c2f871
a3483f
a3483f
%package devel
624586
Summary: Libraries and header files needed for Python development
c75d3b
Requires: %{name} = %{version}-%{release}
c75d3b
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Orion Poplawski 1eeebc
BuildRequires: python-rpm-macros
e25999
# The RPM related dependencies bring nothing to a non-RPM Python developer
e25999
# But we want them when packages BuildRequire python3-devel
e25999
Requires: (python-rpm-macros if rpm-build)
e25999
Requires: (python3-rpm-macros if rpm-build)
f7475d
ad7d85
%if %{without bootstrap}
4da7cf
# This is not "API" (packages that need setuptools should still BuildRequire it)
4da7cf
# However some packages apparently can build both with and without setuptools
4da7cf
# producing egg-info as file or directory (depending on setuptools presence).
4da7cf
# Directory-to-file updates are problematic in RPM, so we ensure setuptools is
4da7cf
# installed when -devel is required.
4da7cf
# See https://bugzilla.redhat.com/show_bug.cgi?id=1623914
4da7cf
# See https://fedoraproject.org/wiki/Packaging:Directory_Replacement
e25999
Requires: (python3-setuptools if rpm-build)
e25999
e9ba67
Requires: (python3-rpm-generators if rpm-build)
ad7d85
%endif
ad7d85
e25999
%{?python_provide:%python_provide python3-devel}
4da7cf
d93846
Provides: %{name}-2to3 = %{version}-%{release}
d93846
Provides: 2to3 = %{version}-%{release}
d93846
a3483f
Conflicts: %{name} < %{version}-%{release}
a3483f
337d33
# In Fedora 31, several "unversioned" files were moved here from Python 2:
337d33
# pygettext.py, msgfmt.py, python-config, python.pc
337d33
Conflicts: python-devel < 3
337d33
a3483f
%description devel
c2f871
This package contains the header files and configuration needed to compile
c2f871
Python extension modules (typically written in C or C++), to embed Python
c2f871
into other programs, and to make binary distributions for Python libraries.
c2f871
d93846
It also contains the necessary macros to build RPM packages with Python modules
d93846
and 2to3 tool, an automatic source converter from Python 2.X.
624586
a3483f
d93846
%package idle
d93846
Summary: A basic graphical development environment for Python
a3483f
Requires: %{name} = %{version}-%{release}
a3483f
Requires: %{name}-tkinter = %{version}-%{release}
a3483f
b0aea5
Provides: idle3 = %{version}-%{release}
337d33
Provides: idle = %{version}-%{release}
b0aea5
d93846
Provides: %{name}-tools = %{version}-%{release}
d93846
Provides: %{name}-tools%{?_isa} = %{version}-%{release}
d93846
Obsoletes: %{name}-tools < %{version}-%{release}
357f40
337d33
# In Fedora 31, /usr/bin/idle was moved here from Python 2.
337d33
Conflicts: python-tools < 3
337d33
f7475d
%{?python_provide:%python_provide python3-idle}
f7475d
d93846
%description idle
d93846
IDLE is Python’s Integrated Development and Learning Environment.
d93846
d93846
IDLE has the following features: Python shell window (interactive
d93846
interpreter) with colorizing of code input, output, and error messages;
d93846
multi-window text editor with multiple undo, Python colorizing,
d93846
smart indent, call tips, auto completion, and other features;
d93846
search within any window, replace within editor windows, and
d93846
search through multiple files (grep); debugger with persistent
d93846
breakpoints, stepping, and viewing of global and local namespaces;
d93846
configuration, browsers, and other dialogs.
c2f871
a3483f
a3483f
%package tkinter
624586
Summary: A GUI toolkit for Python
a3483f
Requires: %{name} = %{version}-%{release}
a3483f
f7475d
%{?python_provide:%python_provide python3-tkinter}
f7475d
a3483f
%description tkinter
c2f871
The Tkinter (Tk interface) library is a graphical user interface toolkit for
c2f871
the Python programming language.
c2f871
a3483f
a3483f
%package test
c2f871
Summary: The self-test suite for the main python3 package
a3483f
Requires: %{name} = %{version}-%{release}
31d963
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
a3483f
f7475d
%{?python_provide:%python_provide python3-test}
f7475d
a3483f
%description test
c2f871
The self-test suite for the Python interpreter.
c2f871
c2f871
This is only useful to test Python itself. For testing general Python code,
c2f871
you should use the unittest module from %{name}-libs, or a library such as
2bcebb
%{name}-pytest or %{name}-nose.
a3483f
a3483f
043c57
%if %{with debug_build}
55cf58
%package debug
624586
Summary: Debug version of the Python runtime
55cf58
55cf58
# The debug build is an all-in-one package version of the regular build, and
3bbc2a
# shares the same .py/.pyc files and directories as the regular build. Hence
55cf58
# we depend on all of the subpackages of the regular build:
55cf58
Requires: %{name}%{?_isa} = %{version}-%{release}
55cf58
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
55cf58
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
55cf58
Requires: %{name}-test%{?_isa} = %{version}-%{release}
55cf58
Requires: %{name}-tkinter%{?_isa} = %{version}-%{release}
d93846
Requires: %{name}-idle%{?_isa} = %{version}-%{release}
55cf58
337d33
# In Fedora 31, /usr/bin/python-debug was moved here from Python 2.
337d33
Conflicts: python-debug < 3
337d33
f7475d
%{?python_provide:%python_provide python3-debug}
f7475d
55cf58
%description debug
624586
python3-debug provides a version of the Python runtime with numerous debugging
c2f871
features enabled, aimed at advanced Python users such as developers of Python
55cf58
extension modules.
55cf58
624586
This version uses more memory and will be slower than the regular Python build,
c2f871
but is useful for tracking down reference-counting issues and other bugs.
55cf58
c2f871
The debug build shares installation directories with the standard Python
69c2d1
runtime. Python modules -- source (.py), bytecode (.pyc), and C-API extensions
69c2d1
(.cpython*.so) -- are compatible between this and the standard version
69c2d1
of Python.
69c2d1
69c2d1
The debug runtime additionally supports debug builds of C-API extensions
69c2d1
(with the "d" ABI flag) for debugging issues in those extensions.
043c57
%endif # with debug_build
55cf58
8c67ba
%else  # with flatpackage
8c67ba
8c67ba
# We'll not provide this, on purpose
8c67ba
# No package in Fedora shall ever depend on flatpackage via this
8c67ba
%global __requires_exclude ^python\\(abi\\) = 3\\..$
8c67ba
%global __provides_exclude ^python\\(abi\\) = 3\\..$
8c67ba
0b241a
%if %{with rpmwheels}
0b241a
Requires: python-setuptools-wheel
0b241a
Requires: python-pip-wheel
0b241a
%else
29530b
Provides: bundled(python3-pip) = 19.2.1
29530b
Provides: bundled(python3-setuptools) = 41.0.1
0b241a
%endif
8c67ba
8c67ba
# The description for the flat package
8c67ba
%description
8c67ba
Python %{pybasever} package for developers.
8c67ba
fc23c4
This package exists to allow developers to test their code against a newer
8c67ba
version of Python. This is not a full Python stack and if you wish to run
63459d
your applications with Python %{pybasever}, update your Fedora to a newer
63459d
version once Python %{pybasever} is stable.
8c67ba
8c67ba
%endif # with flatpackage
c2f871
c769a6
# ======================================================
c769a6
# The prep phase of the build:
c769a6
# ======================================================
c769a6
a3483f
%prep
45a436
%setup -q -n Python-%{upstream_version}
1092d4
# Remove all exe files to ensure we are not shipping prebuilt binaries
1092d4
# note that those are only used to create Microsoft Windows installers
1092d4
# and that functionality is broken on Linux anyway
1092d4
find -name '*.exe' -print -delete
6859f2
3a884e
# Remove bundled libraries to ensure that we're using the system copy.
3a884e
rm -r Modules/expat
1ae4dd
1ae4dd
#
1ae4dd
# Apply patches:
1ae4dd
#
7eb10c
%patch1 -p1
7eb10c
a3483f
%if "%{_lib}" == "lib64"
7eb10c
%patch102 -p1
a3483f
%endif
Robert Kuska 7035fe
%patch111 -p1
0c8875
0b241a
%if %{with rpmwheels}
Matej Stuchlik 11fb59
%patch189 -p1
0b241a
rm Lib/ensurepip/_bundled/*.whl
Matej Stuchlik 11fb59
%endif
Matej Stuchlik 11fb59
332b94
%patch251 -p1
9423d3
%patch274 -p1
ec995d
%patch328 -p1
27c558
0efd3d
96a7bd
# Remove files that should be generated by the build
96a7bd
# (This is after patching, so that we can use patches directly from upstream)
96a7bd
rm configure pyconfig.h.in
96a7bd
96a7bd
c769a6
# ======================================================
c769a6
# Configuring and building the code:
c769a6
# ======================================================
c769a6
a3483f
%build
96a7bd
96a7bd
# Regenerate the configure script and pyconfig.h.in
96a7bd
autoconf
96a7bd
autoheader
96a7bd
db2797
# Remember the current directory (which has sources and the configure script),
db2797
# so we can refer to it after we "cd" elsewhere.
55cf58
topdir=$(pwd)
db2797
db2797
# Get proper option names from bconds
db2797
%if %{with computed_gotos}
db2797
%global computed_gotos_flag yes
db2797
%else
db2797
%global computed_gotos_flag no
db2797
%endif
db2797
db2797
%if %{with optimizations}
db2797
%global optimizations_flag "--enable-optimizations"
db2797
%else
db2797
%global optimizations_flag "--disable-optimizations"
db2797
%endif
db2797
db2797
# Set common compiler/linker flags
8927d3
# We utilize the %%extension_...flags macros here so users building C/C++
8927d3
# extensions with our python won't get all the compiler/linker flags used
8927d3
# in Fedora RPMs.
8927d3
# Standard library built here will still use the %%build_...flags,
8927d3
# Fedora packages utilizing %%py3_build will use them as well
8927d3
# https://fedoraproject.org/wiki/Changes/Python_Extension_Flags
8927d3
export CFLAGS="%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv"
8927d3
export CFLAGS_NODIST="%{build_cflags} -D_GNU_SOURCE -fPIC -fwrapv"
8927d3
export CXXFLAGS="%{extension_cxxflags} -D_GNU_SOURCE -fPIC -fwrapv"
db2797
export CPPFLAGS="$(pkg-config --cflags-only-I libffi)"
8927d3
export OPT="%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv"
a3483f
export LINKCC="gcc"
db2797
export CFLAGS="$CFLAGS $(pkg-config --cflags openssl)"
8927d3
export LDFLAGS="%{extension_ldflags} -g $(pkg-config --libs-only-L openssl)"
8927d3
export LDFLAGS_NODIST="%{build_ldflags} -g $(pkg-config --libs-only-L openssl)"
a3483f
db2797
# We can build several different configurations of Python: regular and debug.
db2797
# Define a common function that does one build:
55cf58
BuildPython() {
Robert Kuska a0e3ab
  ConfName=$1
db2797
  ExtraConfigArgs=$2
db2797
  MoreCFlags=$3
55cf58
db2797
  # Each build is done in its own directory
55cf58
  ConfDir=build/$ConfName
db2797
  echo STARTING: BUILD OF PYTHON FOR CONFIGURATION: $ConfName
55cf58
  mkdir -p $ConfDir
55cf58
  pushd $ConfDir
55cf58
db2797
  # Normally, %%configure looks for the "configure" script in the current
db2797
  # directory.
db2797
  # Since we changed directories, we need to tell %%configure where to look.
55cf58
  %global _configure $topdir/configure
55cf58
c96960
%configure \
c96960
  --enable-ipv6 \
c96960
  --enable-shared \
043c57
  --with-computed-gotos=%{computed_gotos_flag} \
ecc570
  --with-dbmliborder=gdbm:ndbm:bdb \
ecc570
  --with-system-expat \
ecc570
  --with-system-ffi \
b8daf7
  --enable-loadable-sqlite-extensions \
af1b22
  --with-dtrace \
3f69bc
  --with-lto \
969d51
  --with-ssl-default-suites=openssl \
043c57
%if %{with valgrind}
31a06d
  --with-valgrind \
31a06d
%endif
55cf58
  $ExtraConfigArgs \
55cf58
  %{nil}
c96960
7e0c12
%if %{without bootstrap}
7e0c12
  # Regenerate generated files (needs python3)
17d397
  %make_build regen-all PYTHON_FOR_REGEN="python%{pybasever}"
7e0c12
%endif
7e0c12
7e0c12
db2797
  # Invoke the build
7e0c12
  %make_build EXTRA_CFLAGS="$CFLAGS $MoreCFlags"
a3483f
55cf58
  popd
db2797
  echo FINISHED: BUILD OF PYTHON FOR CONFIGURATION: $ConfName
55cf58
}
55cf58
db2797
# Call the above to build each configuration.
55cf58
043c57
%if %{with debug_build}
55cf58
BuildPython debug \
db2797
  "--without-ensurepip --with-pydebug" \
091b4b
  "-Og"
043c57
%endif # with debug_build
55cf58
55cf58
BuildPython optimized \
db2797
  "--without-ensurepip %{optimizations_flag}" \
db2797
  ""
55cf58
c769a6
# ======================================================
c769a6
# Installing the built code:
c769a6
# ======================================================
a3483f
a3483f
%install
208332
208332
# As in %%build, remember the current directory
55cf58
topdir=$(pwd)
a3483f
208332
# We install a collection of hooks for gdb that make it easier to debug
208332
# executables linked against libpython3* (such as /usr/bin/python3 itself)
208332
#
208332
# These hooks are implemented in Python itself (though they are for the version
208332
# of python that gdb is linked with)
208332
#
208332
# gdb-archer looks for them in the same path as the ELF file or its .debug
208332
# file, with a -gdb.py suffix.
208332
# We put them next to the debug file, because ldconfig would complain if
208332
# it found non-library files directly in /usr/lib/
208332
# (see https://bugzilla.redhat.com/show_bug.cgi?id=562980)
208332
#
208332
# We'll put these files in the debuginfo package by installing them to e.g.:
208332
#  /usr/lib/debug/usr/lib/libpython3.2.so.1.0.debug-gdb.py
208332
# (note that the debug path is /usr/lib/debug for both 32/64 bit)
208332
#
208332
# See https://fedoraproject.org/wiki/Features/EasierPythonDebugging for more
208332
# information
208332
208332
%if %{with gdb_hooks}
208332
DirHoldingGdbPy=%{_prefix}/lib/debug/%{_libdir}
208332
mkdir -p %{buildroot}$DirHoldingGdbPy
208332
%endif # with gdb_hooks
208332
6c5169
# Multilib support for pyconfig.h
6c5169
# 32- and 64-bit versions of pyconfig.h are different. For multilib support
6c5169
# (making it possible to install 32- and 64-bit versions simultaneously),
6c5169
# we need to install them under different filenames, and to make the common
6c5169
# "pyconfig.h" include the right file based on architecture.
6c5169
# See https://bugzilla.redhat.com/show_bug.cgi?id=192747
6c5169
# Filanames are defined here:
6c5169
%global _pyconfig32_h pyconfig-32.h
6c5169
%global _pyconfig64_h pyconfig-64.h
64593a
%global _pyconfig_h pyconfig-%{wordsize}.h
6c5169
208332
# Use a common function to do an install for all our configurations:
55cf58
InstallPython() {
55cf58
Robert Kuska a0e3ab
  ConfName=$1
55cf58
  PyInstSoName=$2
Matej Stuchlik 318f36
  MoreCFlags=$3
474cc9
  LDVersion=$4
55cf58
208332
  # Switch to the directory with this configuration's built files
55cf58
  ConfDir=build/$ConfName
55cf58
  echo STARTING: INSTALL OF PYTHON FOR CONFIGURATION: $ConfName
55cf58
  mkdir -p $ConfDir
55cf58
  pushd $ConfDir
55cf58
208332
  make \
208332
    DESTDIR=%{buildroot} \
208332
    INSTALL="install -p" \
208332
    EXTRA_CFLAGS="$MoreCFlags" \
208332
    install
a3483f
cfd3e1
  popd
55cf58
043c57
%if %{with gdb_hooks}
208332
  # See comment on $DirHoldingGdbPy above
e49a72
  PathOfGdbPy=$DirHoldingGdbPy/$PyInstSoName-%{version}-%{release}.%{_arch}.debug-gdb.py
cfd3e1
  cp Tools/gdb/libpython.py %{buildroot}$PathOfGdbPy
043c57
%endif # with gdb_hooks
55cf58
474cc9
  # Rename the -devel script that differs on different arches to arch specific name
474cc9
  mv %{buildroot}%{_bindir}/python${LDVersion}-{,`uname -m`-}config
474cc9
  echo -e '#!/bin/sh\nexec `dirname $0`/python'${LDVersion}'-`uname -m`-config "$@"' > \
474cc9
    %{buildroot}%{_bindir}/python${LDVersion}-config
474cc9
  echo '[ $? -eq 127 ] && echo "Could not find python'${LDVersion}'-`uname -m`-config. Look around to see available arches." >&2' >> \
474cc9
    %{buildroot}%{_bindir}/python${LDVersion}-config
474cc9
    chmod +x %{buildroot}%{_bindir}/python${LDVersion}-config
474cc9
6c5169
  # Make python3-devel multilib-ready
6c5169
  mv %{buildroot}%{_includedir}/python${LDVersion}/pyconfig.h \
6c5169
     %{buildroot}%{_includedir}/python${LDVersion}/%{_pyconfig_h}
6c5169
  cat > %{buildroot}%{_includedir}/python${LDVersion}/pyconfig.h << EOF
6c5169
#include <bits/wordsize.h>
6c5169
6c5169
#if __WORDSIZE == 32
e8fa18
#include "%{_pyconfig32_h}"
6c5169
#elif __WORDSIZE == 64
e8fa18
#include "%{_pyconfig64_h}"
6c5169
#else
6c5169
#error "Unknown word size"
6c5169
#endif
6c5169
EOF
6c5169
55cf58
  echo FINISHED: INSTALL OF PYTHON FOR CONFIGURATION: $ConfName
55cf58
}
55cf58
7c7217
# Install the "debug" build first; any common files will be overridden with
208332
# later builds
043c57
%if %{with debug_build}
55cf58
InstallPython debug \
Matej Stuchlik 318f36
  %{py_INSTSONAME_debug} \
474cc9
  -O0 \
ffaa0f
  %{LDVERSION_debug}
043c57
%endif # with debug_build
55cf58
55cf58
# Now the optimized build:
55cf58
InstallPython optimized \
208332
  %{py_INSTSONAME_optimized} \
474cc9
  "" \
ffaa0f
  %{LDVERSION_optimized}
55cf58
f86b3d
# Install directories for additional packages
b3fc51
install -d -m 0755 %{buildroot}%{pylibdir}/site-packages/__pycache__
f86b3d
%if "%{_lib}" == "lib64"
f86b3d
# The 64-bit version needs to create "site-packages" in /usr/lib/ (for
f86b3d
# pure-Python modules) as well as in /usr/lib64/ (for packages with extension
f86b3d
# modules).
f86b3d
# Note that rpmlint will complain about hardcoded library path;
f86b3d
# this is intentional.
f86b3d
install -d -m 0755 %{buildroot}%{_prefix}/lib/python%{pybasever}/site-packages/__pycache__
f86b3d
%endif
a3483f
8c67ba
%if %{without flatpackage}
860f39
# add idle3 to menu
b3fc51
install -D -m 0644 Lib/idlelib/Icons/idle_16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/idle3.png
b3fc51
install -D -m 0644 Lib/idlelib/Icons/idle_32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/idle3.png
b3fc51
install -D -m 0644 Lib/idlelib/Icons/idle_48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/idle3.png
b3fc51
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE10}
860f39
860f39
# Install and validate appdata file
838e39
mkdir -p %{buildroot}%{_metainfodir}
838e39
cp -a %{SOURCE11} %{buildroot}%{_metainfodir}
838e39
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/idle3.appdata.xml
8c67ba
%endif
860f39
6c5169
# Make sure distutils looks at the right pyconfig.h file
6c5169
# See https://bugzilla.redhat.com/show_bug.cgi?id=201434
824c34
# Similar for sysconfig: sysconfig.get_config_h_filename tries to locate
824c34
# pyconfig.h so it can be parsed, and needs to do this at runtime in site.py
6c5169
# when python starts up (see https://bugzilla.redhat.com/show_bug.cgi?id=653058)
824c34
#
824c34
# Split this out so it goes directly to the pyconfig-32.h/pyconfig-64.h
824c34
# variants:
824c34
sed -i -e "s/'pyconfig.h'/'%{_pyconfig_h}'/" \
824c34
  %{buildroot}%{pylibdir}/distutils/sysconfig.py \
824c34
  %{buildroot}%{pylibdir}/sysconfig.py
a3483f
d93846
# Install pathfix.py to bindir
d93846
# See https://github.com/fedora-python/python-rpm-porting/issues/24
d93846
cp -p Tools/scripts/pathfix.py %{buildroot}%{_bindir}/
d93846
83a5f5
# Install i18n tools to bindir
83a5f5
# They are also in python2, so we version them
83a5f5
# https://bugzilla.redhat.com/show_bug.cgi?id=1571474
83a5f5
for tool in pygettext msgfmt; do
83a5f5
  cp -p Tools/i18n/${tool}.py %{buildroot}%{_bindir}/${tool}%{pybasever}.py
83a5f5
  ln -s ${tool}%{pybasever}.py %{buildroot}%{_bindir}/${tool}3.py
83a5f5
done
83a5f5
a3483f
# Switch all shebangs to refer to the specific Python version.
Iryna Shcherbina 685fb7
# This currently only covers files matching ^[a-zA-Z0-9_]+\.py$,
Iryna Shcherbina 685fb7
# so handle files named using other naming scheme separately.
55cf58
LD_LIBRARY_PATH=./build/optimized ./build/optimized/python \
55cf58
  Tools/scripts/pathfix.py \
6c5992
  -i "%{_bindir}/python%{pybasever}" -pn \
6c5992
  %{buildroot} \
83a5f5
  %{buildroot}%{_bindir}/*%{pybasever}.py \
6c5992
  %{?with_gdb_hooks:%{buildroot}$DirHoldingGdbPy/*.py}
0652b0
d93846
# Remove tests for python3-tools which was removed in
d93846
# https://bugzilla.redhat.com/show_bug.cgi?id=1312030
d93846
rm -rf %{buildroot}%{pylibdir}/test/test_tools
0652b0
a3483f
# Remove shebang lines from .py files that aren't executable, and
a3483f
# remove executability from .py files that don't have a shebang line:
71040c
find %{buildroot} -name \*.py \
a3483f
  \( \( \! -perm /u+x,g+x,o+x -exec sed -e '/^#!/Q 0' -e 'Q 1' {} \; \
a3483f
  -print -exec sed -i '1d' {} \; \) -o \( \
a3483f
  -perm /u+x,g+x,o+x ! -exec grep -m 1 -q '^#!' {} \; \
a3483f
  -exec chmod a-x {} \; \) \)
a3483f
a3483f
# Get rid of DOS batch files:
71040c
find %{buildroot} -name \*.bat -exec rm {} \;
a3483f
a3483f
# Get rid of backup files:
71040c
find %{buildroot}/ -name "*~" -exec rm -f {} \;
a3483f
find . -name "*~" -exec rm -f {} \;
a3483f
Thomas Spura 1c26b6
# Do bytecompilation with the newly installed interpreter.
Thomas Spura e6314e
# This is similar to the script in macros.pybytecompile
Thomas Spura ae2fc1
# compile *.pyc
Thomas Spura ae2fc1
find %{buildroot} -type f -a -name "*.py" -print0 | \
Thomas Spura ae2fc1
    LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
3dbbc1
    PYTHONPATH="%{buildroot}%{_libdir}/python%{pybasever} %{buildroot}%{_libdir}/python%{pybasever}/site-packages" \
b2fa00
    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:]]' || :
a3483f
0652b0
# Since we have pathfix.py in bindir, this is created, but we don't want it
0652b0
rm -rf %{buildroot}%{_bindir}/__pycache__
0652b0
a3483f
# Fixup permissions for shared libraries from non-standard 555 to standard 755:
d54a77
find %{buildroot} -perm 555 -exec chmod 755 {} \;
a3483f
9640a7
# Create "/usr/bin/python3-debug", a symlink to the python3 debug binary, to
c4a573
# avoid the user having to know the precise version and ABI flags.
c4a573
# See e.g. https://bugzilla.redhat.com/show_bug.cgi?id=676748
8c67ba
%if %{with debug_build} && %{without flatpackage}
9640a7
ln -s \
9640a7
  %{_bindir}/python%{LDVERSION_debug} \
9640a7
  %{buildroot}%{_bindir}/python3-debug
00fd88
%endif
9640a7
dc669a
# There's 2to3-X.X executable and 2to3 soft link to it.
dc669a
# No reason to have both, so keep only 2to3 as an executable.
dc669a
# See https://bugzilla.redhat.com/show_bug.cgi?id=1111275
dc669a
mv %{buildroot}%{_bindir}/2to3-%{pybasever} %{buildroot}%{_bindir}/2to3
6a6d4a
8c67ba
%if %{with flatpackage}
8c67ba
# Remove stuff that would conflict with python3 package
8c67ba
rm %{buildroot}%{_bindir}/python3
8c67ba
rm %{buildroot}%{_bindir}/pydoc3
8c67ba
rm %{buildroot}%{_bindir}/pathfix.py
83a5f5
rm %{buildroot}%{_bindir}/pygettext3.py
83a5f5
rm %{buildroot}%{_bindir}/msgfmt3.py
8c67ba
rm %{buildroot}%{_bindir}/idle3
8c67ba
rm %{buildroot}%{_bindir}/python3-*
6a6d4a
rm %{buildroot}%{_bindir}/2to3
8c67ba
rm %{buildroot}%{_libdir}/libpython3.so
8c67ba
rm %{buildroot}%{_mandir}/man1/python3.1*
8c67ba
rm %{buildroot}%{_libdir}/pkgconfig/python3.pc
a29283
rm %{buildroot}%{_libdir}/pkgconfig/python3-embed.pc
337d33
%else
337d33
# Link the unversioned stuff
337d33
# https://fedoraproject.org/wiki/Changes/Python_means_Python3
337d33
ln -s ./python3 %{buildroot}%{_bindir}/python
337d33
ln -s ./pydoc3 %{buildroot}%{_bindir}/pydoc
337d33
ln -s ./pygettext3.py %{buildroot}%{_bindir}/pygettext.py
337d33
ln -s ./msgfmt3.py %{buildroot}%{_bindir}/msgfmt.py
337d33
ln -s ./idle3 %{buildroot}%{_bindir}/idle
337d33
ln -s ./python3-config %{buildroot}%{_bindir}/python-config
337d33
ln -s ./python3.1 %{buildroot}%{_mandir}/man1/python.1
337d33
ln -s ./python3.pc %{buildroot}%{_libdir}/pkgconfig/python.pc
337d33
%if %{with debug_build}
337d33
ln -s ./python3-debug %{buildroot}%{_bindir}/python-debug
337d33
%endif
8c67ba
%endif
7e7918
7e7918
c769a6
# ======================================================
ec8375
# Checks for packaging issues
c769a6
# ======================================================
c769a6
a3483f
%check
3dbbc1
3dbbc1
# first of all, check timestamps of bytecode files
3dbbc1
find %{buildroot} -type f -a -name "*.py" -print0 | \
3dbbc1
    LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
3dbbc1
    PYTHONPATH="%{buildroot}%{_libdir}/python%{pybasever} %{buildroot}%{_libdir}/python%{pybasever}/site-packages" \
3dbbc1
    xargs -0 %{buildroot}%{_bindir}/python%{pybasever} %{SOURCE8}
3dbbc1
ec8375
# Ensure that the curses module was linked against libncursesw.so, rather than
ec8375
# libncurses.so
ec8375
# See https://bugzilla.redhat.com/show_bug.cgi?id=539917
ec8375
ldd %{buildroot}/%{dynload_dir}/_curses*.so \
ec8375
    | grep curses \
ec8375
    | grep libncurses.so && (echo "_curses.so linked against libncurses.so" ; exit 1)
ec8375
ec8375
# Ensure that the debug modules are linked against the debug libpython, and
ec8375
# likewise for the optimized modules and libpython:
ec8375
for Module in %{buildroot}/%{dynload_dir}/*.so ; do
ec8375
    case $Module in
ec8375
    *.%{SOABI_debug})
ec8375
        ldd $Module | grep %{py_INSTSONAME_optimized} &&
ec8375
            (echo Debug module $Module linked against optimized %{py_INSTSONAME_optimized} ; exit 1)
ec8375
ec8375
        ;;
ec8375
    *.%{SOABI_optimized})
ec8375
        ldd $Module | grep %{py_INSTSONAME_debug} &&
ec8375
            (echo Optimized module $Module linked against debug %{py_INSTSONAME_debug} ; exit 1)
ec8375
        ;;
ec8375
    esac
ec8375
done
ec8375
63459d
ec8375
# ======================================================
ec8375
# Running the upstream test suite
ec8375
# ======================================================
ec8375
55cf58
topdir=$(pwd)
55cf58
CheckPython() {
Robert Kuska a0e3ab
  ConfName=$1
5080ff
  ConfDir=$(pwd)/build/$ConfName
4aa9eb
55cf58
  echo STARTING: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
55cf58
5a4896
  # Note that we're running the tests using the version of the code in the
5a4896
  # builddir, not in the buildroot.
5db81f
e21e6a
  # Show some info, helpful for debugging test failures
e21e6a
  LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.pythoninfo
e21e6a
9733ea
  # Run the upstream test suite
4b6961
  # test_gdb skipped on s390x:
4b6961
  #   https://bugzilla.redhat.com/show_bug.cgi?id=1678277
2d19c7
  # test_gdb skipped everywhere:
2d19c7
  #   https://bugzilla.redhat.com/show_bug.cgi?id=1734327
17d397
  # test_distutils
17d397
  #   distutils.tests.test_bdist_rpm tests fail when bootstraping the Python
17d397
  #   package: rpmbuild requires /usr/bin/pythonX.Y to be installed
9a778a
  LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \
5258d1
    -wW --slowest -j0 \
17d397
    %if %{with bootstrap}
Matej Stuchlik 318f36
    -x test_distutils \
4b6961
    %endif
e354fb
    -x test_gdb \
4bc70e
    %ifarch %{mips64}
1b0929
    -x test_ctypes \
4bc70e
    %endif
a3483f
5db81f
  echo FINISHED: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
55cf58
55cf58
}
55cf58
043c57
%if %{with tests}
a5cef7
55cf58
# Check each of the configurations:
043c57
%if %{with debug_build}
55cf58
CheckPython debug
043c57
%endif # with debug_build
55cf58
CheckPython optimized
55cf58
043c57
%endif # with tests
a5cef7
55cf58
4aab45
%files
Iryna Shcherbina aba719
%doc README.rst
8c67ba
8c67ba
%if %{without flatpackage}
a3483f
%{_bindir}/pydoc*
a3483f
%{_bindir}/python3
8c67ba
%else
8c67ba
%{_bindir}/pydoc%{pybasever}
8c67ba
%endif
63459d
8c67ba
%{_bindir}/python%{pybasever}
285f55
%{_bindir}/python%{LDVERSION_optimized}
337d33
%{_mandir}/*/*3*
26c1be
26c1be
8c67ba
%if %{without flatpackage}
337d33
%files -n python-unversioned-command
337d33
%{_bindir}/python
337d33
%{_mandir}/*/python.1*
337d33
26c1be
%files libs
Iryna Shcherbina aba719
%doc README.rst
8c67ba
%endif
60aba0
11efc8
%dir %{pylibdir}
11efc8
%dir %{dynload_dir}
11efc8
46d035
%license %{pylibdir}/LICENSE.txt
46d035
60aba0
%{pylibdir}/lib2to3
8c67ba
%if %{without flatpackage}
60aba0
%exclude %{pylibdir}/lib2to3/tests
8c67ba
%endif
60aba0
60aba0
%dir %{pylibdir}/unittest/
60aba0
%dir %{pylibdir}/unittest/__pycache__/
60aba0
%{pylibdir}/unittest/*.py
60aba0
%{pylibdir}/unittest/__pycache__/*%{bytecode_suffixes}
60aba0
60aba0
%dir %{pylibdir}/asyncio/
60aba0
%dir %{pylibdir}/asyncio/__pycache__/
60aba0
%{pylibdir}/asyncio/*.py
60aba0
%{pylibdir}/asyncio/__pycache__/*%{bytecode_suffixes}
60aba0
60aba0
%dir %{pylibdir}/venv/
60aba0
%dir %{pylibdir}/venv/__pycache__/
60aba0
%{pylibdir}/venv/*.py
60aba0
%{pylibdir}/venv/__pycache__/*%{bytecode_suffixes}
60aba0
%{pylibdir}/venv/scripts
60aba0
60aba0
%{pylibdir}/wsgiref
60aba0
%{pylibdir}/xmlrpc
60aba0
60aba0
%dir %{pylibdir}/ensurepip/
60aba0
%dir %{pylibdir}/ensurepip/__pycache__/
60aba0
%{pylibdir}/ensurepip/*.py
60aba0
%{pylibdir}/ensurepip/__pycache__/*%{bytecode_suffixes}
8c67ba
0b241a
%if %{with rpmwheels}
60aba0
%exclude %{pylibdir}/ensurepip/_bundled
8c67ba
%else
8c67ba
%dir %{pylibdir}/ensurepip/_bundled
8c67ba
%{pylibdir}/ensurepip/_bundled/*.whl
8c67ba
%endif
60aba0
60aba0
%dir %{pylibdir}/concurrent/
60aba0
%dir %{pylibdir}/concurrent/__pycache__/
60aba0
%{pylibdir}/concurrent/*.py
60aba0
%{pylibdir}/concurrent/__pycache__/*%{bytecode_suffixes}
60aba0
60aba0
%dir %{pylibdir}/concurrent/futures/
60aba0
%dir %{pylibdir}/concurrent/futures/__pycache__/
60aba0
%{pylibdir}/concurrent/futures/*.py
60aba0
%{pylibdir}/concurrent/futures/__pycache__/*%{bytecode_suffixes}
60aba0
60aba0
%{pylibdir}/pydoc_data
60aba0
1c8e9a
%{dynload_dir}/_blake2.%{SOABI_optimized}.so
f7bd05
%{dynload_dir}/_md5.%{SOABI_optimized}.so
1c8e9a
%{dynload_dir}/_sha1.%{SOABI_optimized}.so
f7bd05
%{dynload_dir}/_sha256.%{SOABI_optimized}.so
1c8e9a
%{dynload_dir}/_sha3.%{SOABI_optimized}.so
f7bd05
%{dynload_dir}/_sha512.%{SOABI_optimized}.so
1c8e9a
1b0929
%{dynload_dir}/_asyncio.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_bisect.%{SOABI_optimized}.so
1c94c1
%{dynload_dir}/_bz2.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_codecs_cn.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_codecs_hk.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_codecs_iso2022.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_codecs_jp.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_codecs_kr.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_codecs_tw.%{SOABI_optimized}.so
cea6d6
%{dynload_dir}/_contextvars.%{SOABI_optimized}.so
1c94c1
%{dynload_dir}/_crypt.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_csv.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_ctypes.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_curses.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_curses_panel.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_dbm.%{SOABI_optimized}.so
1c94c1
%{dynload_dir}/_decimal.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_elementtree.%{SOABI_optimized}.so
043c57
%if %{with gdbm}
5080ff
%{dynload_dir}/_gdbm.%{SOABI_optimized}.so
5fe31d
%endif
5080ff
%{dynload_dir}/_hashlib.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_heapq.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_json.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_lsprof.%{SOABI_optimized}.so
1c94c1
%{dynload_dir}/_lzma.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_multibytecodec.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_multiprocessing.%{SOABI_optimized}.so
3aee76
%{dynload_dir}/_opcode.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_pickle.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_posixsubprocess.%{SOABI_optimized}.so
cea6d6
%{dynload_dir}/_queue.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_random.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_socket.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_sqlite3.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_ssl.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_struct.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/array.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/audioop.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/binascii.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/cmath.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_datetime.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/fcntl.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/grp.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/math.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/mmap.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/nis.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/ossaudiodev.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/parser.%{SOABI_optimized}.so
1fb3c0
%{dynload_dir}/_posixshmem.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/pyexpat.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/readline.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/resource.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/select.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/spwd.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/syslog.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/termios.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/unicodedata.%{SOABI_optimized}.so
d668c1
%{dynload_dir}/_uuid.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/xxlimited.%{SOABI_optimized}.so
1fb3c0
%{dynload_dir}/_xxsubinterpreters.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/zlib.%{SOABI_optimized}.so
4aab45
13c4a4
%dir %{pylibdir}/site-packages/
13c4a4
%dir %{pylibdir}/site-packages/__pycache__/
1c8e9a
%{pylibdir}/site-packages/README.txt
7eb10c
%{pylibdir}/*.py
e1c7be
%dir %{pylibdir}/__pycache__/
7eb10c
%{pylibdir}/__pycache__/*%{bytecode_suffixes}
1c94c1
1c94c1
%dir %{pylibdir}/collections/
1c94c1
%dir %{pylibdir}/collections/__pycache__/
1c94c1
%{pylibdir}/collections/*.py
1c94c1
%{pylibdir}/collections/__pycache__/*%{bytecode_suffixes}
5080ff
5080ff
%dir %{pylibdir}/ctypes/
e1c7be
%dir %{pylibdir}/ctypes/__pycache__/
7eb10c
%{pylibdir}/ctypes/*.py
7eb10c
%{pylibdir}/ctypes/__pycache__/*%{bytecode_suffixes}
a3483f
%{pylibdir}/ctypes/macholib
5080ff
a3483f
%{pylibdir}/curses
5080ff
5080ff
%dir %{pylibdir}/dbm/
e1c7be
%dir %{pylibdir}/dbm/__pycache__/
7eb10c
%{pylibdir}/dbm/*.py
7eb10c
%{pylibdir}/dbm/__pycache__/*%{bytecode_suffixes}
5080ff
a6cf42
%dir %{pylibdir}/distutils/
a6cf42
%dir %{pylibdir}/distutils/__pycache__/
a6cf42
%{pylibdir}/distutils/*.py
a6cf42
%{pylibdir}/distutils/__pycache__/*%{bytecode_suffixes}
a6cf42
%{pylibdir}/distutils/README
a6cf42
%{pylibdir}/distutils/command
a6cf42
5080ff
%dir %{pylibdir}/email/
e1c7be
%dir %{pylibdir}/email/__pycache__/
7eb10c
%{pylibdir}/email/*.py
7eb10c
%{pylibdir}/email/__pycache__/*%{bytecode_suffixes}
a3483f
%{pylibdir}/email/mime
1c94c1
%doc %{pylibdir}/email/architecture.rst
5080ff
a3483f
%{pylibdir}/encodings
cb97d2
a3483f
%{pylibdir}/html
a3483f
%{pylibdir}/http
5080ff
5080ff
%dir %{pylibdir}/importlib/
e1c7be
%dir %{pylibdir}/importlib/__pycache__/
7eb10c
%{pylibdir}/importlib/*.py
7eb10c
%{pylibdir}/importlib/__pycache__/*%{bytecode_suffixes}
5080ff
a29283
%dir %{pylibdir}/importlib/metadata/
a29283
%dir %{pylibdir}/importlib/metadata/__pycache__/
a29283
%{pylibdir}/importlib/metadata/*.py
a29283
%{pylibdir}/importlib/metadata/__pycache__/*%{bytecode_suffixes}
a29283
5080ff
%dir %{pylibdir}/json/
e1c7be
%dir %{pylibdir}/json/__pycache__/
7eb10c
%{pylibdir}/json/*.py
7eb10c
%{pylibdir}/json/__pycache__/*%{bytecode_suffixes}
5080ff
a3483f
%{pylibdir}/logging
a3483f
%{pylibdir}/multiprocessing
5080ff
5080ff
%dir %{pylibdir}/sqlite3/
e1c7be
%dir %{pylibdir}/sqlite3/__pycache__/
7eb10c
%{pylibdir}/sqlite3/*.py
7eb10c
%{pylibdir}/sqlite3/__pycache__/*%{bytecode_suffixes}
5080ff
8c67ba
%if %{without flatpackage}
5080ff
%exclude %{pylibdir}/turtle.py
5080ff
%exclude %{pylibdir}/__pycache__/turtle*%{bytecode_suffixes}
8c67ba
%endif
5080ff
a3483f
%{pylibdir}/urllib
347356
%{pylibdir}/xml
1c94c1
a3483f
%if "%{_lib}" == "lib64"
37de67
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}
37de67
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}/site-packages
13c4a4
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}/site-packages/__pycache__/
a3483f
%endif
a3483f
a3483f
# "Makefile" and the config-32/64.h file are needed by
a3483f
# distutils/sysconfig.py:_init_posix(), so we include them in the core
a3483f
# package, along with their parent directories (bug 531901):
bea97d
%dir %{pylibdir}/config-%{LDVERSION_optimized}-%{_arch}-linux%{_gnu}/
bea97d
%{pylibdir}/config-%{LDVERSION_optimized}-%{_arch}-linux%{_gnu}/Makefile
5080ff
%dir %{_includedir}/python%{LDVERSION_optimized}/
5080ff
%{_includedir}/python%{LDVERSION_optimized}/%{_pyconfig_h}
a3483f
Robert Kuska 083745
%{_libdir}/%{py_INSTSONAME_optimized}
8c67ba
%if %{without flatpackage}
34c15c
%{_libdir}/libpython3.so
8c67ba
%endif
a3483f
63459d
8c67ba
%if %{without flatpackage}
a3483f
%files devel
d93846
%{_bindir}/2to3
8c67ba
%endif
8c67ba
bea97d
%{pylibdir}/config-%{LDVERSION_optimized}-%{_arch}-linux%{_gnu}/*
8c67ba
%if %{without flatpackage}
bea97d
%exclude %{pylibdir}/config-%{LDVERSION_optimized}-%{_arch}-linux%{_gnu}/Makefile
8c67ba
%exclude %{_includedir}/python%{LDVERSION_optimized}/%{_pyconfig_h}
8c67ba
%endif
5080ff
%{_includedir}/python%{LDVERSION_optimized}/*.h
1385d6
%{_includedir}/python%{LDVERSION_optimized}/internal/
1fb3c0
%{_includedir}/python%{LDVERSION_optimized}/cpython/
a3483f
%doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit
8c67ba
8c67ba
%if %{without flatpackage}
a3483f
%{_bindir}/python3-config
337d33
%{_bindir}/python-config
8c67ba
%{_libdir}/pkgconfig/python3.pc
337d33
%{_libdir}/pkgconfig/python.pc
a29283
%{_libdir}/pkgconfig/python3-embed.pc
8c67ba
%{_bindir}/pathfix.py
83a5f5
%{_bindir}/pygettext3.py
337d33
%{_bindir}/pygettext.py
83a5f5
%{_bindir}/msgfmt3.py
337d33
%{_bindir}/msgfmt.py
8c67ba
%endif
8c67ba
83a5f5
%{_bindir}/pygettext%{pybasever}.py
83a5f5
%{_bindir}/msgfmt%{pybasever}.py
83a5f5
a3483f
%{_bindir}/python%{pybasever}-config
5080ff
%{_bindir}/python%{LDVERSION_optimized}-config
f18888
%{_bindir}/python%{LDVERSION_optimized}-*-config
5080ff
%{_libdir}/libpython%{LDVERSION_optimized}.so
5080ff
%{_libdir}/pkgconfig/python-%{LDVERSION_optimized}.pc
a29283
%{_libdir}/pkgconfig/python-%{LDVERSION_optimized}-embed.pc
55cf58
%{_libdir}/pkgconfig/python-%{pybasever}.pc
a29283
%{_libdir}/pkgconfig/python-%{pybasever}-embed.pc
a3483f
63459d
8c67ba
%if %{without flatpackage}
d93846
%files idle
8c67ba
a3483f
%{_bindir}/idle*
8c67ba
%else
8c67ba
%{_bindir}/idle%{pybasever}
8c67ba
%endif
8c67ba
d93846
%{pylibdir}/idlelib
8c67ba
8c67ba
%if %{without flatpackage}
838e39
%{_metainfodir}/idle3.appdata.xml
860f39
%{_datadir}/applications/idle3.desktop
860f39
%{_datadir}/icons/hicolor/*/apps/idle3.*
8c67ba
%endif
a3483f
8c67ba
%if %{without flatpackage}
a3483f
%files tkinter
8c67ba
%endif
8c67ba
a3483f
%{pylibdir}/tkinter
8c67ba
%if %{without flatpackage}
a3483f
%exclude %{pylibdir}/tkinter/test
8c67ba
%endif
5080ff
%{dynload_dir}/_tkinter.%{SOABI_optimized}.so
5080ff
%{pylibdir}/turtle.py
5080ff
%{pylibdir}/__pycache__/turtle*%{bytecode_suffixes}
5080ff
%dir %{pylibdir}/turtledemo
5080ff
%{pylibdir}/turtledemo/*.py
5080ff
%{pylibdir}/turtledemo/*.cfg
5080ff
%dir %{pylibdir}/turtledemo/__pycache__/
5080ff
%{pylibdir}/turtledemo/__pycache__/*%{bytecode_suffixes}
a3483f
63459d
8c67ba
%if %{without flatpackage}
a3483f
%files test
8c67ba
%endif
63459d
a3483f
%{pylibdir}/ctypes/test
a3483f
%{pylibdir}/distutils/tests
a3483f
%{pylibdir}/sqlite3/test
a3483f
%{pylibdir}/test
5080ff
%{dynload_dir}/_ctypes_test.%{SOABI_optimized}.so
1c94c1
%{dynload_dir}/_testbuffer.%{SOABI_optimized}.so
5080ff
%{dynload_dir}/_testcapi.%{SOABI_optimized}.so
b28217
%{dynload_dir}/_testimportmultiple.%{SOABI_optimized}.so
285f55
%{dynload_dir}/_testinternalcapi.%{SOABI_optimized}.so
285f55
%{dynload_dir}/_testmultiphase.%{SOABI_optimized}.so
d668c1
%{dynload_dir}/_xxtestfuzz.%{SOABI_optimized}.so
a3483f
%{pylibdir}/lib2to3/tests
a3483f
%{pylibdir}/tkinter/test
e1c7be
%{pylibdir}/unittest/test
a3483f
55cf58
# We don't bother splitting the debug build out into further subpackages:
55cf58
# if you need it, you're probably a developer.
55cf58
55cf58
# Hence the manifest is the combination of analogous files in the manifests of
55cf58
# all of the other subpackages
55cf58
043c57
%if %{with debug_build}
8c67ba
%if %{without flatpackage}
55cf58
%files debug
8c67ba
%{_bindir}/python3-debug
337d33
%{_bindir}/python-debug
8c67ba
%endif
55cf58
55cf58
# Analog of the core subpackage's files:
5080ff
%{_bindir}/python%{LDVERSION_debug}
55cf58
26c1be
# Analog of the -libs subpackage's files:
55cf58
# ...with debug builds of the built-in "extension" modules:
f7bd05
1c8e9a
%{dynload_dir}/_blake2.%{SOABI_debug}.so
f7bd05
%{dynload_dir}/_md5.%{SOABI_debug}.so
1c8e9a
%{dynload_dir}/_sha1.%{SOABI_debug}.so
f7bd05
%{dynload_dir}/_sha256.%{SOABI_debug}.so
1c8e9a
%{dynload_dir}/_sha3.%{SOABI_debug}.so
f7bd05
%{dynload_dir}/_sha512.%{SOABI_debug}.so
1c8e9a
1b0929
%{dynload_dir}/_asyncio.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_bisect.%{SOABI_debug}.so
1c94c1
%{dynload_dir}/_bz2.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_codecs_cn.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_codecs_hk.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_codecs_iso2022.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_codecs_jp.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_codecs_kr.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_codecs_tw.%{SOABI_debug}.so
cea6d6
%{dynload_dir}/_contextvars.%{SOABI_debug}.so
1c94c1
%{dynload_dir}/_crypt.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_csv.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_ctypes.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_curses.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_curses_panel.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_dbm.%{SOABI_debug}.so
1c94c1
%{dynload_dir}/_decimal.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_elementtree.%{SOABI_debug}.so
043c57
%if %{with gdbm}
5080ff
%{dynload_dir}/_gdbm.%{SOABI_debug}.so
5fe31d
%endif
5080ff
%{dynload_dir}/_hashlib.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_heapq.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_json.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_lsprof.%{SOABI_debug}.so
1c94c1
%{dynload_dir}/_lzma.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_multibytecodec.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_multiprocessing.%{SOABI_debug}.so
3aee76
%{dynload_dir}/_opcode.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_pickle.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_posixsubprocess.%{SOABI_debug}.so
cea6d6
%{dynload_dir}/_queue.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_random.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_socket.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_sqlite3.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_ssl.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_struct.%{SOABI_debug}.so
5080ff
%{dynload_dir}/array.%{SOABI_debug}.so
5080ff
%{dynload_dir}/audioop.%{SOABI_debug}.so
5080ff
%{dynload_dir}/binascii.%{SOABI_debug}.so
5080ff
%{dynload_dir}/cmath.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_datetime.%{SOABI_debug}.so
5080ff
%{dynload_dir}/fcntl.%{SOABI_debug}.so
5080ff
%{dynload_dir}/grp.%{SOABI_debug}.so
5080ff
%{dynload_dir}/math.%{SOABI_debug}.so
5080ff
%{dynload_dir}/mmap.%{SOABI_debug}.so
5080ff
%{dynload_dir}/nis.%{SOABI_debug}.so
5080ff
%{dynload_dir}/ossaudiodev.%{SOABI_debug}.so
5080ff
%{dynload_dir}/parser.%{SOABI_debug}.so
1fb3c0
%{dynload_dir}/_posixshmem.%{SOABI_debug}.so
5080ff
%{dynload_dir}/pyexpat.%{SOABI_debug}.so
5080ff
%{dynload_dir}/readline.%{SOABI_debug}.so
5080ff
%{dynload_dir}/resource.%{SOABI_debug}.so
5080ff
%{dynload_dir}/select.%{SOABI_debug}.so
5080ff
%{dynload_dir}/spwd.%{SOABI_debug}.so
5080ff
%{dynload_dir}/syslog.%{SOABI_debug}.so
5080ff
%{dynload_dir}/termios.%{SOABI_debug}.so
5080ff
%{dynload_dir}/unicodedata.%{SOABI_debug}.so
d668c1
%{dynload_dir}/_uuid.%{SOABI_debug}.so
1fb3c0
%{dynload_dir}/_xxsubinterpreters.%{SOABI_debug}.so
d668c1
%{dynload_dir}/_xxtestfuzz.%{SOABI_debug}.so
5080ff
%{dynload_dir}/zlib.%{SOABI_debug}.so
55cf58
55cf58
# No need to split things out the "Makefile" and the config-32/64.h file as we
55cf58
# do for the regular build above (bug 531901), since they're all in one package
55cf58
# now; they're listed below, under "-devel":
55cf58
Robert Kuska 083745
%{_libdir}/%{py_INSTSONAME_debug}
55cf58
55cf58
# Analog of the -devel subpackage's files:
bea97d
%{pylibdir}/config-%{LDVERSION_debug}-%{_arch}-linux%{_gnu}
5080ff
%{_includedir}/python%{LDVERSION_debug}
5080ff
%{_bindir}/python%{LDVERSION_debug}-config
3a35e0
%{_bindir}/python%{LDVERSION_debug}-*-config
5080ff
%{_libdir}/libpython%{LDVERSION_debug}.so
Matej Stuchlik abb2ff
%{_libdir}/libpython%{LDVERSION_debug}.so.1.0
5080ff
%{_libdir}/pkgconfig/python-%{LDVERSION_debug}.pc
a29283
%{_libdir}/pkgconfig/python-%{LDVERSION_debug}-embed.pc
55cf58
55cf58
# Analog of the -tools subpackage's files:
55cf58
#  None for now; we could build precanned versions that have the appropriate
55cf58
# shebang if needed
55cf58
55cf58
# Analog  of the tkinter subpackage's files:
5080ff
%{dynload_dir}/_tkinter.%{SOABI_debug}.so
55cf58
55cf58
# Analog  of the -test subpackage's files:
5080ff
%{dynload_dir}/_ctypes_test.%{SOABI_debug}.so
1c94c1
%{dynload_dir}/_testbuffer.%{SOABI_debug}.so
5080ff
%{dynload_dir}/_testcapi.%{SOABI_debug}.so
b28217
%{dynload_dir}/_testimportmultiple.%{SOABI_debug}.so
285f55
%{dynload_dir}/_testinternalcapi.%{SOABI_debug}.so
285f55
%{dynload_dir}/_testmultiphase.%{SOABI_debug}.so
55cf58
043c57
%endif # with debug_build
815994
c4a573
# We put the debug-gdb.py file inside /usr/lib/debug to avoid noise from ldconfig
c4a573
# See https://bugzilla.redhat.com/show_bug.cgi?id=562980
Robert Kuska a0e3ab
#
15a050
# The /usr/lib/rpm/redhat/macros defines %%__debug_package to use
d5a5bf
# debugfiles.list, and it appears that everything below /usr/lib/debug and
d5a5bf
# (/usr/src/debug) gets added to this file (via LISTFILES) in
d5a5bf
# /usr/lib/rpm/find-debuginfo.sh
Robert Kuska a0e3ab
#
d5a5bf
# Hence by installing it below /usr/lib/debug we ensure it is added to the
d5a5bf
# -debuginfo subpackage
Robert Kuska a0e3ab
# (if it doesn't, then the rpmbuild ought to fail since the debug-gdb.py
d5a5bf
# payload file would be unpackaged)
d5a5bf
c4a573
# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1476593
c6fe5c
%undefine _debuginfo_subpackages
d5a5bf
c769a6
# ======================================================
c769a6
# Finally, the changelog:
c769a6
# ======================================================
c769a6
a3483f
%changelog
1e3b8f
* Tue Aug 13 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~b3-1
29530b
- Update to 3.8.0b3
29530b
e25999
* Sun Aug 11 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.4-5
e25999
- Conditionalize python3-devel runtime dependencies on RPM packages and setuptools
e25999
5c6b2e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-4
5c6b2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5c6b2e
a66433
* Mon Jul 15 2019 Lumír Balhar <lbalhar@redhat.com> - 3.7.4-3
a66433
- Move test.support module to python3-test subpackage
a66433
  https://fedoraproject.org/wiki/Changes/Move_test.support_module_to_python3-test_subpackage
ec995d
- Restore pyc to TIMESTAMP invalidation mode as default in rpmbubild
a66433
337d33
* Fri Jul 12 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.4-2
337d33
- https://fedoraproject.org/wiki/Changes/Python_means_Python3
337d33
- The python-unversioned-command package is no longer Python 2, but 3
337d33
- The python, pydoc, python-config, python-debug, idle, pygettext.py and
337d33
  msgfmt.py commands are now in python3
337d33
663a99
* Tue Jul 09 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.4-1
663a99
- Update to 3.7.4
663a99
f585cd
* Tue Jul 02 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.4~rc2-1
f585cd
- Update to 3.7.4rc2
f585cd
dd5f80
* Tue Jun 25 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.4~rc1-1
dd5f80
- Update to 3.7.4rc1
dd5f80
1b92cc
* Tue May 07 2019 Charalampos Stratakis <cstratak@redhat.com> - 3.7.3-3
1b92cc
- Fix handling of pre-normalization characters in urlsplit
d3803a
- Disallow control chars in http URLs (#1695572, #1700684, #1688169, #1706851)
1b92cc
8f86cf
* Wed Apr 17 2019 Patrik Kopkan <pkopkan@redhat.com> - 3.7.3-2
8f86cf
- Makes man python3.7m show python3.7 man pages (#1612241)
8f86cf
6caee3
* Wed Mar 27 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.3-1
6caee3
- Update to 3.7.3
6caee3
45a436
* Thu Mar 21 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.3~rc1-1
45a436
- Update to 3.7.3rc1
45a436
498b88
* Thu Mar 14 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.2-8
498b88
- Security fix for CVE-2019-9636 (#1688543, #1688546)
498b88
50afd5
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.7.2-7
50afd5
- Rebuild for readline 8.0
50afd5
8927d3
* Tue Feb 12 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.2-6
8927d3
- Reduced default build flags used to build extension modules
8927d3
  https://fedoraproject.org/wiki/Changes/Python_Extension_Flags
8927d3
1cdc33
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.2-5
1cdc33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1cdc33
4e7015
* Wed Jan 16 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.2-4
4e7015
- Security fix for CVE-2019-5010 (#1666519, #1666522)
4e7015
053863
* Mon Jan 14 2019 Björn Esser <besser82@fedoraproject.org> - 3.7.2-3
053863
- Rebuilt for libcrypt.so.2 (#1666033)
053863
41f590
* Fri Jan 04 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.2-2
41f590
- No longer revert upstream commit 3b699932e5ac3e7
41f590
- This was a dirty workaround for (#1644936)
41f590
1385d6
* Tue Dec 25 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.2-1
1385d6
- Update to 3.7.2
1385d6
1092d4
* Fri Dec 07 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.1-5
1092d4
- Make sure we don't ship any exe files (not needed an prebuilt)
1092d4
31d963
* Wed Nov 21 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.1-4
31d963
- Make sure the entire test.support module is in python3-libs (#1651245)
31d963
a4e394
* Tue Nov 06 2018 Victor Stinner <vstinner@redhat.com> - 3.7.1-3
a4e394
- Verify the value of '-s' when execute the CLI of cProfile (rhbz#1160640)
a4e394
72bc3f
* Sun Nov 04 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.1-2
72bc3f
- Temporarily revert upstream commit 3b699932e5ac3e7
72bc3f
- This is dirty workaround for (#1644936)
72bc3f
d533a3
* Mon Oct 22 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.1-1
d533a3
- Update to 3.7.1
d533a3
091b4b
* Thu Sep 27 2018 Petr Viktorin <pviktori@redhat.com> - 3.7.0-10
091b4b
- Compile the debug build with -Og rather than -O0
091b4b
4da7cf
* Thu Aug 30 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-9
4da7cf
- Require python3-setuptools from python3-devel to prevent packaging errors (#1623914)
4da7cf
83a5f5
* Fri Aug 17 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-8
83a5f5
- Add /usr/bin/pygettext3.py and msgfmt3.py to python3-devel
83a5f5
Resolves: rhbz#1571474
83a5f5
4aa9eb
* Fri Aug 17 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-7
4aa9eb
- Backport TLS 1.3 related fixes to fix FTBFS
4aa9eb
Resolves: rhbz#1609291
4aa9eb
0b241a
* Wed Aug 15 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-6
0b241a
- Use RPM built wheels of pip and setuptools in ensurepip instead of our rewheel patch
0b241a
da8beb
* Fri Aug 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.7.0-5
da8beb
- Fix wrong requirement on gdbm
da8beb
37437e
* Fri Jul 20 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-4
37437e
- Allow to call Py_Main() after Py_Initialize()
37437e
Resolves: rhbz#1595421
37437e
266317
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.0-3
266317
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
266317
7a4ecf
* Thu Jul 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.7.0-2
7a4ecf
- Rebuild for new gdbm
7a4ecf
dc63bc
* Wed Jun 27 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-1
dc63bc
- Update to 3.7.0 final
dc63bc
3ba1d1
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-0.21.rc1
3ba1d1
- Finish bootstrapping, enable rewheel, tests, optimizations
3ba1d1
63f277
* Tue Jun 12 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-0.20.rc1
63f277
- Update to 3.7.0rc1
2266a2
- Bootstrap, disable rewheel, tests, optimizations
63f277
e324bf
* Mon Apr 23 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.5-4
e324bf
- Fix multiprocessing regression on newer glibcs
e324bf
- Enable test_multiprocessing_fork(server) and _spawn again
e324bf
Resolves: rhbz#1569933
e324bf
45a046
* Thu Apr 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.5-3
45a046
- Skip test_multiprocessing_fork(server) and _spawn for now
45a046
8c67ba
* Wed Apr 18 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.5-2
8c67ba
- Add flatpackage conditionals
8c67ba
9a2e4b
* Thu Mar 29 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.5-1
9a2e4b
- Update to 3.6.5
9a2e4b
e8fa18
* Sat Mar 24 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-20
e8fa18
- Fix broken macro invocation and broken building of C Python extensions
e8fa18
Resolves: rhbz#1560103
e8fa18
545e68
* Fri Mar 16 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-19
545e68
- Add -n option for pathfix.py
545e68
Resolves: rhbz#1546990
545e68
e5f415
* Thu Mar 15 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-18
e5f415
- Fix the py_byte_compile macro to work on Python 2
e5f415
- Remove the pybytecompile macro file from the flat package
e5f415
Resolves: rhbz#1484993
e5f415
c9bb11
* Tue Mar 13 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-17
c9bb11
- Do not send IP addresses in SNI TLS extension
c9bb11
347e96
* Sat Feb 24 2018 Florian Weimer <fweimer@redhat.com> - 3.6.4-16
347e96
- Rebuild with new LDFLAGS from redhat-rpm-config
347e96
3f778c
* Wed Feb 21 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-15
3f778c
- Filter out automatic /usr/bin/python3.X requirement,
3f778c
  recommend the main package from libs instead
3f778c
Resolves: rhbz#1547131
3f778c
d93846
* Thu Feb 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.4-14
d93846
- Remove the python3-tools package (#rhbz 1312030)
d93846
- Move /usr/bin/2to3 to python3-devel
d93846
- Move /usr/bin/idle and idlelib to python3-idle
d93846
- Provide python3-tools from python3-idle
d93846
40b8f9
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.6.4-13
40b8f9
- Escape macros in %%changelog
40b8f9
08ffd0
* Fri Feb 02 2018 Michal Cyprian <mcyprian@redhat.com> - 3.6.4-12
08ffd0
- Remove sys.executable check from change-user-install-location patch
08ffd0
Resolves: rhbz#1532287
08ffd0
969d51
* Thu Feb 01 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-11
969d51
- Define TLS cipher suite on build time.
969d51
be0492
* Wed Jan 31 2018 Tomas Orsava <torsava@redhat.com> - 3.6.4-10
be0492
- Disable test_gdb for all arches and test_buffer for ppc64le in anticipation
be0492
  of the F28 mass rebuild
be0492
- Re-enable these tests after the mass rebuild when they can be properly
be0492
  addressed
be0492
d623e9
* Tue Jan 23 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-9
d623e9
- Restore the PyExc_RecursionErrorInst public symbol
d623e9
ce6ec4
* Tue Jan 23 2018 Björn Esser <besser82@fedoraproject.org> - 3.6.4-8
ce6ec4
- Add patch to explicitly link _ctypes module with -ldl (#1537489)
ce6ec4
- Refactored patch for libxcrypt
ce6ec4
- Re-enable strict symbol checks in the link editor
ce6ec4
5ea7bf
* Mon Jan 22 2018 Björn Esser <besser82@fedoraproject.org> - 3.6.4-7
5ea7bf
- Add patch for libxcrypt
5a8bf9
- Disable strict symbol checks in the link editor
5ea7bf
085ae3
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 3.6.4-6
085ae3
- Rebuilt for switch to libxcrypt
085ae3
260247
* Fri Jan 19 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-5
260247
- Fix localeconv() encoding for LC_NUMERIC
260247
57ec20
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.6.4-4
57ec20
- R: gdbm-devel → R: gdbm for python3-libs
57ec20
1a43a6
* Wed Jan 17 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-3
1a43a6
- Require large enough gdbm (fixup for previous bump)
1a43a6
6e3866
* Tue Jan 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-2
6e3866
- Rebuild for reverted gdbm 1.13 on Fedora 27
6e3866
0077a1
* Mon Jan 15 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-1
0077a1
- Update to version 3.6.4
0077a1
6ff303
* Fri Jan 12 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.3-5
6ff303
- Fix the compilation of the nis module.
6ff303
1f528d
* Tue Nov 21 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.3-4
1f528d
- Raise the release of platform-python obsoletes for better maintainability
1f528d
e522c8
* Wed Nov 15 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.3-3
e522c8
- Obsolete platform-python and it's subpackages
e522c8
22b8f2
* Mon Oct 09 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.3-2
22b8f2
- Fix memory corruption due to allocator mix
22b8f2
Resolves: rhbz#1498207
22b8f2
47069f
* Fri Oct 06 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.3-1
47069f
- Update to Python 3.6.3
47069f
71718b
* Fri Sep 29 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-19
0652b0
- Move pathfix.py to bindir, https://github.com/fedora-python/python-rpm-porting/issues/24
71718b
- Make the -devel package require redhat-rpm-config
71718b
Resolves: rhbz#1496757
0652b0
Iryna Shcherbina 685fb7
* Wed Sep 13 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.2-18
Iryna Shcherbina 685fb7
- Fix /usr/bin/env dependency from python3-tools
Iryna Shcherbina 685fb7
Resolves: rhbz#1482118
Iryna Shcherbina 685fb7
Iryna Shcherbina 87e35e
* Wed Sep 06 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.2-17
Iryna Shcherbina 87e35e
- Include `-g` in the flags sent to the linker (LDFLAGS)
Iryna Shcherbina 87e35e
Resolves: rhbz#1483222
Iryna Shcherbina 87e35e
7d6b08
* Tue Sep 05 2017 Petr Viktorin <pviktori@redhat.com> - 3.6.2-16
7d6b08
- Specfile cleanup
7d6b08
- Make the main description also applicable to the SRPM
7d6b08
- Add audiotest.au to the test package
7d6b08
1acd7d
* Fri Sep 01 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-15
1acd7d
- Remove %%{pylibdir}/Tools/scripts/2to3
1acd7d
33e110
* Fri Sep 01 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-14
33e110
- Expat >= 2.1.0 is everywhere, remove explicit requires
51501f
- Conditionalize systemtap-devel BuildRequires
5f24f3
- For consistency, require /usr/sbin/ifconfig instead of net-tools
33e110
d27ccf
* Mon Aug 28 2017 Petr Viktorin <pviktori@redhat.com> - 3.6.2-13
d27ccf
- Rename patch files to be consistent
96a7bd
- Run autotools to generate the configure script before building
2c6abc
- Merge lib64 patches (104 into 102)
bbf222
- Skip test_bdist_rpm using test config rather than a patch (removes patch 137)
d8970d
- Remove patches 157 and 186, which had test changes left over after upstreaming
ac06de
- Remove patch 188, a temporary workaround for hashlib tests
357f40
- Merge patches 180, 206, 243, 5001 (architecture naming) into new patch 274
357f40
- Move python2-tools conflicts to tools subpackage (it was wrongly in tkinter)
d27ccf
eef42f
* Mon Aug 28 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.2-12
eef42f
- Use python3 style of calling super() without arguments in rpath
eef42f
  patch to prevent recursion in UnixCCompiler subclasses
eef42f
Resolves: rhbz#1458122
eef42f
a7a170
* Mon Aug 21 2017 Petr Viktorin <pviktori@redhat.com> - 3.6.2-11
a7a170
- Add bcond for --without optimizations
c2f871
- Reword package descriptions
c2f871
- Remove Group declarations
74f6a3
- Skip failing test_float_with_comma
a7a170
11efc8
* Mon Aug 21 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-10
11efc8
- Remove system-python, see https://fedoraproject.org/wiki/Changes/Platform_Python_Stack
11efc8
043c57
* Wed Aug 16 2017 Petr Viktorin <pviktori@redhat.com> - 3.6.2-9
043c57
- Use bconds for configuring the build
043c57
- Reorganize the initial sections
043c57
b0aea5
* Wed Aug 16 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-8
b0aea5
- Have /usr/bin/2to3 (rhbz#1111275)
b0aea5
- Provide 2to3 and idle3, list them in summary and description (rhbz#1076401)
b0aea5
58f92d
* Fri Aug 11 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.2-7
58f92d
- Revert "Add --executable option to install.py command"
58f92d
  This enhancement is currently not needed and it can possibly
58f92d
  collide with `pip --editable`option
58f92d
Iryna Shcherbina 2c3b22
* Mon Aug 07 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.2-6
Iryna Shcherbina 2c3b22
- Fix the "urllib FTP protocol stream injection" vulnerability
Iryna Shcherbina 2c3b22
Resolves: rhbz#1478916
Iryna Shcherbina 2c3b22
7ce2b3
* Tue Aug 01 2017 Tomas Orsava <torsava@redhat.com> - 3.6.2-5
7ce2b3
- Dropped BuildRequires on db4-devel which was useful for Python 2 (module
7ce2b3
  bsddb), however, no longer needod for Python 3
7ce2b3
- Tested building Python 3 with and without the dependency, all tests pass and
7ce2b3
  filelists of resulting RPMs are identical
7ce2b3
c6fe5c
* Sun Jul 30 2017 Florian Weimer <fweimer@redhat.com> - 3.6.2-4
c6fe5c
- Do not generate debuginfo subpackages (#1476593)
c6fe5c
- Rebuild with binutils fix for ppc64le (#1475636)
c6fe5c
4cc9b2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.2-3
4cc9b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4cc9b2
3a226a
* Tue Jul 25 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.2-2
3a226a
- Make test_asyncio to not depend on the current SIGHUP signal handler.
3a226a
4ff211
* Tue Jul 18 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.2-1
4ff211
- Update to Python 3.6.2
4ff211
252962
* Tue Jun 27 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-10
252962
- Update to the latest upstream implementation of PEP 538
252962
332b94
* Mon Jun 26 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.1-9
332b94
- Make pip and distutils in user environment install into separate location
332b94
b5403b
* Fri Jun 23 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-8
b5403b
- Fix test_alpn_protocols from test_ssl
b5403b
- Do not require rebundled setuptools dependencies
b5403b
bb9ca6
* Tue May 16 2017 Tomas Orsava <torsava@redhat.com> - 3.6.1-7
bb9ca6
- Added a dependency to the devel subpackage on python3-rpm-generators which
bb9ca6
  have been excised out of rpm-build
bb9ca6
- Updated notes on bootstrapping Python on top of this specfile accordingly
bb9ca6
- Involves: rhbz#1410631, rhbz#1444925
bb9ca6
27c558
* Tue May 09 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-6
27c558
- Enable profile guided optimizations for x86_64 and i686 architectures
27c558
- Update to a newer implementation of PEP 538
27c558
- Update description to reflect that Python 3 is now the default Python
27c558
31fe33
* Fri May 05 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-5
31fe33
- Update PEP 538 to the latest upstream implementation
31fe33
bbbc44
* Tue Apr 18 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-4
bbbc44
- Enable link time optimizations
bbbc44
- Move windows executables to the devel subpackage (rhbz#1426257)
bbbc44
3a35e0
* Thu Apr 13 2017 Tomas Orsava <torsava@redhat.com> - 3.6.1-3
3a35e0
- Rename python3.Xdm-config script from -debug to be arch specific
3a35e0
Resolves: rhbz#1179073
3a35e0
bea97d
* Wed Apr 05 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-2
bea97d
- Install the Makefile in its proper location (rhbz#1438219)
bea97d
Iryna Shcherbina b603b2
* Wed Mar 22 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.1-1
Iryna Shcherbina b603b2
- Update to version 3.6.1 final
Iryna Shcherbina b603b2
628b06
* Tue Mar 21 2017 Tomas Orsava <torsava@redhat.com> - 3.6.1-0.2.rc1
628b06
- Fix syntax error in %%py_byte_compile macro (rhbz#1433569)
628b06
Iryna Shcherbina aba719
* Thu Mar 16 2017 Iryna Shcherbina <ishcherb@redaht.com> - 3.6.1-0.1.rc1
Iryna Shcherbina aba719
- Update to Python 3.6.1 release candidate 1
Iryna Shcherbina aba719
- Add patch 264 to skip a known test failure on aarch64
Iryna Shcherbina aba719
3b36b4
* Fri Mar 10 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-21
3b36b4
- Use proper command line parsing in _testembed
3b36b4
- Backport of PEP 538: Coercing the legacy C locale to a UTF-8 based locale
3b36b4
  https://fedoraproject.org/wiki/Changes/python3_c.utf-8_locale
3b36b4
860f39
* Mon Feb 27 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-20
860f39
- Add desktop entry and appdata.xml file for IDLE 3 (rhbz#1392049)
860f39
bbccd6
* Fri Feb 24 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.0-19
bbccd6
- Revert "Set values of prefix and exec_prefix to /usr/local for
bbccd6
  /usr/bin/python* executables..." to prevent build failures
bbccd6
  of packages using alternate build tools
bbccd6
24515d
* Tue Feb 21 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.0-18
24515d
- Set values of prefix and exec_prefix to /usr/local for
24515d
  /usr/bin/python* executables
24515d
- Use new %%_module_build macro
24515d
ef5c6f
* Fri Feb 17 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.0-13
ef5c6f
- Add --executable option to install.py command
ef5c6f
7973de
* Wed Feb 15 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-12
7973de
- BuildRequire the new dependencies of setuptools when rewheel mode is enabled
7973de
in order for the virtualenvs to work properly
7973de
45bc61
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-11
45bc61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
45bc61
ea1445
* Wed Feb 01 2017 Stephen Gallagher <sgallagh@redhat.com> - 3.6.0-10
ea1445
- Add missing %%license macro
ea1445
d80b54
* Thu Jan 26 2017 Tomas Orsava <torsava@redhat.com> - 3.6.0-9
d80b54
- Modify the runtime dependency of python3-libs on system-python-libs again,
d80b54
  because previous attempt didn't work properly with dnf resolving mechanism
d80b54
d80b54
* Wed Jan 25 2017 Tomas Orsava <torsava@redhat.com> - 3.6.0-8
d80b54
- Modify the runtime dependency of python3-libs on system-python-libs to use
d80b54
  just the version and release number, but not the dist tag due to Modularity
d80b54
79728f
* Mon Jan 16 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-7
79728f
- Fix error check, so that Random.seed actually uses OS randomness (rhbz#1412275)
ae3f90
- Skip test_aead_aes_gcm during rpmbuild
79728f
Igor Gnatenko 2294d6
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 3.6.0-6
Igor Gnatenko 2294d6
- Rebuild for readline 7.x
Igor Gnatenko 2294d6
a5e356
* Tue Jan 10 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-5
a5e356
- Require glibc >= 2.24.90-26 for system-python-libs (rhbz#1410644)
a5e356
0da740
* Mon Jan 09 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-4
0da740
- Define HAVE_LONG_LONG as 1 for backwards compatibility
0da740
1abbc7
* Thu Jan 05 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.0-3
6bb118
- Don't blow up on EL7 kernel (random generator) (rhbz#1410175)
6bb118
e79e90
* Tue Dec 27 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-1
e79e90
- Update to Python 3.6.0 final
e79e90
efda0c
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-0.6.rc1
efda0c
- Enable rewheel
efda0c
97cc10
* Wed Dec 07 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-0.5.rc1
97cc10
- Update to Python 3.6.0 release candidate 1
97cc10
d55596
* Mon Dec 05 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-0.4.b4
3b1225
- Update to Python 3.6.0 beta 4
3b1225
ddb16c
* Mon Dec 05 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.2-7
ddb16c
- Set to work with pip version 9.0.1
ddb16c
f7bd05
* Wed Oct 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.2-6
f7bd05
- Use proper patch numbering and base upstream branch for
f7bd05
porting ssl and hashlib modules to OpenSSL 1.1.0
f7bd05
- Drop hashlib patch for now
f7bd05
- Add riscv64 arch to 64bit and no-valgrind arches
f7bd05
55d65a
* Tue Oct 11 2016 Tomáš Mráz <tmraz@redhat.com> - 3.5.2-5
38b026
- Make it build with OpenSSL-1.1.0 based on upstream patch
38b026
176898
* Wed Sep 14 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.2-4
176898
- Obsolete and Provide python35 package
176898
5941d2
* Mon Sep 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.2-3
40b8f9
- Update %%py_byte_compile macro
5941d2
- Remove unused configure flags (rhbz#1374357)
5941d2