Blame SPECS/python3.spec

036b9c
# ==================
036b9c
# Top-level metadata
036b9c
# ==================
036b9c
036b9c
%global pybasever 3.6
036b9c
036b9c
# pybasever without the dot:
036b9c
%global pyshortver 36
036b9c
036b9c
Name: python3
036b9c
Summary: Interpreter of the Python programming language
036b9c
URL: https://www.python.org/
036b9c
036b9c
#  WARNING  When rebasing to a new Python version,
036b9c
#           remember to update the python3-docs package as well
036b9c
Version: %{pybasever}.8
036b9c
Release: 10%{?dist}
036b9c
License: Python
036b9c
036b9c
036b9c
# ==================================
036b9c
# Conditionals controlling the build
036b9c
# ==================================
036b9c
036b9c
# Note that the bcond macros are named for the CLI option they create.
036b9c
# "%%bcond_without" means "ENABLE by default and create a --without option"
036b9c
036b9c
# Flat package, i.e. python36, python37, python38 for tox etc.
036b9c
# warning: changes some other defaults
036b9c
# in Fedora, never turn this on for the python3 package
036b9c
# and always keep it on for python36 etc.
036b9c
# WARNING: This does not change the package name and summary above
036b9c
%bcond_with flatpackage
036b9c
036b9c
036b9c
# Expensive optimizations (mainly, profile-guided optimizations)
036b9c
%ifarch %{ix86} x86_64
036b9c
%bcond_without optimizations
036b9c
%else
036b9c
# On some architectures, the optimized build takes tens of hours, possibly
036b9c
# longer than Koji's 24-hour timeout. Disable optimizations here.
036b9c
%bcond_with optimizations
036b9c
%endif
036b9c
036b9c
# Run the test suite in %%check
036b9c
%bcond_without tests
036b9c
036b9c
# Ability to reuse RPM-installed pip using rewheel
036b9c
%if %{with flatpackage}
036b9c
%bcond_with rewheel
036b9c
%else
036b9c
%bcond_without rewheel
036b9c
%endif
036b9c
036b9c
# Extra build for debugging the interpreter or C-API extensions
036b9c
# (the -debug subpackages)
036b9c
%if %{with flatpackage}
036b9c
%bcond_with debug_build
036b9c
%else
036b9c
%bcond_without debug_build
036b9c
%endif
036b9c
036b9c
# Support for the GDB debugger
036b9c
%bcond_without gdb_hooks
036b9c
036b9c
# The dbm.gnu module (key-value database)
036b9c
%bcond_without gdbm
036b9c
036b9c
# Main interpreter loop optimization
036b9c
%bcond_without computed_gotos
036b9c
036b9c
# Support for the Valgrind debugger/profiler
036b9c
%ifarch %{valgrind_arches}
036b9c
%bcond_without valgrind
036b9c
%else
036b9c
%bcond_with valgrind
036b9c
%endif
036b9c
036b9c
036b9c
# ===========================================
036b9c
# Notes from bootstraping Python 3.6 in RHEL7
036b9c
# ===========================================
036b9c
#
036b9c
# This is a bootstrapping sequence tailored to python3 in RHEL7.
036b9c
# Build in the following order:
036b9c
#
036b9c
# 1. python-rpm-macros & python-rpm-generators
036b9c
#    (and update redhat-rpm-config to require python-srpm-macros if not done
036b9c
#    already)
036b9c
# 2. python3, without rewheel (use %%bcond_with rewheel instead of
036b9c
#     %%bcond_without)
036b9c
# 3. python-setuptools, with bootstrap
036b9c
# 4. python-pip, with bootstrap
036b9c
# 5. python-wheel
036b9c
# 6. python-setuptools, without bootstrap
036b9c
# 7. python-pip, without bootstrap
036b9c
# 8. python3, with rewheel
036b9c
#
036b9c
# If there are more packages added in the future, rebuild those after step 8.
036b9c
036b9c
036b9c
# =====================
036b9c
# General global macros
036b9c
# =====================
036b9c
036b9c
%global pylibdir %{_libdir}/python%{pybasever}
036b9c
%global dynload_dir %{pylibdir}/lib-dynload
036b9c
036b9c
# Missing macro in RHEL7:
036b9c
%global _metainfodir %{_datadir}/metainfo
036b9c
036b9c
# ABIFLAGS, LDVERSION and SOABI are in the upstream configure.ac
036b9c
# See PEP 3149 for some background: http://www.python.org/dev/peps/pep-3149/
036b9c
%global ABIFLAGS_optimized m
036b9c
%global ABIFLAGS_debug     dm
036b9c
036b9c
%global LDVERSION_optimized %{pybasever}%{ABIFLAGS_optimized}
036b9c
%global LDVERSION_debug     %{pybasever}%{ABIFLAGS_debug}
036b9c
036b9c
%global SOABI_optimized cpython-%{pyshortver}%{ABIFLAGS_optimized}-%{_arch}-linux%{_gnu}
036b9c
%global SOABI_debug     cpython-%{pyshortver}%{ABIFLAGS_debug}-%{_arch}-linux%{_gnu}
036b9c
036b9c
# All bytecode files are in a __pycache__ subdirectory, with a name
036b9c
# reflecting the version of the bytecode.
036b9c
# See PEP 3147: http://www.python.org/dev/peps/pep-3147/
036b9c
# For example,
036b9c
#   foo/bar.py
036b9c
# has bytecode at:
036b9c
#   foo/__pycache__/bar.cpython-%%{pyshortver}.pyc
036b9c
#   foo/__pycache__/bar.cpython-%%{pyshortver}.opt-1.pyc
036b9c
#   foo/__pycache__/bar.cpython-%%{pyshortver}.opt-2.pyc
036b9c
%global bytecode_suffixes .cpython-%{pyshortver}*.pyc
036b9c
036b9c
# Python's configure script defines SOVERSION, and this is used in the Makefile
036b9c
# to determine INSTSONAME, the name of the libpython DSO:
036b9c
#   LDLIBRARY='libpython$(VERSION).so'
036b9c
#   INSTSONAME="$LDLIBRARY".$SOVERSION
036b9c
# We mirror this here in order to make it easier to add the -gdb.py hooks.
036b9c
# (if these get out of sync, the payload of the libs subpackage will fail
036b9c
# and halt the build)
036b9c
%global py_SOVERSION 1.0
036b9c
%global py_INSTSONAME_optimized libpython%{LDVERSION_optimized}.so.%{py_SOVERSION}
036b9c
%global py_INSTSONAME_debug     libpython%{LDVERSION_debug}.so.%{py_SOVERSION}
036b9c
036b9c
# Disable automatic bytecompilation. The python3 binary is not yet be
036b9c
# available in /usr/bin when Python is built. Also, the bytecompilation fails
036b9c
# on files that test invalid syntax.
036b9c
# %%undefine py_auto_byte_compile - NOT USED in RHEL7
036b9c
#
036b9c
# RHEL7: Completely disabling bytecompiletion is not supported on RHEL7 and
036b9c
# it's too late/risky to backport it. Therefore we instead force
036b9c
# bytecompilation with Python 3 and stop bytecompilation errors from
036b9c
# terminating the build (due to "bad code" files for testing syntax, and also
036b9c
# during bootstrapping when /usr/bin/python3 is not yet present).
036b9c
%global _python_bytecompile_errors_terminate_build 0
036b9c
036b9c
# Define __python as /usr/bin/python3 so that the brp-python-bytecompile script
036b9c
# is invoked with it and automatic bytecompilation in __os_install_post is done
036b9c
# with python3 rather than python2
036b9c
%global __python %{_bindir}/python3
036b9c
036b9c
# For multilib support, files that are different between 32- and 64-bit arches
036b9c
# need different filenames. Use "64" or "32" according to the word size.
036b9c
# Currently, the best way to determine an architecture's word size happens to
036b9c
# be checking %%{_lib}.
036b9c
%if "%{_lib}" == "lib64"
036b9c
%global wordsize 64
036b9c
%else
036b9c
%global wordsize 32
036b9c
%endif
036b9c
036b9c
036b9c
# =======================
036b9c
# Build-time requirements
036b9c
# =======================
036b9c
036b9c
# (keep this list alphabetized)
036b9c
036b9c
BuildRequires: autoconf
036b9c
BuildRequires: bluez-libs-devel
036b9c
BuildRequires: bzip2
036b9c
BuildRequires: bzip2-devel
036b9c
BuildRequires: desktop-file-utils
036b9c
BuildRequires: expat-devel
036b9c
036b9c
BuildRequires: findutils
036b9c
BuildRequires: gcc-c++
036b9c
%if %{with gdbm}
036b9c
# RHEL7:
036b9c
# Removed version limit (gdbm-devel >= 1:1.13), because RHEL7 has only version 1.10
036b9c
BuildRequires: gdbm-devel
036b9c
%endif
036b9c
BuildRequires: glibc-devel
036b9c
BuildRequires: gmp-devel
036b9c
BuildRequires: libappstream-glib
036b9c
BuildRequires: libffi-devel
036b9c
# RHEL7:
036b9c
# Removed `BuildRequires: libnsl2-devel` because it's part of glibc-devel on RHEL7
036b9c
BuildRequires: libtirpc-devel
036b9c
BuildRequires: libGL-devel
036b9c
BuildRequires: libX11-devel
036b9c
BuildRequires: ncurses-devel
036b9c
036b9c
BuildRequires: pkgconfig
036b9c
BuildRequires: readline-devel
036b9c
BuildRequires: sqlite-devel
036b9c
BuildRequires: gdb
c6781f
036b9c
BuildRequires: openssl-devel
036b9c
036b9c
BuildRequires: tar
036b9c
BuildRequires: tcl-devel
036b9c
BuildRequires: tix-devel
036b9c
BuildRequires: tk-devel
036b9c
036b9c
%if %{with valgrind}
036b9c
BuildRequires: valgrind-devel
036b9c
%endif
036b9c
036b9c
BuildRequires: xz-devel
036b9c
BuildRequires: zlib-devel
036b9c
036b9c
BuildRequires: /usr/bin/dtrace
036b9c
036b9c
# workaround http://bugs.python.org/issue19804 (test_uuid requires ifconfig)
036b9c
# We need {,/usr}/sbin/ifconfig
036b9c
BuildRequires: net-tools
036b9c
036b9c
%if %{with rewheel}
036b9c
BuildRequires: python3-setuptools
036b9c
BuildRequires: python3-pip
036b9c
%endif
036b9c
036b9c
036b9c
# =======================
036b9c
# Source code and patches
036b9c
# =======================
036b9c
036b9c
Source: https://www.python.org/ftp/python/%{version}/Python-%{version}%{?prerel}.tar.xz
036b9c
036b9c
# A simple script to check timestamps of bytecode files
036b9c
# Run in check section with Python that is currently being built
036b9c
# Written by bkabrda
036b9c
Source8: check-pyc-and-pyo-timestamps.py
036b9c
036b9c
# Desktop menu entry for idle3
036b9c
Source10: idle3.desktop
036b9c
036b9c
# AppData file for idle3
036b9c
Source11: idle3.appdata.xml
036b9c
036b9c
# 00001 #
036b9c
# Fixup distutils/unixccompiler.py to remove standard library path from rpath:
036b9c
# Was Patch0 in ivazquez' python3000 specfile:
036b9c
Patch1:         00001-rpath.patch
036b9c
036b9c
# 00102 #
036b9c
# Change the various install paths to use /usr/lib64/ instead or /usr/lib
036b9c
# Only used when "%%{_lib}" == "lib64"
036b9c
# Not yet sent upstream.
036b9c
Patch102: 00102-lib64.patch
036b9c
036b9c
# 00111 #
036b9c
# Patch the Makefile.pre.in so that the generated Makefile doesn't try to build
036b9c
# a libpythonMAJOR.MINOR.a
036b9c
# See https://bugzilla.redhat.com/show_bug.cgi?id=556092
036b9c
# Downstream only: not appropriate for upstream
036b9c
Patch111: 00111-no-static-lib.patch
036b9c
036b9c
# 00132 #
036b9c
# Add non-standard hooks to unittest for use in the "check" phase below, when
036b9c
# running selftests within the build:
036b9c
#   @unittest._skipInRpmBuild(reason)
036b9c
# for tests that hang or fail intermittently within the build environment, and:
036b9c
#   @unittest._expectedFailureInRpmBuild
036b9c
# for tests that always fail within the build environment
036b9c
#
036b9c
# The hooks only take effect if WITHIN_PYTHON_RPM_BUILD is set in the
036b9c
# environment, which we set manually in the appropriate portion of the "check"
036b9c
# phase below (and which potentially other python-* rpms could set, to reuse
036b9c
# these unittest hooks in their own "check" phases)
036b9c
Patch132: 00132-add-rpmbuild-hooks-to-unittest.patch
036b9c
036b9c
# 00155 #
036b9c
# Avoid allocating thunks in ctypes unless absolutely necessary, to avoid
036b9c
# generating SELinux denials on "import ctypes" and "import uuid" when
036b9c
# embedding Python within httpd
036b9c
# See https://bugzilla.redhat.com/show_bug.cgi?id=814391
036b9c
Patch155: 00155-avoid-ctypes-thunks.patch
036b9c
036b9c
# 00160 #
036b9c
# Python 3.3 added os.SEEK_DATA and os.SEEK_HOLE, which may be present in the
036b9c
# header files in the build chroot, but may not be supported in the running
036b9c
# kernel, hence we disable this test in an rpm build.
036b9c
# Adding these was upstream issue http://bugs.python.org/issue10142
036b9c
# Not yet sent upstream
036b9c
Patch160: 00160-disable-test_fs_holes-in-rpm-build.patch
036b9c
036b9c
# 00163 #
036b9c
# Some tests within test_socket fail intermittently when run inside Koji;
036b9c
# disable them using unittest._skipInRpmBuild
036b9c
# Not yet sent upstream
036b9c
Patch163: 00163-disable-parts-of-test_socket-in-rpm-build.patch
036b9c
036b9c
# 00170 #
036b9c
# In debug builds, try to print repr() when a C-level assert fails in the
036b9c
# garbage collector (typically indicating a reference-counting error
036b9c
# somewhere else e.g in an extension module)
036b9c
# The new macros/functions within gcmodule.c are hidden to avoid exposing
036b9c
# them within the extension API.
036b9c
# Sent upstream: http://bugs.python.org/issue9263
036b9c
# See https://bugzilla.redhat.com/show_bug.cgi?id=614680
036b9c
Patch170: 00170-gc-assertions.patch
036b9c
036b9c
# 00178 #
036b9c
# Don't duplicate various FLAGS in sysconfig values
036b9c
# http://bugs.python.org/issue17679
036b9c
# Does not affect python2 AFAICS (different sysconfig values initialization)
036b9c
Patch178: 00178-dont-duplicate-flags-in-sysconfig.patch
036b9c
036b9c
# 00189 #
036b9c
# Add the rewheel module, allowing to recreate wheels from already installed
036b9c
# ones
036b9c
# https://github.com/bkabrda/rewheel
036b9c
Patch189: 00189-add-rewheel-module.patch
036b9c
036b9c
# 00205 #
036b9c
# LIBPL variable in makefile takes LIBPL from configure.ac
036b9c
# but the LIBPL variable defined there doesn't respect libdir macro
036b9c
Patch205: 00205-make-libpl-respect-lib64.patch
036b9c
036b9c
# 00251
036b9c
# Set values of prefix and exec_prefix in distutils install command
036b9c
# to /usr/local if executable is /usr/bin/python* and RPM build
036b9c
# is not detected to make pip and distutils install into separate location
036b9c
# Fedora Change: https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe
036b9c
Patch251: 00251-change-user-install-location.patch
036b9c
036b9c
# 00262 #
036b9c
# Backport of PEP 538: Coercing the legacy C locale to a UTF-8 based locale
036b9c
# https://www.python.org/dev/peps/pep-0538/
036b9c
# Fedora Change: https://fedoraproject.org/wiki/Changes/python3_c.utf-8_locale
036b9c
# Original proposal: https://bugzilla.redhat.com/show_bug.cgi?id=1404918
036b9c
Patch262: 00262-pep538_coerce_legacy_c_locale.patch
036b9c
036b9c
# 00274 #
036b9c
# Upstream uses Debian-style architecture naming. Change to match Fedora.
036b9c
Patch274: 00274-fix-arch-names.patch
036b9c
036b9c
# 00292 #
036b9c
# Restore the public PyExc_RecursionErrorInst symbol that was removed
036b9c
# from the 3.6.4 release upstream.
036b9c
# Reported upstream: https://bugs.python.org/issue30697
036b9c
Patch292: 00292-restore-PyExc_RecursionErrorInst-symbol.patch
036b9c
036b9c
# 00294 #
036b9c
# Define TLS cipher suite on build time depending
036b9c
# on the OpenSSL default cipher suite selection.
036b9c
# Fixed upstream on CPython's 3.7 branch:
036b9c
# https://bugs.python.org/issue31429
036b9c
# See also: https://bugzilla.redhat.com/show_bug.cgi?id=1489816
036b9c
Patch294: 00294-define-TLS-cipher-suite-on-build-time.patch
036b9c
036b9c
# 00316 #
036b9c
# We remove the exe files from distutil's bdist_wininst
036b9c
# So we mark the command as unsupported - and the tests are skipped
036b9c
Patch316: 00316-mark-bdist_wininst-unsupported.patch
036b9c
036b9c
# 00317 #
036b9c
# Security fix for CVE-2019-5010: Fix segfault in ssl's cert parser
036b9c
# Fixed upstream https://bugs.python.org/issue35746
036b9c
Patch317: 00317-CVE-2019-5010.patch
036b9c
036b9c
# 00320 #
036b9c
# Security fix for CVE-2019-9636 and CVE-2019-10160: Information Disclosure due to urlsplit improper NFKC normalization
036b9c
# Fixed upstream: https://bugs.python.org/issue36216 and https://bugs.python.org/issue36742
036b9c
# Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1696755
036b9c
# and https://bugzilla.redhat.com/show_bug.cgi?id=1718403
036b9c
Patch320: 00320-CVE-2019-9636-and-CVE-2019-10160.patch
036b9c
036b9c
# 00324 #
036b9c
# Disallow control chars in http URLs
036b9c
# Security fix for CVE-2019-9740 and CVE-2019-9947
036b9c
# Fixed upstream: https://bugs.python.org/issue30458
036b9c
# Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1703535
036b9c
# and https://bugzilla.redhat.com/show_bug.cgi?id=1704364
036b9c
Patch324: 00324-disallow-control-chars-in-http-urls.patch
036b9c
036b9c
# 00325 #
036b9c
# Unnecessary URL scheme exists to allow local_file:// reading file  in urllib
036b9c
# Security fix for CVE-2019-9948
036b9c
# Fixed upstream: https://bugs.python.org/issue35907
036b9c
# Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1714642
036b9c
Patch325: 00325-CVE-2019-9948.patch
036b9c
036b9c
# (New patches go here ^^^)
036b9c
#
036b9c
# When adding new patches to "python" and "python3" in Fedora, EL, etc.,
036b9c
# please try to keep the patch numbers in-sync between all specfiles.
036b9c
#
036b9c
# More information, and a patch number catalog, is at:
036b9c
#
036b9c
#     https://fedoraproject.org/wiki/SIGs/Python/PythonPatches
036b9c
036b9c
036b9c
# ==========================================
036b9c
# Descriptions, and metadata for subpackages
036b9c
# ==========================================
036b9c
036b9c
%if %{without flatpackage}
036b9c
036b9c
# Packages with Python modules in standard locations automatically
036b9c
# depend on python(abi). Provide that here.
036b9c
Provides: python(abi) = %{pybasever}
036b9c
036b9c
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
036b9c
036b9c
# We're replacing the functionality of the python36 package from EPEL
036b9c
Provides: python%{pyshortver} = %{version}-%{release}
036b9c
Provides: python%{pyshortver}%{?_isa} = %{version}-%{release}
036b9c
Obsoletes: python%{pyshortver} < %{version}-%{release}
036b9c
036b9c
%if %{with rewheel}
036b9c
Requires: python3-setuptools
036b9c
Requires: python3-pip
036b9c
%endif
036b9c
036b9c
# /usr/bin/python3 was moved from here:
036b9c
Obsoletes: python34 < 3.4.9-3
036b9c
036b9c
# This prevents ALL subpackages built from this spec to require
036b9c
# /usr/bin/python3*. Granularity per subpackage is impossible.
036b9c
# It's intended for the libs package not to drag in the interpreter, see
036b9c
# https://bugzilla.redhat.com/show_bug.cgi?id=1547131
036b9c
# All others require %%{name} anyway.
036b9c
%global __requires_exclude ^/usr/bin/python3
036b9c
036b9c
036b9c
# The description used both for the SRPM and the main `python3` subpackage:
036b9c
%description
036b9c
Python is an accessible, high-level, dynamically typed, interpreted programming
036b9c
language, designed with an emphasis on code readability.
036b9c
It includes an extensive standard library, and has a vast ecosystem of
036b9c
third-party libraries.
036b9c
036b9c
The %{name} package provides the "python3" executable: the reference
036b9c
interpreter for the Python language, version 3.
036b9c
The majority of its standard library is provided in the %{name}-libs package,
036b9c
which should be installed automatically along with %{name}.
036b9c
The remaining parts of the Python standard library are broken out into the
036b9c
%{name}-tkinter and %{name}-test packages, which may need to be installed
036b9c
separately.
036b9c
036b9c
Documentation for Python is provided in the %{name}-docs package.
036b9c
036b9c
Packages containing additional libraries for Python are generally named with
036b9c
the "%{name}-" prefix.
036b9c
036b9c
036b9c
%package libs
036b9c
Summary:        Python runtime libraries
036b9c
036b9c
# We're obsoleting the EPEL python36 package and its subpackages
036b9c
Provides: python%{pyshortver}-libs = %{version}-%{release}
036b9c
Provides: python%{pyshortver}-libs%{?_isa} = %{version}-%{release}
036b9c
Obsoletes: python%{pyshortver}-libs < %{version}-%{release}
036b9c
036b9c
# libpython3.so was moved from here:
036b9c
Obsoletes: python34-libs < 3.4.9-3
036b9c
036b9c
# There are files in the standard library that have python shebang.
036b9c
# We've filtered the automatic requirement out so libs are installable without
036b9c
# the main package. This however makes it pulled in by default.
036b9c
# See https://bugzilla.redhat.com/show_bug.cgi?id=1547131
036b9c
# RHEL7: Recommends tag doesn't work on RHEL7, so the tag is left out
036b9c
# Recommends: %%{name}%%{?_isa} = %%{version}-%%{release}
036b9c
036b9c
%description libs
036b9c
This package contains runtime libraries for use by Python:
036b9c
- the majority of the Python standard library
036b9c
- a dynamically linked library for use by applications that embed Python as
036b9c
  a scripting language, and by the main "python3" executable
