Blame SPECS/python38.spec

09e27f
# ==================
09e27f
# Top-level metadata
09e27f
# ==================
09e27f
09e27f
%global pybasever 3.8
09e27f
09e27f
# pybasever without the dot:
09e27f
%global pyshortver 38
09e27f
09e27f
Name: python38
09e27f
Summary: Interpreter of the Python programming language
09e27f
URL: https://www.python.org/
09e27f
09e27f
#  WARNING  When rebasing to a new Python version,
09e27f
#           remember to update the python3-docs package as well
ce2d1c
%global general_version %{pybasever}.6
09e27f
#global prerel ...
09e27f
%global upstream_version %{general_version}%{?prerel}
09e27f
Version: %{general_version}%{?prerel:~%{prerel}}
acec95
Release: 3%{?dist}
09e27f
License: Python
09e27f
09e27f
# Exclude i686 arch. Due to a modularity issue it's being added to the
09e27f
# x86_64 compose of CRB, but we don't want to ship it at all.
09e27f
# See: https://projects.engineering.redhat.com/browse/RCM-72605
09e27f
ExcludeArch: i686
09e27f
09e27f
# ==================================
09e27f
# Conditionals controlling the build
09e27f
# ==================================
09e27f
09e27f
# Note that the bcond macros are named for the CLI option they create.
09e27f
# "%%bcond_without" means "ENABLE by default and create a --without option"
09e27f
09e27f
09e27f
# Flat package, i.e. python36, python37, python38 for tox etc.
09e27f
# WARNING: This also influences the main_python bcond below.
09e27f
# in Fedora, never turn this on for the python3 package
09e27f
# and always keep it on for python37 etc.
09e27f
# WARNING: This does not change the package name and summary above.
09e27f
%bcond_with flatpackage
09e27f
09e27f
# Main Python, i.e. whether this is the main Python version in the distribution
09e27f
# that owns /usr/bin/python3 and other unique paths
09e27f
%bcond_with main_python
09e27f
09e27f
# When bootstrapping python3, we need to build setuptools.
09e27f
# but setuptools BR python3-devel and that brings in python3-rpm-generators;
09e27f
# python3-rpm-generators needs python3-setuptools, so we cannot have it yet.
09e27f
#
09e27f
# Procedure: https://fedoraproject.org/wiki/SIGs/Python/UpgradingPython
09e27f
#
09e27f
#   IMPORTANT: When bootstrapping, it's very likely the wheels for pip and
09e27f
#   setuptools are not available. Turn off the rpmwheels bcond until
09e27f
#   the two packages are built with wheels to get around the issue.
09e27f
%bcond_with bootstrap
09e27f
09e27f
# Whether to use RPM build wheels from the python-{pip,setuptools}-wheel package
09e27f
# Uses upstream bundled prebuilt wheels otherwise
09e27f
%bcond_without rpmwheels
09e27f
09e27f
# Expensive optimizations (mainly, profile-guided optimizations)
09e27f
%bcond_without optimizations
09e27f
acec95
# https://fedoraproject.org/wiki/Changes/PythonNoSemanticInterpositionSpeedup
acec95
%bcond_without no_semantic_interposition
acec95
09e27f
# Run the test suite in %%check
09e27f
%bcond_without tests
09e27f
09e27f
# Extra build for debugging the interpreter or C-API extensions
09e27f
# (the -debug subpackages)
09e27f
%if %{with flatpackage}
09e27f
%bcond_with debug_build
09e27f
%else
09e27f
%bcond_without debug_build
09e27f
%endif
09e27f
09e27f
# Support for the GDB debugger
09e27f
%bcond_without gdb_hooks
09e27f
09e27f
# The dbm.gnu module (key-value database)
09e27f
%bcond_without gdbm
09e27f
09e27f
# Main interpreter loop optimization
09e27f
%bcond_without computed_gotos
09e27f
09e27f
# Support for the Valgrind debugger/profiler
09e27f
%ifarch %{valgrind_arches}
09e27f
%bcond_without valgrind
09e27f
%else
09e27f
%bcond_with valgrind
09e27f
%endif
09e27f
ce2d1c
# https://fedoraproject.org/wiki/Changes/Python_Upstream_Architecture_Names
ce2d1c
# For a very long time we have converted "upstream architecture names" to "Fedora names".
ce2d1c
# This made sense at the time, see https://github.com/pypa/manylinux/issues/687#issuecomment-666362947
ce2d1c
# However, with manylinux wheels popularity growth, this is now a problem.
ce2d1c
# Wheels built on a Linux that doesn't do this were not compatible with ours and vice versa.
ce2d1c
# We now have a compatibility layer to workaround a problem,
ce2d1c
# but we also no longer use the legacy arch names in Fedora 34+.
ce2d1c
# This bcond controls the behavior. The defaults should be good for anybody.
ce2d1c
%bcond_without legacy_archnames
09e27f
09e27f
# =====================
09e27f
# General global macros
09e27f
# =====================
09e27f
09e27f
# Set python3_pkgversion so that python_provide macro works for python38-
09e27f
# prefixes in this spec file
09e27f
# This is also set in the python38-rpm-macros package so that it works in other
09e27f
# packages of this module.
09e27f
%global python3_pkgversion 38
09e27f
09e27f
%global pylibdir %{_libdir}/python%{pybasever}
09e27f
%global dynload_dir %{pylibdir}/lib-dynload
09e27f
09e27f
# ABIFLAGS, LDVERSION and SOABI are in the upstream configure.ac
09e27f
# See PEP 3149 for some background: http://www.python.org/dev/peps/pep-3149/
09e27f
%global ABIFLAGS_optimized %{nil}
09e27f
%global ABIFLAGS_debug     d
09e27f
09e27f
%global LDVERSION_optimized %{pybasever}%{ABIFLAGS_optimized}
09e27f
%global LDVERSION_debug     %{pybasever}%{ABIFLAGS_debug}
09e27f
ce2d1c
# When we use the upstream arch triplets, we convert them from the legacy ones
ce2d1c
# This is reversed in prep when %%with legacy_archnames, so we keep both macros
ce2d1c
%global platform_triplet_legacy %{_arch}-linux%{_gnu}
ce2d1c
%global platform_triplet_upstream %{expand:%(echo %{platform_triplet_legacy} | sed -E \\
ce2d1c
    -e 's/^arm(eb)?-linux-gnueabi$/arm\\1-linux-gnueabihf/' \\
ce2d1c
    -e 's/^mips64(el)?-linux-gnu$/mips64\\1-linux-gnuabi64/' \\
ce2d1c
    -e 's/^ppc(64)?(le)?-linux-gnu$/powerpc\\1\\2-linux-gnu/')}
ce2d1c
%if %{with legacy_archnames}
ce2d1c
%global platform_triplet %{platform_triplet_legacy}
ce2d1c
%else
ce2d1c
%global platform_triplet %{platform_triplet_upstream}
ce2d1c
%endif
ce2d1c
 
ce2d1c
%global SOABI_optimized cpython-%{pyshortver}%{ABIFLAGS_optimized}-%{platform_triplet}
ce2d1c
%global SOABI_debug     cpython-%{pyshortver}%{ABIFLAGS_debug}-%{platform_triplet}
09e27f
09e27f
# All bytecode files are in a __pycache__ subdirectory, with a name
09e27f
# reflecting the version of the bytecode.
09e27f
# See PEP 3147: http://www.python.org/dev/peps/pep-3147/
09e27f
# For example,
09e27f
#   foo/bar.py
09e27f
# has bytecode at:
09e27f
#   foo/__pycache__/bar.cpython-%%{pyshortver}.pyc
09e27f
#   foo/__pycache__/bar.cpython-%%{pyshortver}.opt-1.pyc
09e27f
#   foo/__pycache__/bar.cpython-%%{pyshortver}.opt-2.pyc
09e27f
%global bytecode_suffixes .cpython-%{pyshortver}*.pyc
09e27f
09e27f
# Python's configure script defines SOVERSION, and this is used in the Makefile
09e27f
# to determine INSTSONAME, the name of the libpython DSO:
09e27f
#   LDLIBRARY='libpython$(VERSION).so'
09e27f
#   INSTSONAME="$LDLIBRARY".$SOVERSION
09e27f
# We mirror this here in order to make it easier to add the -gdb.py hooks.
09e27f
# (if these get out of sync, the payload of the libs subpackage will fail
09e27f
# and halt the build)
09e27f
%global py_SOVERSION 1.0
09e27f
%global py_INSTSONAME_optimized libpython%{LDVERSION_optimized}.so.%{py_SOVERSION}
09e27f
%global py_INSTSONAME_debug     libpython%{LDVERSION_debug}.so.%{py_SOVERSION}
09e27f
09e27f
# Disable automatic bytecompilation. The python3 binary is not yet be
09e27f
# available in /usr/bin when Python is built. Also, the bytecompilation fails
09e27f
# on files that test invalid syntax.
09e27f
%undefine py_auto_byte_compile
09e27f
09e27f
09e27f
# =======================
09e27f
# Build-time requirements
09e27f
# =======================
09e27f
09e27f
# (keep this list alphabetized)
09e27f
09e27f
BuildRequires: autoconf
09e27f
BuildRequires: bluez-libs-devel
09e27f
BuildRequires: bzip2
09e27f
BuildRequires: bzip2-devel
09e27f
BuildRequires: desktop-file-utils
09e27f
BuildRequires: expat-devel
09e27f
09e27f
BuildRequires: findutils
09e27f
BuildRequires: gcc-c++
09e27f
%if %{with gdbm}
09e27f
BuildRequires: gdbm-devel
09e27f
%endif
09e27f
BuildRequires: glibc-all-langpacks
09e27f
BuildRequires: glibc-devel
09e27f
BuildRequires: gmp-devel
09e27f
BuildRequires: libappstream-glib
09e27f
BuildRequires: libffi-devel
09e27f
BuildRequires: libnsl2-devel
09e27f
BuildRequires: libtirpc-devel
09e27f
BuildRequires: libGL-devel
09e27f
BuildRequires: libuuid-devel
09e27f
BuildRequires: libX11-devel
09e27f
BuildRequires: ncurses-devel
09e27f
09e27f
BuildRequires: openssl-devel
09e27f
BuildRequires: pkgconfig
09e27f
BuildRequires: readline-devel
09e27f
BuildRequires: redhat-rpm-config
09e27f
BuildRequires: sqlite-devel
09e27f
BuildRequires: gdb
09e27f
09e27f
BuildRequires: tar
09e27f
BuildRequires: tcl-devel
09e27f
BuildRequires: tix-devel
09e27f
BuildRequires: tk-devel
09e27f
09e27f
%if %{with valgrind}
09e27f
BuildRequires: valgrind-devel
09e27f
%endif
09e27f
09e27f
BuildRequires: xz-devel
09e27f
BuildRequires: zlib-devel
09e27f
09e27f
BuildRequires: /usr/bin/dtrace
09e27f
09e27f
# workaround http://bugs.python.org/issue19804 (test_uuid requires ifconfig)
09e27f
BuildRequires: /usr/sbin/ifconfig
09e27f
09e27f
# For %%python_provide
09e27f
BuildRequires: python-rpm-macros
09e27f
09e27f
%if %{with rpmwheels}
09e27f
BuildRequires: python38-setuptools-wheel
09e27f
BuildRequires: python38-pip-wheel
09e27f
%endif
09e27f
09e27f
%if %{without bootstrap}
09e27f
# for make regen-all and distutils.tests.test_bdist_rpm
09e27f
BuildRequires: python%{pyshortver}
09e27f
%endif
09e27f
09e27f
# =======================
09e27f
# Source code and patches
09e27f
# =======================
09e27f
ce2d1c
# The upstream tarball includes questionable executable files for Windows,
ce2d1c
# which we should not ship even in the SRPM.
ce2d1c
# Run the "get-source.sh" with the version as argument to download the upstream
ce2d1c
# tarball and generate a version with the .exe files removed. For example:
ce2d1c
# $ ./get-source.sh 3.7.0
ce2d1c
ce2d1c
Source: Python-%{version}-noexe.tar.xz
ce2d1c
ce2d1c
# A script to remove .exe files from the source distribution
ce2d1c
Source1: get-source.sh
ce2d1c
09e27f
Source3: macros.python38
09e27f
09e27f
# A simple script to check timestamps of bytecode files
09e27f
# Run in check section with Python that is currently being built
09e27f
# Originally written by bkabrda
09e27f
Source8: check-pyc-timestamps.py
09e27f
09e27f
# Desktop menu entry for idle3
09e27f
Source10: idle3.desktop
09e27f
09e27f
# AppData file for idle3
09e27f
Source11: idle3.appdata.xml
09e27f
09e27f
# 00001 #
09e27f
# Fixup distutils/unixccompiler.py to remove standard library path from rpath:
09e27f
# Was Patch0 in ivazquez' python3000 specfile:
09e27f
Patch1:         00001-rpath.patch
09e27f
09e27f
# 00102 #
09e27f
# Change the various install paths to use /usr/lib64/ instead or /usr/lib
09e27f
# Only used when "%%{_lib}" == "lib64"
09e27f
# Not yet sent upstream.
09e27f
Patch102: 00102-lib64.patch
09e27f
09e27f
# 00111 #
09e27f
# Patch the Makefile.pre.in so that the generated Makefile doesn't try to build
09e27f
# a libpythonMAJOR.MINOR.a
09e27f
# See https://bugzilla.redhat.com/show_bug.cgi?id=556092
09e27f
# Downstream only: not appropriate for upstream
09e27f
Patch111: 00111-no-static-lib.patch
09e27f
09e27f
# 00189 #
09e27f
# Instead of bundled wheels, use our RPM packaged wheels from
09e27f
# /usr/share/python38-wheels
acec95
# Downstream only: upstream bundles
acec95
# We might eventually pursuit upstream support, but it's low prio
09e27f
Patch189: 00189-use-rpm-wheels.patch
09e27f
09e27f
# 00251
09e27f
# Set values of prefix and exec_prefix in distutils install command
09e27f
# to /usr/local if executable is /usr/bin/python* and RPM build
09e27f
# is not detected to make pip and distutils install into separate location
09e27f
# Fedora Change: https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe
acec95
# Downstream only: Awaiting resources to work on upstream PEP
09e27f
Patch251: 00251-change-user-install-location.patch
09e27f
09e27f
# 00328 #
09e27f
# Restore pyc to TIMESTAMP invalidation mode as default in rpmbubild
09e27f
# See https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/57#comment-27426
acec95
# Downstream only: only used when building RPM packages
acec95
# Ideally, we should talk to upstream and explain why we don't want this
09e27f
Patch328: 00328-pyc-timestamp-invalidation-mode.patch
09e27f
09e27f
# 00329 #
09e27f
# Support OpenSSL FIPS mode
09e27f
# - Fallback implementations md5, sha1, sha256, sha512 are removed in favor of OpenSSL wrappers
09e27f
# - In FIPS mode, OpenSSL wrappers are always used in hashlib
09e27f
# - add a new "usedforsecurity" keyword argument to the various digest
09e27f
#   algorithms in hashlib so that you can whitelist a callsite with
09e27f
#   "usedforsecurity=False"
09e27f
#   The change has been implemented upstream since Python 3.9:
09e27f
#   https://bugs.python.org/issue9216
09e27f
# - OpenSSL wrappers for the hashes blake2{b512,s256},
09e27f
#     sha3_{224,256,384,512}, shake_{128,256} are now exported from _hashlib
09e27f
# - In FIPS mode, the blake2, sha3 and shake hashes use OpenSSL wrappers
09e27f
#   and do not offer extended functionality (keys, tree hashing, custom digest size)
09e27f
# - In FIPS mode, hmac.HMAC can only be instantiated with an OpenSSL wrapper
09e27f
#   or an string with OpenSSL hash name as the "digestmod" argument.
09e27f
#   The argument must be specified (instead of defaulting to ‘md5’).
09e27f
#
09e27f
# - Also while in FIPS mode, we utilize OpenSSL's DRBG and disable the
09e27f
#   os.getrandom() function.
09e27f
#
09e27f
# Resolves: rhbz#1731424
09e27f
Patch329: 00329-fips.patch
09e27f
ce2d1c
# 00353 #
ce2d1c
# Original names for architectures with different names downstream
ce2d1c
#
ce2d1c
# https://fedoraproject.org/wiki/Changes/Python_Upstream_Architecture_Names
acec95
#
ce2d1c
# Pythons in RHEL/Fedora used different names for some architectures
ce2d1c
# than upstream and other distros (for example ppc64 vs. powerpc64).
ce2d1c
# This was patched in patch 274, now it is sedded if %%with legacy_archnames.
ce2d1c
#
ce2d1c
# That meant that an extension built with the default upstream settings
ce2d1c
# (on other distro or as an manylinux wheel) could not been found by Python
ce2d1c
# on RHEL/Fedora because it had a different suffix.
ce2d1c
# This patch adds the legacy names to importlib so Python is able
ce2d1c
# to import extensions with a legacy architecture name in its
ce2d1c
# file name.
ce2d1c
# It work both ways, so it support both %%with and %%without legacy_archnames.
ce2d1c
#
ce2d1c
# WARNING: This patch has no effect on Python built with bootstrap
ce2d1c
# enabled because Python/importlib_external.h is not regenerated
ce2d1c
# and therefore Python during bootstrap contains importlib from
ce2d1c
# upstream without this feature. It's possible to include
ce2d1c
# Python/importlib_external.h to this patch but it'd make rebasing
ce2d1c
# a nightmare because it's basically a binary file.
ce2d1c
Patch353: 00353-architecture-names-upstream-downstream.patch
ce2d1c
ce2d1c
# 00357 #
ce2d1c
# Security fix for CVE-2021-3177
ce2d1c
# Stack-based buffer overflow in PyCArg_repr in _ctypes/callproc.c
ce2d1c
# Resolves upstream: https://bugs.python.org/issue42938
ce2d1c
Patch357: 00357-CVE-2021-3177.patch
09e27f
09e27f
# (New patches go here ^^^)
09e27f
#
09e27f
# When adding new patches to "python" and "python3" in Fedora, EL, etc.,
09e27f
# please try to keep the patch numbers in-sync between all specfiles.
09e27f
#
09e27f
# More information, and a patch number catalog, is at:
09e27f
#
09e27f
#     https://fedoraproject.org/wiki/SIGs/Python/PythonPatches
09e27f
#
09e27f
# The patches are stored and rebased at:
09e27f
#
09e27f
#     https://github.com/fedora-python/cpython
09e27f
09e27f
09e27f
# ==========================================
09e27f
# Descriptions, and metadata for subpackages
09e27f
# ==========================================
09e27f
09e27f
# People might want to dnf install pythonX.Y instead of pythonXY;
09e27f
# we enable this in both flat and nonflat package.
09e27f
Provides: python%{pybasever} = %{version}-%{release}
09e27f
09e27f
# When the user tries to `yum install python`, yum will list this package among
09e27f
# the possible alternatives
09e27f
Provides: alternative-for(python)
09e27f
09e27f
# Runtime require alternatives
09e27f
Requires:         %{_sbindir}/alternatives
09e27f
Requires(post):   %{_sbindir}/alternatives
09e27f
Requires(postun): %{_sbindir}/alternatives
09e27f
09e27f
%if %{without flatpackage}
09e27f
09e27f
# Packages with Python modules in standard locations automatically
09e27f
# depend on python(abi). Provide that here.
09e27f
Provides: python(abi) = %{pybasever}
09e27f
09e27f
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
09e27f
09e27f
# In order to support multiple Python interpreters for development purposes,
09e27f
# packages with the naming scheme flatpackage (e.g. python35) exist for
09e27f
# non-default versions of Python 3.
09e27f
# For consistency, and to keep the upgrade path clean, we Provide/Obsolete
09e27f
# these names here.
09e27f
Provides: python%{pyshortver} = %{version}-%{release}
09e27f
09e27f
%if %{with main_python}
09e27f
# https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package
09e27f
# https://fedoraproject.org/wiki/Changes/Python_means_Python3
09e27f
# We recommend /usr/bin/python so users get it by default
09e27f
# Versioned recommends are problematic, and we know that the package requires
09e27f
# python3 back with fixed version, so we just use the path here:
09e27f
Recommends: %{_bindir}/python
09e27f
%endif
09e27f
09e27f
# In Fedora 31, /usr/bin/pydoc was moved here from Python 2.
09e27f
# Ideally we'd have an explicit conflict with "/usr/bin/pydoc < 3",
09e27f
# but file provides aren't versioned and the file moved across packages.
09e27f
# Instead, we rely on the conflict in python3-libs.
09e27f
09e27f
# Previously, this was required for our rewheel patch to work.
09e27f
# This is technically no longer needed, but we keep it recommended
09e27f
# for the developer experience.
09e27f
Recommends: python38-setuptools
09e27f
Recommends: python38-pip
09e27f
09e27f
# This prevents ALL subpackages built from this spec to require
09e27f
# /usr/bin/python3*. Granularity per subpackage is impossible.
09e27f
# It's intended for the libs package not to drag in the interpreter, see
09e27f
# https://bugzilla.redhat.com/show_bug.cgi?id=1547131
09e27f
# All others require %%{name} anyway.
09e27f
%global __requires_exclude ^/usr/bin/python3
09e27f
09e27f
09e27f
# The description used both for the SRPM and the main `python3` subpackage:
09e27f
%description
09e27f
Python is an accessible, high-level, dynamically typed, interpreted programming
09e27f
language, designed with an emphasis on code readability.
09e27f
It includes an extensive standard library, and has a vast ecosystem of
09e27f
third-party libraries.
09e27f
09e27f
The %{name} package provides the "python3" executable: the reference
09e27f
interpreter for the Python language, version 3.
09e27f
The majority of its standard library is provided in the %{name}-libs package,
09e27f
which should be installed automatically along with %{name}.
09e27f
The remaining parts of the Python standard library are broken out into the
09e27f
%{name}-tkinter and %{name}-test packages, which may need to be installed
09e27f
separately.
09e27f
09e27f
Documentation for Python is provided in the %{name}-docs package.
09e27f
09e27f
Packages containing additional libraries for Python are generally named with
09e27f
the "%{name}-" prefix.
09e27f
09e27f
For the unversioned "python" executable, see manual page "unversioned-python".
09e27f
09e27f
09e27f
%if %{with main_python}
09e27f
# https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package
09e27f
# https://fedoraproject.org/wiki/Changes/Python_means_Python3
09e27f
%package -n python-unversioned-command
09e27f
Summary: The "python" command that runs Python 3
09e27f
BuildArch: noarch
09e27f
09e27f
# In theory this could require any python3 version
09e27f
Requires: python3 == %{version}-%{release}
09e27f
# But since we want to provide versioned python, we require exact version
09e27f
Provides: python = %{version}-%{release}
09e27f
# This also save us an explicit conflict for older python3 builds
09e27f
09e27f
%description -n python-unversioned-command
09e27f
This package contains /usr/bin/python - the "python" command that runs Python 3.
09e27f
09e27f
%endif # with main_python
09e27f
09e27f
09e27f
%package libs
09e27f
Summary:        Python runtime libraries
09e27f
09e27f
%if %{with rpmwheels}
09e27f
Requires: python38-setuptools-wheel
09e27f
Requires: python38-pip-wheel
09e27f
%else
09e27f
Provides: bundled(python38-pip) = 19.2.3
09e27f
Provides: bundled(python38-setuptools) = 41.2.0
09e27f
%endif
09e27f
09e27f
%{?python_provide:%python_provide python38-libs}
09e27f
09e27f
# There are files in the standard library that have python shebang.
09e27f
# We've filtered the automatic requirement out so libs are installable without
09e27f
# the main package. This however makes it pulled in by default.
09e27f
# See https://bugzilla.redhat.com/show_bug.cgi?id=1547131
09e27f
Recommends: %{name}%{?_isa} = %{version}-%{release}
09e27f
acec95
# tkinter is part of the standard library,
acec95
# but it is torn out to save an unwanted dependency on tk and X11.
acec95
# we recommend it when tk is already installed (for better UX)
acec95
Recommends: (%{name}-tkinter%{?_isa} = %{version}-%{release} if tk%{?_isa})
09e27f
09e27f
%description libs
09e27f
This package contains runtime libraries for use by Python:
09e27f
- the majority of the Python standard library
09e27f
- a dynamically linked library for use by applications that embed Python as
09e27f
  a scripting language, and by the main "python3" executable
