Blame SPECS/python38.spec

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