036b9c
036b9c
036b9c
%package devel
036b9c
Summary: Libraries and header files needed for Python development
036b9c
Requires: %{name} = %{version}-%{release}
036b9c
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
036b9c
BuildRequires: python-rpm-macros
036b9c
Requires: python-rpm-macros
036b9c
Requires: python3-rpm-macros
036b9c
036b9c
# Don't require python3-rpm-generators during bootstrapping, because they need
036b9c
# python3-setuptools to function
036b9c
%if %{with rewheel}
036b9c
Requires: python3-rpm-generators
036b9c
%endif
036b9c
036b9c
# https://bugzilla.redhat.com/show_bug.cgi?id=1217376
036b9c
# https://bugzilla.redhat.com/show_bug.cgi?id=1496757
036b9c
# https://bugzilla.redhat.com/show_bug.cgi?id=1218294
036b9c
# TODO change to a specific subpackage once available (#1218294)
036b9c
Requires: redhat-rpm-config
036b9c
036b9c
# We're obsoleting the EPEL python36 package and its subpackages
036b9c
Provides: python%{pyshortver}-devel = %{version}-%{release}
036b9c
Provides: python%{pyshortver}-devel%{?_isa} = %{version}-%{release}
036b9c
Obsoletes: python%{pyshortver}-devel < %{version}-%{release}
036b9c
036b9c
Provides: %{name}-2to3 = %{version}-%{release}
036b9c
Provides: 2to3 = %{version}-%{release}
036b9c
036b9c
Conflicts: %{name} < %{version}-%{release}
036b9c
036b9c
# /usr/bin/2to3-3 was moved from here:
036b9c
Obsoletes: python34-tools < 3.4.9-3
036b9c
# /usr/bin/python3-config was moved from here:
036b9c
Obsoletes: python34-devel < 3.4.9-3
036b9c
036b9c
%description devel
036b9c
This package contains the header files and configuration needed to compile
036b9c
Python extension modules (typically written in C or C++), to embed Python
036b9c
into other programs, and to make binary distributions for Python libraries.
036b9c
036b9c
It also contains the necessary macros to build RPM packages with Python modules
036b9c
and 2to3 tool, an automatic source converter from Python 2.X.
036b9c
036b9c
036b9c
%package idle
036b9c
Summary: A basic graphical development environment for Python
036b9c
Requires: %{name} = %{version}-%{release}
036b9c
Requires: %{name}-tkinter = %{version}-%{release}
036b9c
036b9c
Provides: idle3 = %{version}-%{release}
036b9c
036b9c
Provides: %{name}-tools = %{version}-%{release}
036b9c
Provides: %{name}-tools%{?_isa} = %{version}-%{release}
036b9c
Obsoletes: %{name}-tools < %{version}-%{release}
036b9c
036b9c
# We're obsoleting the EPEL python36 package and its subpackages
036b9c
Provides: python%{pyshortver}-idle = %{version}-%{release}
036b9c
Provides: python%{pyshortver}-idle%{?_isa} = %{version}-%{release}
036b9c
Obsoletes: python%{pyshortver}-idle < %{version}-%{release}
036b9c
036b9c
# /usr/bin/idle3 was moved from here:
036b9c
Obsoletes: python34-tools < 3.4.9-3
036b9c
036b9c
%description idle
036b9c
IDLE is Python’s Integrated Development and Learning Environment.
036b9c
036b9c
IDLE has the following features: Python shell window (interactive
036b9c
interpreter) with colorizing of code input, output, and error messages;
036b9c
multi-window text editor with multiple undo, Python colorizing,
036b9c
smart indent, call tips, auto completion, and other features;
036b9c
search within any window, replace within editor windows, and
036b9c
search through multiple files (grep); debugger with persistent
036b9c
breakpoints, stepping, and viewing of global and local namespaces;
036b9c
configuration, browsers, and other dialogs.
036b9c
036b9c
036b9c
%package tkinter
036b9c
Summary: A GUI toolkit for Python
036b9c
Requires: %{name} = %{version}-%{release}
036b9c
036b9c
# We're obsoleting the EPEL python36 package and its subpackages
036b9c
Provides: python%{pyshortver}-tkinter = %{version}-%{release}
036b9c
Provides: python%{pyshortver}-tkinter%{?_isa} = %{version}-%{release}
036b9c
Obsoletes: python%{pyshortver}-tkinter < %{version}-%{release}
036b9c
036b9c
%description tkinter
036b9c
The Tkinter (Tk interface) library is a graphical user interface toolkit for
036b9c
the Python programming language.
036b9c
036b9c
036b9c
%package test
036b9c
Summary: The self-test suite for the main python3 package
036b9c
Requires: %{name} = %{version}-%{release}
036b9c
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
036b9c
036b9c
# We're obsoleting the EPEL python36 package and its subpackages
036b9c
Provides: python%{pyshortver}-test = %{version}-%{release}
036b9c
Provides: python%{pyshortver}-test%{?_isa} = %{version}-%{release}
036b9c
Obsoletes: python%{pyshortver}-test < %{version}-%{release}
036b9c
036b9c
%description test
036b9c
The self-test suite for the Python interpreter.
036b9c
036b9c
This is only useful to test Python itself. For testing general Python code,
036b9c
you should use the unittest module from %{name}-libs, or a library such as
036b9c
%{name}-pytest or %{name}-nose.
036b9c
036b9c
036b9c
%if %{with debug_build}
036b9c
%package debug
036b9c
Summary: Debug version of the Python runtime
036b9c
036b9c
# The debug build is an all-in-one package version of the regular build, and
036b9c
# shares the same .py/.pyc files and directories as the regular build. Hence
036b9c
# we depend on all of the subpackages of the regular build:
036b9c
Requires: %{name}%{?_isa} = %{version}-%{release}
036b9c
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
036b9c
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
036b9c
Requires: %{name}-test%{?_isa} = %{version}-%{release}
036b9c
Requires: %{name}-tkinter%{?_isa} = %{version}-%{release}
036b9c
Requires: %{name}-idle%{?_isa} = %{version}-%{release}
036b9c
036b9c
# We're obsoleting the EPEL python36 package and its subpackages
036b9c
Provides: python%{pyshortver}-debug = %{version}-%{release}
036b9c
Provides: python%{pyshortver}-debug%{?_isa} = %{version}-%{release}
036b9c
Obsoletes: python%{pyshortver}-debug < %{version}-%{release}
036b9c
036b9c
# /usr/bin/python3-debug was moved from here:
036b9c
Obsoletes: python34-debug < 3.4.9-3
036b9c
036b9c
%description debug
036b9c
python3-debug provides a version of the Python runtime with numerous debugging
036b9c
features enabled, aimed at advanced Python users such as developers of Python
036b9c
extension modules.
036b9c
036b9c
This version uses more memory and will be slower than the regular Python build,
036b9c
but is useful for tracking down reference-counting issues and other bugs.
036b9c
036b9c
The bytecode format is unchanged, so that .pyc files are compatible between
036b9c
this and the standard version of Python, but the debugging features mean that
036b9c
C/C++ extension modules are ABI-incompatible and must be built for each version
036b9c
separately.
036b9c
036b9c
The debug build shares installation directories with the standard Python
036b9c
runtime, so that .py and .pyc files can be shared.
036b9c
Compiled extension modules use a special ABI flag ("d") in the filename,
036b9c
so extensions for both versions can co-exist in the same directory.
036b9c
%endif # with debug_build
036b9c
036b9c
%else  # with flatpackage
036b9c
036b9c
Requires: redhat-rpm-config
036b9c
036b9c
# We'll not provide this, on purpose
036b9c
# No package in Fedora shall ever depend on flatpackage via this
036b9c
%global __requires_exclude ^python\\(abi\\) = 3\\..$
036b9c
%global __provides_exclude ^python\\(abi\\) = 3\\..$
036b9c
036b9c
# We keep those inside on purpose
036b9c
Provides: bundled(python3-pip) = 18.1
036b9c
Provides: bundled(python3-setuptools) = 40.6.2
036b9c
036b9c
# The description for the flat package
036b9c
%description
036b9c
Python %{pybasever} package for developers.
036b9c
036b9c
This package exists to allow developers to test their code against an older
036b9c
version of Python. This is not a full Python stack and if you wish to run
036b9c
your applications with Python %{pybasever}, see other distributions
036b9c
that support it, such as CentOS or RHEL with Software Collections
036b9c
or older Fedora releases.
036b9c
036b9c
%endif # with flatpackage
036b9c
036b9c
# ======================================================
036b9c
# The prep phase of the build:
036b9c
# ======================================================
036b9c
036b9c
%prep
036b9c
%setup -q -n Python-%{version}%{?prerel}
036b9c
# Remove all exe files to ensure we are not shipping prebuilt binaries
036b9c
# note that those are only used to create Microsoft Windows installers
036b9c
# and that functionality is broken on Linux anyway
036b9c
find -name '*.exe' -print -delete
036b9c
036b9c
# Remove bundled libraries to ensure that we're using the system copy.
036b9c
rm -r Modules/expat
036b9c
rm -r Modules/zlib
036b9c
036b9c
%if %{with rewheel}
036b9c
%global pip_version %(pip3 --version | cut -d' ' -f2)
036b9c
sed -r -i s/'_PIP_VERSION = "[0-9.]+"'/'_PIP_VERSION = "%{pip_version}"'/ Lib/ensurepip/__init__.py
036b9c
%endif
036b9c
036b9c
#
036b9c
# Apply patches:
036b9c
#
036b9c
%patch1 -p1
036b9c
036b9c
%if "%{_lib}" == "lib64"
036b9c
%patch102 -p1
036b9c
%endif
036b9c
%patch111 -p1
036b9c
%patch132 -p1
036b9c
%patch155 -p1
036b9c
%patch160 -p1
036b9c
%patch163 -p1
036b9c
%patch170 -p1
036b9c
%patch178 -p1
036b9c
036b9c
%if %{with rewheel}
036b9c
%patch189 -p1
036b9c
%endif
036b9c
036b9c
%patch205 -p1
036b9c
%patch251 -p1
036b9c
%patch262 -p1
036b9c
%patch274 -p1
036b9c
%patch292 -p1
036b9c
%patch294 -p1
036b9c
%patch317 -p1
036b9c
%patch316 -p1
036b9c
%patch320 -p1
036b9c
%patch324 -p1
036b9c
%patch325 -p1
036b9c
036b9c
036b9c
# Remove files that should be generated by the build
036b9c
# (This is after patching, so that we can use patches directly from upstream)
036b9c
rm configure pyconfig.h.in
036b9c
036b9c
036b9c
# ======================================================
036b9c
# Configuring and building the code:
036b9c
# ======================================================
036b9c
036b9c
%build
036b9c
036b9c
# Regenerate the configure script and pyconfig.h.in
036b9c
autoconf
036b9c
autoheader
036b9c
036b9c
# Remember the current directory (which has sources and the configure script),
036b9c
# so we can refer to it after we "cd" elsewhere.
036b9c
topdir=$(pwd)
036b9c
036b9c
# Get proper option names from bconds
036b9c
%if %{with computed_gotos}
036b9c
%global computed_gotos_flag yes
036b9c
%else
036b9c
%global computed_gotos_flag no
036b9c
%endif
036b9c
036b9c
%if %{with optimizations}
036b9c
%global optimizations_flag "--enable-optimizations"
036b9c
%else
036b9c
%global optimizations_flag "--disable-optimizations"
036b9c
%endif
036b9c
036b9c
# Set common compiler/linker flags
036b9c
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC -fwrapv"
036b9c
export CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC -fwrapv"
036b9c
export CPPFLAGS="$(pkg-config --cflags-only-I libffi)"
036b9c
export OPT="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC -fwrapv"
036b9c
export LINKCC="gcc"
036b9c
export CFLAGS="$CFLAGS $(pkg-config --cflags openssl)"
036b9c
export LDFLAGS="$RPM_LD_FLAGS -g $(pkg-config --libs-only-L openssl)"
036b9c
036b9c
# We can build several different configurations of Python: regular and debug.
036b9c
# Define a common function that does one build:
036b9c
BuildPython() {
036b9c
  ConfName=$1
036b9c
  ExtraConfigArgs=$2
036b9c
  MoreCFlags=$3
036b9c
036b9c
  # Each build is done in its own directory
036b9c
  ConfDir=build/$ConfName
036b9c
  echo STARTING: BUILD OF PYTHON FOR CONFIGURATION: $ConfName
036b9c
  mkdir -p $ConfDir
036b9c
  pushd $ConfDir
036b9c
036b9c
  # Normally, %%configure looks for the "configure" script in the current
036b9c
  # directory.
036b9c
  # Since we changed directories, we need to tell %%configure where to look.
036b9c
  %global _configure $topdir/configure
036b9c
036b9c
%configure \
036b9c
  --enable-ipv6 \
036b9c
  --enable-shared \
036b9c
  --with-computed-gotos=%{computed_gotos_flag} \
036b9c
  --with-dbmliborder=gdbm:ndbm:bdb \
036b9c
  --with-system-expat \
036b9c
  --with-system-ffi \
036b9c
  --enable-loadable-sqlite-extensions \
036b9c
  --with-dtrace \
036b9c
  --with-ssl-default-suites=openssl \
036b9c
%if %{with valgrind}
036b9c
  --with-valgrind \
036b9c
%endif
036b9c
  $ExtraConfigArgs \
036b9c
  %{nil}
036b9c
036b9c
  # RHEL7:
036b9c
  # - LTO does not work in RHEL7, and because it's only a nice-to-have feature, it was disabled.
036b9c
  # - Most likely cause is due to buggy support for LTO in the RHEL7 version of gcc.
036b9c
  # - Error message encountered: `/usr/bin/ld: error: lto-wrapper failed`
036b9c
  # --with-lto \
036b9c
036b9c
  # Invoke the build
036b9c
  make EXTRA_CFLAGS="$CFLAGS $MoreCFlags" %{?_smp_mflags}
036b9c
036b9c
  popd
036b9c
  echo FINISHED: BUILD OF PYTHON FOR CONFIGURATION: $ConfName
036b9c
}
036b9c
036b9c
# Call the above to build each configuration.
036b9c
036b9c
%if %{with debug_build}
036b9c
BuildPython debug \
036b9c
  "--without-ensurepip --with-pydebug" \