09e27f
09e27f
09e27f
%package devel
09e27f
Summary: Libraries and header files needed for Python development
09e27f
Requires: %{name} = %{version}-%{release}
09e27f
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
09e27f
BuildRequires: python-rpm-macros
09e27f
# The RPM related dependencies bring nothing to a non-RPM Python developer
09e27f
# But we want them when packages BuildRequire python3-devel
09e27f
Requires: (python-rpm-macros if rpm-build)
09e27f
Requires: (python3-rpm-macros if rpm-build)
09e27f
# python38 installs the alternatives master symlink to which we attach a slave
09e27f
Requires(post): python38
09e27f
Requires(postun): python38
09e27f
09e27f
%if %{without bootstrap}
09e27f
# This is not "API" (packages that need setuptools should still BuildRequire it)
09e27f
# However some packages apparently can build both with and without setuptools
09e27f
# producing egg-info as file or directory (depending on setuptools presence).
09e27f
# Directory-to-file updates are problematic in RPM, so we ensure setuptools is
09e27f
# installed when -devel is required.
09e27f
# See https://bugzilla.redhat.com/show_bug.cgi?id=1623914
09e27f
# See https://fedoraproject.org/wiki/Packaging:Directory_Replacement
09e27f
Requires: (python38-setuptools if rpm-build)
09e27f
%endif
09e27f
09e27f
Requires: (python3-rpm-generators if rpm-build)
09e27f
09e27f
%{?python_provide:%python_provide python38-devel}
09e27f
09e27f
%description devel
09e27f
This package contains the header files and configuration needed to compile
09e27f
Python extension modules (typically written in C or C++), to embed Python
09e27f
into other programs, and to make binary distributions for Python libraries.
09e27f
09e27f
It also contains the necessary macros to build RPM packages with Python modules
09e27f
and 2to3 tool, an automatic source converter from Python 2.X.
09e27f
09e27f
If you want to build an RPM against the python38 module, you also need to
09e27f
install the python38-rpm-macros package.
09e27f
09e27f
09e27f
%package idle
09e27f
Summary: A basic graphical development environment for Python
09e27f
Requires: %{name} = %{version}-%{release}
09e27f
Requires: %{name}-tkinter = %{version}-%{release}
09e27f
09e27f
%{?python_provide:%python_provide python38-idle}
09e27f
09e27f
# python38 installs the alternatives master symlink to which we attach a slave
09e27f
Requires(post): python38
09e27f
Requires(postun): python38
09e27f
09e27f
%description idle
09e27f
IDLE is Python’s Integrated Development and Learning Environment.
09e27f
09e27f
IDLE has the following features: Python shell window (interactive
09e27f
interpreter) with colorizing of code input, output, and error messages;
09e27f
multi-window text editor with multiple undo, Python colorizing,
09e27f
smart indent, call tips, auto completion, and other features;
09e27f
search within any window, replace within editor windows, and
09e27f
search through multiple files (grep); debugger with persistent
09e27f
breakpoints, stepping, and viewing of global and local namespaces;
09e27f
configuration, browsers, and other dialogs.
09e27f
09e27f
09e27f
%package tkinter
09e27f
Summary: A GUI toolkit for Python
09e27f
Requires: %{name} = %{version}-%{release}
09e27f
09e27f
%{?python_provide:%python_provide python38-tkinter}
09e27f
09e27f
%description tkinter
09e27f
The Tkinter (Tk interface) library is a graphical user interface toolkit for
09e27f
the Python programming language.
09e27f
09e27f
09e27f
%package test
09e27f
Summary: The self-test suite for the main python3 package
09e27f
Requires: %{name} = %{version}-%{release}
09e27f
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
09e27f
09e27f
%{?python_provide:%python_provide python38-test}
09e27f
09e27f
%description test
09e27f
The self-test suite for the Python interpreter.
09e27f
09e27f
This is only useful to test Python itself. For testing general Python code,
09e27f
you should use the unittest module from %{name}-libs, or a library such as
09e27f
%{name}-pytest or %{name}-nose.
09e27f
09e27f
09e27f
%if %{with debug_build}
09e27f
%package debug
09e27f
Summary: Debug version of the Python runtime
09e27f
09e27f
# The debug build is an all-in-one package version of the regular build, and
09e27f
# shares the same .py/.pyc files and directories as the regular build. Hence
09e27f
# we depend on all of the subpackages of the regular build:
09e27f
Requires: %{name}%{?_isa} = %{version}-%{release}
09e27f
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
09e27f
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
09e27f
Requires: %{name}-test%{?_isa} = %{version}-%{release}
09e27f
Requires: %{name}-tkinter%{?_isa} = %{version}-%{release}
09e27f
Requires: %{name}-idle%{?_isa} = %{version}-%{release}
09e27f
# python38 installs the alternatives master symlink to which we attach a slave
09e27f
Requires(post): python38
09e27f
Requires(postun): python38
09e27f
09e27f
%{?python_provide:%python_provide python38-debug}
09e27f
09e27f
%description debug
09e27f
python38-debug provides a version of the Python runtime with numerous debugging
09e27f
features enabled, aimed at advanced Python users such as developers of Python
09e27f
extension modules.
09e27f
09e27f
This version uses more memory and will be slower than the regular Python build,
09e27f
but is useful for tracking down reference-counting issues and other bugs.
09e27f
09e27f
The debug build shares installation directories with the standard Python
09e27f
runtime. Python modules -- source (.py), bytecode (.pyc), and C-API extensions
09e27f
(.cpython*.so) -- are compatible between this and the standard version
09e27f
of Python.
09e27f
09e27f
The debug runtime additionally supports debug builds of C-API extensions
09e27f
(with the "d" ABI flag) for debugging issues in those extensions.
09e27f
%endif # with debug_build
09e27f
09e27f
%else  # with flatpackage
09e27f
09e27f
# We'll not provide this, on purpose
09e27f
# No package in Fedora shall ever depend on flatpackage via this
09e27f
%global __requires_exclude ^python\\(abi\\) = 3\\..$
09e27f
%global __provides_exclude ^python\\(abi\\) = 3\\..$
09e27f
09e27f
%if %{with rpmwheels}
09e27f
Requires: python38-setuptools-wheel
09e27f
Requires: python38-pip-wheel
09e27f
%else
09e27f
Provides: bundled(python38-pip) = 19.2.3
09e27f
Provides: bundled(python38-setuptools) = 41.2.0
09e27f
%endif
09e27f
09e27f
# The description for the flat package
09e27f
%description
09e27f
Python %{pybasever} package for developers.
09e27f
09e27f
This package exists to allow developers to test their code against a newer
09e27f
version of Python. This is not a full Python stack and if you wish to run
09e27f
your applications with Python %{pybasever}, update your Fedora to a newer
09e27f
version once Python %{pybasever} is stable.
09e27f
09e27f
%endif # with flatpackage
09e27f
09e27f
09e27f
%package -n python38-rpm-macros
09e27f
Summary:    RPM macros for building RPMs with Python 3.8
09e27f
Provides:   python38-modular-devel = %{version}-%{release}
09e27f
Provides:   python-modular-rpm-macros == 3.8
09e27f
Conflicts:  python-modular-rpm-macros > 3.8
09e27f
Requires:   python3-rpm-macros
09e27f
BuildArch:  noarch
09e27f
09e27f
%description -n python38-rpm-macros
09e27f
RPM macros for building RPMs with Python 3.8 from the python38 module.
09e27f
If you want to build an RPM against the python38 module, you need to
09e27f
BuildRequire: python38-rpm-macros.
09e27f
09e27f
09e27f
# ======================================================
09e27f
# The prep phase of the build:
09e27f
# ======================================================
09e27f
09e27f
%prep
09e27f
%setup -q -n Python-%{upstream_version}
09e27f
# Remove all exe files to ensure we are not shipping prebuilt binaries
09e27f
# note that those are only used to create Microsoft Windows installers
09e27f
# and that functionality is broken on Linux anyway
09e27f
find -name '*.exe' -print -delete
09e27f
09e27f
# Remove bundled libraries to ensure that we're using the system copy.
09e27f
rm -r Modules/expat
09e27f
09e27f
#
09e27f
# Apply patches:
09e27f
#
09e27f
%patch1 -p1
09e27f
09e27f
%if "%{_lib}" == "lib64"
09e27f
%patch102 -p1
09e27f
%endif
09e27f
%patch111 -p1
09e27f
09e27f
%if %{with rpmwheels}
09e27f
%patch189 -p1
09e27f
rm Lib/ensurepip/_bundled/*.whl
09e27f
%endif
09e27f
09e27f
%patch251 -p1
09e27f
%patch328 -p1
09e27f
%patch329 -p1
ce2d1c
%patch353 -p1
ce2d1c
%patch357 -p1
09e27f
09e27f
09e27f
# Remove files that should be generated by the build
09e27f
# (This is after patching, so that we can use patches directly from upstream)
09e27f
rm configure pyconfig.h.in
09e27f
ce2d1c
# When we use the legacy arch names, we need to change them in configure.ac
ce2d1c
%if %{with legacy_archnames}
ce2d1c
sed -i configure.ac \
ce2d1c
    -e 's/\b%{platform_triplet_upstream}\b/%{platform_triplet_legacy}/'
ce2d1c
%endif
ce2d1c
09e27f
09e27f
# ======================================================
09e27f
# Configuring and building the code:
09e27f
# ======================================================
09e27f
09e27f
%build
09e27f
09e27f
# Regenerate the configure script and pyconfig.h.in
09e27f
autoconf
09e27f
autoheader
09e27f
09e27f
# Remember the current directory (which has sources and the configure script),
09e27f
# so we can refer to it after we "cd" elsewhere.
09e27f
topdir=$(pwd)
09e27f
09e27f
# Get proper option names from bconds
09e27f
%if %{with computed_gotos}
09e27f
%global computed_gotos_flag yes
09e27f
%else
09e27f
%global computed_gotos_flag no
09e27f
%endif
09e27f
09e27f
%if %{with optimizations}
09e27f
%global optimizations_flag "--enable-optimizations"
09e27f
%else
09e27f
%global optimizations_flag "--disable-optimizations"
09e27f
%endif
09e27f
09e27f
# Set common compiler/linker flags
09e27f
# We utilize the %%extension_...flags macros here so users building C/C++
09e27f
# extensions with our python won't get all the compiler/linker flags used
09e27f
# in Fedora RPMs.
09e27f
# Standard library built here will still use the %%build_...flags,
09e27f
# Fedora packages utilizing %%py3_build will use them as well
09e27f
# https://fedoraproject.org/wiki/Changes/Python_Extension_Flags
09e27f
export CFLAGS="%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv"
acec95
export CFLAGS_NODIST="%{build_cflags} -D_GNU_SOURCE -fPIC -fwrapv%{?with_no_semantic_interposition: -fno-semantic-interposition}"
09e27f
export CXXFLAGS="%{extension_cxxflags} -D_GNU_SOURCE -fPIC -fwrapv"
09e27f
export CPPFLAGS="$(pkg-config --cflags-only-I libffi)"
09e27f
export OPT="%{extension_cflags} -D_GNU_SOURCE -fPIC -fwrapv"
09e27f
export LINKCC="gcc"
09e27f
export CFLAGS="$CFLAGS $(pkg-config --cflags openssl)"
09e27f
export LDFLAGS="%{extension_ldflags} -g $(pkg-config --libs-only-L openssl)"
acec95
export LDFLAGS_NODIST="%{build_ldflags}%{?with_no_semantic_interposition: -fno-semantic-interposition} -g $(pkg-config --libs-only-L openssl)"
09e27f
09e27f
# We can build several different configurations of Python: regular and debug.
09e27f
# Define a common function that does one build:
09e27f
BuildPython() {
09e27f
  ConfName=$1
09e27f
  ExtraConfigArgs=$2
09e27f
  MoreCFlags=$3
09e27f
09e27f
  # Each build is done in its own directory
09e27f
  ConfDir=build/$ConfName
09e27f
  echo STARTING: BUILD OF PYTHON FOR CONFIGURATION: $ConfName
09e27f
  mkdir -p $ConfDir
09e27f
  pushd $ConfDir
09e27f
09e27f
  # Normally, %%configure looks for the "configure" script in the current
09e27f
  # directory.
09e27f
  # Since we changed directories, we need to tell %%configure where to look.
09e27f
  %global _configure $topdir/configure
09e27f
09e27f
%configure \
09e27f
  --enable-ipv6 \
09e27f
  --enable-shared \
09e27f
  --with-computed-gotos=%{computed_gotos_flag} \
09e27f
  --with-dbmliborder=gdbm:ndbm:bdb \
09e27f
  --with-system-expat \
09e27f
  --with-system-ffi \
09e27f
  --enable-loadable-sqlite-extensions \
09e27f
  --with-dtrace \
09e27f
  --with-lto \
09e27f
  --with-ssl-default-suites=openssl \
09e27f
%if %{with valgrind}
09e27f
  --with-valgrind \
09e27f
%endif
09e27f
  $ExtraConfigArgs \
09e27f
  %{nil}
09e27f
09e27f
%global flags_override EXTRA_CFLAGS="$MoreCFlags" CFLAGS_NODIST="$CFLAGS_NODIST $MoreCFlags"
09e27f
09e27f
%if %{without bootstrap}
09e27f
  # Regenerate generated files (needs python3)
09e27f
  %make_build %{flags_override} regen-all PYTHON_FOR_REGEN="python%{pybasever}"
09e27f
%endif
09e27f
09e27f
  # Invoke the build
09e27f
  %make_build %{flags_override}
09e27f
09e27f
  popd
09e27f
  echo FINISHED: BUILD OF PYTHON FOR CONFIGURATION: $ConfName
09e27f
}
09e27f
09e27f
# Call the above to build each configuration.
09e27f
09e27f
%if %{with debug_build}
09e27f
BuildPython debug \
09e27f
  "--without-ensurepip --with-pydebug" \
09e27f
  "-Og"
09e27f
%endif # with debug_build
09e27f
09e27f
BuildPython optimized \
09e27f
  "--without-ensurepip %{optimizations_flag}" \
09e27f
  ""
09e27f
09e27f
# ======================================================
09e27f
# Installing the built code:
09e27f
# ======================================================
09e27f
09e27f
%install
09e27f
09e27f
# As in %%build, remember the current directory
09e27f
topdir=$(pwd)
09e27f
09e27f
# We install a collection of hooks for gdb that make it easier to debug
09e27f
# executables linked against libpython3* (such as /usr/bin/python3 itself)
09e27f
#
09e27f
# These hooks are implemented in Python itself (though they are for the version
09e27f
# of python that gdb is linked with)
09e27f
#
09e27f
# gdb-archer looks for them in the same path as the ELF file or its .debug
09e27f
# file, with a -gdb.py suffix.
09e27f
# We put them next to the debug file, because ldconfig would complain if
09e27f
# it found non-library files directly in /usr/lib/
09e27f
# (see https://bugzilla.redhat.com/show_bug.cgi?id=562980)
09e27f
#
09e27f
# We'll put these files in the debuginfo package by installing them to e.g.:
09e27f
#  /usr/lib/debug/usr/lib/libpython3.2.so.1.0.debug-gdb.py
09e27f
# (note that the debug path is /usr/lib/debug for both 32/64 bit)
09e27f
#
09e27f
# See https://fedoraproject.org/wiki/Features/EasierPythonDebugging for more
09e27f
# information
09e27f
09e27f
%if %{with gdb_hooks}
09e27f
DirHoldingGdbPy=%{_usr}/lib/debug/%{_libdir}
09e27f
mkdir -p %{buildroot}$DirHoldingGdbPy
09e27f
%endif # with gdb_hooks
09e27f
09e27f
# Multilib support for pyconfig.h
09e27f
# 32- and 64-bit versions of pyconfig.h are different. For multilib support
09e27f
# (making it possible to install 32- and 64-bit versions simultaneously),
09e27f
# we need to install them under different filenames, and to make the common
09e27f
# "pyconfig.h" include the right file based on architecture.
09e27f
# See https://bugzilla.redhat.com/show_bug.cgi?id=192747
09e27f
# Filanames are defined here:
09e27f
%global _pyconfig32_h pyconfig-32.h
09e27f
%global _pyconfig64_h pyconfig-64.h
acec95
%global _pyconfig_h pyconfig-%{__isa_bits}.h
09e27f
09e27f
# Use a common function to do an install for all our configurations:
09e27f
InstallPython() {
09e27f
09e27f
  ConfName=$1
09e27f
  PyInstSoName=$2
09e27f
  MoreCFlags=$3
09e27f
  LDVersion=$4
09e27f
09e27f
  # Switch to the directory with this configuration's built files
09e27f
  ConfDir=build/$ConfName
09e27f
  echo STARTING: INSTALL OF PYTHON FOR CONFIGURATION: $ConfName
09e27f
  mkdir -p $ConfDir
09e27f
  pushd $ConfDir
09e27f
09e27f
  make \
09e27f
    DESTDIR=%{buildroot} \
09e27f
    INSTALL="install -p" \
09e27f
    EXTRA_CFLAGS="$MoreCFlags" \
09e27f
    install
09e27f
09e27f
  popd
09e27f
09e27f
%if %{with gdb_hooks}
09e27f
  # See comment on $DirHoldingGdbPy above
09e27f
  PathOfGdbPy=$DirHoldingGdbPy/$PyInstSoName-%{version}-%{release}.%{_arch}.debug-gdb.py
09e27f
  cp Tools/gdb/libpython.py %{buildroot}$PathOfGdbPy
09e27f
%endif # with gdb_hooks
09e27f
09e27f
  # Rename the -devel script that differs on different arches to arch specific name
09e27f
  mv %{buildroot}%{_bindir}/python${LDVersion}-{,`uname -m`-}config
09e27f
  echo -e '#!/bin/sh\nexec `dirname $0`/python'${LDVersion}'-`uname -m`-config "$@"' > \
09e27f
    %{buildroot}%{_bindir}/python${LDVersion}-config
09e27f
  echo '[ $? -eq 127 ] && echo "Could not find python'${LDVersion}'-`uname -m`-config. Look around to see available arches." >&2' >> \
09e27f
    %{buildroot}%{_bindir}/python${LDVersion}-config
09e27f
    chmod +x %{buildroot}%{_bindir}/python${LDVersion}-config
09e27f
09e27f
  # Make python3-devel multilib-ready
09e27f
  mv %{buildroot}%{_includedir}/python${LDVersion}/pyconfig.h \
09e27f
     %{buildroot}%{_includedir}/python${LDVersion}/%{_pyconfig_h}
09e27f
  cat > %{buildroot}%{_includedir}/python${LDVersion}/pyconfig.h << EOF
09e27f
#include <bits/wordsize.h>
09e27f
09e27f
#if __WORDSIZE == 32
09e27f
#include "%{_pyconfig32_h}"
09e27f
#elif __WORDSIZE == 64
09e27f
#include "%{_pyconfig64_h}"
09e27f
#else
09e27f
#error "Unknown word size"
09e27f
#endif
09e27f
EOF
09e27f
09e27f
  echo FINISHED: INSTALL OF PYTHON FOR CONFIGURATION: $ConfName
09e27f
}
09e27f
09e27f
# Install the "debug" build first; any common files will be overridden with
09e27f
# later builds
09e27f
%if %{with debug_build}
09e27f
InstallPython debug \
09e27f
  %{py_INSTSONAME_debug} \
09e27f
  -O0 \
09e27f
  %{LDVERSION_debug}
09e27f
%endif # with debug_build
09e27f
09e27f
# Now the optimized build:
09e27f
InstallPython optimized \
09e27f
  %{py_INSTSONAME_optimized} \
09e27f
  "" \
09e27f
  %{LDVERSION_optimized}
09e27f
09e27f
# Install directories for additional packages
09e27f
install -d -m 0755 %{buildroot}%{pylibdir}/site-packages/__pycache__
09e27f
%if "%{_lib}" == "lib64"
09e27f
# The 64-bit version needs to create "site-packages" in /usr/lib/ (for
09e27f
# pure-Python modules) as well as in /usr/lib64/ (for packages with extension
09e27f
# modules).
09e27f
# Note that rpmlint will complain about hardcoded library path;
09e27f
# this is intentional.
09e27f
install -d -m 0755 %{buildroot}%{_prefix}/lib/python%{pybasever}/site-packages/__pycache__
09e27f
%endif
09e27f
09e27f
%if %{with main_python}
09e27f
# add idle3 to menu
09e27f
install -D -m 0644 Lib/idlelib/Icons/idle_16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/idle3.png
09e27f
install -D -m 0644 Lib/idlelib/Icons/idle_32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/idle3.png
09e27f
install -D -m 0644 Lib/idlelib/Icons/idle_48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/idle3.png
09e27f
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE10}
09e27f
09e27f
# Install and validate appdata file
09e27f
mkdir -p %{buildroot}%{_metainfodir}
09e27f
cp -a %{SOURCE11} %{buildroot}%{_metainfodir}
09e27f
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/idle3.appdata.xml
09e27f
%endif
09e27f
09e27f
# Make sure distutils looks at the right pyconfig.h file
09e27f
# See https://bugzilla.redhat.com/show_bug.cgi?id=201434
09e27f
# Similar for sysconfig: sysconfig.get_config_h_filename tries to locate
09e27f
# pyconfig.h so it can be parsed, and needs to do this at runtime in site.py
09e27f
# when python starts up (see https://bugzilla.redhat.com/show_bug.cgi?id=653058)
09e27f
#
09e27f
# Split this out so it goes directly to the pyconfig-32.h/pyconfig-64.h
09e27f
# variants:
09e27f
sed -i -e "s/'pyconfig.h'/'%{_pyconfig_h}'/" \
09e27f
  %{buildroot}%{pylibdir}/distutils/sysconfig.py \
09e27f
  %{buildroot}%{pylibdir}/sysconfig.py
09e27f
09e27f
# Install pathfix.py to bindir
09e27f
# See https://github.com/fedora-python/python-rpm-porting/issues/24
09e27f
cp -p Tools/scripts/pathfix.py %{buildroot}%{_bindir}/pathfix%{pybasever}.py
09e27f
ln -s pathfix%{pybasever}.py %{buildroot}%{_bindir}/pathfix.py
09e27f
09e27f
# Install i18n tools to bindir
09e27f
# They are also in python2, so we version them
09e27f
# https://bugzilla.redhat.com/show_bug.cgi?id=1571474
09e27f
for tool in pygettext msgfmt; do
09e27f
  cp -p Tools/i18n/${tool}.py %{buildroot}%{_bindir}/${tool}%{pybasever}.py
09e27f
  ln -s ${tool}%{pybasever}.py %{buildroot}%{_bindir}/${tool}3.py
09e27f
done
09e27f
09e27f
# Switch all shebangs to refer to the specific Python version.
09e27f
# This currently only covers files matching ^[a-zA-Z0-9_]+\.py$,
09e27f
# so handle files named using other naming scheme separately.
09e27f
LD_LIBRARY_PATH=./build/optimized ./build/optimized/python \
09e27f
  Tools/scripts/pathfix.py \
09e27f
  -i "%{_bindir}/python%{pybasever}" -pn \
09e27f
  %{buildroot} \
09e27f
  %{buildroot}%{_bindir}/*%{pybasever}.py \
09e27f
  %{?with_gdb_hooks:%{buildroot}$DirHoldingGdbPy/*.py}
09e27f
09e27f
# Remove tests for python3-tools which was removed in
09e27f
# https://bugzilla.redhat.com/show_bug.cgi?id=1312030
09e27f
rm -rf %{buildroot}%{pylibdir}/test/test_tools
09e27f
09e27f
# Remove shebang lines from .py files that aren't executable, and
09e27f
# remove executability from .py files that don't have a shebang line:
09e27f
find %{buildroot} -name \*.py \
09e27f
  \( \( \! -perm /u+x,g+x,o+x -exec sed -e '/^#!/Q 0' -e 'Q 1' {} \; \
09e27f
  -print -exec sed -i '1d' {} \; \) -o \( \
09e27f
  -perm /u+x,g+x,o+x ! -exec grep -m 1 -q '^#!' {} \; \
09e27f
  -exec chmod a-x {} \; \) \)
09e27f
09e27f
# Get rid of DOS batch files:
09e27f
find %{buildroot} -name \*.bat -exec rm {} \;
09e27f
09e27f
# Get rid of backup files:
09e27f
find %{buildroot}/ -name "*~" -exec rm -f {} \;
09e27f
find . -name "*~" -exec rm -f {} \;
09e27f
09e27f
# Do bytecompilation with the newly installed interpreter.
09e27f
# This is similar to the script in macros.pybytecompile
09e27f
# compile *.pyc
09e27f
find %{buildroot} -type f -a -name "*.py" -print0 | \
09e27f
    LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
09e27f
    PYTHONPATH="%{buildroot}%{_libdir}/python%{pybasever} %{buildroot}%{_libdir}/python%{pybasever}/site-packages" \
09e27f
    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:]]' || :
09e27f
09e27f
# Since we have pathfix.py in bindir, this is created, but we don't want it
09e27f
rm -rf %{buildroot}%{_bindir}/__pycache__
09e27f
09e27f
# Fixup permissions for shared libraries from non-standard 555 to standard 755:
09e27f
find %{buildroot} -perm 555 -exec chmod 755 {} \;
09e27f
09e27f
# Create "/usr/bin/python3-debug", a symlink to the python3 debug binary, to
09e27f
# avoid the user having to know the precise version and ABI flags.
09e27f
# See e.g. https://bugzilla.redhat.com/show_bug.cgi?id=676748
09e27f
%if %{with debug_build} && %{with main_python}
09e27f
ln -s \
09e27f
  %{_bindir}/python%{LDVERSION_debug} \
09e27f
  %{buildroot}%{_bindir}/python3-debug
09e27f
%endif
09e27f
09e27f
%if %{without main_python}
09e27f
# Remove stuff that would conflict with python3 package
09e27f
rm %{buildroot}%{_bindir}/python3
09e27f
rm %{buildroot}%{_bindir}/pydoc3
09e27f
rm %{buildroot}%{_bindir}/pathfix.py
09e27f
rm %{buildroot}%{_bindir}/pygettext3.py
09e27f
rm %{buildroot}%{_bindir}/msgfmt3.py
09e27f
rm %{buildroot}%{_bindir}/idle3
09e27f
rm %{buildroot}%{_bindir}/python3-*
09e27f
rm %{buildroot}%{_bindir}/2to3
09e27f
rm %{buildroot}%{_libdir}/libpython3.so
09e27f
rm %{buildroot}%{_mandir}/man1/python3.1*
09e27f
rm %{buildroot}%{_libdir}/pkgconfig/python3.pc
09e27f
rm %{buildroot}%{_libdir}/pkgconfig/python3-embed.pc
09e27f
%else # main_python
09e27f
# Link the unversioned stuff
09e27f
# https://fedoraproject.org/wiki/Changes/Python_means_Python3
09e27f
ln -s ./python3 %{buildroot}%{_bindir}/python
09e27f
ln -s ./pydoc3 %{buildroot}%{_bindir}/pydoc
09e27f
ln -s ./pygettext3.py %{buildroot}%{_bindir}/pygettext.py
09e27f
ln -s ./msgfmt3.py %{buildroot}%{_bindir}/msgfmt.py
09e27f
ln -s ./idle3 %{buildroot}%{_bindir}/idle
09e27f
ln -s ./python3-config %{buildroot}%{_bindir}/python-config
09e27f
ln -s ./python3.1 %{buildroot}%{_mandir}/man1/python.1
09e27f
ln -s ./python3.pc %{buildroot}%{_libdir}/pkgconfig/python.pc
09e27f
%if %{with debug_build}
09e27f
ln -s ./python3-debug %{buildroot}%{_bindir}/python-debug
09e27f
%endif
09e27f
%endif # main_python
09e27f
09e27f
09e27f
# Python RPM macros
09e27f
mkdir -p %{buildroot}/%{rpmmacrodir}/
09e27f
install -m 644 %{SOURCE3} \
09e27f
    %{buildroot}/%{rpmmacrodir}/
09e27f
09e27f
# All ghost files controlled by alternatives need to exist for the files
09e27f
# section check to succeed
09e27f
# - Don't list /usr/bin/python as a ghost file so `yum install /usr/bin/python`
09e27f
#   doesn't install this package
09e27f
touch %{buildroot}%{_bindir}/unversioned-python
09e27f
touch %{buildroot}%{_mandir}/man1/python.1.gz
09e27f
touch %{buildroot}%{_bindir}/python3
09e27f
touch %{buildroot}%{_mandir}/man1/python3.1.gz
09e27f
touch %{buildroot}%{_bindir}/pydoc3
09e27f
touch %{buildroot}%{_bindir}/pydoc-3
09e27f
touch %{buildroot}%{_bindir}/idle3
09e27f
touch %{buildroot}%{_bindir}/python3-config
09e27f
touch %{buildroot}%{_bindir}/python3-debug
09e27f
touch %{buildroot}%{_bindir}/python3-debug-config
09e27f
09e27f
09e27f
# ======================================================
09e27f
# Checks for packaging issues
09e27f
# ======================================================
09e27f
09e27f
%check
09e27f
09e27f
# first of all, check timestamps of bytecode files
09e27f
find %{buildroot} -type f -a -name "*.py" -print0 | \
09e27f
    LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
09e27f
    PYTHONPATH="%{buildroot}%{_libdir}/python%{pybasever} %{buildroot}%{_libdir}/python%{pybasever}/site-packages" \
09e27f
    xargs -0 %{buildroot}%{_bindir}/python%{pybasever} %{SOURCE8}
09e27f
09e27f
# Ensure that the curses module was linked against libncursesw.so, rather than
09e27f
# libncurses.so
09e27f
# See https://bugzilla.redhat.com/show_bug.cgi?id=539917
09e27f
ldd %{buildroot}/%{dynload_dir}/_curses*.so \
09e27f
    | grep curses \
09e27f
    | grep libncurses.so && (echo "_curses.so linked against libncurses.so" ; exit 1)
09e27f
09e27f
# Ensure that the debug modules are linked against the debug libpython, and
09e27f
# likewise for the optimized modules and libpython:
09e27f
for Module in %{buildroot}/%{dynload_dir}/*.so ; do
09e27f
    case $Module in
09e27f
    *.%{SOABI_debug})
09e27f
        ldd $Module | grep %{py_INSTSONAME_optimized} &&
09e27f
            (echo Debug module $Module linked against optimized %{py_INSTSONAME_optimized} ; exit 1)
09e27f
09e27f
        ;;
09e27f
    *.%{SOABI_optimized})
09e27f
        ldd $Module | grep %{py_INSTSONAME_debug} &&
09e27f
            (echo Optimized module $Module linked against debug %{py_INSTSONAME_debug} ; exit 1)
09e27f
        ;;
09e27f
    esac
09e27f
done
09e27f
09e27f
09e27f
# ======================================================
09e27f
# Running the upstream test suite
09e27f
# ======================================================
09e27f
09e27f
topdir=$(pwd)
09e27f
CheckPython() {
09e27f
  ConfName=$1
09e27f
  ConfDir=$(pwd)/build/$ConfName
09e27f
09e27f
  echo STARTING: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
09e27f
09e27f
  # Note that we're running the tests using the version of the code in the
09e27f
  # builddir, not in the buildroot.
09e27f
09e27f
  # Show some info, helpful for debugging test failures
09e27f
  LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.pythoninfo
09e27f
09e27f
  # Run the upstream test suite
acec95
  # --timeout=1800: kill test running for longer than 30 minutes
09e27f
  # test_gdb skipped on s390x:
09e27f
  #   https://bugzilla.redhat.com/show_bug.cgi?id=1678277
09e27f
  # test_gdb skipped everywhere:
09e27f
  #   https://bugzilla.redhat.com/show_bug.cgi?id=1734327
09e27f
  # test_distutils
09e27f
  #   distutils.tests.test_bdist_rpm tests fail when bootstraping the Python
09e27f
  #   package: rpmbuild requires /usr/bin/pythonX.Y to be installed
09e27f
  LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \
acec95
    -wW --slowest -j0 --timeout=1800 \
09e27f
    %if %{with bootstrap}
09e27f
    -x test_distutils \
09e27f
    %endif
09e27f
    -x test_gdb \
09e27f
    %ifarch %{mips64}
09e27f
    -x test_ctypes \
09e27f
    %endif
09e27f
09e27f
  echo FINISHED: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
09e27f
09e27f
}
09e27f
09e27f
%if %{with tests}
09e27f
09e27f
# Check each of the configurations:
09e27f
%if %{with debug_build}
09e27f
CheckPython debug
09e27f
%endif # with debug_build
09e27f
CheckPython optimized
09e27f
09e27f
%endif # with tests
09e27f
09e27f
09e27f
%post
09e27f
# Alternative for /usr/bin/python -> /usr/bin/python3 + man page
09e27f
alternatives --install %{_bindir}/unversioned-python \
09e27f
                       python \
09e27f
                       %{_bindir}/python3 \
09e27f
                       300 \
09e27f
             --slave   %{_bindir}/python \
09e27f
                       unversioned-python \
09e27f
                       %{_bindir}/python3 \
09e27f
             --slave   %{_mandir}/man1/python.1.gz \
09e27f
                       unversioned-python-man \
09e27f
                       %{_mandir}/man1/python3.1.gz
09e27f
09e27f
# Alternative for /usr/bin/python -> /usr/bin/python3.8 + man page
09e27f
alternatives --install %{_bindir}/unversioned-python \
09e27f
                       python \
09e27f
                       %{_bindir}/python3.8 \
09e27f
                       208 \
09e27f
             --slave   %{_bindir}/python \
09e27f
                       unversioned-python \
09e27f
                       %{_bindir}/python3.8 \
09e27f
             --slave   %{_mandir}/man1/python.1.gz \
09e27f
                       unversioned-python-man \
09e27f
                       %{_mandir}/man1/python3.8.1.gz
09e27f
09e27f
# Alternative for /usr/bin/python3 -> /usr/bin/python3.8 + related files
09e27f
# Create only if it doesn't exist already
09e27f
EXISTS=`alternatives --display python3 | \
09e27f
        grep -c "^/usr/bin/python3.8 - priority [0-9]*"`
09e27f
09e27f
if [ $EXISTS -eq 0 ]; then
09e27f
    alternatives --install %{_bindir}/python3 \
09e27f
                           python3 \
09e27f
                           %{_bindir}/python3.8 \
09e27f
                           3800 \
09e27f
                 --slave   %{_mandir}/man1/python3.1.gz \
09e27f
                           python3-man \
09e27f
                           %{_mandir}/man1/python3.8.1.gz \
09e27f
                 --slave   %{_bindir}/pydoc3 \
09e27f
                           pydoc3 \
09e27f
                           %{_bindir}/pydoc3.8 \
09e27f
                 --slave   %{_bindir}/pydoc-3 \
09e27f
                           pydoc-3 \
09e27f
                           %{_bindir}/pydoc3.8
09e27f
fi
09e27f
09e27f
%postun
09e27f
# Do this only during uninstall process (not during update)
09e27f
if [ $1 -eq 0 ]; then
09e27f
    alternatives --remove python \
09e27f
                        %{_bindir}/python3.8
09e27f
09e27f
    alternatives --remove python3 \
09e27f
                        %{_bindir}/python3.8
09e27f
09e27f
    # Remove link python → python3 if no other python3.* exists
09e27f
    if ! alternatives --display python3 > /dev/null; then
09e27f
        alternatives --remove python \
09e27f
                            %{_bindir}/python3
09e27f
    fi
09e27f
fi
09e27f
09e27f
09e27f
%post devel
09e27f
alternatives --add-slave python3 %{_bindir}/python3.8 \
09e27f
    %{_bindir}/python3-config \
09e27f
    python3-config \
09e27f
    %{_bindir}/python3.8-config
09e27f
09e27f
%postun devel
09e27f
# Do this only during uninstall process (not during update)
09e27f
if [ $1 -eq 0 ]; then
09e27f
    alternatives --remove-slave python3 %{_bindir}/python3.8 \
09e27f
        python3-config
09e27f
fi
09e27f
09e27f
09e27f
%post debug
09e27f
alternatives --add-slave python3 %{_bindir}/python3.8 \
09e27f
    %{_bindir}/python3-debug \
09e27f
    python3-debug \
09e27f
    %{_bindir}/python3.8d
09e27f
alternatives --add-slave python3 %{_bindir}/python3.8 \
09e27f
    %{_bindir}/python3-debug-config \
09e27f
    python3-debug-config \
09e27f
    %{_bindir}/python3.8d-config
09e27f
09e27f
%postun debug
09e27f
# Do this only during uninstall process (not during update)
09e27f
if [ $1 -eq 0 ]; then
09e27f
    alternatives --remove-slave python3 %{_bindir}/python3.8 \
09e27f
        python3-debug
09e27f
    alternatives --remove-slave python3 %{_bindir}/python3.8 \
09e27f
        python3-debug-config
09e27f
fi
09e27f
09e27f
09e27f
%post idle
09e27f
alternatives --add-slave python3 %{_bindir}/python3.8 \
09e27f
    %{_bindir}/idle3 \
09e27f
    idle3 \
09e27f
    %{_bindir}/idle3.8
09e27f
09e27f
%postun idle
09e27f
# Do this only during uninstall process (not during update)
09e27f
if [ $1 -eq 0 ]; then
09e27f
    alternatives --remove-slave python3 %{_bindir}/python3.8 \
09e27f
       idle3
09e27f
fi
09e27f
09e27f
09e27f
%files -n python38-rpm-macros
09e27f
%license LICENSE
09e27f
%doc README.rst
09e27f
%{rpmmacrodir}/macros.python38
09e27f
09e27f
%files
09e27f
%doc README.rst
09e27f
09e27f
# Alternatives
09e27f
%ghost %{_bindir}/unversioned-python
09e27f
%ghost %{_mandir}/man1/python.1.gz
09e27f
%ghost %{_bindir}/python3
09e27f
%ghost %{_mandir}/man1/python3.1.gz
09e27f
%ghost %{_bindir}/pydoc3
09e27f
%ghost %{_bindir}/pydoc-3
09e27f
09e27f
09e27f
%if %{with main_python}
09e27f
%{_bindir}/pydoc*
09e27f
%{_bindir}/python3
09e27f
%else
09e27f
%{_bindir}/pydoc%{pybasever}
09e27f
%endif
09e27f
09e27f
%{_bindir}/python%{pybasever}
09e27f
%{_bindir}/python%{LDVERSION_optimized}
09e27f
%{_mandir}/*/*3*
09e27f
09e27f
09e27f
%if %{with main_python}
09e27f
%if %{without flatpackage}
09e27f
%files -n python-unversioned-command
09e27f
%endif
09e27f
%{_bindir}/python
09e27f
%{_mandir}/*/python.1*
09e27f
%endif
09e27f
09e27f
%if %{without flatpackage}
09e27f
%files libs
09e27f
%doc README.rst
09e27f
%endif
09e27f
09e27f
%dir %{pylibdir}
09e27f
%dir %{dynload_dir}
09e27f
09e27f
%license %{pylibdir}/LICENSE.txt
09e27f
09e27f
%{pylibdir}/lib2to3
09e27f
%if %{without flatpackage}
09e27f
%exclude %{pylibdir}/lib2to3/tests
09e27f
%endif
09e27f
09e27f
%dir %{pylibdir}/unittest/
09e27f
%dir %{pylibdir}/unittest/__pycache__/
09e27f
%{pylibdir}/unittest/*.py
09e27f
%{pylibdir}/unittest/__pycache__/*%{bytecode_suffixes}
09e27f
09e27f
%dir %{pylibdir}/asyncio/
09e27f
%dir %{pylibdir}/asyncio/__pycache__/
09e27f
%{pylibdir}/asyncio/*.py
09e27f
%{pylibdir}/asyncio/__pycache__/*%{bytecode_suffixes}
09e27f
09e27f
%dir %{pylibdir}/venv/
09e27f
%dir %{pylibdir}/venv/__pycache__/
09e27f
%{pylibdir}/venv/*.py
09e27f
%{pylibdir}/venv/__pycache__/*%{bytecode_suffixes}
09e27f
%{pylibdir}/venv/scripts
09e27f
09e27f
%{pylibdir}/wsgiref
09e27f
%{pylibdir}/xmlrpc
09e27f
09e27f
%dir %{pylibdir}/ensurepip/
09e27f
%dir %{pylibdir}/ensurepip/__pycache__/
09e27f
%{pylibdir}/ensurepip/*.py
09e27f
%{pylibdir}/ensurepip/__pycache__/*%{bytecode_suffixes}
09e27f
09e27f
%if %{with rpmwheels}
09e27f
%exclude %{pylibdir}/ensurepip/_bundled
09e27f
%else
09e27f
%dir %{pylibdir}/ensurepip/_bundled
09e27f
%{pylibdir}/ensurepip/_bundled/*.whl
09e27f
%endif
09e27f
09e27f
%dir %{pylibdir}/concurrent/
09e27f
%dir %{pylibdir}/concurrent/__pycache__/
09e27f
%{pylibdir}/concurrent/*.py
09e27f
%{pylibdir}/concurrent/__pycache__/*%{bytecode_suffixes}
09e27f
09e27f
%dir %{pylibdir}/concurrent/futures/
09e27f
%dir %{pylibdir}/concurrent/futures/__pycache__/
09e27f
%{pylibdir}/concurrent/futures/*.py
09e27f
%{pylibdir}/concurrent/futures/__pycache__/*%{bytecode_suffixes}
09e27f
09e27f
%{pylibdir}/pydoc_data
09e27f
09e27f
%{dynload_dir}/_blake2.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_sha3.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_hmacopenssl.%{SOABI_optimized}.so
09e27f
09e27f
%{dynload_dir}/_asyncio.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_bisect.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_bz2.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_codecs_cn.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_codecs_hk.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_codecs_iso2022.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_codecs_jp.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_codecs_kr.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_codecs_tw.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_contextvars.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_crypt.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_csv.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_ctypes.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_curses.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_curses_panel.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_dbm.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_decimal.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_elementtree.%{SOABI_optimized}.so
09e27f
%if %{with gdbm}
09e27f
%{dynload_dir}/_gdbm.%{SOABI_optimized}.so
09e27f
%endif
09e27f
%{dynload_dir}/_hashlib.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_heapq.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_json.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_lsprof.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_lzma.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_multibytecodec.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_multiprocessing.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_opcode.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_pickle.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_posixsubprocess.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_queue.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_random.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_socket.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_sqlite3.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_ssl.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_statistics.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_struct.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/array.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/audioop.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/binascii.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/cmath.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_datetime.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/fcntl.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/grp.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/math.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/mmap.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/nis.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/ossaudiodev.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/parser.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_posixshmem.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/pyexpat.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/readline.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/resource.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/select.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/spwd.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/syslog.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/termios.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/unicodedata.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_uuid.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/xxlimited.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_xxsubinterpreters.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/zlib.%{SOABI_optimized}.so
09e27f
09e27f
%dir %{pylibdir}/site-packages/
09e27f
%dir %{pylibdir}/site-packages/__pycache__/
09e27f
%{pylibdir}/site-packages/README.txt
09e27f
%{pylibdir}/*.py
09e27f
%dir %{pylibdir}/__pycache__/
09e27f
%{pylibdir}/__pycache__/*%{bytecode_suffixes}
09e27f
09e27f
%dir %{pylibdir}/collections/
09e27f
%dir %{pylibdir}/collections/__pycache__/
09e27f
%{pylibdir}/collections/*.py
09e27f
%{pylibdir}/collections/__pycache__/*%{bytecode_suffixes}
09e27f
09e27f
%dir %{pylibdir}/ctypes/
09e27f
%dir %{pylibdir}/ctypes/__pycache__/
09e27f
%{pylibdir}/ctypes/*.py
09e27f
%{pylibdir}/ctypes/__pycache__/*%{bytecode_suffixes}
09e27f
%{pylibdir}/ctypes/macholib
09e27f
09e27f
%{pylibdir}/curses
09e27f
09e27f
%dir %{pylibdir}/dbm/
09e27f
%dir %{pylibdir}/dbm/__pycache__/
09e27f
%{pylibdir}/dbm/*.py
09e27f
%{pylibdir}/dbm/__pycache__/*%{bytecode_suffixes}
09e27f
09e27f
%dir %{pylibdir}/distutils/
09e27f
%dir %{pylibdir}/distutils/__pycache__/
09e27f
%{pylibdir}/distutils/*.py
09e27f
%{pylibdir}/distutils/__pycache__/*%{bytecode_suffixes}
09e27f
%{pylibdir}/distutils/README
09e27f
%{pylibdir}/distutils/command
09e27f
09e27f
%dir %{pylibdir}/email/
09e27f
%dir %{pylibdir}/email/__pycache__/
09e27f
%{pylibdir}/email/*.py
09e27f
%{pylibdir}/email/__pycache__/*%{bytecode_suffixes}
09e27f
%{pylibdir}/email/mime
09e27f
%doc %{pylibdir}/email/architecture.rst
09e27f
09e27f
%{pylibdir}/encodings
09e27f
09e27f
%{pylibdir}/html
09e27f
%{pylibdir}/http
09e27f
09e27f
%dir %{pylibdir}/importlib/
09e27f
%dir %{pylibdir}/importlib/__pycache__/
09e27f
%{pylibdir}/importlib/*.py
09e27f
%{pylibdir}/importlib/__pycache__/*%{bytecode_suffixes}
09e27f
09e27f
%dir %{pylibdir}/json/
09e27f
%dir %{pylibdir}/json/__pycache__/
09e27f
%{pylibdir}/json/*.py
09e27f
%{pylibdir}/json/__pycache__/*%{bytecode_suffixes}
09e27f
09e27f
%{pylibdir}/logging
09e27f
%{pylibdir}/multiprocessing
09e27f
09e27f
%dir %{pylibdir}/sqlite3/
09e27f
%dir %{pylibdir}/sqlite3/__pycache__/
09e27f
%{pylibdir}/sqlite3/*.py
09e27f
%{pylibdir}/sqlite3/__pycache__/*%{bytecode_suffixes}
09e27f
09e27f
%if %{without flatpackage}
09e27f
%exclude %{pylibdir}/turtle.py
09e27f
%exclude %{pylibdir}/__pycache__/turtle*%{bytecode_suffixes}
09e27f
%endif
09e27f
09e27f
%{pylibdir}/urllib
09e27f
%{pylibdir}/xml
09e27f
09e27f
%if "%{_lib}" == "lib64"
09e27f
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}
09e27f
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}/site-packages
09e27f
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}/site-packages/__pycache__/
09e27f
%endif
09e27f
09e27f
# "Makefile" and the config-32/64.h file are needed by
09e27f
# distutils/sysconfig.py:_init_posix(), so we include them in the core
09e27f
# package, along with their parent directories (bug 531901):
ce2d1c
%dir %{pylibdir}/config-%{LDVERSION_optimized}-%{platform_triplet}/
ce2d1c
%{pylibdir}/config-%{LDVERSION_optimized}-%{platform_triplet}/Makefile
09e27f
%dir %{_includedir}/python%{LDVERSION_optimized}/
09e27f
%{_includedir}/python%{LDVERSION_optimized}/%{_pyconfig_h}
09e27f
09e27f
%{_libdir}/%{py_INSTSONAME_optimized}
09e27f
%if %{with main_python}
09e27f
%{_libdir}/libpython3.so
09e27f
%endif
09e27f
09e27f
09e27f
%if %{without flatpackage}
09e27f
%files devel
09e27f
%endif
09e27f
09e27f
%if %{with main_python}
09e27f
%{_bindir}/2to3
09e27f
%endif
09e27f
ce2d1c
%{pylibdir}/config-%{LDVERSION_optimized}-%{platform_triplet}/*
09e27f
%if %{without flatpackage}
ce2d1c
%exclude %{pylibdir}/config-%{LDVERSION_optimized}-%{platform_triplet}/Makefile
09e27f
%exclude %{_includedir}/python%{LDVERSION_optimized}/%{_pyconfig_h}
09e27f
%endif
09e27f
%{_includedir}/python%{LDVERSION_optimized}/*.h
09e27f
%{_includedir}/python%{LDVERSION_optimized}/internal/
09e27f
%{_includedir}/python%{LDVERSION_optimized}/cpython/
09e27f
%doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit
09e27f
09e27f
%if %{with main_python}
09e27f
%{_bindir}/python3-config
09e27f
%{_bindir}/python-config
09e27f
%{_libdir}/pkgconfig/python3.pc
09e27f
%{_libdir}/pkgconfig/python.pc
09e27f
%{_libdir}/pkgconfig/python3-embed.pc
09e27f
%{_bindir}/pathfix.py
09e27f
%{_bindir}/pygettext3.py
09e27f
%{_bindir}/pygettext.py
09e27f
%{_bindir}/msgfmt3.py
09e27f
%{_bindir}/msgfmt.py
09e27f
%endif
09e27f
09e27f
%{_bindir}/2to3-%{pybasever}
09e27f
%{_bindir}/pathfix%{pybasever}.py
09e27f
%{_bindir}/pygettext%{pybasever}.py
09e27f
%{_bindir}/msgfmt%{pybasever}.py
09e27f
09e27f
%{_bindir}/python%{pybasever}-config
09e27f
%{_bindir}/python%{LDVERSION_optimized}-config
09e27f
%{_bindir}/python%{LDVERSION_optimized}-*-config
09e27f
# Alternatives
09e27f
%ghost %{_bindir}/python3-config
09e27f
09e27f
%{_libdir}/libpython%{LDVERSION_optimized}.so
09e27f
%{_libdir}/pkgconfig/python-%{LDVERSION_optimized}.pc
09e27f
%{_libdir}/pkgconfig/python-%{LDVERSION_optimized}-embed.pc
09e27f
%{_libdir}/pkgconfig/python-%{pybasever}.pc
09e27f
%{_libdir}/pkgconfig/python-%{pybasever}-embed.pc
09e27f
09e27f
09e27f
%if %{without flatpackage}
09e27f
%files idle
09e27f
%endif
09e27f
09e27f
%if %{with main_python}
09e27f
%{_bindir}/idle*
09e27f
%else
09e27f
%{_bindir}/idle%{pybasever}
09e27f
# Alternatives
09e27f
%ghost %{_bindir}/idle3
09e27f
%endif
09e27f
09e27f
%{pylibdir}/idlelib
09e27f
09e27f
%if %{with main_python}
09e27f
%{_metainfodir}/idle3.appdata.xml
09e27f
%{_datadir}/applications/idle3.desktop
09e27f
%{_datadir}/icons/hicolor/*/apps/idle3.*
09e27f
%endif
09e27f
09e27f
%if %{without flatpackage}
09e27f
%files tkinter
09e27f
%endif
09e27f
09e27f
%{pylibdir}/tkinter
09e27f
%if %{without flatpackage}
09e27f
%exclude %{pylibdir}/tkinter/test
09e27f
%endif
09e27f
%{dynload_dir}/_tkinter.%{SOABI_optimized}.so
09e27f
%{pylibdir}/turtle.py
09e27f
%{pylibdir}/__pycache__/turtle*%{bytecode_suffixes}
09e27f
%dir %{pylibdir}/turtledemo
09e27f
%{pylibdir}/turtledemo/*.py
09e27f
%{pylibdir}/turtledemo/*.cfg
09e27f
%dir %{pylibdir}/turtledemo/__pycache__/
09e27f
%{pylibdir}/turtledemo/__pycache__/*%{bytecode_suffixes}
09e27f
09e27f
09e27f
%if %{without flatpackage}
09e27f
%files test
09e27f
%endif
09e27f
09e27f
%{pylibdir}/ctypes/test
09e27f
%{pylibdir}/distutils/tests
09e27f
%{pylibdir}/sqlite3/test
09e27f
%{pylibdir}/test
09e27f
%{dynload_dir}/_ctypes_test.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_testbuffer.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_testcapi.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_testimportmultiple.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_testinternalcapi.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_testmultiphase.%{SOABI_optimized}.so
09e27f
%{dynload_dir}/_xxtestfuzz.%{SOABI_optimized}.so
09e27f
%{pylibdir}/lib2to3/tests
09e27f
%{pylibdir}/tkinter/test
09e27f
%{pylibdir}/unittest/test
09e27f
09e27f
# We don't bother splitting the debug build out into further subpackages:
09e27f
# if you need it, you're probably a developer.
09e27f
09e27f
# Hence the manifest is the combination of analogous files in the manifests of
09e27f
# all of the other subpackages
09e27f
09e27f
%if %{with debug_build}
09e27f
%if %{without flatpackage}
09e27f
%files debug
09e27f
%endif
09e27f
09e27f
%if %{with main_python}
09e27f
%{_bindir}/python3-debug
09e27f
%{_bindir}/python-debug
09e27f
%endif
09e27f
09e27f
# Analog of the core subpackage's files:
09e27f
%{_bindir}/python%{LDVERSION_debug}
09e27f
# Alternatives
09e27f
%ghost %{_bindir}/python3-debug
09e27f
09e27f
# Analog of the -libs subpackage's files:
09e27f
# ...with debug builds of the built-in "extension" modules:
09e27f
09e27f
%{dynload_dir}/_blake2.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_sha3.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_hmacopenssl.%{SOABI_debug}.so
09e27f
09e27f
%{dynload_dir}/_asyncio.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_bisect.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_bz2.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_codecs_cn.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_codecs_hk.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_codecs_iso2022.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_codecs_jp.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_codecs_kr.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_codecs_tw.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_contextvars.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_crypt.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_csv.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_ctypes.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_curses.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_curses_panel.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_dbm.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_decimal.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_elementtree.%{SOABI_debug}.so
09e27f
%if %{with gdbm}
09e27f
%{dynload_dir}/_gdbm.%{SOABI_debug}.so
09e27f
%endif
09e27f
%{dynload_dir}/_hashlib.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_heapq.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_json.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_lsprof.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_lzma.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_multibytecodec.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_multiprocessing.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_opcode.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_pickle.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_posixsubprocess.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_queue.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_random.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_socket.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_sqlite3.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_ssl.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_statistics.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_struct.%{SOABI_debug}.so
09e27f
%{dynload_dir}/array.%{SOABI_debug}.so
09e27f
%{dynload_dir}/audioop.%{SOABI_debug}.so
09e27f
%{dynload_dir}/binascii.%{SOABI_debug}.so
09e27f
%{dynload_dir}/cmath.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_datetime.%{SOABI_debug}.so
09e27f
%{dynload_dir}/fcntl.%{SOABI_debug}.so
09e27f
%{dynload_dir}/grp.%{SOABI_debug}.so
09e27f
%{dynload_dir}/math.%{SOABI_debug}.so
09e27f
%{dynload_dir}/mmap.%{SOABI_debug}.so
09e27f
%{dynload_dir}/nis.%{SOABI_debug}.so
09e27f
%{dynload_dir}/ossaudiodev.%{SOABI_debug}.so
09e27f
%{dynload_dir}/parser.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_posixshmem.%{SOABI_debug}.so
09e27f
%{dynload_dir}/pyexpat.%{SOABI_debug}.so
09e27f
%{dynload_dir}/readline.%{SOABI_debug}.so
09e27f
%{dynload_dir}/resource.%{SOABI_debug}.so
09e27f
%{dynload_dir}/select.%{SOABI_debug}.so
09e27f
%{dynload_dir}/spwd.%{SOABI_debug}.so
09e27f
%{dynload_dir}/syslog.%{SOABI_debug}.so
09e27f
%{dynload_dir}/termios.%{SOABI_debug}.so
09e27f
%{dynload_dir}/unicodedata.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_uuid.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_xxsubinterpreters.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_xxtestfuzz.%{SOABI_debug}.so
09e27f
%{dynload_dir}/zlib.%{SOABI_debug}.so
09e27f
09e27f
# No need to split things out the "Makefile" and the config-32/64.h file as we
09e27f
# do for the regular build above (bug 531901), since they're all in one package
09e27f
# now; they're listed below, under "-devel":
09e27f
09e27f
%{_libdir}/%{py_INSTSONAME_debug}
09e27f
09e27f
# Analog of the -devel subpackage's files:
ce2d1c
%{pylibdir}/config-%{LDVERSION_debug}-%{platform_triplet}
09e27f
%{_includedir}/python%{LDVERSION_debug}
09e27f
%{_bindir}/python%{LDVERSION_debug}-config
09e27f
%{_bindir}/python%{LDVERSION_debug}-*-config
09e27f
%ghost %{_bindir}/python3-debug-config
09e27f
09e27f
%{_libdir}/libpython%{LDVERSION_debug}.so
acec95
%{_libdir}/libpython%{LDVERSION_debug}.so.%{py_SOVERSION}
09e27f
%{_libdir}/pkgconfig/python-%{LDVERSION_debug}.pc
09e27f
%{_libdir}/pkgconfig/python-%{LDVERSION_debug}-embed.pc
09e27f
09e27f
# Analog of the -tools subpackage's files:
09e27f
#  None for now; we could build precanned versions that have the appropriate
09e27f
# shebang if needed
09e27f
09e27f
# Analog  of the tkinter subpackage's files:
09e27f
%{dynload_dir}/_tkinter.%{SOABI_debug}.so
09e27f
09e27f
# Analog  of the -test subpackage's files:
09e27f
%{dynload_dir}/_ctypes_test.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_testbuffer.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_testcapi.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_testimportmultiple.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_testinternalcapi.%{SOABI_debug}.so
09e27f
%{dynload_dir}/_testmultiphase.%{SOABI_debug}.so
09e27f
09e27f
%endif # with debug_build
09e27f
09e27f
# We put the debug-gdb.py file inside /usr/lib/debug to avoid noise from ldconfig
09e27f
# See https://bugzilla.redhat.com/show_bug.cgi?id=562980
09e27f
#
09e27f
# The /usr/lib/rpm/redhat/macros defines %%__debug_package to use
09e27f
# debugfiles.list, and it appears that everything below /usr/lib/debug and
09e27f
# (/usr/src/debug) gets added to this file (via LISTFILES) in
09e27f
# /usr/lib/rpm/find-debuginfo.sh
09e27f
#
09e27f
# Hence by installing it below /usr/lib/debug we ensure it is added to the
09e27f
# -debuginfo subpackage
09e27f
# (if it doesn't, then the rpmbuild ought to fail since the debug-gdb.py
09e27f
# payload file would be unpackaged)
09e27f
09e27f
# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1476593
09e27f
%undefine _debuginfo_subpackages
09e27f
09e27f
# ======================================================
09e27f
# Finally, the changelog:
09e27f
# ======================================================
09e27f
09e27f
%changelog
ce2d1c
* Fri Jan 22 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.8.6-3
ce2d1c
- Security fix for CVE-2021-3177
ce2d1c
Resolves: rhbz#1919161
ce2d1c
ce2d1c
* Fri Oct 23 2020 Lumír Balhar <lbalhar@redhat.com> - 3.8.6-2
ce2d1c
- Add support for upstream architecture names
ce2d1c
https://fedoraproject.org/wiki/Changes/Python_Upstream_Architecture_Names
ce2d1c
Resolves: rhbz#1868006
ce2d1c
ce2d1c
* Fri Oct 09 2020 Charalampos Stratakis <cstratak@redhat.com> - 3.8.6-1
ce2d1c
- Update to 3.8.6
ce2d1c
- Security fix for CVE-2020-26116
ce2d1c
Resolves: rhbz#1886755, rhbz#1883259
ce2d1c
acec95
* Mon Aug 17 2020 Tomas Orsava <torsava@redhat.com> - 3.8.3-3
acec95
- Avoid infinite loop when reading specially crafted TAR files (CVE-2019-20907)
acec95
Resolves: rhbz#1856481
acec95
- Resolve hash collisions for Pv4Interface and IPv6Interface (CVE-2020-14422)
acec95
Resolves: rhbz#1854926
acec95
acec95
* Wed Jun 24 2020 Tomas Orsava <torsava@redhat.com> - 3.8.3-2
acec95
- Fix sqlite3 deterministic test
acec95
Related: rhbz#1847416
acec95
acec95
* Wed Jun 24 2020 Tomas Orsava <torsava@redhat.com> - 3.8.3-1
acec95
- Rebased to 3.8.3 final
acec95
- Backported changes from Fedora
acec95
  - Recommend python3-tkinter when tk is installed
acec95
  - Add bcond for no_semantic_interposition (enabled by default)
acec95
  - Update the ensurepip module to work with setuptools >= 45
acec95
Resolves: rhbz#1847416
acec95
acec95
* Thu May 07 2020 Charalampos Stratakis <cstratak@redhat.com> - 3.8.0-10
acec95
- Fix test_hashlib and test_hmac under FIPS mode
acec95
Resolves: rhbz#1812477
acec95
acec95
* Thu Apr 23 2020 Lumír Balhar <lbalhar@redhat.com> - 3.8.0-9
acec95
- Fix ensurepip to run pip via runpy to fix compatibility with pip 19.3.1
acec95
Resolves: rhbz#1827623
acec95
acec95
* Wed Apr 22 2020 Charalampos Stratakis <cstratak@redhat.com> - 3.8.0-8
acec95
- Skip test_startup_imports from test_site if we have a .pth file in sys.path
acec95
Resolves: rhbz#1815643
acec95
acec95
* Fri Apr 03 2020 Charalampos Stratakis <cstratak@redhat.com> - 3.8.0-7
acec95
- Security fix for CVE-2020-8492
acec95
Resolves: rhbz#1810622
acec95
09e27f
* Mon Feb 24 2020 Tomas Orsava <torsava@redhat.com> - 3.8.0-6
09e27f
- Implement alternatives for /usr/bin/python, python3 and related executables
09e27f
- Resolves: rhbz#1807041
09e27f
09e27f
* Fri Jan 10 2020 Charalampos Stratakis <cstratak@redhat.com> - 3.8.0-5
09e27f
- Add support for FIPS mode
09e27f
- Resolves: rhbz#1793589
09e27f
09e27f
* Thu Dec 12 2019 Tomas Orsava <torsava@redhat.com> - 3.8.0-4
09e27f
- Exclude unsupported i686 arch
09e27f
09e27f
* Mon Nov 25 2019 Tomas Orsava <torsava@redhat.com> - 3.8.0-3
09e27f
- Build Python with -fno-semantic-interposition for better performance
09e27f
  https://fedoraproject.org/wiki/Changes/PythonNoSemanticInterpositionSpeedup
09e27f
09e27f
* Wed Nov 13 2019 Tomas Orsava <torsava@redhat.com> - 3.8.0-2
09e27f
- Converting to RHEL8
09e27f
- Changes from Fedora
09e27f
  - Removed gpgverifycation as the tool used in Fedora is not present in RHEL8
09e27f
  - Added versioned pathfix.py and 2to3 scripts into bindir
09e27f
  - Depend on python3-rpm-generators always, because they run on Python 3.6
09e27f
- Added python38-rpm-macros subpackage
09e27f
  - Fixed py3_install_wheel macro because python38-pip does not have
09e27f
    the --strip-prefix patch
09e27f
09e27f
* Mon Oct 14 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0-1
09e27f
- Update to Python 3.8.0 final
09e27f
09e27f
* Tue Oct 01 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~rc1-1
09e27f
- Rebased to Python 3.8.0rc1
09e27f
09e27f
* Fri Aug 30 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~b4-1
09e27f
- Rebased to Python 3.8.0b4
09e27f
09e27f
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~b3-4
09e27f
- Enable Profile-guided optimization for all arches, not just x86 (#1741015)
09e27f
09e27f
* Wed Aug 14 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~b3-3
09e27f
- Rebuilt for Python 3.8
09e27f
09e27f
* Wed Aug 14 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~b3-2
09e27f
- Bootstrap for Python 3.8
09e27f
09e27f
* Tue Aug 13 2019 Miro Hrončok <mhroncok@redhat.com> - 3.8.0~b3-1
09e27f
- Update to 3.8.0b3
09e27f
09e27f
* Sun Aug 11 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.4-5
09e27f
- Conditionalize python3-devel runtime dependencies on RPM packages and setuptools
09e27f
09e27f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.4-4
09e27f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
09e27f
09e27f
* Mon Jul 15 2019 Lumír Balhar <lbalhar@redhat.com> - 3.7.4-3
09e27f
- Move test.support module to python3-test subpackage
09e27f
  https://fedoraproject.org/wiki/Changes/Move_test.support_module_to_python3-test_subpackage
09e27f
- Restore pyc to TIMESTAMP invalidation mode as default in rpmbubild
09e27f
09e27f
* Fri Jul 12 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.4-2
09e27f
- https://fedoraproject.org/wiki/Changes/Python_means_Python3
09e27f
- The python-unversioned-command package is no longer Python 2, but 3
09e27f
- The python, pydoc, python-config, python-debug, idle, pygettext.py and
09e27f
  msgfmt.py commands are now in python3
09e27f
09e27f
* Tue Jul 09 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.4-1
09e27f
- Update to 3.7.4
09e27f
09e27f
* Tue Jul 02 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.4~rc2-1
09e27f
- Update to 3.7.4rc2
09e27f
09e27f
* Tue Jun 25 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.4~rc1-1
09e27f
- Update to 3.7.4rc1
09e27f
09e27f
* Tue May 07 2019 Charalampos Stratakis <cstratak@redhat.com> - 3.7.3-3
09e27f
- Fix handling of pre-normalization characters in urlsplit
09e27f
- Disallow control chars in http URLs (#1695572, #1700684, #1688169, #1706851)
09e27f
09e27f
* Wed Apr 17 2019 Patrik Kopkan <pkopkan@redhat.com> - 3.7.3-2
09e27f
- Makes man python3.7m show python3.7 man pages (#1612241)
09e27f
09e27f
* Wed Mar 27 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.3-1
09e27f
- Update to 3.7.3
09e27f
09e27f
* Thu Mar 21 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.3~rc1-1
09e27f
- Update to 3.7.3rc1
09e27f
09e27f
* Thu Mar 14 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.2-8
09e27f
- Security fix for CVE-2019-9636 (#1688543, #1688546)
09e27f
09e27f
* Sun Feb 17 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.7.2-7
09e27f
- Rebuild for readline 8.0
09e27f
09e27f
* Tue Feb 12 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.2-6
09e27f
- Reduced default build flags used to build extension modules
09e27f
  https://fedoraproject.org/wiki/Changes/Python_Extension_Flags
09e27f
09e27f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.2-5
09e27f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
09e27f
09e27f
* Wed Jan 16 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.2-4
09e27f
- Security fix for CVE-2019-5010 (#1666519, #1666522)
09e27f
09e27f
* Mon Jan 14 2019 Björn Esser <besser82@fedoraproject.org> - 3.7.2-3
09e27f
- Rebuilt for libcrypt.so.2 (#1666033)
09e27f
09e27f
* Fri Jan 04 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.2-2
09e27f
- No longer revert upstream commit 3b699932e5ac3e7
09e27f
- This was a dirty workaround for (#1644936)
09e27f
09e27f
* Tue Dec 25 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.2-1
09e27f
- Update to 3.7.2
09e27f
09e27f
* Fri Dec 07 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.1-5
09e27f
- Make sure we don't ship any exe files (not needed an prebuilt)
09e27f
09e27f
* Wed Nov 21 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.1-4
09e27f
- Make sure the entire test.support module is in python3-libs (#1651245)
09e27f
09e27f
* Tue Nov 06 2018 Victor Stinner <vstinner@redhat.com> - 3.7.1-3
09e27f
- Verify the value of '-s' when execute the CLI of cProfile (rhbz#1160640)
09e27f
09e27f
* Sun Nov 04 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.1-2
09e27f
- Temporarily revert upstream commit 3b699932e5ac3e7
09e27f
- This is dirty workaround for (#1644936)
09e27f
09e27f
* Mon Oct 22 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.1-1
09e27f
- Update to 3.7.1
09e27f
09e27f
* Thu Sep 27 2018 Petr Viktorin <pviktori@redhat.com> - 3.7.0-10
09e27f
- Compile the debug build with -Og rather than -O0
09e27f
09e27f
* Thu Aug 30 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-9
09e27f
- Require python3-setuptools from python3-devel to prevent packaging errors (#1623914)
09e27f
09e27f
* Fri Aug 17 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-8
09e27f
- Add /usr/bin/pygettext3.py and msgfmt3.py to python3-devel
09e27f
Resolves: rhbz#1571474
09e27f
09e27f
* Fri Aug 17 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-7
09e27f
- Backport TLS 1.3 related fixes to fix FTBFS
09e27f
Resolves: rhbz#1609291
09e27f
09e27f
* Wed Aug 15 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-6
09e27f
- Use RPM built wheels of pip and setuptools in ensurepip instead of our rewheel patch
09e27f
09e27f
* Fri Aug 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.7.0-5
09e27f
- Fix wrong requirement on gdbm
09e27f
09e27f
* Fri Jul 20 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-4
09e27f
- Allow to call Py_Main() after Py_Initialize()
09e27f
Resolves: rhbz#1595421
09e27f
09e27f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.0-3
09e27f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
09e27f
09e27f
* Thu Jul 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.7.0-2
09e27f
- Rebuild for new gdbm
09e27f
09e27f
* Wed Jun 27 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-1
09e27f
- Update to 3.7.0 final
09e27f
09e27f
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-0.21.rc1
09e27f
- Finish bootstrapping, enable rewheel, tests, optimizations
09e27f
09e27f
* Tue Jun 12 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-0.20.rc1
09e27f
- Update to 3.7.0rc1
09e27f
- Bootstrap, disable rewheel, tests, optimizations
09e27f
09e27f
* Mon Apr 23 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.5-4
09e27f
- Fix multiprocessing regression on newer glibcs
09e27f
- Enable test_multiprocessing_fork(server) and _spawn again
09e27f
Resolves: rhbz#1569933
09e27f
09e27f
* Thu Apr 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.5-3
09e27f
- Skip test_multiprocessing_fork(server) and _spawn for now
09e27f
09e27f
* Wed Apr 18 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.5-2
09e27f
- Add flatpackage conditionals
09e27f
09e27f
* Thu Mar 29 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.5-1
09e27f
- Update to 3.6.5
09e27f
09e27f
* Sat Mar 24 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-20
09e27f
- Fix broken macro invocation and broken building of C Python extensions
09e27f
Resolves: rhbz#1560103
09e27f
09e27f
* Fri Mar 16 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-19
09e27f
- Add -n option for pathfix.py
09e27f
Resolves: rhbz#1546990
09e27f
09e27f
* Thu Mar 15 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-18
09e27f
- Fix the py_byte_compile macro to work on Python 2
09e27f
- Remove the pybytecompile macro file from the flat package
09e27f
Resolves: rhbz#1484993
09e27f
09e27f
* Tue Mar 13 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-17
09e27f
- Do not send IP addresses in SNI TLS extension
09e27f
09e27f
* Sat Feb 24 2018 Florian Weimer <fweimer@redhat.com> - 3.6.4-16
09e27f
- Rebuild with new LDFLAGS from redhat-rpm-config
09e27f
09e27f
* Wed Feb 21 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-15
09e27f
- Filter out automatic /usr/bin/python3.X requirement,
09e27f
  recommend the main package from libs instead
09e27f
Resolves: rhbz#1547131
09e27f
09e27f
* Thu Feb 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.4-14
09e27f
- Remove the python3-tools package (#rhbz 1312030)
09e27f
- Move /usr/bin/2to3 to python3-devel
09e27f
- Move /usr/bin/idle and idlelib to python3-idle
09e27f
- Provide python3-tools from python3-idle
09e27f
09e27f
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.6.4-13
09e27f
- Escape macros in %%changelog
09e27f
09e27f
* Fri Feb 02 2018 Michal Cyprian <mcyprian@redhat.com> - 3.6.4-12
09e27f
- Remove sys.executable check from change-user-install-location patch
09e27f
Resolves: rhbz#1532287
09e27f
09e27f
* Thu Feb 01 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-11
09e27f
- Define TLS cipher suite on build time.
09e27f
09e27f
* Wed Jan 31 2018 Tomas Orsava <torsava@redhat.com> - 3.6.4-10
09e27f
- Disable test_gdb for all arches and test_buffer for ppc64le in anticipation
09e27f
  of the F28 mass rebuild
09e27f
- Re-enable these tests after the mass rebuild when they can be properly
09e27f
  addressed
09e27f
09e27f
* Tue Jan 23 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-9
09e27f
- Restore the PyExc_RecursionErrorInst public symbol
09e27f
09e27f
* Tue Jan 23 2018 Björn Esser <besser82@fedoraproject.org> - 3.6.4-8
09e27f
- Add patch to explicitly link _ctypes module with -ldl (#1537489)
09e27f
- Refactored patch for libxcrypt
09e27f
- Re-enable strict symbol checks in the link editor
09e27f
09e27f
* Mon Jan 22 2018 Björn Esser <besser82@fedoraproject.org> - 3.6.4-7
09e27f
- Add patch for libxcrypt
09e27f
- Disable strict symbol checks in the link editor
09e27f
09e27f
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 3.6.4-6
09e27f
- Rebuilt for switch to libxcrypt
09e27f
09e27f
* Fri Jan 19 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-5
09e27f
- Fix localeconv() encoding for LC_NUMERIC
09e27f
09e27f
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.6.4-4
09e27f
- R: gdbm-devel → R: gdbm for python3-libs
09e27f
09e27f
* Wed Jan 17 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-3
09e27f
- Require large enough gdbm (fixup for previous bump)
09e27f
09e27f
* Tue Jan 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-2
09e27f
- Rebuild for reverted gdbm 1.13 on Fedora 27
09e27f
09e27f
* Mon Jan 15 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-1
09e27f
- Update to version 3.6.4
09e27f
09e27f
* Fri Jan 12 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.3-5
09e27f
- Fix the compilation of the nis module.
09e27f
09e27f
* Tue Nov 21 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.3-4
09e27f
- Raise the release of platform-python obsoletes for better maintainability
09e27f
09e27f
* Wed Nov 15 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.3-3
09e27f
- Obsolete platform-python and it's subpackages
09e27f
09e27f
* Mon Oct 09 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.3-2
09e27f
- Fix memory corruption due to allocator mix
09e27f
Resolves: rhbz#1498207
09e27f
09e27f
* Fri Oct 06 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.3-1
09e27f
- Update to Python 3.6.3
09e27f
09e27f
* Fri Sep 29 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-19
09e27f
- Move pathfix.py to bindir, https://github.com/fedora-python/python-rpm-porting/issues/24
09e27f
- Make the -devel package require redhat-rpm-config
09e27f
Resolves: rhbz#1496757
09e27f
09e27f
* Wed Sep 13 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.2-18
09e27f
- Fix /usr/bin/env dependency from python3-tools
09e27f
Resolves: rhbz#1482118
09e27f
09e27f
* Wed Sep 06 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.2-17
09e27f
- Include `-g` in the flags sent to the linker (LDFLAGS)
09e27f
Resolves: rhbz#1483222
09e27f
09e27f
* Tue Sep 05 2017 Petr Viktorin <pviktori@redhat.com> - 3.6.2-16
09e27f
- Specfile cleanup
09e27f
- Make the main description also applicable to the SRPM
09e27f
- Add audiotest.au to the test package
09e27f
09e27f
* Fri Sep 01 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-15
09e27f
- Remove %%{pylibdir}/Tools/scripts/2to3
09e27f
09e27f
* Fri Sep 01 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-14
09e27f
- Expat >= 2.1.0 is everywhere, remove explicit requires
09e27f
- Conditionalize systemtap-devel BuildRequires
09e27f
- For consistency, require /usr/sbin/ifconfig instead of net-tools
09e27f
09e27f
* Mon Aug 28 2017 Petr Viktorin <pviktori@redhat.com> - 3.6.2-13
09e27f
- Rename patch files to be consistent
09e27f
- Run autotools to generate the configure script before building
09e27f
- Merge lib64 patches (104 into 102)
09e27f
- Skip test_bdist_rpm using test config rather than a patch (removes patch 137)
09e27f
- Remove patches 157 and 186, which had test changes left over after upstreaming
09e27f
- Remove patch 188, a temporary workaround for hashlib tests
09e27f
- Merge patches 180, 206, 243, 5001 (architecture naming) into new patch 274
09e27f
- Move python2-tools conflicts to tools subpackage (it was wrongly in tkinter)
09e27f
09e27f
* Mon Aug 28 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.2-12
09e27f
- Use python3 style of calling super() without arguments in rpath
09e27f
  patch to prevent recursion in UnixCCompiler subclasses
09e27f
Resolves: rhbz#1458122
09e27f
09e27f
* Mon Aug 21 2017 Petr Viktorin <pviktori@redhat.com> - 3.6.2-11
09e27f
- Add bcond for --without optimizations
09e27f
- Reword package descriptions
09e27f
- Remove Group declarations
09e27f
- Skip failing test_float_with_comma
09e27f
09e27f
* Mon Aug 21 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-10
09e27f
- Remove system-python, see https://fedoraproject.org/wiki/Changes/Platform_Python_Stack
09e27f
09e27f
* Wed Aug 16 2017 Petr Viktorin <pviktori@redhat.com> - 3.6.2-9
09e27f
- Use bconds for configuring the build
09e27f
- Reorganize the initial sections
09e27f
09e27f
* Wed Aug 16 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-8
09e27f
- Have /usr/bin/2to3 (rhbz#1111275)
09e27f
- Provide 2to3 and idle3, list them in summary and description (rhbz#1076401)
09e27f
09e27f
* Fri Aug 11 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.2-7
09e27f
- Revert "Add --executable option to install.py command"
09e27f
  This enhancement is currently not needed and it can possibly
09e27f
  collide with `pip --editable`option
09e27f
09e27f
* Mon Aug 07 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.2-6
09e27f
- Fix the "urllib FTP protocol stream injection" vulnerability
09e27f
Resolves: rhbz#1478916
09e27f
09e27f
* Tue Aug 01 2017 Tomas Orsava <torsava@redhat.com> - 3.6.2-5
09e27f
- Dropped BuildRequires on db4-devel which was useful for Python 2 (module
09e27f
  bsddb), however, no longer needod for Python 3
09e27f
- Tested building Python 3 with and without the dependency, all tests pass and
09e27f
  filelists of resulting RPMs are identical
09e27f
09e27f
* Sun Jul 30 2017 Florian Weimer <fweimer@redhat.com> - 3.6.2-4
09e27f
- Do not generate debuginfo subpackages (#1476593)
09e27f
- Rebuild with binutils fix for ppc64le (#1475636)
09e27f
09e27f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.2-3
09e27f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
09e27f
09e27f
* Tue Jul 25 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.2-2
09e27f
- Make test_asyncio to not depend on the current SIGHUP signal handler.
09e27f
09e27f
* Tue Jul 18 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.2-1
09e27f
- Update to Python 3.6.2
09e27f
09e27f
* Tue Jun 27 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-10
09e27f
- Update to the latest upstream implementation of PEP 538
09e27f
09e27f
* Mon Jun 26 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.1-9
09e27f
- Make pip and distutils in user environment install into separate location
09e27f
09e27f
* Fri Jun 23 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-8
09e27f
- Fix test_alpn_protocols from test_ssl
09e27f
- Do not require rebundled setuptools dependencies
09e27f
09e27f
* Tue May 16 2017 Tomas Orsava <torsava@redhat.com> - 3.6.1-7
09e27f
- Added a dependency to the devel subpackage on python3-rpm-generators which
09e27f
  have been excised out of rpm-build
09e27f
- Updated notes on bootstrapping Python on top of this specfile accordingly
09e27f
- Involves: rhbz#1410631, rhbz#1444925
09e27f
09e27f
* Tue May 09 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-6
09e27f
- Enable profile guided optimizations for x86_64 and i686 architectures
09e27f
- Update to a newer implementation of PEP 538
09e27f
- Update description to reflect that Python 3 is now the default Python
09e27f
09e27f
* Fri May 05 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-5
09e27f
- Update PEP 538 to the latest upstream implementation
09e27f
09e27f
* Tue Apr 18 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-4
09e27f
- Enable link time optimizations
09e27f
- Move windows executables to the devel subpackage (rhbz#1426257)
09e27f
09e27f
* Thu Apr 13 2017 Tomas Orsava <torsava@redhat.com> - 3.6.1-3
09e27f
- Rename python3.Xdm-config script from -debug to be arch specific
09e27f
Resolves: rhbz#1179073
09e27f
09e27f
* Wed Apr 05 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-2
09e27f
- Install the Makefile in its proper location (rhbz#1438219)
09e27f
09e27f
* Wed Mar 22 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.1-1
09e27f
- Update to version 3.6.1 final
09e27f
09e27f
* Tue Mar 21 2017 Tomas Orsava <torsava@redhat.com> - 3.6.1-0.2.rc1
09e27f
- Fix syntax error in %%py_byte_compile macro (rhbz#1433569)
09e27f
09e27f
* Thu Mar 16 2017 Iryna Shcherbina <ishcherb@redaht.com> - 3.6.1-0.1.rc1
09e27f
- Update to Python 3.6.1 release candidate 1
09e27f
- Add patch 264 to skip a known test failure on aarch64
09e27f
09e27f
* Fri Mar 10 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-21
09e27f
- Use proper command line parsing in _testembed
09e27f
- Backport of PEP 538: Coercing the legacy C locale to a UTF-8 based locale
09e27f
  https://fedoraproject.org/wiki/Changes/python3_c.utf-8_locale
09e27f
09e27f
* Mon Feb 27 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-20
09e27f
- Add desktop entry and appdata.xml file for IDLE 3 (rhbz#1392049)
09e27f
09e27f
* Fri Feb 24 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.0-19
09e27f
- Revert "Set values of prefix and exec_prefix to /usr/local for
09e27f
  /usr/bin/python* executables..." to prevent build failures
09e27f
  of packages using alternate build tools
09e27f
09e27f
* Tue Feb 21 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.0-18
09e27f
- Set values of prefix and exec_prefix to /usr/local for
09e27f
  /usr/bin/python* executables
09e27f
- Use new %%_module_build macro
09e27f
09e27f
* Fri Feb 17 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.0-13
09e27f
- Add --executable option to install.py command
09e27f
09e27f
* Wed Feb 15 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-12
09e27f
- BuildRequire the new dependencies of setuptools when rewheel mode is enabled
09e27f
in order for the virtualenvs to work properly
09e27f
09e27f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-11
09e27f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
09e27f
09e27f
* Wed Feb 01 2017 Stephen Gallagher <sgallagh@redhat.com> - 3.6.0-10
09e27f
- Add missing %%license macro
09e27f
09e27f
* Thu Jan 26 2017 Tomas Orsava <torsava@redhat.com> - 3.6.0-9
09e27f
- Modify the runtime dependency of python3-libs on system-python-libs again,
09e27f
  because previous attempt didn't work properly with dnf resolving mechanism
09e27f
09e27f
* Wed Jan 25 2017 Tomas Orsava <torsava@redhat.com> - 3.6.0-8
09e27f
- Modify the runtime dependency of python3-libs on system-python-libs to use
09e27f
  just the version and release number, but not the dist tag due to Modularity
09e27f
09e27f
* Mon Jan 16 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-7
09e27f
- Fix error check, so that Random.seed actually uses OS randomness (rhbz#1412275)
09e27f
- Skip test_aead_aes_gcm during rpmbuild
09e27f
09e27f
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 3.6.0-6
09e27f
- Rebuild for readline 7.x
09e27f
09e27f
* Tue Jan 10 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-5
09e27f
- Require glibc >= 2.24.90-26 for system-python-libs (rhbz#1410644)
09e27f
09e27f
* Mon Jan 09 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-4
09e27f
- Define HAVE_LONG_LONG as 1 for backwards compatibility
09e27f
09e27f
* Thu Jan 05 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.0-3
09e27f
- Don't blow up on EL7 kernel (random generator) (rhbz#1410175)
09e27f
09e27f
* Tue Dec 27 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-1
09e27f
- Update to Python 3.6.0 final
09e27f
09e27f
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-0.6.rc1
09e27f
- Enable rewheel
09e27f
09e27f
* Wed Dec 07 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-0.5.rc1
09e27f
- Update to Python 3.6.0 release candidate 1
09e27f
09e27f
* Mon Dec 05 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-0.4.b4
09e27f
- Update to Python 3.6.0 beta 4
09e27f
09e27f
* Mon Dec 05 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.2-7
09e27f
- Set to work with pip version 9.0.1
09e27f
09e27f
* Wed Oct 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.2-6
09e27f
- Use proper patch numbering and base upstream branch for
09e27f
porting ssl and hashlib modules to OpenSSL 1.1.0
09e27f
- Drop hashlib patch for now
09e27f
- Add riscv64 arch to 64bit and no-valgrind arches
09e27f
09e27f
* Tue Oct 11 2016 Tomáš Mráz <tmraz@redhat.com> - 3.5.2-5
09e27f
- Make it build with OpenSSL-1.1.0 based on upstream patch
09e27f
09e27f
* Wed Sep 14 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.2-4
09e27f
- Obsolete and Provide python35 package
09e27f
09e27f
* Mon Sep 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.2-3
09e27f
- Update %%py_byte_compile macro
09e27f
- Remove unused configure flags (rhbz#1374357)
09e27f
09e27f
* Fri Sep 09 2016 Tomas Orsava <torsava@redhat.com> - 3.5.2-2
09e27f
- Updated .pyc 'bytecompilation with the newly installed interpreter' to also
09e27f
  recompile optimized .pyc files
09e27f
- Removed .pyo 'bytecompilation with the newly installed interpreter', as .pyo
09e27f
  files are no more
09e27f
- Resolves rhbz#1373635
09e27f
09e27f
* Mon Aug 15 2016 Tomas Orsava <torsava@redhat.com> - 3.5.2-1
09e27f
- Rebased to version 3.5.2
09e27f
- Set to work with pip version 8.1.2
09e27f
- Removed patches 207, 237, 241 as fixes are already contained in Python 3.5.2
09e27f
- Removed arch or environment specific patches 194, 196, 203, and 208
09e27f
  as test builds indicate they are no longer needed
09e27f
- Updated patches 102, 146, and 242 to work with the new Python codebase
09e27f
- Removed patches 200, 201, 5000 which weren't even being applied
09e27f
09e27f
* Tue Aug 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.1-15
09e27f
- Fix for CVE-2016-1000110 HTTPoxy attack
09e27f
- SPEC file cleanup
09e27f
09e27f
* Mon Aug 01 2016 Michal Toman <mtoman@fedoraproject.org> - 3.5.1-14
09e27f
- Build properly on MIPS
09e27f
09e27f
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.1-13
09e27f
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
09e27f
09e27f
* Fri Jul 08 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.1-12
09e27f
- Refactor patch for properly fixing CVE-2016-5636
09e27f
09e27f
* Fri Jul 08 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.1-11
09e27f
- Fix test_pyexpat failure with Expat version of 2.2.0
09e27f
09e27f
* Fri Jul 08 2016 Miro Hrončok <mhroncok@redhat.com> - 3.5.1-10
09e27f
- Move xml module to system-python-libs
09e27f
09e27f
* Thu Jun 16 2016 Tomas Orsava <torsava@redhat.com> - 3.5.1-9
09e27f
- Fix for: CVE-2016-0772 python: smtplib StartTLS stripping attack
09e27f
- Raise an error when STARTTLS fails
09e27f
- rhbz#1303647: https://bugzilla.redhat.com/show_bug.cgi?id=1303647
09e27f
- rhbz#1346345: https://bugzilla.redhat.com/show_bug.cgi?id=1346345
09e27f
- Fixed upstream: https://hg.python.org/cpython/rev/d590114c2394
09e27f
09e27f
* Mon Jun 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.1-8
09e27f
- Added patch for fixing possible integer overflow and heap corruption in zipimporter.get_data()
09e27f
09e27f
* Fri Mar 04 2016 Miro Hrončok <mhroncok@redhat.com> - 3.5.1-7
09e27f
- Move distutils to system-python-libs
09e27f
09e27f
* Wed Feb 24 2016 Robert Kuska <rkuska@redhat.com> - 3.5.1-6
09e27f
- Provide python3-enum34
09e27f
09e27f
* Fri Feb 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.5.1-5
09e27f
- Provide System Python packages and macros
09e27f
09e27f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.1-4
09e27f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
09e27f
09e27f
* Wed Jan 13 2016 Orion Poplwski <orion@cora.nwra.com> - 3.5.1-2
09e27f
- Drop python3 macros, require python/python3-rpm-macros
09e27f
09e27f
* Mon Dec 14 2015 Robert Kuska <rkuska@redhat.com> - 3.5.1-1
09e27f
- Update to 3.5.1
09e27f
- Removed patch 199 and 207 (upstream)
09e27f
09e27f
* Sun Nov 15 2015 Robert Kuska <rkuska@redhat.com> - 3.5.0-5
09e27f
- Remove versioned libpython from devel package
09e27f
09e27f
* Fri Nov 13 2015 Than Ngo <than@redhat.com> 3.5.0-4
09e27f
- add correct arch for ppc64/ppc64le to fix build failure
09e27f
09e27f
* Wed Nov 11 2015 Robert Kuska <rkuska@redhat.com> - 3.5.0-3
09e27f
- Hide the private _Py_atomic_xxx symbols from public header
09e27f
09e27f
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 3.5.0-2
09e27f
- Rebuild with wheel set to 1
09e27f
09e27f
* Tue Sep 15 2015 Matej Stuchlik <mstuchli@redhat.com> - 3.5.0-1
09e27f
- Update to 3.5.0
09e27f
09e27f
* Mon Jun 29 2015 Thomas Spura <tomspur@fedoraproject.org> - 3.4.3-4
09e27f
- python3-devel: Require python-macros for version independant macros such as
09e27f
  python_provide. See fpc#281 and fpc#534.
09e27f
09e27f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.3-3
09e27f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
09e27f
09e27f
* Wed Jun 17 2015 Matej Stuchlik <mstuchli@redhat.com> - 3.4.3-4
09e27f
- Use 1024bit DH key in test_ssl
09e27f
- Use -O0 when compiling -debug build
09e27f
- Update pip version variable to the version we actually ship
09e27f
09e27f
* Wed Jun 17 2015 Matej Stuchlik <mstuchli@redhat.com> - 3.4.3-3
09e27f
- Make relocating Python by changing _prefix actually work
09e27f
Resolves: rhbz#1231801
09e27f
09e27f
* Mon May  4 2015 Peter Robinson <pbrobinson@fedoraproject.org> 3.4.3-2
09e27f
- Disable test_gdb on aarch64 (rhbz#1196181), it joins all other non x86 arches
09e27f
09e27f
* Thu Mar 12 2015 Matej Stuchlik <mstuchli@redhat.com> - 3.4.3-1
09e27f
- Updated to 3.4.3
09e27f
- BuildPython now accepts additional build options
09e27f
- Temporarily disabled test_gdb on arm (rhbz#1196181)
09e27f
09e27f
* Wed Feb 25 2015 Matej Stuchlik <mstuchli@redhat.com> - 3.4.2-7
09e27f
- Fixed undefined behaviour in faulthandler which caused test to hang on x86_64
09e27f
  (http://bugs.python.org/issue23433)
09e27f
09e27f
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 3.4.2-6
09e27f
- Rebuilt for Fedora 23 Change
09e27f
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
09e27f
09e27f
* Tue Feb 17 2015 Ville Skyttä <ville.skytta@iki.fi> - 3.4.2-5
09e27f
- Own systemtap dirs (#710733)
09e27f
09e27f
* Mon Jan 12 2015 Dan Horák <dan[at]danny.cz> - 3.4.2-4
09e27f
- build with valgrind on ppc64le
09e27f
- disable test_gdb on s390(x) until rhbz#1181034 is resolved
09e27f
09e27f
* Tue Dec 16 2014 Robert Kuska <rkuska@redhat.com> - 3.4.2-3
09e27f
- New patches: 170 (gc asserts), 200 (gettext headers),
09e27f
  201 (gdbm memory leak)
09e27f
09e27f
* Thu Dec 11 2014 Robert Kuska <rkuska@redhat.com> - 3.4.2-2
09e27f
- OpenSSL disabled SSLv3 in SSLv23 method
09e27f
09e27f
* Thu Nov 13 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.2-1
09e27f
- Update to 3.4.2
09e27f
- Refreshed patches: 156 (gdb autoload)
09e27f
- Removed: 195 (Werror declaration), 197 (CVE-2014-4650)
09e27f
09e27f
* Mon Nov 03 2014 Slavek Kabrda <bkabrda@redhat.com> - 3.4.1-16
09e27f
- Fix CVE-2014-4650 - CGIHTTPServer URL handling
09e27f
Resolves: rhbz#1113529
09e27f
09e27f
* Sun Sep 07 2014 Karsten Hopp <karsten@redhat.com> 3.4.1-15
09e27f
- exclude test_gdb on ppc* (rhbz#1132488)
09e27f
09e27f
* Thu Aug 21 2014 Slavek Kabrda <bkabrda@redhat.com> - 3.4.1-14
09e27f
- Update rewheel patch with fix from https://github.com/bkabrda/rewheel/pull/1
09e27f
09e27f
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1-13
09e27f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
09e27f
09e27f
* Sun Jun  8 2014 Peter Robinson <pbrobinson@fedoraproject.org> 3.4.1-12
09e27f
- aarch64 has valgrind, just list those that don't support it
09e27f
09e27f
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1-11
09e27f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
09e27f
09e27f
* Wed Jun 04 2014 Karsten Hopp <karsten@redhat.com> 3.4.1-10
09e27f
- bump release and rebuild to link with the correct tcl/tk libs on ppcle
09e27f
09e27f
* Tue Jun 03 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.1-9
09e27f
- Change paths to bundled projects in rewheel patch
09e27f
09e27f
* Fri May 30 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.1-8
09e27f
- In config script, use uname -m to write the arch
09e27f
09e27f
* Thu May 29 2014 Dan Horák <dan[at]danny.cz> - 3.4.1-7
09e27f
- update the arch list where valgrind exists - %%power64 includes also
09e27f
    ppc64le which is not supported yet
09e27f
09e27f
* Thu May 29 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.1-6
09e27f
- Forward arguments to the arch specific config script
09e27f
Resolves: rhbz#1102683
09e27f
09e27f
* Wed May 28 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.1-5
09e27f
- Rename python3.Xm-config script to arch specific.
09e27f
Resolves: rhbz#1091815
09e27f
09e27f
* Tue May 27 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.1-4
09e27f
- Use python3-*, not python-* runtime requires on setuptools and pip
09e27f
- rebuild for tcl-8.6
09e27f
09e27f
* Tue May 27 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.1-3
09e27f
- Update the rewheel module
09e27f
09e27f
* Mon May 26 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.1-2
09e27f
- Fix multilib dependencies.
09e27f
Resolves: rhbz#1091815
09e27f
09e27f
* Sun May 25 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.1-1
09e27f
- Update to Python 3.4.1
09e27f
09e27f
* Sun May 25 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-8
09e27f
- Fix test_gdb failure on ppc64le
09e27f
Resolves: rhbz#1095355
09e27f
09e27f
* Thu May 22 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.0-7
09e27f
- Add macro %%python3_version_nodots
09e27f
09e27f
* Sun May 18 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-6
09e27f
- Disable test_faulthandler, test_gdb on aarch64
09e27f
Resolves: rhbz#1045193
09e27f
09e27f
* Fri May 16 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-5
09e27f
- Don't add Werror=declaration-after-statement for extension
09e27f
  modules through setup.py (PyBT#21121)
09e27f
09e27f
* Mon May 12 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-4
09e27f
- Add setuptools and pip to Requires
09e27f
09e27f
* Tue Apr 29 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-3
09e27f
- Point __os_install_post to correct brp-* files
09e27f
09e27f
* Tue Apr 15 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-2
09e27f
- Temporarily disable tests requiring SIGHUP (rhbz#1088233)
09e27f
09e27f
* Tue Apr 15 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-1
09e27f
- Update to Python 3.4 final
09e27f
- Add patch adding the rewheel module
09e27f
- Merge patches from master
09e27f
09e27f
* Wed Jan 08 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.0-0.1.b2
09e27f
- Update to Python 3.4 beta 2.
09e27f
- Refreshed patches: 55 (systemtap), 146 (hashlib-fips), 154 (test_gdb noise)
09e27f
- Dropped patches: 114 (statvfs constants), 177 (platform unicode)
09e27f
09e27f
* Mon Nov 25 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.0-0.1.b1
09e27f
- Update to Python 3.4 beta 1.
09e27f
- Refreshed patches: 102 (lib64), 111 (no static lib), 125 (less verbose COUNT
09e27f
ALLOCS), 141 (fix COUNT_ALLOCS in test_module), 146 (hashlib fips),
09e27f
157 (UID+GID overflows), 173 (ENOPROTOOPT in bind_port)
09e27f
- Removed patch 00187 (remove pthread atfork; upstreamed)
09e27f
09e27f
* Mon Nov 04 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.0-0.1.a4
09e27f
- Update to Python 3.4 alpha 4.
09e27f
- Refreshed patches: 55 (systemtap), 102 (lib64), 111 (no static lib),
09e27f
114 (statvfs flags), 132 (unittest rpmbuild hooks), 134 (fix COUNT_ALLOCS in
09e27f
test_sys), 143 (tsc on ppc64), 146 (hashlib fips), 153 (test gdb noise),
09e27f
157 (UID+GID overflows), 173 (ENOPROTOOPT in bind_port), 186 (dont raise
09e27f
from py_compile)
09e27f
- Removed patches: 129 (test_subprocess nonreadable dir - no longer fails in
09e27f
Koji), 142 (the mock issue that caused this is fixed)
09e27f
- Added patch 187 (remove thread atfork) - will be in next version
09e27f
- Refreshed script for checking pyc and pyo timestamps with new ignored files.
09e27f
- The fips patch is disabled for now until upstream makes a final decision
09e27f
what to do with sha3 implementation for 3.4.0.
09e27f
09e27f
* Wed Oct 30 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.2-7
09e27f
- Bytecompile all *.py files properly during build (rhbz#1023607)
09e27f
09e27f
* Fri Aug 23 2013 Matej Stuchlik <mstuchli@redhat.com> - 3.3.2-6
09e27f
- Added fix for CVE-2013-4238 (rhbz#996399)
09e27f
09e27f
* Fri Jul 26 2013 Dennis Gilmore <dennis@ausil.us> - 3.3.2-5
09e27f
- fix up indentation in arm patch
09e27f
09e27f
* Fri Jul 26 2013 Dennis Gilmore <dennis@ausil.us> - 3.3.2-4
09e27f
- disable a test that fails on arm
09e27f
- enable valgrind support on arm arches
09e27f
09e27f
* Tue Jul 02 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.2-3
09e27f
- Fix build with libffi containing multilib wrapper for ffi.h (rhbz#979696).
09e27f
09e27f
* Mon May 20 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.2-2
09e27f
- Add patch for CVE-2013-2099 (rhbz#963261).
09e27f
09e27f
* Thu May 16 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.2-1
09e27f
- Updated to Python 3.3.2.
09e27f
- Refreshed patches: 153 (gdb test noise)
09e27f
- Dropped patches: 175 (configure -Wformat, fixed upstream), 182 (gdb
09e27f
test threads)
09e27f
- Synced patch numbers with python.spec.
09e27f
09e27f
* Thu May  9 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.1-4
09e27f
- fix test.test_gdb.PyBtTests.test_threads on ppc64 (patch 181; rhbz#960010)
09e27f
09e27f
* Thu May 02 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.1-3
09e27f
- Add patch that enables building on ppc64p7 (replace the sed, so that
09e27f
we get consistent with python2 spec and it's more obvious that we're doing it.
09e27f
09e27f
* Wed Apr 24 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.1-2
09e27f
- Add fix for gdb tests failing on arm, rhbz#951802.
09e27f
09e27f
* Tue Apr 09 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.1-1
09e27f
- Updated to Python 3.3.1.
09e27f
- Refreshed patches: 55 (systemtap), 111 (no static lib), 146 (hashlib fips),
09e27f
153 (fix test_gdb noise), 157 (uid, gid overflow - fixed upstream, just
09e27f
keeping few more downstream tests)
09e27f
- Removed patches: 3 (audiotest.au made it to upstream tarball)
09e27f
- Removed workaround for http://bugs.python.org/issue14774, discussed in
09e27f
http://bugs.python.org/issue15298 and fixed in revision 24d52d3060e8.
09e27f
09e27f
* Mon Mar 25 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-10
09e27f
- fix gcc 4.8 incompatibility (rhbz#927358); regenerate autotool intermediates
09e27f
09e27f
* Mon Mar 25 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-9
09e27f
- renumber patches to keep them in sync with python.spec
09e27f
09e27f
* Fri Mar 15 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.0-8
09e27f
- Fix error in platform.platform() when non-ascii byte strings are decoded to
09e27f
  unicode (rhbz#922149)
09e27f
09e27f
* Thu Mar 14 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.0-7
09e27f
- Fix up shared library extension (rhbz#889784)
09e27f
09e27f
* Thu Mar 07 2013 Karsten Hopp <karsten@redhat.com> 3.3.0-6
09e27f
- add ppc64p7 build target, optimized for Power7
09e27f
09e27f
* Mon Mar  4 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-5
09e27f
- add workaround for ENOPROTOOPT seen running selftests in Koji
09e27f
(rhbz#913732)
09e27f
09e27f
* Mon Mar  4 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-4
09e27f
- remove config flag from /etc/rpm/macros.{python3|pybytecompile}
09e27f
09e27f
* Mon Feb 11 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-3
09e27f
- add aarch64 (rhbz#909783)
09e27f
09e27f
* Thu Nov 29 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-2
09e27f
- add BR on bluez-libs-devel (rhbz#879720)
09e27f
09e27f
* Sat Sep 29 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-1
09e27f
- 3.3.0rc3 -> 3.3.0; drop alphatag
09e27f
09e27f
* Mon Sep 24 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.6.rc3
09e27f
- 3.3.0rc2 -> 3.3.0rc3
09e27f
09e27f
* Mon Sep 10 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.5.rc2
09e27f
- 3.3.0rc1 -> 3.3.0rc2; refresh patch 55
09e27f
09e27f
* Mon Aug 27 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.4.rc1
09e27f
- 3.3.0b2 -> 3.3.0rc1; refresh patches 3, 55
09e27f
09e27f
* Mon Aug 13 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.3.b2
09e27f
- 3.3b1 -> 3.3b2; drop upstreamed patch 152; refresh patches 3, 102, 111,
09e27f
134, 153, 160; regenenerate autotools patch; rework systemtap patch to work
09e27f
correctly when LANG=C (patch 55); importlib.test was moved to
09e27f
test.test_importlib upstream
09e27f
09e27f
* Mon Aug 13 2012 Karsten Hopp <karsten@redhat.com> 3.3.0-0.2.b1
09e27f
- disable some failing checks on PPC* (rhbz#846849)
09e27f
09e27f
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.1.b1
09e27f
- 3.2 -> 3.3: https://fedoraproject.org/wiki/Features/Python_3.3
09e27f
- 3.3.0b1: refresh patches 3, 55, 102, 111, 113, 114, 134, 157; drop upstream
09e27f
patch 147; regenenerate autotools patch; drop "--with-wide-unicode" from
09e27f
configure (PEP 393); "plat-linux2" -> "plat-linux" (upstream issue 12326);
09e27f
"bz2" -> "_bz2" and "crypt" -> "_crypt"; egg-info files are no longer shipped
09e27f
for stdlib (upstream issues 10645 and 12218); email/test moved to
09e27f
test/test_email; add /usr/bin/pyvenv[-3.3] and venv module (PEP 405); add
09e27f
_decimal and _lzma modules; make collections modules explicit in payload again
09e27f
(upstream issue 11085); add _testbuffer module to tests subpackage (added in
09e27f
upstream commit 3f9b3b6f7ff0); fix test failures (patches 160 and 161);
09e27f
workaround erroneously shared _sysconfigdata.py upstream issue #14774; fix
09e27f
distutils.sysconfig traceback (patch 162); add BuildRequires: xz-devel (for
09e27f
_lzma module); skip some tests within test_socket (patch 163)
09e27f
09e27f
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.3-11
09e27f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
09e27f
09e27f
* Fri Jul 20 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.1.b1
09e27f
09e27f
* Fri Jun 22 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-10
09e27f
- use macro for power64 (rhbz#834653)
09e27f
09e27f
* Mon Jun 18 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-9
09e27f
- fix missing include in uid/gid handling patch (patch 157; rhbz#830405)
09e27f
09e27f
* Wed May 30 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 3.2.3-8
09e27f
- fix tapset for debug build
09e27f
09e27f
* Tue May 15 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-7
09e27f
- update uid/gid handling to avoid int overflows seen with uid/gid
09e27f
values >= 2^31 on 32-bit architectures (patch 157; rhbz#697470)
09e27f
09e27f
* Fri May  4 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-6
09e27f
- renumber autotools patch from 300 to 5000
09e27f
- specfile cleanups
09e27f
09e27f
* Mon Apr 30 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-5
09e27f
- fix test_gdb.py (patch 156; rhbz#817072)
09e27f
09e27f
* Fri Apr 20 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-4
09e27f
- avoid allocating thunks in ctypes unless absolutely necessary, to avoid
09e27f
generating SELinux denials on "import ctypes" and "import uuid" when embedding
09e27f
Python within httpd (patch 155; rhbz#814391)
09e27f
09e27f
* Fri Apr 20 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-3
09e27f
- add explicit version requirements on expat to avoid linkage problems with
09e27f
XML_SetHashSalt
09e27f
09e27f
* Thu Apr 12 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-2
09e27f
- fix test_gdb (patch 153)
09e27f
09e27f
* Wed Apr 11 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-1
09e27f
- 3.2.3; refresh patch 102 (lib64); drop upstream patches 148 (gdbm magic
09e27f
values), 149 (__pycache__ fix); add patch 152 (test_gdb regex)
09e27f
09e27f
* Thu Feb  9 2012 Thomas Spura <tomspur@fedoraproject.org> - 3.2.2-13
09e27f
- use newly installed python for byte compiling (now for real)
09e27f
09e27f
* Sun Feb  5 2012 Thomas Spura <tomspur@fedoraproject.org> - 3.2.2-12
09e27f
- use newly installed python for byte compiling (#787498)
09e27f
09e27f
* Wed Jan  4 2012 Ville Skyttä <ville.skytta@iki.fi> - 3.2.2-11
09e27f
- Build with $RPM_LD_FLAGS (#756863).
09e27f
- Use xz-compressed source tarball.
09e27f
09e27f
* Wed Dec 07 2011 Karsten Hopp <karsten@redhat.com> 3.2.2-10
09e27f
- disable rAssertAlmostEqual in test_cmath on PPC (#750811)
09e27f
09e27f
* Mon Oct 17 2011 Rex Dieter <rdieter@fedoraproject.org> - 3.2.2-9
09e27f
- python3-devel missing autogenerated pkgconfig() provides (#746751)
09e27f
09e27f
* Mon Oct 10 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-8
09e27f
- cherrypick fix for distutils not using __pycache__ when byte-compiling
09e27f
files (rhbz#722578)
09e27f
09e27f
* Fri Sep 30 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-7
09e27f
- re-enable gdbm (patch 148; rhbz#742242)
09e27f
09e27f
* Fri Sep 16 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-6
09e27f
- add a sys._debugmallocstats() function (patch 147)
09e27f
09e27f
* Wed Sep 14 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-5
09e27f
- support OpenSSL FIPS mode in _hashlib and hashlib; don't build the _md5 and
09e27f
_sha* modules, relying on _hashlib in hashlib (rhbz#563986; patch 146)
09e27f
09e27f
* Tue Sep 13 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-4
09e27f
- disable gdbm module to prepare for gdbm soname bump
09e27f
09e27f
* Mon Sep 12 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-3
09e27f
- renumber and rename patches for consistency with python.spec (8 to 55, 106
09e27f
to 104, 6 to 111, 104 to 113, 105 to 114, 125, 131, 130 to 143)
09e27f
09e27f
* Sat Sep 10 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-2
09e27f
- rewrite of "check", introducing downstream-only hooks for skipping specific
09e27f
cases in an rpmbuild (patch 132), and fixing/skipping failing tests in a more
09e27f
fine-grained manner than before; (patches 106, 133-142 sparsely, moving
09e27f
patches for consistency with python.spec: 128 to 134, 126 to 135, 127 to 141)
09e27f
09e27f
* Tue Sep  6 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-1
09e27f
- 3.2.2
09e27f
09e27f
* Thu Sep  1 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-7
09e27f
- run selftests with "--verbose"
09e27f
- disable parts of test_io on ppc (rhbz#732998)
09e27f
09e27f
* Wed Aug 31 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-6
09e27f
- use "--findleaks --verbose3" when running test suite
09e27f
09e27f
* Tue Aug 23 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-5
09e27f
- re-enable and fix the --with-tsc option on ppc64, and rework it on 32-bit
09e27f
ppc to avoid aliasing violations (patch 130; rhbz#698726)
09e27f
09e27f
* Tue Aug 23 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-4
09e27f
- don't use --with-tsc on ppc64 debug builds (rhbz#698726)
09e27f
09e27f
* Thu Aug 18 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-3
09e27f
- add %%python3_version to the rpm macros (rhbz#719082)
09e27f
09e27f
* Mon Jul 11 2011 Dennis Gilmore <dennis@ausil.us> - 3.2.1-2
09e27f
- disable some tests on sparc arches
09e27f
09e27f
* Mon Jul 11 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-1
09e27f
- 3.2.1; refresh lib64 patch (102), subprocess unit test patch (129), disabling
09e27f
of static library build (due to Modules/_testembed; patch 6), autotool
09e27f
intermediates (patch 300)
09e27f
09e27f
* Fri Jul  8 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-5
09e27f
- use the gdb hooks from the upstream tarball, rather than keeping our own copy
09e27f
09e27f
* Fri Jul  8 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-4
09e27f
- don't run test_openpty and test_pty in %%check
09e27f
09e27f
* Fri Jul  8 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-3
09e27f
- cleanup of BuildRequires; add comment headings to specfile sections
09e27f
09e27f
* Tue Apr 19 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-2
09e27f
- fix the libpython.stp systemtap tapset (rhbz#697730)
09e27f
09e27f
* Mon Feb 21 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-1
09e27f
- 3.2
09e27f
- drop alphatag
09e27f
- regenerate autotool patch
09e27f
09e27f
* Mon Feb 14 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.13.rc3
09e27f
- add a /usr/bin/python3-debug symlink within the debug subpackage
09e27f
09e27f
* Mon Feb 14 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.12.rc3
09e27f
- 3.2rc3
09e27f
- regenerate autotool patch
09e27f
09e27f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-0.11.rc2
09e27f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
09e27f
09e27f
* Mon Jan 31 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.10.rc2
09e27f
- 3.2rc2
09e27f
09e27f
* Mon Jan 17 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.9.rc1
09e27f
- 3.2rc1
09e27f
- rework patch 6 (static lib removal)
09e27f
- remove upstreamed patch 130 (ppc debug build)
09e27f
- regenerate patch 300 (autotool intermediates)
09e27f
- updated packaging to reflect upstream rewrite of "Demo" (issue 7962)
09e27f
- added libpython3.so and 2to3-3.2
09e27f
09e27f
* Wed Jan  5 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.8.b2
09e27f
- set EXTRA_CFLAGS to our CFLAGS, rather than overriding OPT, fixing a linker
09e27f
error with dynamic annotations (when configured using --with-valgrind)
09e27f
- fix the ppc build of the debug configuration (patch 130; rhbz#661510)
09e27f
09e27f
* Tue Jan  4 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.7.b2
09e27f
- add --with-valgrind to configuration (on architectures that support this)
09e27f
09e27f
* Wed Dec 29 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.6.b2
09e27f
- work around test_subprocess failure seen in koji (patch 129)
09e27f
09e27f
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
09e27f
- 3.2b2
09e27f
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
09e27f
patch 8 (systemtap), patch 102 (lib64)
09e27f
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
09e27f
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
09e27f
fixed upstream)
09e27f
- regenerate patch 300 (autotool intermediates)
09e27f
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
09e27f
patch 128)
09e27f
- stop using runtest.sh in %%check (dropped by upstream), replacing with
09e27f
regrtest; fixup list of failing tests
09e27f
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
09e27f
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
09e27f
PEP 3149
09e27f
- drop itertools, operator and _collections modules from the manifests as py3k
09e27f
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
09e27f
- move turtle code into the tkinter subpackage
09e27f
09e27f
* Wed Nov 17 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.a1
09e27f
- fix sysconfig to not rely on the -devel subpackage (rhbz#653058)
09e27f
09e27f
* Thu Sep  9 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.4.a1
09e27f
- move most of the content of the core package to the libs subpackage, given
09e27f
that the libs aren't meaningfully usable without the standard libraries
09e27f
09e27f
* Wed Sep  8 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.3.a1
09e27f
- Move test.support to core package (rhbz#596258)
09e27f
- Add various missing __pycache__ directories to payload
09e27f
09e27f
* Sun Aug 22 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2-0.2.a1
09e27f
- Add __pycache__ directory for site-packages
09e27f
09e27f
* Sun Aug 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 3.2-0.1.a1
09e27f
- on 64bit "stdlib" was still "/usr/lib/python*" (modify *lib64.patch)
09e27f
- make find-provides-without-python-sonames.sh 64bit aware
09e27f
09e27f
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
09e27f
- 3.2a1; add alphatag
09e27f
- rework %%files in the light of PEP 3147 (__pycache__)
09e27f
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
09e27f
better job of things, and the %%files explicitly lists our modules (r82746
09e27f
appears to break the old way of doing things).  This leads to various modules
09e27f
changing from "foomodule.so" to "foo.so".  It also leads to the optimized build
09e27f
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
09e27f
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
09e27f
testing/devel purposes)
09e27f
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
09e27f
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
09e27f
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
09e27f
- add machinery for rebuilding "configure" and friends, using the correct
09e27f
version of autoconf (patch 300)
09e27f
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
09e27f
- "modulator" was removed upstream
09e27f
- drop "-b" from patch applications affecting .py files to avoid littering the
09e27f
installation tree
09e27f
09e27f
* Thu Aug 19 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-13
09e27f
- Turn on computed-gotos.
09e27f
- Fix for parallel make and graminit.c
09e27f
09e27f
* Fri Jul  2 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-12
09e27f
- rebuild
09e27f
09e27f
* Fri Jul  2 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-11
09e27f
- Fix an incompatibility between pyexpat and the system expat-2.0.1 that led to
09e27f
a segfault running test_pyexpat.py (patch 110; upstream issue 9054; rhbz#610312)
09e27f
09e27f
* Fri Jun  4 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-10
09e27f
- ensure that the compiler is invoked with "-fwrapv" (rhbz#594819)
09e27f
- reformat whitespace in audioop.c (patch 106)
09e27f
- CVE-2010-1634: fix various integer overflow checks in the audioop
09e27f
module (patch 107)
09e27f
- CVE-2010-2089: further checks within the audioop module (patch 108)
09e27f
- CVE-2008-5983: the new PySys_SetArgvEx entry point from r81399 (patch 109)
09e27f
09e27f
* Thu May 27 2010 Dan Horák <dan[at]danny.cz> - 3.1.2-9
09e27f
- reading the timestamp counter is available only on some arches (see Python/ceval.c)
09e27f
09e27f
* Wed May 26 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-8
09e27f
- add flags for statvfs.f_flag to the constant list in posixmodule (i.e. "os")
09e27f
(patch 105)
09e27f
09e27f
* Tue May 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-7
09e27f
- add configure-time support for COUNT_ALLOCS and CALL_PROFILE debug options
09e27f
(patch 104); enable them and the WITH_TSC option within the debug build
09e27f
09e27f
* Mon May 24 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-6
09e27f
- build and install two different configurations of Python 3: debug and
09e27f
standard, packaging the debug build in a new "python3-debug" subpackage
09e27f
(patch 103)
09e27f
09e27f
* Tue Apr 13 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-5
09e27f
- exclude test_http_cookies when running selftests, due to hang seen on
09e27f
http://koji.fedoraproject.org/koji/taskinfo?taskID=2088463 (cancelled after
09e27f
11 hours)
09e27f
- update python-gdb.py from v5 to py3k version submitted upstream
09e27f
09e27f
* Wed Mar 31 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-4
09e27f
- update python-gdb.py from v4 to v5 (improving performance and stability,
09e27f
adding commands)
09e27f
09e27f
* Thu Mar 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-3
09e27f
- update python-gdb.py from v3 to v4 (fixing infinite recursion on reference
09e27f
cycles and tracebacks on bytes 0x80-0xff in strings, adding handlers for sets
09e27f
and exceptions)
09e27f
09e27f
* Wed Mar 24 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-2
09e27f
- refresh gdb hooks to v3 (reworking how they are packaged)
09e27f
09e27f
* Sun Mar 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-1
09e27f
- update to 3.1.2: http://www.python.org/download/releases/3.1.2/
09e27f
- drop upstreamed patch 2 (.pyc permissions handling)
09e27f
- drop upstream patch 5 (fix for the test_tk and test_ttk_* selftests)
09e27f
- drop upstreamed patch 200 (path-fixing script)
09e27f
09e27f
* Sat Mar 20 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-28
09e27f
- fix typo in libpython.stp (rhbz:575336)
09e27f
09e27f
* Fri Mar 12 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-27
09e27f
- add pyfuntop.stp example (source 7)
09e27f
- convert usage of $$RPM_BUILD_ROOT to %%{buildroot} throughout, for
09e27f
consistency with python.spec
09e27f
09e27f
* Mon Feb 15 2010 Thomas Spura <tomspur@fedoraproject.org> - 3.1.1-26
09e27f
- rebuild for new package of redhat-rpm-config (rhbz:564527)
09e27f
- use 'install -p' when running 'make install'
09e27f
09e27f
* Fri Feb 12 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-25
09e27f
- split configure options into multiple lines for easy of editing
09e27f
- add systemtap static markers (wcohen, mjw, dmalcolm; patch 8), a systemtap
09e27f
tapset defining "python.function.entry" and "python.function.return" to make
09e27f
the markers easy to use (dmalcolm; source 5), and an example of using the
09e27f
tapset to the docs (dmalcolm; source 6) (rhbz:545179)
09e27f
09e27f
* Mon Feb  8 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-24
09e27f
- move the -gdb.py file from %%{_libdir}/INSTSONAME-gdb.py to
09e27f
%%{_prefix}/lib/debug/%%{_libdir}/INSTSONAME.debug-gdb.py to avoid noise from
09e27f
ldconfig (bug 562980), and which should also ensure it becomes part of the
09e27f
debuginfo subpackage, rather than the libs subpackage
09e27f
- introduce %%{py_SOVERSION} and %%{py_INSTSONAME} to reflect the upstream
09e27f
configure script, and to avoid fragile scripts that try to figure this out
09e27f
dynamically (e.g. for the -gdb.py change)
09e27f
09e27f
* Mon Feb  8 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-23
09e27f
- add gdb hooks for easier debugging (Source 4)
09e27f
09e27f
* Thu Jan 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-22
09e27f
- update python-3.1.1-config.patch to remove downstream customization of build
09e27f
of pyexpat and elementtree modules
09e27f
- add patch adapted from upstream (patch 7) to add support for building against
09e27f
system expat; add --with-system-expat to "configure" invocation
09e27f
- remove embedded copies of expat and zlib from source tree during "prep"
09e27f
09e27f
* Mon Jan 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-21
09e27f
- introduce %%{dynload_dir} macro
09e27f
- explicitly list all lib-dynload files, rather than dynamically gathering the
09e27f
payload into a temporary text file, so that we can be sure what we are
09e27f
shipping
09e27f
- introduce a macros.pybytecompile source file, to help with packaging python3
09e27f
modules (Source3; written by Toshio)
09e27f
- rename "2to3-3" to "python3-2to3" to better reflect python 3 module packaging
09e27f
plans
09e27f
09e27f
* Mon Jan 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-20
09e27f
- change python-3.1.1-config.patch to remove our downstream change to curses
09e27f
configuration in Modules/Setup.dist, so that the curses modules are built using
09e27f
setup.py with the downstream default (linking against libncursesw.so, rather
09e27f
than libncurses.so), rather than within the Makefile; add a test to %%install
09e27f
to verify the dso files that the curses module is linked against the correct
09e27f
DSO (bug 539917; changes _cursesmodule.so -> _curses.so)
09e27f
09e27f
* Fri Jan 22 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-19
09e27f
- add %%py3dir macro to macros.python3 (to be used during unified python 2/3
09e27f
builds for setting up the python3 copy of the source tree)
09e27f
09e27f
* Wed Jan 20 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-18
09e27f
- move lib2to3 from -tools subpackage to main package (bug 556667)
09e27f
09e27f
* Sun Jan 17 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-17
09e27f
- patch Makefile.pre.in to avoid building static library (patch 6, bug 556092)
09e27f
09e27f
* Fri Jan 15 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-16
09e27f
- use the %%{_isa} macro to ensure that the python-devel dependency on python
09e27f
is for the correct multilib arch (#555943)
09e27f
- delete bundled copy of libffi to make sure we use the system one
09e27f
09e27f
* Fri Jan 15 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-15
09e27f
- fix the URLs output by pydoc so they point at python.org's 3.1 build of the
09e27f
docs, rather than the 2.6 build
09e27f
09e27f
* Wed Jan 13 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-14
09e27f
- replace references to /usr with %%{_prefix}; replace references to
09e27f
/usr/include with %%{_includedir} (Toshio)
09e27f
09e27f
* Mon Jan 11 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-13
09e27f
- fix permission on find-provides-without-python-sonames.sh from 775 to 755
09e27f
09e27f
* Mon Jan 11 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-12
09e27f
- remove build-time requirements on tix and tk, since we already have
09e27f
build-time requirements on the -devel subpackages for each of these (Thomas
09e27f
Spura)
09e27f
- replace usage of %%define with %%global (Thomas Spura)
09e27f
- remove forcing of CC=gcc as this old workaround for bug 109268 appears to
09e27f
longer be necessary
09e27f
- move various test files from the "tools"/"tkinter" subpackages to the "test"
09e27f
subpackage
09e27f
09e27f
* Thu Jan  7 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-11
09e27f
- add %%check section (thanks to Thomas Spura)
09e27f
- update patch 4 to use correct shebang line
09e27f
- get rid of stray patch file from buildroot
09e27f
09e27f
* Tue Nov 17 2009 Andrew McNabb <amcnabb@mcnabbs.org> - 3.1.1-10
09e27f
- switched a few instances of "find |xargs" to "find -exec" for consistency.
09e27f
- made the description of __os_install_post more accurate.
09e27f
09e27f
* Wed Nov  4 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-9
09e27f
- add macros.python3 to the -devel subpackage, containing common macros for use
09e27f
when packaging python3 modules
09e27f
09e27f
* Tue Nov  3 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-8
09e27f
- add a provides of "python(abi)" (see bug 532118)
09e27f
- fix issues identified by a.badger in package review (bug 526126, comment 39):
09e27f
  - use "3" thoughout metadata, rather than "3.*"
09e27f
  - remove conditional around "pkg-config openssl"
09e27f
  - use standard cleanup of RPM_BUILD_ROOT
09e27f
  - replace hardcoded references to /usr with _prefix macro
09e27f
  - stop removing egg-info files
09e27f
  - use /usr/bin/python3.1 rather than /use/bin/env python3.1 when fixing
09e27f
up shebang lines
09e27f
  - stop attempting to remove no-longer-present .cvsignore files
09e27f
  - move the post/postun sections above the "files" sections
09e27f
09e27f
* Thu Oct 29 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-7
09e27f
- remove commented-away patch 51 (python-2.6-distutils_rpm.patch): the -O1
09e27f
flag is used by default in the upstream code
09e27f
- "Makefile" and the config-32/64.h file are needed by distutils/sysconfig.py
09e27f
_init_posix(), so we include them in the core package, along with their parent
09e27f
directories (bug 531901)
09e27f
09e27f
* Tue Oct 27 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-6
09e27f
- reword description, based on suggestion by amcnabb
09e27f
- fix the test_email and test_imp selftests (patch 3 and patch 4 respectively)
09e27f
- fix the test_tk and test_ttk_* selftests (patch 5)
09e27f
- fix up the specfile's handling of shebang/perms to avoid corrupting
09e27f
test_httpservers.py (sed command suggested by amcnabb)
09e27f
09e27f
* Thu Oct 22 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-5
09e27f
- fixup importlib/_bootstrap.py so that it correctly handles being unable to
09e27f
open .pyc files for writing (patch 2, upstream issue 7187)
09e27f
- actually apply the rpath patch (patch 1)
09e27f
09e27f
* Thu Oct 22 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-4
09e27f
- update patch0's setup of the crypt module to link it against libcrypt
09e27f
- update patch0 to comment "datetimemodule" back out, so that it is built
09e27f
using setup.py (see Setup, option 3), thus linking it statically against
09e27f
timemodule.c and thus avoiding a run-time "undefined symbol:
09e27f
_PyTime_DoubleToTimet" failure on "import datetime"
09e27f
09e27f
* Wed Oct 21 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-3
09e27f
- remove executable flag from various files that shouldn't have it
09e27f
- fix end-of-line encodings
09e27f
- fix a character encoding
09e27f
09e27f
* Tue Oct 20 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-2
09e27f
- disable invocation of brp-python-bytecompile in postprocessing, since
09e27f
it would be with the wrong version of python (adapted from ivazquez'
09e27f
python3000 specfile)
09e27f
- use a custom implementation of __find_provides in order to filter out bogus
09e27f
provides lines for the various .so modules
09e27f
- fixup distutils/unixccompiler.py to remove standard library path from rpath
09e27f
(patch 1, was Patch0 in ivazquez' python3000 specfile)
09e27f
- split out libraries into a -libs subpackage
09e27f
- update summaries and descriptions, basing content on ivazquez' specfile
09e27f
- fixup executable permissions on .py, .xpm and .xbm files, based on work in
09e27f
ivazquez's specfile
09e27f
- get rid of DOS batch files
09e27f
- fixup permissions for shared libraries from non-standard 555 to standard 755
09e27f
- move /usr/bin/python*-config to the -devel subpackage
09e27f
- mark various directories as being documentation
09e27f
09e27f
* Thu Sep 24 2009 Andrew McNabb <amcnabb@mcnabbs.org> 3.1.1-1
09e27f
- Initial package for Python 3.