036b9c
  "-O0"
036b9c
%endif # with debug_build
036b9c
036b9c
BuildPython optimized \
036b9c
  "--without-ensurepip %{optimizations_flag}" \
036b9c
  ""
036b9c
036b9c
# ======================================================
036b9c
# Installing the built code:
036b9c
# ======================================================
036b9c
036b9c
%install
036b9c
036b9c
# As in %%build, remember the current directory
036b9c
topdir=$(pwd)
036b9c
036b9c
# We install a collection of hooks for gdb that make it easier to debug
036b9c
# executables linked against libpython3* (such as /usr/bin/python3 itself)
036b9c
#
036b9c
# These hooks are implemented in Python itself (though they are for the version
036b9c
# of python that gdb is linked with)
036b9c
#
036b9c
# gdb-archer looks for them in the same path as the ELF file or its .debug
036b9c
# file, with a -gdb.py suffix.
036b9c
# We put them next to the debug file, because ldconfig would complain if
036b9c
# it found non-library files directly in /usr/lib/
036b9c
# (see https://bugzilla.redhat.com/show_bug.cgi?id=562980)
036b9c
#
036b9c
# We'll put these files in the debuginfo package by installing them to e.g.:
036b9c
#  /usr/lib/debug/usr/lib/libpython3.2.so.1.0.debug-gdb.py
036b9c
# (note that the debug path is /usr/lib/debug for both 32/64 bit)
036b9c
#
036b9c
# See https://fedoraproject.org/wiki/Features/EasierPythonDebugging for more
036b9c
# information
036b9c
036b9c
%if %{with gdb_hooks}
036b9c
DirHoldingGdbPy=%{_prefix}/lib/debug/%{_libdir}
036b9c
mkdir -p %{buildroot}$DirHoldingGdbPy
036b9c
%endif # with gdb_hooks
036b9c
036b9c
# Multilib support for pyconfig.h
036b9c
# 32- and 64-bit versions of pyconfig.h are different. For multilib support
036b9c
# (making it possible to install 32- and 64-bit versions simultaneously),
036b9c
# we need to install them under different filenames, and to make the common
036b9c
# "pyconfig.h" include the right file based on architecture.
036b9c
# See https://bugzilla.redhat.com/show_bug.cgi?id=192747
036b9c
# Filanames are defined here:
036b9c
%global _pyconfig32_h pyconfig-32.h
036b9c
%global _pyconfig64_h pyconfig-64.h
036b9c
%global _pyconfig_h pyconfig-%{wordsize}.h
036b9c
036b9c
# Use a common function to do an install for all our configurations:
036b9c
InstallPython() {
036b9c
036b9c
  ConfName=$1
036b9c
  PyInstSoName=$2
036b9c
  MoreCFlags=$3
036b9c
  LDVersion=$4
036b9c
036b9c
  # Switch to the directory with this configuration's built files
036b9c
  ConfDir=build/$ConfName
036b9c
  echo STARTING: INSTALL OF PYTHON FOR CONFIGURATION: $ConfName
036b9c
  mkdir -p $ConfDir
036b9c
  pushd $ConfDir
036b9c
036b9c
  make \
036b9c
    DESTDIR=%{buildroot} \
036b9c
    INSTALL="install -p" \
036b9c
    EXTRA_CFLAGS="$MoreCFlags" \
036b9c
    install
036b9c
036b9c
  popd
036b9c
036b9c
%if %{with gdb_hooks}
036b9c
  # See comment on $DirHoldingGdbPy above
036b9c
  PathOfGdbPy=$DirHoldingGdbPy/$PyInstSoName-%{version}-%{release}.%{_arch}.debug-gdb.py
036b9c
  cp Tools/gdb/libpython.py %{buildroot}$PathOfGdbPy
036b9c
%endif # with gdb_hooks
036b9c
036b9c
  # Rename the -devel script that differs on different arches to arch specific name
036b9c
  mv %{buildroot}%{_bindir}/python${LDVersion}-{,`uname -m`-}config
036b9c
  echo -e '#!/bin/sh\nexec `dirname $0`/python'${LDVersion}'-`uname -m`-config "$@"' > \
036b9c
    %{buildroot}%{_bindir}/python${LDVersion}-config
036b9c
  echo '[ $? -eq 127 ] && echo "Could not find python'${LDVersion}'-`uname -m`-config. Look around to see available arches." >&2' >> \
036b9c
    %{buildroot}%{_bindir}/python${LDVersion}-config
036b9c
    chmod +x %{buildroot}%{_bindir}/python${LDVersion}-config
036b9c
036b9c
  # Make python3-devel multilib-ready
036b9c
  mv %{buildroot}%{_includedir}/python${LDVersion}/pyconfig.h \
036b9c
     %{buildroot}%{_includedir}/python${LDVersion}/%{_pyconfig_h}
036b9c
  cat > %{buildroot}%{_includedir}/python${LDVersion}/pyconfig.h << EOF
036b9c
#include <bits/wordsize.h>
036b9c
036b9c
#if __WORDSIZE == 32
036b9c
#include "%{_pyconfig32_h}"
036b9c
#elif __WORDSIZE == 64
036b9c
#include "%{_pyconfig64_h}"
036b9c
#else
036b9c
#error "Unknown word size"
036b9c
#endif
036b9c
EOF
036b9c
036b9c
  echo FINISHED: INSTALL OF PYTHON FOR CONFIGURATION: $ConfName
036b9c
}
036b9c
036b9c
# Install the "debug" build first; any common files will be overridden with
036b9c
# later builds
036b9c
%if %{with debug_build}
036b9c
InstallPython debug \
036b9c
  %{py_INSTSONAME_debug} \
036b9c
  -O0 \
036b9c
  %{LDVERSION_debug}
036b9c
%endif # with debug_build
036b9c
036b9c
# Now the optimized build:
036b9c
InstallPython optimized \
036b9c
  %{py_INSTSONAME_optimized} \
036b9c
  "" \
036b9c
  %{LDVERSION_optimized}
036b9c
036b9c
# Install directories for additional packages
036b9c
install -d -m 0755 %{buildroot}%{pylibdir}/site-packages/__pycache__
036b9c
%if "%{_lib}" == "lib64"
036b9c
# The 64-bit version needs to create "site-packages" in /usr/lib/ (for
036b9c
# pure-Python modules) as well as in /usr/lib64/ (for packages with extension
036b9c
# modules).
036b9c
# Note that rpmlint will complain about hardcoded library path;
036b9c
# this is intentional.
036b9c
install -d -m 0755 %{buildroot}%{_prefix}/lib/python%{pybasever}/site-packages/__pycache__
036b9c
%endif
036b9c
036b9c
%if %{without flatpackage}
036b9c
# add idle3 to menu
036b9c
install -D -m 0644 Lib/idlelib/Icons/idle_16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/idle3.png
036b9c
install -D -m 0644 Lib/idlelib/Icons/idle_32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/idle3.png
036b9c
install -D -m 0644 Lib/idlelib/Icons/idle_48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/idle3.png
036b9c
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE10}
036b9c
036b9c
# Install and validate appdata file
036b9c
mkdir -p %{buildroot}%{_metainfodir}
036b9c
cp -a %{SOURCE11} %{buildroot}%{_metainfodir}
036b9c
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/idle3.appdata.xml
036b9c
%endif
036b9c
036b9c
# Make sure distutils looks at the right pyconfig.h file
036b9c
# See https://bugzilla.redhat.com/show_bug.cgi?id=201434
036b9c
# Similar for sysconfig: sysconfig.get_config_h_filename tries to locate
036b9c
# pyconfig.h so it can be parsed, and needs to do this at runtime in site.py
036b9c
# when python starts up (see https://bugzilla.redhat.com/show_bug.cgi?id=653058)
036b9c
#
036b9c
# Split this out so it goes directly to the pyconfig-32.h/pyconfig-64.h
036b9c
# variants:
036b9c
sed -i -e "s/'pyconfig.h'/'%{_pyconfig_h}'/" \
036b9c
  %{buildroot}%{pylibdir}/distutils/sysconfig.py \
036b9c
  %{buildroot}%{pylibdir}/sysconfig.py
036b9c
036b9c
# Install pathfix.py to bindir
036b9c
# See https://github.com/fedora-python/python-rpm-porting/issues/24
036b9c
cp -p Tools/scripts/pathfix.py %{buildroot}%{_bindir}/
036b9c
036b9c
# Switch all shebangs to refer to the specific Python version.
036b9c
# This currently only covers files matching ^[a-zA-Z0-9_]+\.py$,
036b9c
# so handle files named using other naming scheme separately.
036b9c
LD_LIBRARY_PATH=./build/optimized ./build/optimized/python \
036b9c
  Tools/scripts/pathfix.py \
036b9c
  -i "%{_bindir}/python%{pybasever}" -pn \
036b9c
  %{buildroot} \
036b9c
  %{?with_gdb_hooks:%{buildroot}$DirHoldingGdbPy/*.py}
036b9c
036b9c
# Remove tests for python3-tools which was removed in
036b9c
# https://bugzilla.redhat.com/show_bug.cgi?id=1312030
036b9c
rm -rf %{buildroot}%{pylibdir}/test/test_tools
036b9c
036b9c
# Remove shebang lines from .py files that aren't executable, and
036b9c
# remove executability from .py files that don't have a shebang line:
036b9c
find %{buildroot} -name \*.py \
036b9c
  \( \( \! -perm /u+x,g+x,o+x -exec sed -e '/^#!/Q 0' -e 'Q 1' {} \; \
036b9c
  -print -exec sed -i '1d' {} \; \) -o \( \
036b9c
  -perm /u+x,g+x,o+x ! -exec grep -m 1 -q '^#!' {} \; \
036b9c
  -exec chmod a-x {} \; \) \)
036b9c
036b9c
# Get rid of DOS batch files:
036b9c
find %{buildroot} -name \*.bat -exec rm {} \;
036b9c
036b9c
# Get rid of backup files:
036b9c
find %{buildroot}/ -name "*~" -exec rm -f {} \;
036b9c
find . -name "*~" -exec rm -f {} \;
036b9c
036b9c
# Get rid of a stray copy of the license:
036b9c
rm %{buildroot}%{pylibdir}/LICENSE.txt
036b9c
036b9c
# Do bytecompilation with the newly installed interpreter.
036b9c
# This is similar to the script in macros.pybytecompile
036b9c
# compile *.pyc
036b9c
find %{buildroot} -type f -a -name "*.py" -print0 | \
036b9c
    LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
036b9c
    PYTHONPATH="%{buildroot}%{_libdir}/python%{pybasever} %{buildroot}%{_libdir}/python%{pybasever}/site-packages" \
036b9c
    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:]]' || :
036b9c
036b9c
# Since we have pathfix.py in bindir, this is created, but we don't want it
036b9c
rm -rf %{buildroot}%{_bindir}/__pycache__
036b9c
036b9c
# Fixup permissions for shared libraries from non-standard 555 to standard 755:
036b9c
find %{buildroot} -perm 555 -exec chmod 755 {} \;
036b9c
036b9c
# Create "/usr/bin/python3-debug", a symlink to the python3 debug binary, to
036b9c
# avoid the user having to know the precise version and ABI flags.
036b9c
# See e.g. https://bugzilla.redhat.com/show_bug.cgi?id=676748
036b9c
%if %{with debug_build} && %{without flatpackage}
036b9c
ln -s \
036b9c
  %{_bindir}/python%{LDVERSION_debug} \
036b9c
  %{buildroot}%{_bindir}/python3-debug
036b9c
%endif
036b9c
036b9c
%if %{with flatpackage}
036b9c
# Remove stuff that would conflict with python3 package
036b9c
rm %{buildroot}%{_bindir}/python3
036b9c
rm %{buildroot}%{_bindir}/pydoc3
036b9c
rm %{buildroot}%{_bindir}/pathfix.py
036b9c
rm %{buildroot}%{_bindir}/idle3
036b9c
rm %{buildroot}%{_bindir}/python3-*
036b9c
rm %{buildroot}%{_bindir}/pyvenv
036b9c
rm %{buildroot}%{_bindir}/2to3*
036b9c
rm %{buildroot}%{_libdir}/libpython3.so
036b9c
rm %{buildroot}%{_mandir}/man1/python3.1*
036b9c
rm %{buildroot}%{_libdir}/pkgconfig/python3.pc
036b9c
%endif
036b9c
036b9c
# RHEL7: rename 2to3 to 2to3-3 to avoid conflicting with python-devel
036b9c
mv %{buildroot}%{_bindir}/2to3 %{buildroot}%{_bindir}/2to3-3
036b9c
036b9c
# ======================================================
036b9c
# Checks for packaging issues
036b9c
# ======================================================
036b9c
036b9c
%check
036b9c
036b9c
# first of all, check timestamps of bytecode files
036b9c
find %{buildroot} -type f -a -name "*.py" -print0 | \
036b9c
    LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
036b9c
    PYTHONPATH="%{buildroot}%{_libdir}/python%{pybasever} %{buildroot}%{_libdir}/python%{pybasever}/site-packages" \
036b9c
    xargs -0 %{buildroot}%{_bindir}/python%{pybasever} %{SOURCE8}
036b9c
036b9c
# Ensure that the curses module was linked against libncursesw.so, rather than
036b9c
# libncurses.so
036b9c
# See https://bugzilla.redhat.com/show_bug.cgi?id=539917
036b9c
ldd %{buildroot}/%{dynload_dir}/_curses*.so \
036b9c
    | grep curses \
036b9c
    | grep libncurses.so && (echo "_curses.so linked against libncurses.so" ; exit 1)
036b9c
036b9c
# Ensure that the debug modules are linked against the debug libpython, and
036b9c
# likewise for the optimized modules and libpython:
036b9c
for Module in %{buildroot}/%{dynload_dir}/*.so ; do
036b9c
    case $Module in
036b9c
    *.%{SOABI_debug})
036b9c
        ldd $Module | grep %{py_INSTSONAME_optimized} &&
036b9c
            (echo Debug module $Module linked against optimized %{py_INSTSONAME_optimized} ; exit 1)
036b9c
036b9c
        ;;
036b9c
    *.%{SOABI_optimized})
036b9c
        ldd $Module | grep %{py_INSTSONAME_debug} &&
036b9c
            (echo Optimized module $Module linked against debug %{py_INSTSONAME_debug} ; exit 1)
036b9c
        ;;
036b9c
    esac
036b9c
done
036b9c
036b9c
# ======================================================
036b9c
# Running the upstream test suite
036b9c
# ======================================================
036b9c
036b9c
topdir=$(pwd)
036b9c
CheckPython() {
036b9c
  ConfName=$1
036b9c
  ConfDir=$(pwd)/build/$ConfName
036b9c
036b9c
  echo STARTING: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
036b9c
036b9c
  # Note that we're running the tests using the version of the code in the
036b9c
  # builddir, not in the buildroot.
036b9c
036b9c
  # Show some info, helpful for debugging test failures
036b9c
  LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.pythoninfo
036b9c
036b9c
  # Run the upstream test suite, setting "WITHIN_PYTHON_RPM_BUILD" so that the
036b9c
  # our non-standard decorators take effect on the relevant tests:
036b9c
  #   @unittest._skipInRpmBuild(reason)
036b9c
  #   @unittest._expectedFailureInRpmBuild
036b9c
  # test_faulthandler.test_register_chain currently fails on ppc64le and
036b9c
  #   aarch64, see upstream bug http://bugs.python.org/issue21131
036b9c
  WITHIN_PYTHON_RPM_BUILD= \
036b9c
  LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \
036b9c
    -wW --slowest --findleaks \
036b9c
    -x test_distutils \
036b9c
    -x test_bdist_rpm \
c6781f
    %ifarch %{arm}
c6781f
    -x test_gdb \
c6781f
    %endif 
036b9c
    %ifarch %{mips64}
036b9c
    -x test_ctypes \
036b9c
    %endif
036b9c
    %ifarch ppc64le
036b9c
    -x test_buffer \
036b9c
    %endif
036b9c
036b9c
  echo FINISHED: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
036b9c
036b9c
}
036b9c
036b9c
%if %{with tests}
036b9c
036b9c
# Check each of the configurations:
036b9c
%if %{with debug_build}
036b9c
CheckPython debug
036b9c
%endif # with debug_build
036b9c
CheckPython optimized
036b9c
036b9c
%endif # with tests
036b9c
036b9c
036b9c
%files
036b9c
%license LICENSE
036b9c
%doc README.rst
036b9c
036b9c
%if %{without flatpackage}
036b9c
%{_bindir}/pydoc*
036b9c
%{_bindir}/python3
036b9c
%{_bindir}/pyvenv
036b9c
%{_mandir}/*/*
036b9c
%else
036b9c
%{_bindir}/pydoc%{pybasever}
036b9c
%{_mandir}/*/python%{pybasever}*
036b9c
%endif
036b9c
%{_bindir}/pyvenv-%{pybasever}
036b9c
%{_bindir}/python%{pybasever}
036b9c
%{_bindir}/python%{pybasever}m
036b9c
036b9c
%if %{without flatpackage}
036b9c
%files libs
036b9c
%license LICENSE
036b9c
%doc README.rst
036b9c
%endif
036b9c
036b9c
%dir %{pylibdir}
036b9c
%dir %{dynload_dir}
036b9c
036b9c
%{pylibdir}/lib2to3
036b9c
%if %{without flatpackage}
036b9c
%exclude %{pylibdir}/lib2to3/tests
036b9c
%endif
036b9c
036b9c
%dir %{pylibdir}/unittest/
036b9c
%dir %{pylibdir}/unittest/__pycache__/
036b9c
%{pylibdir}/unittest/*.py
036b9c
%{pylibdir}/unittest/__pycache__/*%{bytecode_suffixes}
036b9c
036b9c
%dir %{pylibdir}/asyncio/
036b9c
%dir %{pylibdir}/asyncio/__pycache__/
036b9c
%{pylibdir}/asyncio/*.py
036b9c
%{pylibdir}/asyncio/__pycache__/*%{bytecode_suffixes}
036b9c
036b9c
%dir %{pylibdir}/venv/
036b9c
%dir %{pylibdir}/venv/__pycache__/
036b9c
%{pylibdir}/venv/*.py
036b9c
%{pylibdir}/venv/__pycache__/*%{bytecode_suffixes}
036b9c
%{pylibdir}/venv/scripts
036b9c
036b9c
%{pylibdir}/wsgiref
036b9c
%{pylibdir}/xmlrpc
036b9c
036b9c
%dir %{pylibdir}/ensurepip/
036b9c
%dir %{pylibdir}/ensurepip/__pycache__/
036b9c
%{pylibdir}/ensurepip/*.py
036b9c
%{pylibdir}/ensurepip/__pycache__/*%{bytecode_suffixes}
036b9c
036b9c
%if %{without flatpackage}
036b9c
%exclude %{pylibdir}/ensurepip/_bundled
036b9c
%else
036b9c
%dir %{pylibdir}/ensurepip/_bundled
036b9c
%{pylibdir}/ensurepip/_bundled/*.whl
036b9c
%endif
036b9c
036b9c
%if %{with rewheel}
036b9c
%dir %{pylibdir}/ensurepip/rewheel/
036b9c
%dir %{pylibdir}/ensurepip/rewheel/__pycache__/
036b9c
%{pylibdir}/ensurepip/rewheel/*.py
036b9c
%{pylibdir}/ensurepip/rewheel/__pycache__/*%{bytecode_suffixes}
036b9c
%endif
036b9c
036b9c
# The majority of the test module lives in the test subpackage
036b9c
# However test.support is in libs - it contains stuff used when testing your code
036b9c
# https://bugzilla.redhat.com/show_bug.cgi?id=596258
036b9c
%if %{without flatpackage}
036b9c
%dir %{pylibdir}/test/
036b9c
%dir %{pylibdir}/test/__pycache__/
036b9c
%dir %{pylibdir}/test/support/
036b9c
%dir %{pylibdir}/test/support/__pycache__/
036b9c
%{pylibdir}/test/__init__.py
036b9c
%{pylibdir}/test/__pycache__/__init__%{bytecode_suffixes}
036b9c
%{pylibdir}/test/support/*.py
036b9c
%{pylibdir}/test/support/__pycache__/*%{bytecode_suffixes}
036b9c
%endif
036b9c
036b9c
%dir %{pylibdir}/concurrent/
036b9c
%dir %{pylibdir}/concurrent/__pycache__/
036b9c
%{pylibdir}/concurrent/*.py
036b9c
%{pylibdir}/concurrent/__pycache__/*%{bytecode_suffixes}
036b9c
036b9c
%dir %{pylibdir}/concurrent/futures/
036b9c
%dir %{pylibdir}/concurrent/futures/__pycache__/
036b9c
%{pylibdir}/concurrent/futures/*.py
036b9c
%{pylibdir}/concurrent/futures/__pycache__/*%{bytecode_suffixes}
036b9c
036b9c
%{pylibdir}/pydoc_data
036b9c
036b9c
%{dynload_dir}/_blake2.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_md5.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_sha1.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_sha256.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_sha3.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_sha512.%{SOABI_optimized}.so
036b9c
036b9c
%{dynload_dir}/_asyncio.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_bisect.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_bz2.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_codecs_cn.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_codecs_hk.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_codecs_iso2022.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_codecs_jp.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_codecs_kr.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_codecs_tw.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_crypt.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_csv.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_ctypes.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_curses.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_curses_panel.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_dbm.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_decimal.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_elementtree.%{SOABI_optimized}.so
036b9c
%if %{with gdbm}
036b9c
%{dynload_dir}/_gdbm.%{SOABI_optimized}.so
036b9c
%endif
036b9c
%{dynload_dir}/_hashlib.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_heapq.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_json.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_lsprof.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_lzma.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_multibytecodec.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_multiprocessing.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_opcode.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_pickle.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_posixsubprocess.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_random.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_socket.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_sqlite3.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_ssl.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_struct.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/array.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/audioop.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/binascii.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/cmath.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_datetime.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/fcntl.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/grp.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/math.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/mmap.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/nis.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/ossaudiodev.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/parser.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/pyexpat.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/readline.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/resource.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/select.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/spwd.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/syslog.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/termios.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_testmultiphase.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/unicodedata.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/xxlimited.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/zlib.%{SOABI_optimized}.so
036b9c
036b9c
%dir %{pylibdir}/site-packages/
036b9c
%dir %{pylibdir}/site-packages/__pycache__/
036b9c
%{pylibdir}/site-packages/README.txt
036b9c
%{pylibdir}/*.py
036b9c
%dir %{pylibdir}/__pycache__/
036b9c
%{pylibdir}/__pycache__/*%{bytecode_suffixes}
036b9c
036b9c
%dir %{pylibdir}/collections/
036b9c
%dir %{pylibdir}/collections/__pycache__/
036b9c
%{pylibdir}/collections/*.py
036b9c
%{pylibdir}/collections/__pycache__/*%{bytecode_suffixes}
036b9c
036b9c
%dir %{pylibdir}/ctypes/
036b9c
%dir %{pylibdir}/ctypes/__pycache__/
036b9c
%{pylibdir}/ctypes/*.py
036b9c
%{pylibdir}/ctypes/__pycache__/*%{bytecode_suffixes}
036b9c
%{pylibdir}/ctypes/macholib
036b9c
036b9c
%{pylibdir}/curses
036b9c
036b9c
%dir %{pylibdir}/dbm/
036b9c
%dir %{pylibdir}/dbm/__pycache__/
036b9c
%{pylibdir}/dbm/*.py
036b9c
%{pylibdir}/dbm/__pycache__/*%{bytecode_suffixes}
036b9c
036b9c
%dir %{pylibdir}/distutils/
036b9c
%dir %{pylibdir}/distutils/__pycache__/
036b9c
%{pylibdir}/distutils/*.py
036b9c
%{pylibdir}/distutils/__pycache__/*%{bytecode_suffixes}
036b9c
%{pylibdir}/distutils/README
036b9c
%{pylibdir}/distutils/command
036b9c
036b9c
%dir %{pylibdir}/email/
036b9c
%dir %{pylibdir}/email/__pycache__/
036b9c
%{pylibdir}/email/*.py
036b9c
%{pylibdir}/email/__pycache__/*%{bytecode_suffixes}
036b9c
%{pylibdir}/email/mime
036b9c
%doc %{pylibdir}/email/architecture.rst
036b9c
036b9c
%{pylibdir}/encodings
036b9c
036b9c
%{pylibdir}/html
036b9c
%{pylibdir}/http
036b9c
036b9c
%dir %{pylibdir}/importlib/
036b9c
%dir %{pylibdir}/importlib/__pycache__/
036b9c
%{pylibdir}/importlib/*.py
036b9c
%{pylibdir}/importlib/__pycache__/*%{bytecode_suffixes}
036b9c
036b9c
%dir %{pylibdir}/json/
036b9c
%dir %{pylibdir}/json/__pycache__/
036b9c
%{pylibdir}/json/*.py
036b9c
%{pylibdir}/json/__pycache__/*%{bytecode_suffixes}
036b9c
036b9c
%{pylibdir}/logging
036b9c
%{pylibdir}/multiprocessing
036b9c
036b9c
%dir %{pylibdir}/sqlite3/
036b9c
%dir %{pylibdir}/sqlite3/__pycache__/
036b9c
%{pylibdir}/sqlite3/*.py
036b9c
%{pylibdir}/sqlite3/__pycache__/*%{bytecode_suffixes}
036b9c
036b9c
%if %{without flatpackage}
036b9c
%exclude %{pylibdir}/turtle.py
036b9c
%exclude %{pylibdir}/__pycache__/turtle*%{bytecode_suffixes}
036b9c
%endif
036b9c
036b9c
%{pylibdir}/urllib
036b9c
%{pylibdir}/xml
036b9c
036b9c
%if "%{_lib}" == "lib64"
036b9c
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}
036b9c
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}/site-packages
036b9c
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}/site-packages/__pycache__/
036b9c
%endif
036b9c
036b9c
# "Makefile" and the config-32/64.h file are needed by
036b9c
# distutils/sysconfig.py:_init_posix(), so we include them in the core
036b9c
# package, along with their parent directories (bug 531901):
036b9c
%dir %{pylibdir}/config-%{LDVERSION_optimized}-%{_arch}-linux%{_gnu}/
036b9c
%{pylibdir}/config-%{LDVERSION_optimized}-%{_arch}-linux%{_gnu}/Makefile
036b9c
%dir %{_includedir}/python%{LDVERSION_optimized}/
036b9c
%{_includedir}/python%{LDVERSION_optimized}/%{_pyconfig_h}
036b9c
036b9c
%{_libdir}/%{py_INSTSONAME_optimized}
036b9c
%if %{without flatpackage}
036b9c
%{_libdir}/libpython3.so
036b9c
%endif
036b9c
036b9c
%if %{without flatpackage}
036b9c
%files devel
036b9c
%{_bindir}/2to3-3
036b9c
%{_bindir}/2to3-%{pybasever}
036b9c
%endif
036b9c
036b9c
%{pylibdir}/config-%{LDVERSION_optimized}-%{_arch}-linux%{_gnu}/*
036b9c
%if %{without flatpackage}
036b9c
%exclude %{pylibdir}/config-%{LDVERSION_optimized}-%{_arch}-linux%{_gnu}/Makefile
036b9c
%exclude %{_includedir}/python%{LDVERSION_optimized}/%{_pyconfig_h}
036b9c
%endif
036b9c
%{_includedir}/python%{LDVERSION_optimized}/*.h
036b9c
%doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit
036b9c
036b9c
%if %{without flatpackage}
036b9c
%{_bindir}/python3-config
036b9c
%{_libdir}/pkgconfig/python3.pc
036b9c
%{_bindir}/pathfix.py
036b9c
%endif
036b9c
036b9c
%{_bindir}/python%{pybasever}-config
036b9c
%{_bindir}/python%{LDVERSION_optimized}-config
036b9c
%{_bindir}/python%{LDVERSION_optimized}-*-config
036b9c
%{_libdir}/libpython%{LDVERSION_optimized}.so
036b9c
%{_libdir}/pkgconfig/python-%{LDVERSION_optimized}.pc
036b9c
%{_libdir}/pkgconfig/python-%{pybasever}.pc
036b9c
036b9c
%if %{without flatpackage}
036b9c
%files idle
036b9c
036b9c
%{_bindir}/idle*
036b9c
%else
036b9c
%{_bindir}/idle%{pybasever}
036b9c
%endif
036b9c
036b9c
%{pylibdir}/idlelib
036b9c
036b9c
%if %{without flatpackage}
036b9c
%{_metainfodir}/idle3.appdata.xml
036b9c
%{_datadir}/applications/idle3.desktop
036b9c
%{_datadir}/icons/hicolor/*/apps/idle3.*
036b9c
%endif
036b9c
036b9c
%if %{without flatpackage}
036b9c
%files tkinter
036b9c
%endif
036b9c
036b9c
%{pylibdir}/tkinter
036b9c
%if %{without flatpackage}
036b9c
%exclude %{pylibdir}/tkinter/test
036b9c
%endif
036b9c
%{dynload_dir}/_tkinter.%{SOABI_optimized}.so
036b9c
%{pylibdir}/turtle.py
036b9c
%{pylibdir}/__pycache__/turtle*%{bytecode_suffixes}
036b9c
%dir %{pylibdir}/turtledemo
036b9c
%{pylibdir}/turtledemo/*.py
036b9c
%{pylibdir}/turtledemo/*.cfg
036b9c
%dir %{pylibdir}/turtledemo/__pycache__/
036b9c
%{pylibdir}/turtledemo/__pycache__/*%{bytecode_suffixes}
036b9c
036b9c
%if %{without flatpackage}
036b9c
%files test
036b9c
%endif
036b9c
%{pylibdir}/ctypes/test
036b9c
%{pylibdir}/distutils/tests
036b9c
%{pylibdir}/sqlite3/test
036b9c
%{pylibdir}/test
036b9c
%{dynload_dir}/_ctypes_test.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_testbuffer.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_testcapi.%{SOABI_optimized}.so
036b9c
%{dynload_dir}/_testimportmultiple.%{SOABI_optimized}.so
036b9c
%{pylibdir}/lib2to3/tests
036b9c
%{pylibdir}/tkinter/test
036b9c
%{pylibdir}/unittest/test
036b9c
036b9c
# stuff already owned by the libs subpackage
036b9c
# test requires libs, so we are safe not owning those dirs
036b9c
%if %{without flatpackage}
036b9c
%exclude %dir %{pylibdir}/test/
036b9c
%exclude %dir %{pylibdir}/test/__pycache__/
036b9c
%exclude %{pylibdir}/test/__init__.py
036b9c
%exclude %{pylibdir}/test/__pycache__/__init__%{bytecode_suffixes}
036b9c
%exclude %{pylibdir}/test/support/
036b9c
%endif
036b9c
036b9c
# We don't bother splitting the debug build out into further subpackages:
036b9c
# if you need it, you're probably a developer.
036b9c
036b9c
# Hence the manifest is the combination of analogous files in the manifests of
036b9c
# all of the other subpackages
036b9c
036b9c
%if %{with debug_build}
036b9c
%if %{without flatpackage}
036b9c
%files debug
036b9c
%{_bindir}/python3-debug
036b9c
%endif
036b9c
036b9c
# Analog of the core subpackage's files:
036b9c
%{_bindir}/python%{LDVERSION_debug}
036b9c
036b9c
# Analog of the -libs subpackage's files:
036b9c
# ...with debug builds of the built-in "extension" modules:
036b9c
036b9c
%{dynload_dir}/_blake2.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_md5.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_sha1.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_sha256.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_sha3.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_sha512.%{SOABI_debug}.so
036b9c
036b9c
%{dynload_dir}/_asyncio.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_bisect.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_bz2.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_codecs_cn.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_codecs_hk.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_codecs_iso2022.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_codecs_jp.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_codecs_kr.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_codecs_tw.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_crypt.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_csv.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_ctypes.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_curses.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_curses_panel.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_dbm.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_decimal.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_elementtree.%{SOABI_debug}.so
036b9c
%if %{with gdbm}
036b9c
%{dynload_dir}/_gdbm.%{SOABI_debug}.so
036b9c
%endif
036b9c
%{dynload_dir}/_hashlib.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_heapq.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_json.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_lsprof.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_lzma.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_multibytecodec.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_multiprocessing.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_opcode.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_pickle.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_posixsubprocess.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_random.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_socket.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_sqlite3.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_ssl.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_struct.%{SOABI_debug}.so
036b9c
%{dynload_dir}/array.%{SOABI_debug}.so
036b9c
%{dynload_dir}/audioop.%{SOABI_debug}.so
036b9c
%{dynload_dir}/binascii.%{SOABI_debug}.so
036b9c
%{dynload_dir}/cmath.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_datetime.%{SOABI_debug}.so
036b9c
%{dynload_dir}/fcntl.%{SOABI_debug}.so
036b9c
%{dynload_dir}/grp.%{SOABI_debug}.so
036b9c
%{dynload_dir}/math.%{SOABI_debug}.so
036b9c
%{dynload_dir}/mmap.%{SOABI_debug}.so
036b9c
%{dynload_dir}/nis.%{SOABI_debug}.so
036b9c
%{dynload_dir}/ossaudiodev.%{SOABI_debug}.so
036b9c
%{dynload_dir}/parser.%{SOABI_debug}.so
036b9c
%{dynload_dir}/pyexpat.%{SOABI_debug}.so
036b9c
%{dynload_dir}/readline.%{SOABI_debug}.so
036b9c
%{dynload_dir}/resource.%{SOABI_debug}.so
036b9c
%{dynload_dir}/select.%{SOABI_debug}.so
036b9c
%{dynload_dir}/spwd.%{SOABI_debug}.so
036b9c
%{dynload_dir}/syslog.%{SOABI_debug}.so
036b9c
%{dynload_dir}/termios.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_testmultiphase.%{SOABI_debug}.so
036b9c
%{dynload_dir}/unicodedata.%{SOABI_debug}.so
036b9c
%{dynload_dir}/zlib.%{SOABI_debug}.so
036b9c
036b9c
# No need to split things out the "Makefile" and the config-32/64.h file as we
036b9c
# do for the regular build above (bug 531901), since they're all in one package
036b9c
# now; they're listed below, under "-devel":
036b9c
036b9c
%{_libdir}/%{py_INSTSONAME_debug}
036b9c
036b9c
# Analog of the -devel subpackage's files:
036b9c
%{pylibdir}/config-%{LDVERSION_debug}-%{_arch}-linux%{_gnu}
036b9c
%{_includedir}/python%{LDVERSION_debug}
036b9c
%{_bindir}/python%{LDVERSION_debug}-config
036b9c
%{_bindir}/python%{LDVERSION_debug}-*-config
036b9c
%{_libdir}/libpython%{LDVERSION_debug}.so
036b9c
%{_libdir}/libpython%{LDVERSION_debug}.so.1.0
036b9c
%{_libdir}/pkgconfig/python-%{LDVERSION_debug}.pc
036b9c
036b9c
# Analog of the -tools subpackage's files:
036b9c
#  None for now; we could build precanned versions that have the appropriate
036b9c
# shebang if needed
036b9c
036b9c
# Analog  of the tkinter subpackage's files:
036b9c
%{dynload_dir}/_tkinter.%{SOABI_debug}.so
036b9c
036b9c
# Analog  of the -test subpackage's files:
036b9c
%{dynload_dir}/_ctypes_test.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_testbuffer.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_testcapi.%{SOABI_debug}.so
036b9c
%{dynload_dir}/_testimportmultiple.%{SOABI_debug}.so
036b9c
036b9c
%endif # with debug_build
036b9c
036b9c
# We put the debug-gdb.py file inside /usr/lib/debug to avoid noise from ldconfig
036b9c
# See https://bugzilla.redhat.com/show_bug.cgi?id=562980
036b9c
#
036b9c
# The /usr/lib/rpm/redhat/macros defines %%__debug_package to use
036b9c
# debugfiles.list, and it appears that everything below /usr/lib/debug and
036b9c
# (/usr/src/debug) gets added to this file (via LISTFILES) in
036b9c
# /usr/lib/rpm/find-debuginfo.sh
036b9c
#
036b9c
# Hence by installing it below /usr/lib/debug we ensure it is added to the
036b9c
# -debuginfo subpackage
036b9c
# (if it doesn't, then the rpmbuild ought to fail since the debug-gdb.py
036b9c
# payload file would be unpackaged)
036b9c
036b9c
# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1476593
036b9c
%undefine _debuginfo_subpackages
036b9c
036b9c
# ======================================================
036b9c
# Finally, the changelog:
036b9c
# ======================================================
036b9c
036b9c
%changelog
036b9c
* Tue Jun 11 2019 Charalampos Stratakis <cstratak@redhat.com> - 3.6.8-10
036b9c
- Security fix for CVE-2019-10160
036b9c
Resolves: rhbz#1718403
036b9c
036b9c
* Tue May 28 2019 Charalampos Stratakis <cstratak@redhat.com> - 3.6.8-9
036b9c
- Security fix for CVE-2019-9948
036b9c
Resolves: rhbz#1714642
036b9c
036b9c
* Wed May 08 2019 Charalampos Stratakis <cstratak@redhat.com> - 3.6.8-8
036b9c
- Disallow control chars in http URLs
036b9c
- Fixes CVE-2019-9740 and CVE-2019-9947
036b9c
Resolves: rhbz#1703535 and rhbz#1704364
036b9c
036b9c
* Fri May 03 2019 Charalampos Stratakis <cstratak@redhat.com> - 3.6.8-7
036b9c
- Updated fix for CVE-2019-9636
036b9c
Resolves: rhbz#1696755
036b9c
036b9c
* Wed Apr 3 2019 Miro Hrončok <mhroncok@redhat.com> - 3.6.8-6
036b9c
- Security fix for CVE-2019-9636 (rhbz#1696755)
036b9c
036b9c
* Thu Mar 28 2019 Miro Hrončok <mhroncok@redhat.com> - 3.6.8-5
036b9c
- Replace explicit conflicts with python34 < 3.4.9-3 with obsoletes
036b9c
Resolves: rhbz#1694003
036b9c
036b9c
* Thu Mar 21 2019 Tomas Orsava <torsava@redhat.com> - 3.6.8-4
036b9c
- Add explicit conflicts with python34 < 3.4.9-3, which was the main python3
036b9c
  package in EPEL before that version and contained conflicting files,
036b9c
  e.g. /usr/bin/python3
036b9c
Resolves: rhbz#1597718
036b9c
036b9c
* Wed Mar 20 2019 Tomas Orsava <torsava@redhat.com> - 3.6.8-3
036b9c
- Finish bootstrapping in RHEL-7.7
036b9c
Resolves: rhbz#1597718
036b9c
036b9c
* Mon Jan 14 2019 Lumir Balhar & Tomas Orsava <lbalhar@redhat.com> - 3.6.8-2
036b9c
- Converting F28 python3 specfile to RHEL7
036b9c
- Updated the bootstrapping sequence
036b9c
- Disabled LTO because of buggy support for it in gcc on RHEL7
036b9c
- Removed deprecated system-python and platform-python tags and files
036b9c
- Removed a tag from `python3-libs` that recommended the `python3` package,
036b9c
  because the Recommends tag doesn't work in RHEL7
036b9c
- Remove unnecessary unversioned requires on glibc and gdbm
036b9c
- Changes from RHEL8:
036b9c
  - Move macros.pybytecompile to python-rpm-macros
036b9c
  - Enable test_gdb, test_faulthandler
036b9c
- Changes from Fedora:
036b9c
  - Security fix for CVE-2019-5010 (#1666519, #1666522)
036b9c
  - Make sure we don't ship any exe files (not needed an prebuilt)
036b9c
Resolves: rhbz#1597718
036b9c
036b9c
* Thu Jan 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.6.8-1
036b9c
- Update to 3.6.8
036b9c
036b9c
* Fri Nov 23 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.7-2
036b9c
- Make sure the entire test.support module is in python3-libs (#1651245)
036b9c
036b9c
* Mon Oct 22 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.7-1
036b9c
- Update to 3.6.7
036b9c
036b9c
* Fri Aug 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.6.6-3
036b9c
- Fix wrong requirement on gdbm
036b9c
036b9c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.6-2
036b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
036b9c
036b9c
* Tue Jul 10 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.6-1
036b9c
- Update to Python 3.6.6
036b9c
036b9c
* Tue Jul 10 2018 Tomas Orsava <torsava@redhat.com> - 3.6.5-2
036b9c
- Fix %%py_byte_compile macro: when invoked with a Python 2 binary it also
036b9c
  mistakenly ran py3_byte_compile
036b9c
036b9c
* Thu Mar 29 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.5-1
036b9c
- Update to 3.6.5
036b9c
036b9c
* Sat Mar 24 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-20
036b9c
- Fix broken macro invocation and broken building of C Python extensions
036b9c
Resolves: rhbz#1560103
036b9c
036b9c
* Fri Mar 16 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-19
036b9c
- Add -n option for pathfix.py
036b9c
Resolves: rhbz#1546990
036b9c
036b9c
* Thu Mar 15 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-18
036b9c
- Fix the py_byte_compile macro to work on Python 2
036b9c
- Remove the pybytecompile macro file from the flat package
036b9c
Resolves: rhbz#1484993
036b9c
036b9c
* Tue Mar 13 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-17
036b9c
- Do not send IP addresses in SNI TLS extension
036b9c
036b9c
* Sat Feb 24 2018 Florian Weimer <fweimer@redhat.com> - 3.6.4-16
036b9c
- Rebuild with new LDFLAGS from redhat-rpm-config
036b9c
036b9c
* Wed Feb 21 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-15
036b9c
- Filter out automatic /usr/bin/python3.X requirement,
036b9c
  recommend the main package from libs instead
036b9c
Resolves: rhbz#1547131
036b9c
036b9c
* Thu Feb 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.4-14
036b9c
- Remove the python3-tools package (#rhbz 1312030)
036b9c
- Move /usr/bin/2to3 to python3-devel
036b9c
- Move /usr/bin/idle and idlelib to python3-idle
036b9c
- Provide python3-tools from python3-idle
036b9c
036b9c
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.6.4-13
036b9c
- Escape macros in %%changelog
036b9c
036b9c
* Fri Feb 02 2018 Michal Cyprian <mcyprian@redhat.com> - 3.6.4-12
036b9c
- Remove sys.executable check from change-user-install-location patch
036b9c
Resolves: rhbz#1532287
036b9c
036b9c
* Thu Feb 01 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-11
036b9c
- Define TLS cipher suite on build time.
036b9c
036b9c
* Wed Jan 31 2018 Tomas Orsava <torsava@redhat.com> - 3.6.4-10
036b9c
- Disable test_gdb for all arches and test_buffer for ppc64le in anticipation
036b9c
  of the F28 mass rebuild
036b9c
- Re-enable these tests after the mass rebuild when they can be properly
036b9c
  addressed
036b9c
036b9c
* Tue Jan 23 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-9
036b9c
- Restore the PyExc_RecursionErrorInst public symbol
036b9c
036b9c
* Tue Jan 23 2018 Björn Esser <besser82@fedoraproject.org> - 3.6.4-8
036b9c
- Add patch to explicitly link _ctypes module with -ldl (#1537489)
036b9c
- Refactored patch for libxcrypt
036b9c
- Re-enable strict symbol checks in the link editor
036b9c
036b9c
* Mon Jan 22 2018 Björn Esser <besser82@fedoraproject.org> - 3.6.4-7
036b9c
- Add patch for libxcrypt
036b9c
- Disable strict symbol checks in the link editor
036b9c
036b9c
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 3.6.4-6
036b9c
- Rebuilt for switch to libxcrypt
036b9c
036b9c
* Fri Jan 19 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-5
036b9c
- Fix localeconv() encoding for LC_NUMERIC
036b9c
036b9c
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.6.4-4
036b9c
- R: gdbm-devel → R: gdbm for python3-libs
036b9c
036b9c
* Wed Jan 17 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.4-3
036b9c
- Require large enough gdbm (fixup for previous bump)
036b9c
036b9c
* Tue Jan 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-2
036b9c
- Rebuild for reverted gdbm 1.13 on Fedora 27
036b9c
036b9c
* Mon Jan 15 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.4-1
036b9c
- Update to version 3.6.4
036b9c
036b9c
* Fri Jan 12 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.6.3-5
036b9c
- Fix the compilation of the nis module.
036b9c
036b9c
* Tue Nov 21 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.3-4
036b9c
- Raise the release of platform-python obsoletes for better maintainability
036b9c
036b9c
* Wed Nov 15 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.3-3
036b9c
- Obsolete platform-python and it's subpackages
036b9c
036b9c
* Mon Oct 09 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.3-2
036b9c
- Fix memory corruption due to allocator mix
036b9c
Resolves: rhbz#1498207
036b9c
036b9c
* Fri Oct 06 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.3-1
036b9c
- Update to Python 3.6.3
036b9c
036b9c
* Fri Sep 29 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-19
036b9c
- Move pathfix.py to bindir, https://github.com/fedora-python/python-rpm-porting/issues/24
036b9c
- Make the -devel package require redhat-rpm-config
036b9c
Resolves: rhbz#1496757
036b9c
036b9c
* Wed Sep 13 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.2-18
036b9c
- Fix /usr/bin/env dependency from python3-tools
036b9c
Resolves: rhbz#1482118
036b9c
036b9c
* Wed Sep 06 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.2-17
036b9c
- Include `-g` in the flags sent to the linker (LDFLAGS)
036b9c
Resolves: rhbz#1483222
036b9c
036b9c
* Tue Sep 05 2017 Petr Viktorin <pviktori@redhat.com> - 3.6.2-16
036b9c
- Specfile cleanup
036b9c
- Make the main description also applicable to the SRPM
036b9c
- Add audiotest.au to the test package
036b9c
036b9c
* Fri Sep 01 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-15
036b9c
- Remove %%{pylibdir}/Tools/scripts/2to3
036b9c
036b9c
* Fri Sep 01 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-14
036b9c
- Expat >= 2.1.0 is everywhere, remove explicit requires
036b9c
- Conditionalize systemtap-devel BuildRequires
036b9c
- For consistency, require /usr/sbin/ifconfig instead of net-tools
036b9c
036b9c
* Mon Aug 28 2017 Petr Viktorin <pviktori@redhat.com> - 3.6.2-13
036b9c
- Rename patch files to be consistent
036b9c
- Run autotools to generate the configure script before building
036b9c
- Merge lib64 patches (104 into 102)
036b9c
- Skip test_bdist_rpm using test config rather than a patch (removes patch 137)
036b9c
- Remove patches 157 and 186, which had test changes left over after upstreaming
036b9c
- Remove patch 188, a temporary workaround for hashlib tests
036b9c
- Merge patches 180, 206, 243, 5001 (architecture naming) into new patch 274
036b9c
- Move python2-tools conflicts to tools subpackage (it was wrongly in tkinter)
036b9c
036b9c
* Mon Aug 28 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.2-12
036b9c
- Use python3 style of calling super() without arguments in rpath
036b9c
  patch to prevent recursion in UnixCCompiler subclasses
036b9c
Resolves: rhbz#1458122
036b9c
036b9c
* Mon Aug 21 2017 Petr Viktorin <pviktori@redhat.com> - 3.6.2-11
036b9c
- Add bcond for --without optimizations
036b9c
- Reword package descriptions
036b9c
- Remove Group declarations
036b9c
- Skip failing test_float_with_comma
036b9c
036b9c
* Mon Aug 21 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-10
036b9c
- Remove system-python, see https://fedoraproject.org/wiki/Changes/Platform_Python_Stack
036b9c
036b9c
* Wed Aug 16 2017 Petr Viktorin <pviktori@redhat.com> - 3.6.2-9
036b9c
- Use bconds for configuring the build
036b9c
- Reorganize the initial sections
036b9c
036b9c
* Wed Aug 16 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-8
036b9c
- Have /usr/bin/2to3 (rhbz#1111275)
036b9c
- Provide 2to3 and idle3, list them in summary and description (rhbz#1076401)
036b9c
036b9c
* Fri Aug 11 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.2-7
036b9c
- Revert "Add --executable option to install.py command"
036b9c
  This enhancement is currently not needed and it can possibly
036b9c
  collide with `pip --editable`option
036b9c
036b9c
* Mon Aug 07 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.2-6
036b9c
- Fix the "urllib FTP protocol stream injection" vulnerability
036b9c
Resolves: rhbz#1478916
036b9c
036b9c
* Tue Aug 01 2017 Tomas Orsava <torsava@redhat.com> - 3.6.2-5
036b9c
- Dropped BuildRequires on db4-devel which was useful for Python 2 (module
036b9c
  bsddb), however, no longer needod for Python 3
036b9c
- Tested building Python 3 with and without the dependency, all tests pass and
036b9c
  filelists of resulting RPMs are identical
036b9c
036b9c
* Sun Jul 30 2017 Florian Weimer <fweimer@redhat.com> - 3.6.2-4
036b9c
- Do not generate debuginfo subpackages (#1476593)
036b9c
- Rebuild with binutils fix for ppc64le (#1475636)
036b9c
036b9c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.2-3
036b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
036b9c
036b9c
* Tue Jul 25 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.2-2
036b9c
- Make test_asyncio to not depend on the current SIGHUP signal handler.
036b9c
036b9c
* Tue Jul 18 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.2-1
036b9c
- Update to Python 3.6.2
036b9c
036b9c
* Tue Jun 27 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-10
036b9c
- Update to the latest upstream implementation of PEP 538
036b9c
036b9c
* Mon Jun 26 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.1-9
036b9c
- Make pip and distutils in user environment install into separate location
036b9c
036b9c
* Fri Jun 23 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-8
036b9c
- Fix test_alpn_protocols from test_ssl
036b9c
- Do not require rebundled setuptools dependencies
036b9c
036b9c
* Tue May 16 2017 Tomas Orsava <torsava@redhat.com> - 3.6.1-7
036b9c
- Added a dependency to the devel subpackage on python3-rpm-generators which
036b9c
  have been excised out of rpm-build
036b9c
- Updated notes on bootstrapping Python on top of this specfile accordingly
036b9c
- Involves: rhbz#1410631, rhbz#1444925
036b9c
036b9c
* Tue May 09 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-6
036b9c
- Enable profile guided optimizations for x86_64 and i686 architectures
036b9c
- Update to a newer implementation of PEP 538
036b9c
- Update description to reflect that Python 3 is now the default Python
036b9c
036b9c
* Fri May 05 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-5
036b9c
- Update PEP 538 to the latest upstream implementation
036b9c
036b9c
* Tue Apr 18 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-4
036b9c
- Enable link time optimizations
036b9c
- Move windows executables to the devel subpackage (rhbz#1426257)
036b9c
036b9c
* Thu Apr 13 2017 Tomas Orsava <torsava@redhat.com> - 3.6.1-3
036b9c
- Rename python3.Xdm-config script from -debug to be arch specific
036b9c
Resolves: rhbz#1179073
036b9c
036b9c
* Wed Apr 05 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.1-2
036b9c
- Install the Makefile in its proper location (rhbz#1438219)
036b9c
036b9c
* Wed Mar 22 2017 Iryna Shcherbina <ishcherb@redhat.com> - 3.6.1-1
036b9c
- Update to version 3.6.1 final
036b9c
036b9c
* Tue Mar 21 2017 Tomas Orsava <torsava@redhat.com> - 3.6.1-0.2.rc1
036b9c
- Fix syntax error in %%py_byte_compile macro (rhbz#1433569)
036b9c
036b9c
* Thu Mar 16 2017 Iryna Shcherbina <ishcherb@redaht.com> - 3.6.1-0.1.rc1
036b9c
- Update to Python 3.6.1 release candidate 1
036b9c
- Add patch 264 to skip a known test failure on aarch64
036b9c
036b9c
* Fri Mar 10 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-21
036b9c
- Use proper command line parsing in _testembed
036b9c
- Backport of PEP 538: Coercing the legacy C locale to a UTF-8 based locale
036b9c
  https://fedoraproject.org/wiki/Changes/python3_c.utf-8_locale
036b9c
036b9c
* Mon Feb 27 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-20
036b9c
- Add desktop entry and appdata.xml file for IDLE 3 (rhbz#1392049)
036b9c
036b9c
* Fri Feb 24 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.0-19
036b9c
- Revert "Set values of prefix and exec_prefix to /usr/local for
036b9c
  /usr/bin/python* executables..." to prevent build failures
036b9c
  of packages using alternate build tools
036b9c
036b9c
* Tue Feb 21 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.0-18
036b9c
- Set values of prefix and exec_prefix to /usr/local for
036b9c
  /usr/bin/python* executables
036b9c
- Use new %%_module_build macro
036b9c
036b9c
* Fri Feb 17 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.0-13
036b9c
- Add --executable option to install.py command
036b9c
036b9c
* Wed Feb 15 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-12
036b9c
- BuildRequire the new dependencies of setuptools when rewheel mode is enabled
036b9c
in order for the virtualenvs to work properly
036b9c
036b9c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-11
036b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
036b9c
036b9c
* Wed Feb 01 2017 Stephen Gallagher <sgallagh@redhat.com> - 3.6.0-10
036b9c
- Add missing %%license macro
036b9c
036b9c
* Thu Jan 26 2017 Tomas Orsava <torsava@redhat.com> - 3.6.0-9
036b9c
- Modify the runtime dependency of python3-libs on system-python-libs again,
036b9c
  because previous attempt didn't work properly with dnf resolving mechanism
036b9c
036b9c
* Wed Jan 25 2017 Tomas Orsava <torsava@redhat.com> - 3.6.0-8
036b9c
- Modify the runtime dependency of python3-libs on system-python-libs to use
036b9c
  just the version and release number, but not the dist tag due to Modularity
036b9c
036b9c
* Mon Jan 16 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-7
036b9c
- Fix error check, so that Random.seed actually uses OS randomness (rhbz#1412275)
036b9c
- Skip test_aead_aes_gcm during rpmbuild
036b9c
036b9c
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 3.6.0-6
036b9c
- Rebuild for readline 7.x
036b9c
036b9c
* Tue Jan 10 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-5
036b9c
- Require glibc >= 2.24.90-26 for system-python-libs (rhbz#1410644)
036b9c
036b9c
* Mon Jan 09 2017 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-4
036b9c
- Define HAVE_LONG_LONG as 1 for backwards compatibility
036b9c
036b9c
* Thu Jan 05 2017 Miro Hrončok <mhroncok@redhat.com> - 3.6.0-3
036b9c
- Don't blow up on EL7 kernel (random generator) (rhbz#1410175)
036b9c
036b9c
* Tue Dec 27 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-1
036b9c
- Update to Python 3.6.0 final
036b9c
036b9c
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-0.6.rc1
036b9c
- Enable rewheel
036b9c
036b9c
* Wed Dec 07 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-0.5.rc1
036b9c
- Update to Python 3.6.0 release candidate 1
036b9c
036b9c
* Mon Dec 05 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.6.0-0.4.b4
036b9c
- Update to Python 3.6.0 beta 4
036b9c
036b9c
* Mon Dec 05 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.2-7
036b9c
- Set to work with pip version 9.0.1
036b9c
036b9c
* Wed Oct 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.2-6
036b9c
- Use proper patch numbering and base upstream branch for
036b9c
porting ssl and hashlib modules to OpenSSL 1.1.0
036b9c
- Drop hashlib patch for now
036b9c
- Add riscv64 arch to 64bit and no-valgrind arches
036b9c
036b9c
* Tue Oct 11 2016 Tomáš Mráz <tmraz@redhat.com> - 3.5.2-5
036b9c
- Make it build with OpenSSL-1.1.0 based on upstream patch
036b9c
036b9c
* Wed Sep 14 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.2-4
036b9c
- Obsolete and Provide python35 package
036b9c
036b9c
* Mon Sep 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.2-3
036b9c
- Update %%py_byte_compile macro
036b9c
- Remove unused configure flags (rhbz#1374357)
036b9c
036b9c
* Fri Sep 09 2016 Tomas Orsava <torsava@redhat.com> - 3.5.2-2
036b9c
- Updated .pyc 'bytecompilation with the newly installed interpreter' to also
036b9c
  recompile optimized .pyc files
036b9c
- Removed .pyo 'bytecompilation with the newly installed interpreter', as .pyo
036b9c
  files are no more
036b9c
- Resolves rhbz#1373635
036b9c
036b9c
* Mon Aug 15 2016 Tomas Orsava <torsava@redhat.com> - 3.5.2-1
036b9c
- Rebased to version 3.5.2
036b9c
- Set to work with pip version 8.1.2
036b9c
- Removed patches 207, 237, 241 as fixes are already contained in Python 3.5.2
036b9c
- Removed arch or environment specific patches 194, 196, 203, and 208
036b9c
  as test builds indicate they are no longer needed
036b9c
- Updated patches 102, 146, and 242 to work with the new Python codebase
036b9c
- Removed patches 200, 201, 5000 which weren't even being applied
036b9c
036b9c
* Tue Aug 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.1-15
036b9c
- Fix for CVE-2016-1000110 HTTPoxy attack
036b9c
- SPEC file cleanup
036b9c
036b9c
* Mon Aug 01 2016 Michal Toman <mtoman@fedoraproject.org> - 3.5.1-14
036b9c
- Build properly on MIPS
036b9c
036b9c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.1-13
036b9c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
036b9c
036b9c
* Fri Jul 08 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.1-12
036b9c
- Refactor patch for properly fixing CVE-2016-5636
036b9c
036b9c
* Fri Jul 08 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.1-11
036b9c
- Fix test_pyexpat failure with Expat version of 2.2.0
036b9c
036b9c
* Fri Jul 08 2016 Miro Hrončok <mhroncok@redhat.com> - 3.5.1-10
036b9c
- Move xml module to system-python-libs
036b9c
036b9c
* Thu Jun 16 2016 Tomas Orsava <torsava@redhat.com> - 3.5.1-9
036b9c
- Fix for: CVE-2016-0772 python: smtplib StartTLS stripping attack
036b9c
- Raise an error when STARTTLS fails
036b9c
- rhbz#1303647: https://bugzilla.redhat.com/show_bug.cgi?id=1303647
036b9c
- rhbz#1346345: https://bugzilla.redhat.com/show_bug.cgi?id=1346345
036b9c
- Fixed upstream: https://hg.python.org/cpython/rev/d590114c2394
036b9c
036b9c
* Mon Jun 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.5.1-8
036b9c
- Added patch for fixing possible integer overflow and heap corruption in zipimporter.get_data()
036b9c
036b9c
* Fri Mar 04 2016 Miro Hrončok <mhroncok@redhat.com> - 3.5.1-7
036b9c
- Move distutils to system-python-libs
036b9c
036b9c
* Wed Feb 24 2016 Robert Kuska <rkuska@redhat.com> - 3.5.1-6
036b9c
- Provide python3-enum34
036b9c
036b9c
* Fri Feb 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.5.1-5
036b9c
- Provide System Python packages and macros
036b9c
036b9c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.1-4
036b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
036b9c
036b9c
* Wed Jan 13 2016 Orion Poplwski <orion@cora.nwra.com> - 3.5.1-2
036b9c
- Drop python3 macros, require python/python3-rpm-macros
036b9c
036b9c
* Mon Dec 14 2015 Robert Kuska <rkuska@redhat.com> - 3.5.1-1
036b9c
- Update to 3.5.1
036b9c
- Removed patch 199 and 207 (upstream)
036b9c
036b9c
* Sun Nov 15 2015 Robert Kuska <rkuska@redhat.com> - 3.5.0-5
036b9c
- Remove versioned libpython from devel package
036b9c
036b9c
* Fri Nov 13 2015 Than Ngo <than@redhat.com> 3.5.0-4
036b9c
- add correct arch for ppc64/ppc64le to fix build failure
036b9c
036b9c
* Wed Nov 11 2015 Robert Kuska <rkuska@redhat.com> - 3.5.0-3
036b9c
- Hide the private _Py_atomic_xxx symbols from public header
036b9c
036b9c
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 3.5.0-2
036b9c
- Rebuild with wheel set to 1
036b9c
036b9c
* Tue Sep 15 2015 Matej Stuchlik <mstuchli@redhat.com> - 3.5.0-1
036b9c
- Update to 3.5.0
036b9c
036b9c
* Mon Jun 29 2015 Thomas Spura <tomspur@fedoraproject.org> - 3.4.3-4
036b9c
- python3-devel: Require python-macros for version independant macros such as
036b9c
  python_provide. See fpc#281 and fpc#534.
036b9c
036b9c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.3-3
036b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
036b9c
036b9c
* Wed Jun 17 2015 Matej Stuchlik <mstuchli@redhat.com> - 3.4.3-4
036b9c
- Use 1024bit DH key in test_ssl
036b9c
- Use -O0 when compiling -debug build
036b9c
- Update pip version variable to the version we actually ship
036b9c
036b9c
* Wed Jun 17 2015 Matej Stuchlik <mstuchli@redhat.com> - 3.4.3-3
036b9c
- Make relocating Python by changing _prefix actually work
036b9c
Resolves: rhbz#1231801
036b9c
036b9c
* Mon May  4 2015 Peter Robinson <pbrobinson@fedoraproject.org> 3.4.3-2
036b9c
- Disable test_gdb on aarch64 (rhbz#1196181), it joins all other non x86 arches
036b9c
036b9c
* Thu Mar 12 2015 Matej Stuchlik <mstuchli@redhat.com> - 3.4.3-1
036b9c
- Updated to 3.4.3
036b9c
- BuildPython now accepts additional build options
036b9c
- Temporarily disabled test_gdb on arm (rhbz#1196181)
036b9c
036b9c
* Wed Feb 25 2015 Matej Stuchlik <mstuchli@redhat.com> - 3.4.2-7
036b9c
- Fixed undefined behaviour in faulthandler which caused test to hang on x86_64
036b9c
  (http://bugs.python.org/issue23433)
036b9c
036b9c
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 3.4.2-6
036b9c
- Rebuilt for Fedora 23 Change
036b9c
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
036b9c
036b9c
* Tue Feb 17 2015 Ville Skyttä <ville.skytta@iki.fi> - 3.4.2-5
036b9c
- Own systemtap dirs (#710733)
036b9c
036b9c
* Mon Jan 12 2015 Dan Horák <dan[at]danny.cz> - 3.4.2-4
036b9c
- build with valgrind on ppc64le
036b9c
- disable test_gdb on s390(x) until rhbz#1181034 is resolved
036b9c
036b9c
* Tue Dec 16 2014 Robert Kuska <rkuska@redhat.com> - 3.4.2-3
036b9c
- New patches: 170 (gc asserts), 200 (gettext headers),
036b9c
  201 (gdbm memory leak)
036b9c
036b9c
* Thu Dec 11 2014 Robert Kuska <rkuska@redhat.com> - 3.4.2-2
036b9c
- OpenSSL disabled SSLv3 in SSLv23 method
036b9c
036b9c
* Thu Nov 13 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.2-1
036b9c
- Update to 3.4.2
036b9c
- Refreshed patches: 156 (gdb autoload)
036b9c
- Removed: 195 (Werror declaration), 197 (CVE-2014-4650)
036b9c
036b9c
* Mon Nov 03 2014 Slavek Kabrda <bkabrda@redhat.com> - 3.4.1-16
036b9c
- Fix CVE-2014-4650 - CGIHTTPServer URL handling
036b9c
Resolves: rhbz#1113529
036b9c
036b9c
* Sun Sep 07 2014 Karsten Hopp <karsten@redhat.com> 3.4.1-15
036b9c
- exclude test_gdb on ppc* (rhbz#1132488)
036b9c
036b9c
* Thu Aug 21 2014 Slavek Kabrda <bkabrda@redhat.com> - 3.4.1-14
036b9c
- Update rewheel patch with fix from https://github.com/bkabrda/rewheel/pull/1
036b9c
036b9c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1-13
036b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
036b9c
036b9c
* Sun Jun  8 2014 Peter Robinson <pbrobinson@fedoraproject.org> 3.4.1-12
036b9c
- aarch64 has valgrind, just list those that don't support it
036b9c
036b9c
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1-11
036b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
036b9c
036b9c
* Wed Jun 04 2014 Karsten Hopp <karsten@redhat.com> 3.4.1-10
036b9c
- bump release and rebuild to link with the correct tcl/tk libs on ppcle
036b9c
036b9c
* Tue Jun 03 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.1-9
036b9c
- Change paths to bundled projects in rewheel patch
036b9c
036b9c
* Fri May 30 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.1-8
036b9c
- In config script, use uname -m to write the arch
036b9c
036b9c
* Thu May 29 2014 Dan Horák <dan[at]danny.cz> - 3.4.1-7
036b9c
- update the arch list where valgrind exists - %%power64 includes also
036b9c
    ppc64le which is not supported yet
036b9c
036b9c
* Thu May 29 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.1-6
036b9c
- Forward arguments to the arch specific config script
036b9c
Resolves: rhbz#1102683
036b9c
036b9c
* Wed May 28 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.1-5
036b9c
- Rename python3.Xm-config script to arch specific.
036b9c
Resolves: rhbz#1091815
036b9c
036b9c
* Tue May 27 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.1-4
036b9c
- Use python3-*, not python-* runtime requires on setuptools and pip
036b9c
- rebuild for tcl-8.6
036b9c
036b9c
* Tue May 27 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.1-3
036b9c
- Update the rewheel module
036b9c
036b9c
* Mon May 26 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.1-2
036b9c
- Fix multilib dependencies.
036b9c
Resolves: rhbz#1091815
036b9c
036b9c
* Sun May 25 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.1-1
036b9c
- Update to Python 3.4.1
036b9c
036b9c
* Sun May 25 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-8
036b9c
- Fix test_gdb failure on ppc64le
036b9c
Resolves: rhbz#1095355
036b9c
036b9c
* Thu May 22 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.0-7
036b9c
- Add macro %%python3_version_nodots
036b9c
036b9c
* Sun May 18 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-6
036b9c
- Disable test_faulthandler, test_gdb on aarch64
036b9c
Resolves: rhbz#1045193
036b9c
036b9c
* Fri May 16 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-5
036b9c
- Don't add Werror=declaration-after-statement for extension
036b9c
  modules through setup.py (PyBT#21121)
036b9c
036b9c
* Mon May 12 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-4
036b9c
- Add setuptools and pip to Requires
036b9c
036b9c
* Tue Apr 29 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-3
036b9c
- Point __os_install_post to correct brp-* files
036b9c
036b9c
* Tue Apr 15 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-2
036b9c
- Temporarily disable tests requiring SIGHUP (rhbz#1088233)
036b9c
036b9c
* Tue Apr 15 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-1
036b9c
- Update to Python 3.4 final
036b9c
- Add patch adding the rewheel module
036b9c
- Merge patches from master
036b9c
036b9c
* Wed Jan 08 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.0-0.1.b2
036b9c
- Update to Python 3.4 beta 2.
036b9c
- Refreshed patches: 55 (systemtap), 146 (hashlib-fips), 154 (test_gdb noise)
036b9c
- Dropped patches: 114 (statvfs constants), 177 (platform unicode)
036b9c
036b9c
* Mon Nov 25 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.0-0.1.b1
036b9c
- Update to Python 3.4 beta 1.
036b9c
- Refreshed patches: 102 (lib64), 111 (no static lib), 125 (less verbose COUNT
036b9c
ALLOCS), 141 (fix COUNT_ALLOCS in test_module), 146 (hashlib fips),
036b9c
157 (UID+GID overflows), 173 (ENOPROTOOPT in bind_port)
036b9c
- Removed patch 00187 (remove pthread atfork; upstreamed)
036b9c
036b9c
* Mon Nov 04 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.0-0.1.a4
036b9c
- Update to Python 3.4 alpha 4.
036b9c
- Refreshed patches: 55 (systemtap), 102 (lib64), 111 (no static lib),
036b9c
114 (statvfs flags), 132 (unittest rpmbuild hooks), 134 (fix COUNT_ALLOCS in
036b9c
test_sys), 143 (tsc on ppc64), 146 (hashlib fips), 153 (test gdb noise),
036b9c
157 (UID+GID overflows), 173 (ENOPROTOOPT in bind_port), 186 (dont raise
036b9c
from py_compile)
036b9c
- Removed patches: 129 (test_subprocess nonreadable dir - no longer fails in
036b9c
Koji), 142 (the mock issue that caused this is fixed)
036b9c
- Added patch 187 (remove thread atfork) - will be in next version
036b9c
- Refreshed script for checking pyc and pyo timestamps with new ignored files.
036b9c
- The fips patch is disabled for now until upstream makes a final decision
036b9c
what to do with sha3 implementation for 3.4.0.
036b9c
036b9c
* Wed Oct 30 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.2-7
036b9c
- Bytecompile all *.py files properly during build (rhbz#1023607)
036b9c
036b9c
* Fri Aug 23 2013 Matej Stuchlik <mstuchli@redhat.com> - 3.3.2-6
036b9c
- Added fix for CVE-2013-4238 (rhbz#996399)
036b9c
036b9c
* Fri Jul 26 2013 Dennis Gilmore <dennis@ausil.us> - 3.3.2-5
036b9c
- fix up indentation in arm patch
036b9c
036b9c
* Fri Jul 26 2013 Dennis Gilmore <dennis@ausil.us> - 3.3.2-4
036b9c
- disable a test that fails on arm
036b9c
- enable valgrind support on arm arches
036b9c
036b9c
* Tue Jul 02 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.2-3
036b9c
- Fix build with libffi containing multilib wrapper for ffi.h (rhbz#979696).
036b9c
036b9c
* Mon May 20 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.2-2
036b9c
- Add patch for CVE-2013-2099 (rhbz#963261).
036b9c
036b9c
* Thu May 16 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.2-1
036b9c
- Updated to Python 3.3.2.
036b9c
- Refreshed patches: 153 (gdb test noise)
036b9c
- Dropped patches: 175 (configure -Wformat, fixed upstream), 182 (gdb
036b9c
test threads)
036b9c
- Synced patch numbers with python.spec.
036b9c
036b9c
* Thu May  9 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.1-4
036b9c
- fix test.test_gdb.PyBtTests.test_threads on ppc64 (patch 181; rhbz#960010)
036b9c
036b9c
* Thu May 02 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.1-3
036b9c
- Add patch that enables building on ppc64p7 (replace the sed, so that
036b9c
we get consistent with python2 spec and it's more obvious that we're doing it.
036b9c
036b9c
* Wed Apr 24 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.1-2
036b9c
- Add fix for gdb tests failing on arm, rhbz#951802.
036b9c
036b9c
* Tue Apr 09 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.1-1
036b9c
- Updated to Python 3.3.1.
036b9c
- Refreshed patches: 55 (systemtap), 111 (no static lib), 146 (hashlib fips),
036b9c
153 (fix test_gdb noise), 157 (uid, gid overflow - fixed upstream, just
036b9c
keeping few more downstream tests)
036b9c
- Removed patches: 3 (audiotest.au made it to upstream tarball)
036b9c
- Removed workaround for http://bugs.python.org/issue14774, discussed in
036b9c
http://bugs.python.org/issue15298 and fixed in revision 24d52d3060e8.
036b9c
036b9c
* Mon Mar 25 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-10
036b9c
- fix gcc 4.8 incompatibility (rhbz#927358); regenerate autotool intermediates
036b9c
036b9c
* Mon Mar 25 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-9
036b9c
- renumber patches to keep them in sync with python.spec
036b9c
036b9c
* Fri Mar 15 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.0-8
036b9c
- Fix error in platform.platform() when non-ascii byte strings are decoded to
036b9c
  unicode (rhbz#922149)
036b9c
036b9c
* Thu Mar 14 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.0-7
036b9c
- Fix up shared library extension (rhbz#889784)
036b9c
036b9c
* Thu Mar 07 2013 Karsten Hopp <karsten@redhat.com> 3.3.0-6
036b9c
- add ppc64p7 build target, optimized for Power7
036b9c
036b9c
* Mon Mar  4 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-5
036b9c
- add workaround for ENOPROTOOPT seen running selftests in Koji
036b9c
(rhbz#913732)
036b9c
036b9c
* Mon Mar  4 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-4
036b9c
- remove config flag from /etc/rpm/macros.{python3|pybytecompile}
036b9c
036b9c
* Mon Feb 11 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-3
036b9c
- add aarch64 (rhbz#909783)
036b9c
036b9c
* Thu Nov 29 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-2
036b9c
- add BR on bluez-libs-devel (rhbz#879720)
036b9c
036b9c
* Sat Sep 29 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-1
036b9c
- 3.3.0rc3 -> 3.3.0; drop alphatag
036b9c
036b9c
* Mon Sep 24 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.6.rc3
036b9c
- 3.3.0rc2 -> 3.3.0rc3
036b9c
036b9c
* Mon Sep 10 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.5.rc2
036b9c
- 3.3.0rc1 -> 3.3.0rc2; refresh patch 55
036b9c
036b9c
* Mon Aug 27 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.4.rc1
036b9c
- 3.3.0b2 -> 3.3.0rc1; refresh patches 3, 55
036b9c
036b9c
* Mon Aug 13 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.3.b2
036b9c
- 3.3b1 -> 3.3b2; drop upstreamed patch 152; refresh patches 3, 102, 111,
036b9c
134, 153, 160; regenenerate autotools patch; rework systemtap patch to work
036b9c
correctly when LANG=C (patch 55); importlib.test was moved to
036b9c
test.test_importlib upstream
036b9c
036b9c
* Mon Aug 13 2012 Karsten Hopp <karsten@redhat.com> 3.3.0-0.2.b1
036b9c
- disable some failing checks on PPC* (rhbz#846849)
036b9c
036b9c
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.1.b1
036b9c
- 3.2 -> 3.3: https://fedoraproject.org/wiki/Features/Python_3.3
036b9c
- 3.3.0b1: refresh patches 3, 55, 102, 111, 113, 114, 134, 157; drop upstream
036b9c
patch 147; regenenerate autotools patch; drop "--with-wide-unicode" from
036b9c
configure (PEP 393); "plat-linux2" -> "plat-linux" (upstream issue 12326);
036b9c
"bz2" -> "_bz2" and "crypt" -> "_crypt"; egg-info files are no longer shipped
036b9c
for stdlib (upstream issues 10645 and 12218); email/test moved to
036b9c
test/test_email; add /usr/bin/pyvenv[-3.3] and venv module (PEP 405); add
036b9c
_decimal and _lzma modules; make collections modules explicit in payload again
036b9c
(upstream issue 11085); add _testbuffer module to tests subpackage (added in
036b9c
upstream commit 3f9b3b6f7ff0); fix test failures (patches 160 and 161);
036b9c
workaround erroneously shared _sysconfigdata.py upstream issue #14774; fix
036b9c
distutils.sysconfig traceback (patch 162); add BuildRequires: xz-devel (for
036b9c
_lzma module); skip some tests within test_socket (patch 163)
036b9c
036b9c
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.3-11
036b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
036b9c
036b9c
* Fri Jul 20 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.1.b1
036b9c
036b9c
* Fri Jun 22 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-10
036b9c
- use macro for power64 (rhbz#834653)
036b9c
036b9c
* Mon Jun 18 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-9
036b9c
- fix missing include in uid/gid handling patch (patch 157; rhbz#830405)
036b9c
036b9c
* Wed May 30 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 3.2.3-8
036b9c
- fix tapset for debug build
036b9c
036b9c
* Tue May 15 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-7
036b9c
- update uid/gid handling to avoid int overflows seen with uid/gid
036b9c
values >= 2^31 on 32-bit architectures (patch 157; rhbz#697470)
036b9c
036b9c
* Fri May  4 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-6
036b9c
- renumber autotools patch from 300 to 5000
036b9c
- specfile cleanups
036b9c
036b9c
* Mon Apr 30 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-5
036b9c
- fix test_gdb.py (patch 156; rhbz#817072)
036b9c
036b9c
* Fri Apr 20 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-4
036b9c
- avoid allocating thunks in ctypes unless absolutely necessary, to avoid
036b9c
generating SELinux denials on "import ctypes" and "import uuid" when embedding
036b9c
Python within httpd (patch 155; rhbz#814391)
036b9c
036b9c
* Fri Apr 20 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-3
036b9c
- add explicit version requirements on expat to avoid linkage problems with
036b9c
XML_SetHashSalt
036b9c
036b9c
* Thu Apr 12 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-2
036b9c
- fix test_gdb (patch 153)
036b9c
036b9c
* Wed Apr 11 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-1
036b9c
- 3.2.3; refresh patch 102 (lib64); drop upstream patches 148 (gdbm magic
036b9c
values), 149 (__pycache__ fix); add patch 152 (test_gdb regex)
036b9c
036b9c
* Thu Feb  9 2012 Thomas Spura <tomspur@fedoraproject.org> - 3.2.2-13
036b9c
- use newly installed python for byte compiling (now for real)
036b9c
036b9c
* Sun Feb  5 2012 Thomas Spura <tomspur@fedoraproject.org> - 3.2.2-12
036b9c
- use newly installed python for byte compiling (#787498)
036b9c
036b9c
* Wed Jan  4 2012 Ville Skyttä <ville.skytta@iki.fi> - 3.2.2-11
036b9c
- Build with $RPM_LD_FLAGS (#756863).
036b9c
- Use xz-compressed source tarball.
036b9c
036b9c
* Wed Dec 07 2011 Karsten Hopp <karsten@redhat.com> 3.2.2-10
036b9c
- disable rAssertAlmostEqual in test_cmath on PPC (#750811)
036b9c
036b9c
* Mon Oct 17 2011 Rex Dieter <rdieter@fedoraproject.org> - 3.2.2-9
036b9c
- python3-devel missing autogenerated pkgconfig() provides (#746751)
036b9c
036b9c
* Mon Oct 10 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-8
036b9c
- cherrypick fix for distutils not using __pycache__ when byte-compiling
036b9c
files (rhbz#722578)
036b9c
036b9c
* Fri Sep 30 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-7
036b9c
- re-enable gdbm (patch 148; rhbz#742242)
036b9c
036b9c
* Fri Sep 16 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-6
036b9c
- add a sys._debugmallocstats() function (patch 147)
036b9c
036b9c
* Wed Sep 14 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-5
036b9c
- support OpenSSL FIPS mode in _hashlib and hashlib; don't build the _md5 and
036b9c
_sha* modules, relying on _hashlib in hashlib (rhbz#563986; patch 146)
036b9c
036b9c
* Tue Sep 13 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-4
036b9c
- disable gdbm module to prepare for gdbm soname bump
036b9c
036b9c
* Mon Sep 12 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-3
036b9c
- renumber and rename patches for consistency with python.spec (8 to 55, 106
036b9c
to 104, 6 to 111, 104 to 113, 105 to 114, 125, 131, 130 to 143)
036b9c
036b9c
* Sat Sep 10 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-2
036b9c
- rewrite of "check", introducing downstream-only hooks for skipping specific
036b9c
cases in an rpmbuild (patch 132), and fixing/skipping failing tests in a more
036b9c
fine-grained manner than before; (patches 106, 133-142 sparsely, moving
036b9c
patches for consistency with python.spec: 128 to 134, 126 to 135, 127 to 141)
036b9c
036b9c
* Tue Sep  6 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-1
036b9c
- 3.2.2
036b9c
036b9c
* Thu Sep  1 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-7
036b9c
- run selftests with "--verbose"
036b9c
- disable parts of test_io on ppc (rhbz#732998)
036b9c
036b9c
* Wed Aug 31 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-6
036b9c
- use "--findleaks --verbose3" when running test suite
036b9c
036b9c
* Tue Aug 23 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-5
036b9c
- re-enable and fix the --with-tsc option on ppc64, and rework it on 32-bit
036b9c
ppc to avoid aliasing violations (patch 130; rhbz#698726)
036b9c
036b9c
* Tue Aug 23 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-4
036b9c
- don't use --with-tsc on ppc64 debug builds (rhbz#698726)
036b9c
036b9c
* Thu Aug 18 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-3
036b9c
- add %%python3_version to the rpm macros (rhbz#719082)
036b9c
036b9c
* Mon Jul 11 2011 Dennis Gilmore <dennis@ausil.us> - 3.2.1-2
036b9c
- disable some tests on sparc arches
036b9c
036b9c
* Mon Jul 11 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-1
036b9c
- 3.2.1; refresh lib64 patch (102), subprocess unit test patch (129), disabling
036b9c
of static library build (due to Modules/_testembed; patch 6), autotool
036b9c
intermediates (patch 300)
036b9c
036b9c
* Fri Jul  8 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-5
036b9c
- use the gdb hooks from the upstream tarball, rather than keeping our own copy
036b9c
036b9c
* Fri Jul  8 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-4
036b9c
- don't run test_openpty and test_pty in %%check
036b9c
036b9c
* Fri Jul  8 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-3
036b9c
- cleanup of BuildRequires; add comment headings to specfile sections
036b9c
036b9c
* Tue Apr 19 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-2
036b9c
- fix the libpython.stp systemtap tapset (rhbz#697730)
036b9c
036b9c
* Mon Feb 21 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-1
036b9c
- 3.2
036b9c
- drop alphatag
036b9c
- regenerate autotool patch
036b9c
036b9c
* Mon Feb 14 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.13.rc3
036b9c
- add a /usr/bin/python3-debug symlink within the debug subpackage
036b9c
036b9c
* Mon Feb 14 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.12.rc3
036b9c
- 3.2rc3
036b9c
- regenerate autotool patch
036b9c
036b9c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-0.11.rc2
036b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
036b9c
036b9c
* Mon Jan 31 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.10.rc2
036b9c
- 3.2rc2
036b9c
036b9c
* Mon Jan 17 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.9.rc1
036b9c
- 3.2rc1
036b9c
- rework patch 6 (static lib removal)
036b9c
- remove upstreamed patch 130 (ppc debug build)
036b9c
- regenerate patch 300 (autotool intermediates)
036b9c
- updated packaging to reflect upstream rewrite of "Demo" (issue 7962)
036b9c
- added libpython3.so and 2to3-3.2
036b9c
036b9c
* Wed Jan  5 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.8.b2
036b9c
- set EXTRA_CFLAGS to our CFLAGS, rather than overriding OPT, fixing a linker
036b9c
error with dynamic annotations (when configured using --with-valgrind)
036b9c
- fix the ppc build of the debug configuration (patch 130; rhbz#661510)
036b9c
036b9c
* Tue Jan  4 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.7.b2
036b9c
- add --with-valgrind to configuration (on architectures that support this)
036b9c
036b9c
* Wed Dec 29 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.6.b2
036b9c
- work around test_subprocess failure seen in koji (patch 129)
036b9c
036b9c
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
036b9c
- 3.2b2
036b9c
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
036b9c
patch 8 (systemtap), patch 102 (lib64)
036b9c
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
036b9c
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
036b9c
fixed upstream)
036b9c
- regenerate patch 300 (autotool intermediates)
036b9c
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
036b9c
patch 128)
036b9c
- stop using runtest.sh in %%check (dropped by upstream), replacing with
036b9c
regrtest; fixup list of failing tests
036b9c
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
036b9c
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
036b9c
PEP 3149
036b9c
- drop itertools, operator and _collections modules from the manifests as py3k
036b9c
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
036b9c
- move turtle code into the tkinter subpackage
036b9c
036b9c
* Wed Nov 17 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.a1
036b9c
- fix sysconfig to not rely on the -devel subpackage (rhbz#653058)
036b9c
036b9c
* Thu Sep  9 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.4.a1
036b9c
- move most of the content of the core package to the libs subpackage, given
036b9c
that the libs aren't meaningfully usable without the standard libraries
036b9c
036b9c
* Wed Sep  8 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.3.a1
036b9c
- Move test.support to core package (rhbz#596258)
036b9c
- Add various missing __pycache__ directories to payload
036b9c
036b9c
* Sun Aug 22 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2-0.2.a1
036b9c
- Add __pycache__ directory for site-packages
036b9c
036b9c
* Sun Aug 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 3.2-0.1.a1
036b9c
- on 64bit "stdlib" was still "/usr/lib/python*" (modify *lib64.patch)
036b9c
- make find-provides-without-python-sonames.sh 64bit aware
036b9c
036b9c
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
036b9c
- 3.2a1; add alphatag
036b9c
- rework %%files in the light of PEP 3147 (__pycache__)
036b9c
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
036b9c
better job of things, and the %%files explicitly lists our modules (r82746
036b9c
appears to break the old way of doing things).  This leads to various modules
036b9c
changing from "foomodule.so" to "foo.so".  It also leads to the optimized build
036b9c
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
036b9c
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
036b9c
testing/devel purposes)
036b9c
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
036b9c
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
036b9c
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
036b9c
- add machinery for rebuilding "configure" and friends, using the correct
036b9c
version of autoconf (patch 300)
036b9c
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
036b9c
- "modulator" was removed upstream
036b9c
- drop "-b" from patch applications affecting .py files to avoid littering the
036b9c
installation tree
036b9c
036b9c
* Thu Aug 19 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-13
036b9c
- Turn on computed-gotos.
036b9c
- Fix for parallel make and graminit.c
036b9c
036b9c
* Fri Jul  2 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-12
036b9c
- rebuild
036b9c
036b9c
* Fri Jul  2 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-11
036b9c
- Fix an incompatibility between pyexpat and the system expat-2.0.1 that led to
036b9c
a segfault running test_pyexpat.py (patch 110; upstream issue 9054; rhbz#610312)
036b9c
036b9c
* Fri Jun  4 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-10
036b9c
- ensure that the compiler is invoked with "-fwrapv" (rhbz#594819)
036b9c
- reformat whitespace in audioop.c (patch 106)
036b9c
- CVE-2010-1634: fix various integer overflow checks in the audioop
036b9c
module (patch 107)
036b9c
- CVE-2010-2089: further checks within the audioop module (patch 108)
036b9c
- CVE-2008-5983: the new PySys_SetArgvEx entry point from r81399 (patch 109)
036b9c
036b9c
* Thu May 27 2010 Dan Horák <dan[at]danny.cz> - 3.1.2-9
036b9c
- reading the timestamp counter is available only on some arches (see Python/ceval.c)
036b9c
036b9c
* Wed May 26 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-8
036b9c
- add flags for statvfs.f_flag to the constant list in posixmodule (i.e. "os")
036b9c
(patch 105)
036b9c
036b9c
* Tue May 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-7
036b9c
- add configure-time support for COUNT_ALLOCS and CALL_PROFILE debug options
036b9c
(patch 104); enable them and the WITH_TSC option within the debug build
036b9c
036b9c
* Mon May 24 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-6
036b9c
- build and install two different configurations of Python 3: debug and
036b9c
standard, packaging the debug build in a new "python3-debug" subpackage
036b9c
(patch 103)
036b9c
036b9c
* Tue Apr 13 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-5
036b9c
- exclude test_http_cookies when running selftests, due to hang seen on
036b9c
http://koji.fedoraproject.org/koji/taskinfo?taskID=2088463 (cancelled after
036b9c
11 hours)
036b9c
- update python-gdb.py from v5 to py3k version submitted upstream
036b9c
036b9c
* Wed Mar 31 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-4
036b9c
- update python-gdb.py from v4 to v5 (improving performance and stability,
036b9c
adding commands)
036b9c
036b9c
* Thu Mar 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-3
036b9c
- update python-gdb.py from v3 to v4 (fixing infinite recursion on reference
036b9c
cycles and tracebacks on bytes 0x80-0xff in strings, adding handlers for sets
036b9c
and exceptions)
036b9c
036b9c
* Wed Mar 24 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-2
036b9c
- refresh gdb hooks to v3 (reworking how they are packaged)
036b9c
036b9c
* Sun Mar 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-1
036b9c
- update to 3.1.2: http://www.python.org/download/releases/3.1.2/
036b9c
- drop upstreamed patch 2 (.pyc permissions handling)
036b9c
- drop upstream patch 5 (fix for the test_tk and test_ttk_* selftests)
036b9c
- drop upstreamed patch 200 (path-fixing script)
036b9c
036b9c
* Sat Mar 20 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-28
036b9c
- fix typo in libpython.stp (rhbz:575336)
036b9c
036b9c
* Fri Mar 12 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-27
036b9c
- add pyfuntop.stp example (source 7)
036b9c
- convert usage of $$RPM_BUILD_ROOT to %%{buildroot} throughout, for
036b9c
consistency with python.spec
036b9c
036b9c
* Mon Feb 15 2010 Thomas Spura <tomspur@fedoraproject.org> - 3.1.1-26
036b9c
- rebuild for new package of redhat-rpm-config (rhbz:564527)
036b9c
- use 'install -p' when running 'make install'
036b9c
036b9c
* Fri Feb 12 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-25
036b9c
- split configure options into multiple lines for easy of editing
036b9c
- add systemtap static markers (wcohen, mjw, dmalcolm; patch 8), a systemtap
036b9c
tapset defining "python.function.entry" and "python.function.return" to make
036b9c
the markers easy to use (dmalcolm; source 5), and an example of using the
036b9c
tapset to the docs (dmalcolm; source 6) (rhbz:545179)
036b9c
036b9c
* Mon Feb  8 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-24
036b9c
- move the -gdb.py file from %%{_libdir}/INSTSONAME-gdb.py to
036b9c
%%{_prefix}/lib/debug/%%{_libdir}/INSTSONAME.debug-gdb.py to avoid noise from
036b9c
ldconfig (bug 562980), and which should also ensure it becomes part of the
036b9c
debuginfo subpackage, rather than the libs subpackage
036b9c
- introduce %%{py_SOVERSION} and %%{py_INSTSONAME} to reflect the upstream
036b9c
configure script, and to avoid fragile scripts that try to figure this out
036b9c
dynamically (e.g. for the -gdb.py change)
036b9c
036b9c
* Mon Feb  8 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-23
036b9c
- add gdb hooks for easier debugging (Source 4)
036b9c
036b9c
* Thu Jan 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-22
036b9c
- update python-3.1.1-config.patch to remove downstream customization of build
036b9c
of pyexpat and elementtree modules
036b9c
- add patch adapted from upstream (patch 7) to add support for building against
036b9c
system expat; add --with-system-expat to "configure" invocation
036b9c
- remove embedded copies of expat and zlib from source tree during "prep"
036b9c
036b9c
* Mon Jan 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-21
036b9c
- introduce %%{dynload_dir} macro
036b9c
- explicitly list all lib-dynload files, rather than dynamically gathering the
036b9c
payload into a temporary text file, so that we can be sure what we are
036b9c
shipping
036b9c
- introduce a macros.pybytecompile source file, to help with packaging python3
036b9c
modules (Source3; written by Toshio)
036b9c
- rename "2to3-3" to "python3-2to3" to better reflect python 3 module packaging
036b9c
plans
036b9c
036b9c
* Mon Jan 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-20
036b9c
- change python-3.1.1-config.patch to remove our downstream change to curses
036b9c
configuration in Modules/Setup.dist, so that the curses modules are built using
036b9c
setup.py with the downstream default (linking against libncursesw.so, rather
036b9c
than libncurses.so), rather than within the Makefile; add a test to %%install
036b9c
to verify the dso files that the curses module is linked against the correct
036b9c
DSO (bug 539917; changes _cursesmodule.so -> _curses.so)
036b9c
036b9c
* Fri Jan 22 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-19
036b9c
- add %%py3dir macro to macros.python3 (to be used during unified python 2/3
036b9c
builds for setting up the python3 copy of the source tree)
036b9c
036b9c
* Wed Jan 20 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-18
036b9c
- move lib2to3 from -tools subpackage to main package (bug 556667)
036b9c
036b9c
* Sun Jan 17 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-17
036b9c
- patch Makefile.pre.in to avoid building static library (patch 6, bug 556092)
036b9c
036b9c
* Fri Jan 15 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-16
036b9c
- use the %%{_isa} macro to ensure that the python-devel dependency on python
036b9c
is for the correct multilib arch (#555943)
036b9c
- delete bundled copy of libffi to make sure we use the system one
036b9c
036b9c
* Fri Jan 15 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-15
036b9c
- fix the URLs output by pydoc so they point at python.org's 3.1 build of the
036b9c
docs, rather than the 2.6 build
036b9c
036b9c
* Wed Jan 13 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-14
036b9c
- replace references to /usr with %%{_prefix}; replace references to
036b9c
/usr/include with %%{_includedir} (Toshio)
036b9c
036b9c
* Mon Jan 11 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-13
036b9c
- fix permission on find-provides-without-python-sonames.sh from 775 to 755
036b9c
036b9c
* Mon Jan 11 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-12
036b9c
- remove build-time requirements on tix and tk, since we already have
036b9c
build-time requirements on the -devel subpackages for each of these (Thomas
036b9c
Spura)
036b9c
- replace usage of %%define with %%global (Thomas Spura)
036b9c
- remove forcing of CC=gcc as this old workaround for bug 109268 appears to
036b9c
longer be necessary
036b9c
- move various test files from the "tools"/"tkinter" subpackages to the "test"
036b9c
subpackage
036b9c
036b9c
* Thu Jan  7 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-11
036b9c
- add %%check section (thanks to Thomas Spura)
036b9c
- update patch 4 to use correct shebang line
036b9c
- get rid of stray patch file from buildroot
036b9c
036b9c
* Tue Nov 17 2009 Andrew McNabb <amcnabb@mcnabbs.org> - 3.1.1-10
036b9c
- switched a few instances of "find |xargs" to "find -exec" for consistency.
036b9c
- made the description of __os_install_post more accurate.
036b9c
036b9c
* Wed Nov  4 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-9
036b9c
- add macros.python3 to the -devel subpackage, containing common macros for use
036b9c
when packaging python3 modules
036b9c
036b9c
* Tue Nov  3 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-8
036b9c
- add a provides of "python(abi)" (see bug 532118)
036b9c
- fix issues identified by a.badger in package review (bug 526126, comment 39):
036b9c
  - use "3" thoughout metadata, rather than "3.*"
036b9c
  - remove conditional around "pkg-config openssl"
036b9c
  - use standard cleanup of RPM_BUILD_ROOT
036b9c
  - replace hardcoded references to /usr with _prefix macro
036b9c
  - stop removing egg-info files
036b9c
  - use /usr/bin/python3.1 rather than /use/bin/env python3.1 when fixing
036b9c
up shebang lines
036b9c
  - stop attempting to remove no-longer-present .cvsignore files
036b9c
  - move the post/postun sections above the "files" sections
036b9c
036b9c
* Thu Oct 29 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-7
036b9c
- remove commented-away patch 51 (python-2.6-distutils_rpm.patch): the -O1
036b9c
flag is used by default in the upstream code
036b9c
- "Makefile" and the config-32/64.h file are needed by distutils/sysconfig.py
036b9c
_init_posix(), so we include them in the core package, along with their parent
036b9c
directories (bug 531901)
036b9c
036b9c
* Tue Oct 27 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-6
036b9c
- reword description, based on suggestion by amcnabb
036b9c
- fix the test_email and test_imp selftests (patch 3 and patch 4 respectively)
036b9c
- fix the test_tk and test_ttk_* selftests (patch 5)
036b9c
- fix up the specfile's handling of shebang/perms to avoid corrupting
036b9c
test_httpservers.py (sed command suggested by amcnabb)
036b9c
036b9c
* Thu Oct 22 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-5
036b9c
- fixup importlib/_bootstrap.py so that it correctly handles being unable to
036b9c
open .pyc files for writing (patch 2, upstream issue 7187)
036b9c
- actually apply the rpath patch (patch 1)
036b9c
036b9c
* Thu Oct 22 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-4
036b9c
- update patch0's setup of the crypt module to link it against libcrypt
036b9c
- update patch0 to comment "datetimemodule" back out, so that it is built
036b9c
using setup.py (see Setup, option 3), thus linking it statically against
036b9c
timemodule.c and thus avoiding a run-time "undefined symbol:
036b9c
_PyTime_DoubleToTimet" failure on "import datetime"
036b9c
036b9c
* Wed Oct 21 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-3
036b9c
- remove executable flag from various files that shouldn't have it
036b9c
- fix end-of-line encodings
036b9c
- fix a character encoding
036b9c
036b9c
* Tue Oct 20 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-2
036b9c
- disable invocation of brp-python-bytecompile in postprocessing, since
036b9c
it would be with the wrong version of python (adapted from ivazquez'
036b9c
python3000 specfile)
036b9c
- use a custom implementation of __find_provides in order to filter out bogus
036b9c
provides lines for the various .so modules
036b9c
- fixup distutils/unixccompiler.py to remove standard library path from rpath
036b9c
(patch 1, was Patch0 in ivazquez' python3000 specfile)
036b9c
- split out libraries into a -libs subpackage
036b9c
- update summaries and descriptions, basing content on ivazquez' specfile
036b9c
- fixup executable permissions on .py, .xpm and .xbm files, based on work in
036b9c
ivazquez's specfile
036b9c
- get rid of DOS batch files
036b9c
- fixup permissions for shared libraries from non-standard 555 to standard 755
036b9c
- move /usr/bin/python*-config to the -devel subpackage
036b9c
- mark various directories as being documentation
036b9c
036b9c
* Thu Sep 24 2009 Andrew McNabb <amcnabb@mcnabbs.org> 3.1.1-1
036b9c
- Initial package for Python 3.
036b9c