c769a6b
# ======================================================
c769a6b
# Conditionals and other variables controlling the build
c769a6b
# ======================================================
c769a6b
Matej Stuchlik 95668bd
# NOTES ON BOOTSTRAPING PYTHON 3.4:
Matej Stuchlik 95668bd
#
Matej Stuchlik 95668bd
# Due to dependency cycle between Python, pip, setuptools and
Matej Stuchlik 95668bd
# wheel caused by the rewheel patch, one has to build in the
Matej Stuchlik 95668bd
# following order:
Matej Stuchlik 95668bd
#
Matej Stuchlik 95668bd
# 1) python3 with with_rewheel set to 0
Matej Stuchlik 95668bd
# 2) python3-setuptools and python3-pip with with_rewheel set to 0
Matej Stuchlik 95668bd
# 3) python3-wheel
Matej Stuchlik 95668bd
# 4) python3-setuptools and python3-pip with with_rewheel set to 1
Matej Stuchlik 95668bd
# 5) python3 with with_rewheel set to 1
Matej Stuchlik 95668bd
Matej Stuchlik 86b7a9d
%global with_rewheel 1
Matej Stuchlik 11fb599
f5250ec
%global pybasever 3.4
5080ffc
5080ffc
# pybasever without the dot:
f5250ec
%global pyshortver 34
5080ffc
a3483f9
%global pylibdir %{_libdir}/python%{pybasever}
4aab458
%global dynload_dir %{pylibdir}/lib-dynload
a3483f9
5080ffc
# SOABI is defined in the upstream configure.in from Python-3.2a2 onwards,
5080ffc
# for PEP 3149:
5080ffc
#   http://www.python.org/dev/peps/pep-3149/
5080ffc
1c94c1a
# ("configure.in" became "configure.ac" in Python 3.3 onwards, and in
1c94c1a
# backports)
1c94c1a
5080ffc
# ABIFLAGS, LDVERSION and SOABI are in the upstream Makefile
1c94c1a
# With Python 3.3, we lose the "u" suffix due to PEP 393
1c94c1a
%global ABIFLAGS_optimized m
1c94c1a
%global ABIFLAGS_debug     dm
5080ffc
5080ffc
%global LDVERSION_optimized %{pybasever}%{ABIFLAGS_optimized}
5080ffc
%global LDVERSION_debug     %{pybasever}%{ABIFLAGS_debug}
5080ffc
5080ffc
%global SOABI_optimized cpython-%{pyshortver}%{ABIFLAGS_optimized}
5080ffc
%global SOABI_debug     cpython-%{pyshortver}%{ABIFLAGS_debug}
5080ffc
7eb10c8
# All bytecode files are now in a __pycache__ subdirectory, with a name
7eb10c8
# reflecting the version of the bytecode (to permit sharing of python libraries
7eb10c8
# between different runtimes)
7eb10c8
# See http://www.python.org/dev/peps/pep-3147/
7eb10c8
# For example,
7eb10c8
#   foo/bar.py
7eb10c8
# now has bytecode at:
f5250ec
#   foo/__pycache__/bar.cpython-34.pyc
f5250ec
#   foo/__pycache__/bar.cpython-34.pyo
f5250ec
%global bytecode_suffixes .cpython-34.py?
7eb10c8
d5a5bf3
# Python's configure script defines SOVERSION, and this is used in the Makefile
d5a5bf3
# to determine INSTSONAME, the name of the libpython DSO:
d5a5bf3
#   LDLIBRARY='libpython$(VERSION).so'
d5a5bf3
#   INSTSONAME="$LDLIBRARY".$SOVERSION
d5a5bf3
# We mirror this here in order to make it easier to add the -gdb.py hooks.
d5a5bf3
# (if these get out of sync, the payload of the libs subpackage will fail
d5a5bf3
# and halt the build)
d5a5bf3
%global py_SOVERSION 1.0
5080ffc
%global py_INSTSONAME_optimized libpython%{LDVERSION_optimized}.so.%{py_SOVERSION}
5080ffc
%global py_INSTSONAME_debug     libpython%{LDVERSION_debug}.so.%{py_SOVERSION}
d5a5bf3
815994f
%global with_debug_build 1
815994f
b2154fa
%global with_gdb_hooks 1
b2154fa
c969609
%global with_systemtap 1
c969609
31a06df
# some arches don't have valgrind so we need to disable its support on them
70025c7
%ifnarch s390
31a06df
%global with_valgrind 1
31a06df
%else
31a06df
%global with_valgrind 0
31a06df
%endif
31a06df
9b8d221
%global with_gdbm 1
5fe31d8
91b7804
# Change from yes to no to turn this off
91b7804
%global with_computed_gotos yes
91b7804
a5cef79
# Turn this to 0 to turn off the "check" phase:
a5cef79
%global run_selftest_suite 1
a5cef79
a3483f9
# We want to byte-compile the .py files within the packages using the new
a3483f9
# python3 binary.
a3483f9
# 
a3483f9
# Unfortunately, rpmbuild's infrastructure requires us to jump through some
a3483f9
# hoops to avoid byte-compiling with the system python 2 version:
a3483f9
#   /usr/lib/rpm/redhat/macros sets up build policy that (amongst other things)
a3483f9
# defines __os_install_post.  In particular, "brp-python-bytecompile" is
a3483f9
# invoked without an argument thus using the wrong version of python
a3483f9
# (/usr/bin/python, rather than the freshly built python), thus leading to
a3483f9
# numerous syntax errors, and incorrect magic numbers in the .pyc files.  We
a3483f9
# thus override __os_install_post to avoid invoking this script:
Matej Stuchlik 516eb7a
%global __os_install_post /usr/lib/rpm/brp-compress \
Matej Stuchlik 516eb7a
  %{!?__debug_package:/usr/lib/rpm/brp-strip %{__strip}} \
Matej Stuchlik 516eb7a
  /usr/lib/rpm/brp-strip-static-archive %{__strip} \
Matej Stuchlik 516eb7a
  /usr/lib/rpm/brp-strip-comment-note %{__strip} %{__objdump} \
Matej Stuchlik 516eb7a
  /usr/lib/rpm/brp-python-hardlink 
a3483f9
# to remove the invocation of brp-python-bytecompile, whilst keeping the
a3483f9
# invocation of brp-python-hardlink (since this should still work for python3
a3483f9
# pyc/pyo files)
a3483f9
7eb10c8
7eb10c8
# We need to get a newer configure generated out of configure.in for the following
7eb10c8
# patches:
7eb10c8
#   patch 55 (systemtap)
c923b51
#   patch 113 (more config flags)
7eb10c8
#
7eb10c8
# For patch 55 (systemtap), we need to get a new header for configure to use
7eb10c8
#
7eb10c8
# configure.in requires autoconf-2.65, but the version in Fedora is currently
7eb10c8
# autoconf-2.66
7eb10c8
#
7eb10c8
# For now, we'll generate a patch to the generated configure script and
7eb10c8
# pyconfig.h.in on a machine that has a local copy of autoconf 2.65
7eb10c8
#
7eb10c8
# Instructions on obtaining such a copy can be seen at
7eb10c8
#   http://bugs.python.org/issue7997
7eb10c8
#
7eb10c8
# To make it easy to regenerate the patch, this specfile can be run in two
7eb10c8
# ways:
7eb10c8
# (i) regenerate_autotooling_patch  0 : the normal approach: prep the
7eb10c8
# source tree using a pre-generated patch to the "configure" script, and do a
7eb10c8
# full build
7eb10c8
# (ii) regenerate_autotooling_patch 1 : intended to be run on a developer's
7eb10c8
# workstation: prep the source tree without patching configure, then rerun a
7eb10c8
# local copy of autoconf-2.65, regenerate the patch, then exit, without doing
7eb10c8
# the rest of the build
7eb10c8
%global regenerate_autotooling_patch 0
7eb10c8
7eb10c8
c769a6b
# ==================
c769a6b
# Top-level metadata
c769a6b
# ==================
a3483f9
Summary: Version 3 of the Python programming language aka Python 3000
a3483f9
Name: python3
Matej Stuchlik a8e96a1
Version: %{pybasever}.2
35bab9e
Release: 8%{?dist}
a3483f9
License: Python
a3483f9
Group: Development/Languages
c769a6b
c769a6b
c769a6b
# =======================
c769a6b
# Build-time requirements
c769a6b
# =======================
c769a6b
c769a6b
# (keep this list alphabetized)
c769a6b
c769a6b
BuildRequires: autoconf
81ac8c8
BuildRequires: bluez-libs-devel
c769a6b
BuildRequires: bzip2
c769a6b
BuildRequires: bzip2-devel
c769a6b
BuildRequires: db4-devel >= 4.7
5974f19
5974f19
# expat 2.1.0 added the symbol XML_SetHashSalt without bumping SONAME.  We use
5974f19
# it (in pyexpat) in order to enable the fix in Python-3.2.3 for CVE-2012-0876:
5974f19
BuildRequires: expat-devel >= 2.1.0
5974f19
c769a6b
BuildRequires: findutils
c769a6b
BuildRequires: gcc-c++
5fe31d8
%if %{with_gdbm}
c769a6b
BuildRequires: gdbm-devel
5fe31d8
%endif
c769a6b
BuildRequires: glibc-devel
c769a6b
BuildRequires: gmp-devel
c769a6b
BuildRequires: libffi-devel
c769a6b
BuildRequires: libGL-devel
c769a6b
BuildRequires: libX11-devel
c769a6b
BuildRequires: ncurses-devel
de14a01
# workaround http://bugs.python.org/issue19804 (test_uuid requires ifconfig)
de14a01
BuildRequires: net-tools
c769a6b
BuildRequires: openssl-devel
c769a6b
BuildRequires: pkgconfig
c769a6b
BuildRequires: readline-devel
c769a6b
BuildRequires: sqlite-devel
c769a6b
c769a6b
%if 0%{?with_systemtap}
c769a6b
BuildRequires: systemtap-sdt-devel
c769a6b
# (this introduces a dependency on "python", in that systemtap-sdt-devel's
c769a6b
# /usr/bin/dtrace is a python 2 script)
c769a6b
%global tapsetdir      /usr/share/systemtap/tapset
c769a6b
%endif # with_systemtap
c769a6b
c769a6b
BuildRequires: tar
c769a6b
BuildRequires: tcl-devel
c769a6b
BuildRequires: tix-devel
c769a6b
BuildRequires: tk-devel
c769a6b
c769a6b
%if 0%{?with_valgrind}
c769a6b
BuildRequires: valgrind-devel
c769a6b
%endif
c769a6b
f2b86e2
BuildRequires: xz-devel
c769a6b
BuildRequires: zlib-devel
c769a6b
Matej Stuchlik 11fb599
%if 0%{?with_rewheel}
Matej Stuchlik 11fb599
BuildRequires: python3-setuptools
Matej Stuchlik 11fb599
BuildRequires: python3-pip
Matej Stuchlik 11fb599
%endif
Matej Stuchlik 11fb599
c769a6b
c769a6b
# =======================
c769a6b
# Source code and patches
c769a6b
# =======================
c769a6b
513a269
Source: http://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz
a3483f9
a3483f9
# Avoid having various bogus auto-generated Provides lines for the various
a3483f9
# python c modules' SONAMEs:
a3483f9
Source1: find-provides-without-python-sonames.sh
a3483f9
%global _use_internal_dependency_generator 0
a3483f9
%global __find_provides %{SOURCE1}
a3483f9
a3483f9
# Supply various useful macros for building python 3 modules:
a3483f9
#  __python3, python3_sitelib, python3_sitearch
a3483f9
Source2: macros.python3
a3483f9
4aab458
# Supply an RPM macro "py_byte_compile" for the python3-devel subpackage
4aab458
# to enable specfiles to selectively byte-compile individual files and paths
4aab458
# with different Python runtimes as necessary:
4aab458
Source3: macros.pybytecompile
4aab458
c969609
# Systemtap tapset to make it easier to use the systemtap static probes
c969609
# (actually a template; LIBRARY_PATH will get fixed up during install)
c969609
# Written by dmalcolm; not yet sent upstream
c969609
Source5: libpython.stp
c969609
c969609
# Example systemtap script using the tapset
c969609
# Written by wcohen, mjw, dmalcolm; not yet sent upstream
c969609
Source6: systemtap-example.stp
c969609
71040c9
# Another example systemtap script that uses the tapset
71040c9
# Written by dmalcolm; not yet sent upstream
71040c9
Source7: pyfuntop.stp
71040c9
3dbbc14
# A simple script to check timestamps of bytecode files
3dbbc14
# Run in check section with Python that is currently being built
3dbbc14
# Written by bkabrda
3dbbc14
Source8: check-pyc-and-pyo-timestamps.py
71040c9
a3483f9
# Fixup distutils/unixccompiler.py to remove standard library path from rpath:
a3483f9
# Was Patch0 in ivazquez' python3000 specfile:
a3483f9
Patch1:         Python-3.1.1-rpath.patch
a3483f9
5023236
# Some tests were removed due to audiotest.au not being packaged. This was
5023236
# however added to the archive in 3.3.1, so we no longer delete the tests.
5023236
#  Patch3: 00003-remove-mimeaudio-tests.patch
a3483f9
6b34963
# 00055 #
c969609
# Systemtap support: add statically-defined probe points
1c94c1a
# Patch sent upstream as http://bugs.python.org/issue14776
62d7207
# with some subsequent reworking to cope with LANG=C in an rpmbuild
62d7207
# (where sys.getfilesystemencoding() == 'ascii')
c923b51
Patch55: 00055-systemtap.patch
c969609
bf35167
Patch102: 00102-lib64.patch
a3483f9
6b34963
# 00104 #
c923b51
# Only used when "%{_lib}" == "lib64"
c923b51
# Another lib64 fix, for distutils/tests/test_install.py; not upstream:
c923b51
Patch104: 00104-lib64-fix-for-test_install.patch
c923b51
6b34963
# 00111 #
c923b51
# Patch the Makefile.pre.in so that the generated Makefile doesn't try to build
c923b51
# a libpythonMAJOR.MINOR.a (bug 550692):
bbb5084
# Downstream only: not appropriate for upstream
c923b51
Patch111: 00111-no-static-lib.patch
c923b51
6b34963
# 00112 #
c923b51
# Patch112: python-2.7rc1-debug-build.patch: this is not relevant to Python 3,
c923b51
# for 3.2 onwards
c923b51
6b34963
# 00113 #
021b2bc
# Add configure-time support for the COUNT_ALLOCS and CALL_PROFILE options
021b2bc
# described at http://svn.python.org/projects/python/trunk/Misc/SpecialBuilds.txt
021b2bc
# so that if they are enabled, they will be in that build's pyconfig.h, so that
021b2bc
# extension modules will reliably use them
bbb5084
# Not yet sent upstream
c923b51
Patch113: 00113-more-configuration-flags.patch
021b2bc
6b34963
# 00114 #
61fd48d
# Upstream as of Python 3.4.0.b2
61fd48d
#  Patch114: 00114-statvfs-f_flag-constants.patch
0c8875f
6b34963
# 00125 #
7eb10c8
# COUNT_ALLOCS is useful for debugging, but the upstream behaviour of always
7eb10c8
# emitting debug info to stdout on exit is too verbose and makes it harder to
7eb10c8
# use the debug build.  Add a "PYTHONDUMPCOUNTS" environment variable which
7eb10c8
# must be set to enable the output on exit
bbb5084
# Not yet sent upstream
c923b51
Patch125: 00125-less-verbose-COUNT_ALLOCS.patch
7eb10c8
6b34963
# 00130 #
c923b51
# Python 2's:
c923b51
#   Patch130: python-2.7.2-add-extension-suffix-to-python-config.patch
c923b51
# is not relevant to Python 3 (for 3.2 onwards)
ceb359a
6b34963
# 00131 #
28391cb
# The four tests in test_io built on top of check_interrupted_write_retry
28391cb
# fail when built in Koji, for ppc and ppc64; for some reason, the SIGALRM
28391cb
# handlers are never called, and the call to write runs to completion
28391cb
# (rhbz#732998)
c923b51
Patch131: 00131-disable-tests-in-test_io.patch
28391cb
6b34963
# 00132 #
0c8875f
# Add non-standard hooks to unittest for use in the "check" phase below, when
0c8875f
# running selftests within the build:
0c8875f
#   @unittest._skipInRpmBuild(reason)
0c8875f
# for tests that hang or fail intermittently within the build environment, and:
0c8875f
#   @unittest._expectedFailureInRpmBuild
0c8875f
# for tests that always fail within the build environment
0c8875f
#
0c8875f
# The hooks only take effect if WITHIN_PYTHON_RPM_BUILD is set in the
0c8875f
# environment, which we set manually in the appropriate portion of the "check"
0c8875f
# phase below (and which potentially other python-* rpms could set, to reuse
0c8875f
# these unittest hooks in their own "check" phases)
0c8875f
Patch132: 00132-add-rpmbuild-hooks-to-unittest.patch
0c8875f
6b34963
# 00133 #
0c8875f
# 00133-skip-test_dl.patch is not relevant for python3: the "dl" module no
0c8875f
# longer exists
0c8875f
6b34963
# 00134 #
0c8875f
# Fix a failure in test_sys.py when configured with COUNT_ALLOCS enabled
0c8875f
# Not yet sent upstream
0c8875f
Patch134: 00134-fix-COUNT_ALLOCS-failure-in-test_sys.patch
0c8875f
6b34963
# 00135 #
0c8875f
# test_weakref's test_callback_in_cycle_resurrection doesn't work with
0c8875f
# COUNT_ALLOCS, as the metrics keep "C" alive.  Work around this for our
0c8875f
# debug build:
0c8875f
# Not yet sent upstream
0c8875f
Patch135: 00135-fix-test-within-test_weakref-in-debug-build.patch
0c8875f
6b34963
# 00136 #
0c8875f
# Patch136: 00136-skip-tests-of-seeking-stdin-in-rpmbuild.patch does not seem
0c8875f
# to be needed by python3
0c8875f
6b34963
# 00137 #
0c8875f
# Some tests within distutils fail when run in an rpmbuild:
0c8875f
Patch137: 00137-skip-distutils-tests-that-fail-in-rpmbuild.patch
0c8875f
6b34963
# 00138 #
0c8875f
# Patch138: 00138-fix-distutils-tests-in-debug-build.patch is not relevant for
0c8875f
# python3
0c8875f
6b34963
# 00139 #
0c8875f
# ARM-specific: skip known failure in test_float:
0c8875f
#  http://bugs.python.org/issue8265 (rhbz#706253)
0c8875f
Patch139: 00139-skip-test_float-known-failure-on-arm.patch
0c8875f
486eb43
# ideally short lived patch disabling a test thats fragile on different arches
486eb43
Patch140: python3-arm-skip-failing-fragile-test.patch
486eb43
0c8875f
# Patch140: 00140-skip-test_ctypes-known-failure-on-sparc.patch does not appear
0c8875f
# to be relevant for python3
0c8875f
6b34963
# 00141 #
db2025e
# Fix tests for case when  tests for case when configured with
db2025e
# COUNT_ALLOCS (debug build): http://bugs.python.org/issue19527
db2025e
# Applies to: test_gc, test_module, test_io, test_logging, test_warnings,
db2025e
#             test_threading
84c534e
Patch141: 00141-fix-tests_with_COUNT_ALLOCS.patch
0c8875f
6b34963
# 00143 #
c923b51
# Fix the --with-tsc option on ppc64, and rework it on 32-bit ppc to avoid
c923b51
# aliasing violations (rhbz#698726)
c923b51
# Sent upstream as http://bugs.python.org/issue12872
c923b51
Patch143: 00143-tsc-on-ppc.patch
c923b51
6b34963
# 00144 #
5fe31d8
# (Optionally) disable the gdbm module:
5fe31d8
# python.spec's
5fe31d8
#   Patch144: 00144-no-gdbm.patch
5fe31d8
# is not needed in python3.spec
5fe31d8
6b34963
# 00145 #
0d5c338
# python.spec's
0d5c338
#   Patch145: 00145-force-sys-platform-to-be-linux2.patch
0d5c338
# is upstream for Python 3 as of 3.2.2
0d5c338
6b34963
# 00146 #
b8f92b4
# Support OpenSSL FIPS mode (e.g. when OPENSSL_FORCE_FIPS_MODE=1 is set)
b8f92b4
# - handle failures from OpenSSL (e.g. on attempts to use MD5 in a
b8f92b4
#   FIPS-enforcing environment)
b8f92b4
# - add a new "usedforsecurity" keyword argument to the various digest
b8f92b4
#   algorithms in hashlib so that you can whitelist a callsite with
b8f92b4
#   "usedforsecurity=False"
b8f92b4
# (sent upstream for python 3 as http://bugs.python.org/issue9216 ; see RHEL6
b8f92b4
# python patch 119)
b8f92b4
# - enforce usage of the _hashlib implementation: don't fall back to the _md5
b8f92b4
#   and _sha* modules (leading to clearer error messages if fips selftests
b8f92b4
#   fail)
b8f92b4
# - don't build the _md5 and _sha* modules; rely on the _hashlib implementation
b8f92b4
#   of hashlib
b8f92b4
# (rhbz#563986)
61fd48d
# Note: Up to Python 3.4.0.b1, upstream had their own implementation of what
61fd48d
# they assumed would become sha3. This patch was adapted to give it the
61fd48d
# usedforsecurity argument, even though it did nothing (OpenSSL didn't have
61fd48d
# sha3 implementation at that time).In 3.4.0.b2, sha3 implementation was reverted
61fd48d
# (see http://bugs.python.org/issue16113), but the alterations were left in the
61fd48d
# patch, since they may be useful again if upstream decides to rerevert sha3
61fd48d
# implementation and OpenSSL still doesn't support it. For now, they're harmless.
b8f92b4
Patch146: 00146-hashlib-fips.patch
b8f92b4
6b34963
# 00147 #
ab415c6
# Add a sys._debugmallocstats() function
c04f314
# Sent upstream as http://bugs.python.org/issue14785
1c94c1a
# Upstream as of Python 3.3.0
1c94c1a
#  Patch147: 00147-add-debug-malloc-stats.patch
ab415c6
6b34963
# 00148 #
2885662
# Upstream as of Python 3.2.3:
2885662
#  Patch148: 00148-gdbm-1.9-magic-values.patch
9b8d221
6b34963
# 00149 #
2885662
# Upstream as of Python 3.2.3:
2885662
#  Patch149: 00149-backport-issue11254-pycache-bytecompilation-fix.patch
e2a3db4
6b34963
# 00150 #
1af1383
# temporarily disable rAssertAlmostEqual in test_cmath on PPC (bz #750811)
1af1383
# caused by a glibc bug. This patch can be removed when we have a glibc with
1af1383
# the patch mentioned here:
1af1383
#   http://sourceware.org/bugzilla/show_bug.cgi?id=13472
1af1383
Patch150: 00150-disable-rAssertAlmostEqual-cmath-on-ppc.patch
1af1383
6b34963
# 00151 #
2885662
# python.spec had:
2885662
#  Patch151: 00151-fork-deadlock.patch
2885662
6b34963
# 00152 #
2885662
# Fix a regex in test_gdb so that it doesn't choke when gdb provides a full
2885662
# path to Python/bltinmodule.c:
62d7207
# Committed upstream as 77824:abcd29c9a791 as part of fix for
62d7207
# http://bugs.python.org/issue12605
62d7207
#  Patch152: 00152-fix-test-gdb-regex.patch
2885662
6b34963
# 00153 #
3170c05
# Strip out lines of the form "warning: Unable to open ..." from gdb's stderr
3170c05
# when running test_gdb.py; also cope with change to gdb in F17 onwards in
3170c05
# which values are printed as "v@entry" rather than just "v":
bbb5084
# Not yet sent upstream
3170c05
Patch153: 00153-fix-test_gdb-noise.patch
2885662
6b34963
# 00154 #
8a28107
# python3.spec on f15 has:
8a28107
#  Patch154: 00154-skip-urllib-test-requiring-working-DNS.patch
8a28107
6b34963
# 00155 #
8a28107
# Avoid allocating thunks in ctypes unless absolutely necessary, to avoid
8a28107
# generating SELinux denials on "import ctypes" and "import uuid" when
8a28107
# embedding Python within httpd (rhbz#814391)
8a28107
Patch155: 00155-avoid-ctypes-thunks.patch
8a28107
6b34963
# 00156 #
938d1d7
# Recent builds of gdb will only auto-load scripts from certain safe
938d1d7
# locations.  Turn off this protection when running test_gdb in the selftest
938d1d7
# suite to ensure that it can load our -gdb.py script (rhbz#817072):
bbb5084
# Not yet sent upstream
938d1d7
Patch156: 00156-gdb-autoload-safepath.patch
938d1d7
7989368
# 00157 #
7989368
# Update uid/gid handling throughout the standard library: uid_t and gid_t are
7989368
# unsigned 32-bit values, but existing code often passed them through C long
7989368
# values, which are signed 32-bit values on 32-bit architectures, leading to
7989368
# negative int objects for uid/gid values >= 2^31 on 32-bit architectures.
7989368
#
7989368
# Introduce _PyObject_FromUid/Gid to convert uid_t/gid_t values to python
7989368
# objects, using int objects where the value will fit (long objects otherwise),
7989368
# and _PyArg_ParseUid/Gid to convert int/long to uid_t/gid_t, with -1 allowed
7989368
# as a special case (since this is given special meaning by the chown syscall)
7989368
#
7989368
# Update standard library to use this throughout for uid/gid values, so that
7989368
# very large uid/gid values are round-trippable, and -1 remains usable.
7989368
# (rhbz#697470)
7989368
Patch157: 00157-uid-gid-overflows.patch
7989368
3b4dd24
# 00158 #
5023236
# Upstream as of Python 3.3.1
823581e
823581e
# 00159 #
823581e
#  Patch159: 00159-correct-libdb-include-path.patch
823581e
# in python.spec
823581e
# TODO: python3 status?
823581e
823581e
# 00160 #
3b4dd24
# Python 3.3 added os.SEEK_DATA and os.SEEK_HOLE, which may be present in the
3b4dd24
# header files in the build chroot, but may not be supported in the running
3b4dd24
# kernel, hence we disable this test in an rpm build.
3b4dd24
# Adding these was upstream issue http://bugs.python.org/issue10142
3b4dd24
# Not yet sent upstream
823581e
Patch160: 00160-disable-test_fs_holes-in-rpm-build.patch
3b4dd24
823581e
# 00161 #
62d7207
# (Was only needed for Python 3.3.0b1)
6616179
08ca53f
# 00162 #
62d7207
# (Was only needed for Python 3.3.0b1)
08ca53f
48d2048
# 00163 #
48d2048
# Some tests within test_socket fail intermittently when run inside Koji;
48d2048
# disable them using unittest._skipInRpmBuild
48d2048
# Not yet sent upstream
48d2048
Patch163: 00163-disable-parts-of-test_socket-in-rpm-build.patch
48d2048
d474ecc
# 0164 #
d474ecc
# some tests in test._io interrupted_write-* fail on PPC (rhbz#846849)
d474ecc
# testChainingDescriptors  test in test_exceptions fails on PPc, too (rhbz#846849)
d474ecc
# disable those tests so that rebuilds on PPC can continue
d474ecc
Patch164: 00164-disable-interrupted_write-tests-on-ppc.patch
d474ecc
260ceea
# 00165 #
260ceea
# python.spec has:
260ceea
#   Patch165: 00165-crypt-module-salt-backport.patch
260ceea
# which is a backport from 3.3 and thus not relevant to "python3"
260ceea
260ceea
# 00166 #
260ceea
#  Patch166: 00166-fix-fake-repr-in-gdb-hooks.patch
260ceea
# in python.spec
260ceea
# TODO: python3 status?
260ceea
260ceea
# 00167 #
260ceea
#  Patch167: 00167-disable-stack-navigation-tests-when-optimized-in-test_gdb.patch
260ceea
# in python.spec
260ceea
# TODO: python3 status?
260ceea
260ceea
# 00168 #
260ceea
#  Patch168: 00168-distutils-cflags.patch
260ceea
# in python.spec
260ceea
# TODO: python3 status?
260ceea
260ceea
# 00169 #
260ceea
#  Patch169: 00169-avoid-implicit-usage-of-md5-in-multiprocessing.patch
260ceea
# in python.spec
260ceea
# TODO: python3 status?
260ceea
Robert Kuska 86a9a20
# 00170 #                                                                                           
Robert Kuska 86a9a20
# In debug builds, try to print repr() when a C-level assert fails in the                           
Robert Kuska 86a9a20
# garbage collector (typically indicating a reference-counting error                                
Robert Kuska 86a9a20
# somewhere else e.g in an extension module)                                                        
Robert Kuska 86a9a20
# Backported to 2.7 from a patch I sent upstream for py3k                                           
Robert Kuska 86a9a20
#   http://bugs.python.org/issue9263  (rhbz#614680)                                                 
Robert Kuska 86a9a20
# hiding the proposed new macros/functions within gcmodule.c to avoid exposing                      
Robert Kuska 86a9a20
# them within the extension API.                                                                    
Robert Kuska 86a9a20
# (rhbz#850013
Robert Kuska 86a9a20
Patch170: 00170-gc-assertions.patch
260ceea
260ceea
# 00171 #
5023236
# python.spec had:
260ceea
#  Patch171: 00171-raise-correct-exception-when-dev-urandom-is-missing.patch
260ceea
# TODO: python3 status?
260ceea
260ceea
# 00172 #
5023236
# python.spec had:
260ceea
#  Patch172: 00172-use-poll-for-multiprocessing-socket-connection.patch
260ceea
# TODO: python3 status?
260ceea
260ceea
# 00173 #
260ceea
# Workaround for ENOPROTOOPT seen in Koji withi test.support.bind_port()
260ceea
# (rhbz#913732)
260ceea
Patch173: 00173-workaround-ENOPROTOOPT-in-bind_port.patch
260ceea
ff7dfb6
# 00174 #
ff7dfb6
#  Patch174: 00174-fix-for-usr-move.patch
ff7dfb6
# TODO: python3 status?
ff7dfb6
ff7dfb6
# 00175 #
a60a842
# Upstream as of Python 3.3.2
a60a842
#  Patch175: 00175-fix-configure-Wformat.patch
ff7dfb6
ff7dfb6
# 00176 #
5023236
# Fixed upstream as of Python 3.3.1
5023236
#  Patch176: 00176-upstream-issue16754-so-extension.patch
7c28d2c
ff7dfb6
# 00177 #
61fd48d
# Fixed upstream as of Python 3.4.0.b2
61fd48d
#  Patch177: 00177-platform-unicode.patch
ff7dfb6
5023236
# 00178 #
5023236
# Don't duplicate various FLAGS in sysconfig values
5023236
# http://bugs.python.org/issue17679
5023236
# Does not affect python2 AFAICS (different sysconfig values initialization)
5023236
Patch178: 00178-dont-duplicate-flags-in-sysconfig.patch
e721470
b935d25
# 00179 #
b935d25
# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=951802
b935d25
# Reported upstream in http://bugs.python.org/issue17737
b935d25
# This patch basically looks at every frame and if it is somehow corrupted,
b935d25
# it just stops printing the traceback - it doesn't fix the actual bug.
b935d25
# This bug seems to only affect ARM.
b935d25
# Doesn't seem to affect Python 2 AFAICS.
b935d25
Patch179: 00179-dont-raise-error-on-gdb-corrupted-frames-in-backtrace.patch
b935d25
f9db6e6
# 00180 #
f9db6e6
# Enable building on ppc64p7
f9db6e6
# Not appropriate for upstream, Fedora-specific naming
f9db6e6
Patch180: 00180-python-add-support-for-ppc64p7.patch
f9db6e6
9d658b4
# 00181 #
a60a842
# python.spec has
a60a842
#  Patch181: 00181-allow-arbitrary-timeout-in-condition-wait.patch
a60a842
# Does not affect python3
a60a842
22e1cc9
# 00182 #
d4ea6cd
# Fixed upstream as of Python 3.3.2
d4ea6cd
#  Patch182: 00182-fix-test_gdb-test_threads.patch
a60a842
22e1cc9
# 00183 #
f5250ec
# Fixed upstream as of Python 3.4.0a4
f5250ec
#  Patch183: 00183-cve-2013-2099-fix-ssl-match_hostname-dos.patch
22e1cc9
001a277
# 00184 #
001a277
# Fix for https://bugzilla.redhat.com/show_bug.cgi?id=979696
001a277
# Fixes build of ctypes against libffi with multilib wrapper
001a277
# Python recognizes ffi.h only if it contains "#define LIBFFI_H",
001a277
# but the wrapper doesn't contain that, which makes the build fail
001a277
# We patch this by also accepting "#define ffi_wrapper_h"
001a277
Patch184: 00184-ctypes-should-build-with-libffi-multilib-wrapper.patch
001a277
Matej Stuchlik 8aaa11c
# 00185 #
f5250ec
# Fixed upstream as of Python 3.4.0a4
f5250ec
#  Patch185: 00185-CVE-2013-4238-hostname-check-bypass-in-SSL-module.patch
9d658b4
3dbbc14
# 00186 #
3dbbc14
# Fix for https://bugzilla.redhat.com/show_bug.cgi?id=1023607
f5250ec
# Previously, this fixed a problem where some *.py files were not being
f5250ec
# bytecompiled properly during build. This was result of py_compile.compile
f5250ec
# raising exception when trying to convert test file with bad encoding, and
f5250ec
# thus not continuing bytecompilation for other files.
f5250ec
# This was fixed upstream, but the test hasn't been merged yet, so we keep it
3dbbc14
Patch186: 00186-dont-raise-from-py_compile.patch
3dbbc14
Matej Stuchlik 54afb02
# 00187 #
bf35167
# Fixed upstream as of Python 3.4.0b1
bf35167
#  Patch187: 00187-remove-pthread-atfork.patch
f5250ec
0153564
# 00188 #
0153564
# Downstream only patch that should be removed when we compile all guaranteed
0153564
# hashlib algorithms properly. The problem is this:
0153564
# - during tests, test_hashlib is imported and executed before test_lib2to3
0153564
# - if at least one hash function has failed, trying to import it triggers an
0153564
#   exception that is being caught and exception is logged:
0153564
#   http://hg.python.org/cpython/file/2de806c8b070/Lib/hashlib.py#l217
0153564
# - logging the exception makes logging module run basicConfig
0153564
# - when lib2to3 tests are run again, lib2to3 runs basicConfig again, which
0153564
#   doesn't do anything, because it was run previously
0153564
#   (logging.root.handlers != []), which means that the default setup
0153564
#   (most importantly logging level) is not overriden. That means that a test
0153564
#   relying on this will fail (test_filename_changing_on_output_single_dir)
0153564
Patch188: 00188-fix-lib2to3-tests-when-hashlib-doesnt-compile-properly.patch
0153564
Matej Stuchlik 11fb599
# 00189 #
Matej Stuchlik 11fb599
#
Matej Stuchlik 11fb599
# Add the rewheel module, allowing to recreate wheels from already installed
Matej Stuchlik 11fb599
# ones
Matej Stuchlik 11fb599
# https://github.com/bkabrda/rewheel
Matej Stuchlik 11fb599
%if 0%{with_rewheel}
Matej Stuchlik 11fb599
Patch189: 00189-add-rewheel-module.patch
Matej Stuchlik 11fb599
%endif
486eb43
Matej Stuchlik 11fb599
# 00190 #
c8f16f3
#
Matej Stuchlik 11fb599
# Fix tests with SQLite >= 3.8.4
Matej Stuchlik 11fb599
# http://bugs.python.org/issue20901
Matej Stuchlik 11fb599
# http://hg.python.org/cpython/rev/4d626a9df062
Matej Stuchlik e602f7a
# FIXED UPSTREAM
Matej Stuchlik e602f7a
# Patch190: 00190-fix-tests-with-sqlite-3.8.4.patch
c8f16f3
bdf58d6
# 00193
bdf58d6
#
bdf58d6
# Skip correct number of *.pyc file bytes in ModuleFinder.load_module
bdf58d6
# rhbz#1060338
bdf58d6
# http://bugs.python.org/issue20778
Matej Stuchlik e602f7a
# FIXED UPSTREAM
Matej Stuchlik e602f7a
# Patch193: 00193-skip-correct-num-of-pycfile-bytes-in-modulefinder.patch
486eb43
Matej Stuchlik 7d579ea
# Tests requiring SIGHUP to work don't work in Koji
Matej Stuchlik 7d579ea
# see rhbz#1088233
Matej Stuchlik 7d579ea
Patch194: temporarily-disable-tests-requiring-SIGHUP.patch
Matej Stuchlik 7d579ea
Matej Stuchlik 0624726
# 00195
Matej Stuchlik 0624726
#
Matej Stuchlik 0624726
# Don't declare Werror=declaration-after-statement for extension
Matej Stuchlik 0624726
# modules through setup.py
Matej Stuchlik 0624726
# http://bugs.python.org/issue21121
Matej Stuchlik a8e96a1
# FIXED UPSTREAM
Matej Stuchlik a8e96a1
# Patch195: 00195-dont-add-Werror-declaration-after-statement.patch
Matej Stuchlik 0624726
Matej Stuchlik da57024
# 00196
Matej Stuchlik da57024
#
Matej Stuchlik da57024
#  Fix test_gdb failure on ppc64le
Matej Stuchlik da57024
Patch196: 00196-test-gdb-match-addr-before-builtin.patch
bdf58d6
e0539fb
# 00197
e0539fb
#
e0539fb
# The CGIHTTPServer Python module did not properly handle URL-encoded
e0539fb
# path separators in URLs. This may have enabled attackers to disclose a CGI
e0539fb
# script's source code or execute arbitrary scripts in the server's
e0539fb
# document root.
Matej Stuchlik a8e96a1
# FIXED UPSTREAM
Matej Stuchlik a8e96a1
# Patch197: 00197-fix-CVE-2014-4650.patch
e0539fb
Robert Kuska 6afc2ff
# OpenSSL disabled SSLv3 in SSLv23 method
Robert Kuska 6afc2ff
# This patch alters python tests to reflect this change
Robert Kuska 6afc2ff
# Issue: http://bugs.python.org/issue22638 Upstream discussion about SSLv3 in Python
Robert Kuska 6afc2ff
Patch199: 00199-alter-tests-to-reflect-sslv3-disabled.patch
Robert Kuska 6afc2ff
Robert Kuska 86a9a20
# 00200 #                                                                                           
Robert Kuska 86a9a20
# Fix for gettext plural form headers (lines that begin with "#")                                   
Robert Kuska 86a9a20
# Note: Backported from scl
Robert Kuska 86a9a20
Patch200: 00200-gettext-plural-fix.patch
Robert Kuska 86a9a20
Robert Kuska 86a9a20
# 00201 #                                                                                           
Robert Kuska 86a9a20
# Fixes memory leak in gdbm module (rhbz#977308)                                                    
Robert Kuska 86a9a20
# This was upstreamed as a part of bigger patch, but for our purposes                               
Robert Kuska 86a9a20
# this is ok: http://bugs.python.org/issue18404                                                     
Robert Kuska 86a9a20
# Note: Backported from scl
Robert Kuska 86a9a20
Patch201: 00201-fix-memory-leak-in-gdbm.patch 
Robert Kuska 86a9a20
Matej Stuchlik db8996c
# 00202 #
Matej Stuchlik db8996c
# Fixes undefined behaviour in faulthandler which caused test to hang on x86_64
Matej Stuchlik db8996c
# http://bugs.python.org/issue23433
Matej Stuchlik db8996c
Patch202: 00202-fix-undefined-behaviour-in-faulthandler.patch
Matej Stuchlik db8996c
Matej Stuchlik db8996c
# openssl requires DH keys to be > 768bits
Matej Stuchlik db8996c
Patch204: 00204-increase-dh-keys-size.patch
c8f16f3
afe637f
# https://bugs.python.org/issue26171
afe637f
# https://hg.python.org/cpython/rev/10dad6da1b28/
afe637f
# Fix possible integer overflow and heap corruption in zipimporter.get_data()
afe637f
# FIXED UPSTREAM
afe637f
Patch209: 00209-prevent-buffer-overflow-in-zipimport-module.patch
afe637f
35bab9e
# 00210 #
35bab9e
# CVE-2016-0772 python: smtplib StartTLS stripping attack
35bab9e
# rhbz#1303647: https://bugzilla.redhat.com/show_bug.cgi?id=1303647
35bab9e
# rhbz#1346345: https://bugzilla.redhat.com/show_bug.cgi?id=1346345
35bab9e
# FIXED UPSTREAM: https://hg.python.org/cpython/rev/d590114c2394
35bab9e
# Raise an error when STARTTLS fails
35bab9e
Patch210: 00210-Raise-an-error-when-STARTTLS-fails.patch
35bab9e
0c8875f
# (New patches go here ^^^)
0c8875f
#
0c8875f
# When adding new patches to "python" and "python3" in Fedora 17 onwards,
0c8875f
# please try to keep the patch numbers in-sync between the two specfiles:
0c8875f
#
0c8875f
#   - use the same patch number across both specfiles for conceptually-equivalent
0c8875f
#     fixes, ideally with the same name
0c8875f
#
9b8d221
#   - when a patch is relevant to both specfiles, use the same introductory
0c8875f
#     comment in both specfiles where possible (to improve "diff" output when
0c8875f
#     comparing them)
0c8875f
#
0c8875f
#   - when a patch is only relevant for one of the two specfiles, leave a gap
0c8875f
#     in the patch numbering in the other specfile, adding a comment when
0c8875f
#     omitting a patch, both in the manifest section here, and in the "prep"
0c8875f
#     phase below
0c8875f
#
0c8875f
# Hopefully this will make it easier to ensure that all relevant fixes are
0c8875f
# applied to both versions.
0c8875f
7eb10c8
# This is the generated patch to "configure"; see the description of
7eb10c8
#   %{regenerate_autotooling_patch}
7eb10c8
# above:
8cb91f0
Patch5000: 05000-autotool-intermediates.patch
ab3441a
a3483f9
BuildRoot: %{_tmppath}/%{name}-%{version}-root
a3483f9
c769a6b
# ======================================================
c769a6b
# Additional metadata, and subpackages
c769a6b
# ======================================================
c969609
a3483f9
URL: http://www.python.org/
a3483f9
a3483f9
# See notes in bug 532118:
a3483f9
Provides: python(abi) = %{pybasever}
a3483f9
26c1be5
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
26c1be5
Matej Stuchlik f498010
%if 0%{with_rewheel}
f30edc5
Requires: python3-setuptools
f30edc5
Requires: python3-pip
Matej Stuchlik f498010
%endif
Matej Stuchlik f498010
a3483f9
%description
a3483f9
Python 3 is a new version of the language that is incompatible with the 2.x
a3483f9
line of releases. The language is mostly the same, but many details, especially
a3483f9
how built-in objects like dictionaries and strings work, have changed
a3483f9
considerably, and a lot of deprecated features have finally been removed.
a3483f9
a3483f9
%package libs
a3483f9
Summary:        Python 3 runtime libraries
a3483f9
Group:          Development/Libraries
a3483f9
#Requires:       %{name} = %{version}-%{release}
a3483f9
5974f19
# expat 2.1.0 added the symbol XML_SetHashSalt without bumping SONAME.  We use
5974f19
# this symbol (in pyexpat), so we must explicitly state this dependency to
5974f19
# prevent "import pyexpat" from failing with a linker error if someone hasn't
5974f19
# yet upgraded expat:
5974f19
Requires: expat >= 2.1.0
5974f19
a3483f9
%description libs
a3483f9
This package contains files used to embed Python 3 into applications.
a3483f9
a3483f9
%package devel
a3483f9
Summary: Libraries and header files needed for Python 3 development
a3483f9
Group: Development/Libraries
c75d3be
Requires: %{name} = %{version}-%{release}
c75d3be
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Thomas Spura cb053c7
BuildRequires: python-macros
Thomas Spura cb053c7
Requires: python-macros
a3483f9
Conflicts: %{name} < %{version}-%{release}
a3483f9
a3483f9
%description devel
Thomas Spura cb053c7
This package contains libraries and header files used to build applications
a3483f9
with and native libraries for Python 3
a3483f9
a3483f9
%package tools
a3483f9
Summary: A collection of tools included with Python 3
a3483f9
Group: Development/Tools
a3483f9
Requires: %{name} = %{version}-%{release}
a3483f9
Requires: %{name}-tkinter = %{version}-%{release}
a3483f9
a3483f9
%description tools
a3483f9
This package contains several tools included with Python 3
a3483f9
a3483f9
%package tkinter
a3483f9
Summary: A GUI toolkit for Python 3
a3483f9
Group: Development/Languages
a3483f9
Requires: %{name} = %{version}-%{release}
a3483f9
a3483f9
%description tkinter
a3483f9
The Tkinter (Tk interface) program is an graphical user interface for
a3483f9
the Python scripting language.
a3483f9
a3483f9
%package test
a3483f9
Summary: The test modules from the main python 3 package
a3483f9
Group: Development/Languages
a3483f9
Requires: %{name} = %{version}-%{release}
a3483f9
Requires: %{name}-tools = %{version}-%{release}
a3483f9
a3483f9
%description test
a3483f9
The test modules from the main %{name} package.
a3483f9
These are in a separate package to save space, as they are almost never used
a3483f9
in production.
a3483f9
a3483f9
You might want to install the python3-test package if you're developing
a3483f9
python 3 code that uses more than just unittest and/or test_support.py.
a3483f9
815994f
%if 0%{?with_debug_build}
55cf580
%package debug
55cf580
Summary: Debug version of the Python 3 runtime
55cf580
Group: Applications/System
55cf580
55cf580
# The debug build is an all-in-one package version of the regular build, and
55cf580
# shares the same .py/.pyc files and directories as the regular build.  Hence
55cf580
# we depend on all of the subpackages of the regular build:
55cf580
Requires: %{name}%{?_isa} = %{version}-%{release}
55cf580
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
55cf580
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
55cf580
Requires: %{name}-test%{?_isa} = %{version}-%{release}
55cf580
Requires: %{name}-tkinter%{?_isa} = %{version}-%{release}
55cf580
Requires: %{name}-tools%{?_isa} = %{version}-%{release}
55cf580
55cf580
%description debug
55cf580
python3-debug provides a version of the Python 3 runtime with numerous debugging
55cf580
features enabled, aimed at advanced Python users, such as developers of Python
55cf580
extension modules.
55cf580
55cf580
This version uses more memory and will be slower than the regular Python 3 build,
55cf580
but is useful for tracking down reference-counting issues, and other bugs.
55cf580
55cf580
The bytecodes are unchanged, so that .pyc files are compatible between the two
55cf580
versions of Python 3, but the debugging features mean that C/C++ extension
55cf580
modules are ABI-incompatible with those built for the standard runtime.
55cf580
55cf580
It shares installation directories with the standard Python 3 runtime, so that
55cf580
.py and .pyc files can be shared.  All compiled extension modules gain a "_d"
55cf580
suffix ("foo_d.so" rather than "foo.so") so that each Python 3 implementation
55cf580
can load its own extensions.
7eb10c8
%endif # with_debug_build
55cf580
c769a6b
# ======================================================
c769a6b
# The prep phase of the build:
c769a6b
# ======================================================
c769a6b
a3483f9
%prep
f5250ec
%setup -q -n Python-%{version}%{?prerel}
a3483f9
chmod +x %{SOURCE1}
6859f23
c969609
%if 0%{?with_systemtap}
c969609
# Provide an example of usage of the tapset:
c969609
cp -a %{SOURCE6} .
71040c9
cp -a %{SOURCE7} .
c969609
%endif # with_systemtap
c969609
1ae4dd3
# Ensure that we're using the system copy of various libraries, rather than
1ae4dd3
# copies shipped by upstream in the tarball:
1ae4dd3
#   Remove embedded copy of expat:
1ae4dd3
rm -r Modules/expat || exit 1
1ae4dd3
1ae4dd3
#   Remove embedded copy of libffi:
6859f23
for SUBDIR in darwin libffi libffi_arm_wince libffi_msvc libffi_osx ; do
6859f23
  rm -r Modules/_ctypes/$SUBDIR || exit 1 ;
6859f23
done
6859f23
1ae4dd3
#   Remove embedded copy of zlib:
1ae4dd3
rm -r Modules/zlib || exit 1
1ae4dd3
b8f92b4
# Don't build upstream Python's implementation of these crypto algorithms;
b8f92b4
# instead rely on _hashlib and OpenSSL.
b8f92b4
#
b8f92b4
# For example, in our builds hashlib.md5 is implemented within _hashlib via
b8f92b4
# OpenSSL (and thus respects FIPS mode), and does not fall back to _md5
b282179
# TODO: there seems to be no OpenSSL support in Python for sha3 so far
b282179
# when it is there, also remove _sha3/ dir
b8f92b4
for f in md5module.c sha1module.c sha256module.c sha512module.c; do
b8f92b4
    rm Modules/$f
b8f92b4
done
b8f92b4
Matej Stuchlik db8996c
%if 0%{with_rewheel}
Thomas Spura a0d16b6
%global pip_version 6.0.8
Matej Stuchlik db8996c
sed -r -i s/'_PIP_VERSION = "[0-9.]+"'/'_PIP_VERSION = "%{pip_version}"'/ Lib/ensurepip/__init__.py
Matej Stuchlik db8996c
%endif
Matej Stuchlik db8996c
1ae4dd3
#
1ae4dd3
# Apply patches:
1ae4dd3
#
7eb10c8
%patch1 -p1
5023236
# 3: upstream as of Python 3.3.1
7eb10c8
c969609
%if 0%{?with_systemtap}
c923b51
%patch55 -p1 -b .systemtap
c969609
%endif
a3483f9
a3483f9
%if "%{_lib}" == "lib64"
7eb10c8
%patch102 -p1
c923b51
%patch104 -p1
a3483f9
%endif
a3483f9
55cf580
c923b51
%patch111 -p1
c923b51
# 112: not for python3
c923b51
%patch113 -p1
61fd48d
# 00114: Upstream as of Python 3.4.0.b2
55cf580
7eb10c8
%patch125 -p1 -b .less-verbose-COUNT_ALLOCS
0c8875f
cc23835
%ifarch ppc %{power64}
28391cb
%patch131 -p1
28391cb
%endif
28391cb
0c8875f
%patch132 -p1
0c8875f
# 00133: not for python3
0c8875f
%patch134 -p1
0c8875f
%patch135 -p1
0c8875f
# 00136: not for python3
0c8875f
%patch137 -p1
0c8875f
# 00138: not for python3
0c8875f
%ifarch %{arm}
0c8875f
%patch139 -p1
486eb43
%patch140 -p1
0c8875f
%endif
0c8875f
# 00140: not for python3
0c8875f
%patch141 -p1
c923b51
%patch143 -p1 -b .tsc-on-ppc
5fe31d8
# 00144: not for python3
0d5c338
# 00145: not for python3
b8f92b4
%patch146 -p1
1c94c1a
# 00147: upstream as of Python 3.3.0
2885662
# 00148: upstream as of Python 3.2.3
2885662
# 00149: upstream as of Python 3.2.3
cc23835
%ifarch ppc %{power64}
1af1383
%patch150 -p1
1af1383
%endif
2885662
# 00151: not for python3
62d7207
# 00152: upstream as of Python 3.3.0b2
a60a842
%patch153 -p0
8a28107
# 00154: not for this branch
8a28107
%patch155 -p1
938d1d7
%patch156 -p1
7989368
%patch157 -p1
823581e
#00158: FIXME
823581e
#00159: FIXME
823581e
%patch160 -p1
62d7207
# 00161: was only needed for Python 3.3.0b1
62d7207
# 00162: was only needed for Python 3.3.0b1
48d2048
%patch163 -p1
d474ecc
%ifarch ppc %{power64}
d474ecc
%patch164 -p1
d474ecc
%endif
260ceea
#00165: TODO
260ceea
#00166: TODO
260ceea
#00167: TODO
260ceea
#00168: TODO
260ceea
#00169: TODO
260ceea
#00170: TODO
260ceea
#00171: TODO
260ceea
#00172: TODO
260ceea
%patch173 -p1
ff7dfb6
#00174: TODO
a60a842
# 00175: upstream as of Python 3.3.2
5023236
# 00176: upstream as of Python 3.3.1
61fd48d
# 00177: upstream as of Python 3.4.0.b2
5023236
%patch178 -p1
b935d25
%patch179 -p1
f9db6e6
%patch180 -p1
a60a842
# 00181: not for python3
d4ea6cd
# 00182: upstream as of Python 3.3.2
f5250ec
# 00183  upstream as of Python 3.4.0a4
f5250ec
%patch184  -p1
f5250ec
# 00185  upstream as of Python 3.4.0a4
3dbbc14
%patch186 -p1
bf35167
# 00187: upstream as of Python 3.4.0b1
0153564
%patch188 -p1
0c8875f
Matej Stuchlik 11fb599
%if 0%{with_rewheel}
Matej Stuchlik 11fb599
%patch189 -p1
Matej Stuchlik 11fb599
%endif
Matej Stuchlik 11fb599
Matej Stuchlik e602f7a
# 00190: upstream as of Python 3.4.1
Matej Stuchlik e602f7a
# 00193: upstream as of Python 3.4.1
Matej Stuchlik 7d579ea
%patch194 -p1
Matej Stuchlik a8e96a1
# 00195: upstream as of Python 3.4.2
Matej Stuchlik da57024
%patch196 -p1
Matej Stuchlik a8e96a1
# 00197: upstream as of Python 3.4.2
Robert Kuska 6afc2ff
%patch199 -p1
Matej Stuchlik db8996c
%patch202 -p1
Matej Stuchlik db8996c
%patch204 -p1
0c8875f
afe637f
%patch209 -p1
35bab9e
%patch210 -p1
afe637f
a9e268f
# Currently (2010-01-15), http://docs.python.org/library is for 2.6, and there
a9e268f
# are many differences between 2.6 and the Python 3 library.
a9e268f
#
a9e268f
# Fix up the URLs within pydoc to point at the documentation for this
a9e268f
# MAJOR.MINOR version:
a9e268f
#
a9e268f
sed --in-place \
a9e268f
    --expression="s|http://docs.python.org/library|http://docs.python.org/%{pybasever}/library|g" \
a9e268f
    Lib/pydoc.py || exit 1
a3483f9
7eb10c8
%if ! 0%{regenerate_autotooling_patch}
7eb10c8
# Normally we apply the patch to "configure"
7eb10c8
# We don't apply the patch if we're working towards regenerating it
8cb91f0
%patch5000 -p0 -b .autotool-intermediates
7eb10c8
%endif
7eb10c8
c769a6b
# ======================================================
c769a6b
# Configuring and building the code:
c769a6b
# ======================================================
c769a6b
a3483f9
%build
55cf580
topdir=$(pwd)
5c9590b
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC -fwrapv"
5c9590b
export CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC -fwrapv"
a3483f9
export CPPFLAGS="`pkg-config --cflags-only-I libffi`"
5c9590b
export OPT="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC -fwrapv"
a3483f9
export LINKCC="gcc"
a3483f9
export CFLAGS="$CFLAGS `pkg-config --cflags openssl`"
8a69a67
export LDFLAGS="$RPM_LD_FLAGS `pkg-config --libs-only-L openssl`"
a3483f9
7eb10c8
%if 0%{regenerate_autotooling_patch}
7eb10c8
# If enabled, this code regenerates the patch to "configure", using a
7eb10c8
# local copy of autoconf-2.65, then exits the build
7eb10c8
#
7eb10c8
# The following assumes that the copy is installed to ~/autoconf-2.65/bin
7eb10c8
# as per these instructions:
7eb10c8
#   http://bugs.python.org/issue7997
7eb10c8
7eb10c8
for f in pyconfig.h.in configure ; do
7eb10c8
    cp $f $f.autotool-intermediates ;
7eb10c8
done
7eb10c8
7eb10c8
# Rerun the autotools:
5023236
autoreconf
c969609
7eb10c8
# Regenerate the patch:
8cb91f0
gendiff . .autotool-intermediates > %{PATCH5000}
7eb10c8
7eb10c8
7eb10c8
# Exit the build
7eb10c8
exit 1
7eb10c8
%endif
c969609
55cf580
# Define a function, for how to perform a "build" of python for a given
55cf580
# configuration:
55cf580
BuildPython() {
55cf580
  ConfName=$1	      
55cf580
  BinaryName=$2
55cf580
  SymlinkName=$3
55cf580
  ExtraConfigArgs=$4
55cf580
  PathFixWithThisBinary=$5
55cf580
55cf580
  ConfDir=build/$ConfName
55cf580
55cf580
  echo STARTING: BUILD OF PYTHON FOR CONFIGURATION: $ConfName - %{_bindir}/$BinaryName
55cf580
  mkdir -p $ConfDir
55cf580
55cf580
  pushd $ConfDir
55cf580
55cf580
  # Use the freshly created "configure" script, but in the directory two above:
55cf580
  %global _configure $topdir/configure
55cf580
c969609
%configure \
c969609
  --enable-ipv6 \
c969609
  --enable-shared \
ecc5705
  --with-computed-gotos=%{with_computed_gotos} \
ecc5705
  --with-dbmliborder=gdbm:ndbm:bdb \
ecc5705
  --with-system-expat \
ecc5705
  --with-system-ffi \
b8daf73
  --enable-loadable-sqlite-extensions \
c969609
%if 0%{?with_systemtap}
1c94c1a
  --with-systemtap \
c969609
%endif
31a06df
%if 0%{?with_valgrind}
31a06df
  --with-valgrind \
31a06df
%endif
55cf580
  $ExtraConfigArgs \
55cf580
  %{nil}
c969609
5659c63
  # Set EXTRA_CFLAGS to our CFLAGS (rather than overriding OPT, as we've done
5659c63
  # in the past).
5659c63
  # This should fix a problem with --with-valgrind where it adds
5659c63
  #   -DDYNAMIC_ANNOTATIONS_ENABLED=1
5659c63
  # to OPT which must be passed to all compilation units in the build,
5659c63
  # otherwise leading to linker errors, e.g.
5659c63
  #    missing symbol AnnotateRWLockDestroy
5659c63
  #
5659c63
  # Invoke the build:
dfb7952
  # TODO: it seems that 3.4.0a4 fails with %{?_smp_flags}, have to figure out why
dfb7952
  make EXTRA_CFLAGS="$CFLAGS"
a3483f9
55cf580
  popd
55cf580
  echo FINISHED: BUILD OF PYTHON FOR CONFIGURATION: $ConfDir
55cf580
}
55cf580
55cf580
# Use "BuildPython" to support building with different configurations:
55cf580
815994f
%if 0%{?with_debug_build}
55cf580
BuildPython debug \
55cf580
  python-debug \
55cf580
  python%{pybasever}-debug \
cc23835
%ifarch %{ix86} x86_64 ppc %{power64}
cb97d29
  "--with-pydebug --with-tsc --with-count-allocs --with-call-profile --without-ensurepip" \
66cf571
%else
cb97d29
  "--with-pydebug --with-count-allocs --with-call-profile --without-ensurepip" \
66cf571
%endif
Matej Stuchlik db8996c
  false \
Matej Stuchlik db8996c
  -O0
815994f
%endif # with_debug_build
55cf580
55cf580
BuildPython optimized \
55cf580
  python \
55cf580
  python%{pybasever} \
cb97d29
  "--without-ensurepip" \
55cf580
  true
55cf580
c769a6b
# ======================================================
c769a6b
# Installing the built code:
c769a6b
# ======================================================
a3483f9
a3483f9
%install
55cf580
topdir=$(pwd)
71040c9
rm -fr %{buildroot}
71040c9
mkdir -p %{buildroot}%{_prefix} %{buildroot}%{_mandir}
a3483f9
55cf580
InstallPython() {
55cf580
55cf580
  ConfName=$1	      
55cf580
  PyInstSoName=$2
55cf580
55cf580
  ConfDir=build/$ConfName
55cf580
55cf580
  echo STARTING: INSTALL OF PYTHON FOR CONFIGURATION: $ConfName
55cf580
  mkdir -p $ConfDir
55cf580
55cf580
  pushd $ConfDir
55cf580
71040c9
make install DESTDIR=%{buildroot} INSTALL="install -p"
a3483f9
cfd3e15
  popd
55cf580
cfd3e15
  # We install a collection of hooks for gdb that make it easier to debug
cfd3e15
  # executables linked against libpython3* (such as /usr/bin/python3 itself)
cfd3e15
  #
cfd3e15
  # These hooks are implemented in Python itself (though they are for the version
cfd3e15
  # of python that gdb is linked with, in this case Python 2.7)
cfd3e15
  #
cfd3e15
  # gdb-archer looks for them in the same path as the ELF file, with a -gdb.py suffix.
cfd3e15
  # We put them in the debuginfo package by installing them to e.g.:
cfd3e15
  #  /usr/lib/debug/usr/lib/libpython3.2.so.1.0.debug-gdb.py
cfd3e15
  #
cfd3e15
  # See https://fedoraproject.org/wiki/Features/EasierPythonDebugging for more
cfd3e15
  # information
cfd3e15
  #
cfd3e15
  # Copy up the gdb hooks into place; the python file will be autoloaded by gdb
cfd3e15
  # when visiting libpython.so, provided that the python file is installed to the
cfd3e15
  # same path as the library (or its .debug file) plus a "-gdb.py" suffix, e.g:
cfd3e15
  #  /usr/lib/debug/usr/lib64/libpython3.2.so.1.0.debug-gdb.py
cfd3e15
  # (note that the debug path is /usr/lib/debug for both 32/64 bit)
cfd3e15
  #
cfd3e15
  # Initially I tried:
cfd3e15
  #  /usr/lib/libpython3.1.so.1.0-gdb.py
cfd3e15
  # but doing so generated noise when ldconfig was rerun (rhbz:562980)
cfd3e15
  #
55cf580
%if 0%{?with_gdb_hooks}
cfd3e15
  DirHoldingGdbPy=%{_prefix}/lib/debug/%{_libdir}
cfd3e15
  PathOfGdbPy=$DirHoldingGdbPy/$PyInstSoName.debug-gdb.py
55cf580
cfd3e15
  mkdir -p %{buildroot}$DirHoldingGdbPy
cfd3e15
  cp Tools/gdb/libpython.py %{buildroot}$PathOfGdbPy
55cf580
%endif # with_gdb_hooks
55cf580
55cf580
  echo FINISHED: INSTALL OF PYTHON FOR CONFIGURATION: $ConfName
55cf580
}
55cf580
55cf580
# Use "InstallPython" to support building with different configurations:
55cf580
55cf580
# Install the "debug" build first, so that we can move some files aside
815994f
%if 0%{?with_debug_build}
55cf580
InstallPython debug \
Matej Stuchlik db8996c
  %{py_INSTSONAME_debug} \
Matej Stuchlik db8996c
  -O0
815994f
%endif # with_debug_build
55cf580
55cf580
# Now the optimized build:
55cf580
InstallPython optimized \
55cf580
  %{py_INSTSONAME_optimized}
55cf580
13c4a4f
install -d -m 0755 ${RPM_BUILD_ROOT}%{pylibdir}/site-packages/__pycache__
a3483f9
4aab458
mv ${RPM_BUILD_ROOT}%{_bindir}/2to3 ${RPM_BUILD_ROOT}%{_bindir}/python3-2to3
a3483f9
a3483f9
# Development tools
a3483f9
install -m755 -d ${RPM_BUILD_ROOT}%{pylibdir}/Tools
a3483f9
install Tools/README ${RPM_BUILD_ROOT}%{pylibdir}/Tools/
a3483f9
cp -ar Tools/freeze ${RPM_BUILD_ROOT}%{pylibdir}/Tools/
a3483f9
cp -ar Tools/i18n ${RPM_BUILD_ROOT}%{pylibdir}/Tools/
a3483f9
cp -ar Tools/pynche ${RPM_BUILD_ROOT}%{pylibdir}/Tools/
a3483f9
cp -ar Tools/scripts ${RPM_BUILD_ROOT}%{pylibdir}/Tools/
a3483f9
a3483f9
# Documentation tools
71040c9
install -m755 -d %{buildroot}%{pylibdir}/Doc
71040c9
cp -ar Doc/tools %{buildroot}%{pylibdir}/Doc/
a3483f9
a3483f9
# Demo scripts
34c15c7
cp -ar Tools/demo %{buildroot}%{pylibdir}/Tools/
a3483f9
a3483f9
# Fix for bug #136654
71040c9
rm -f %{buildroot}%{pylibdir}/email/test/data/audiotest.au %{buildroot}%{pylibdir}/test/audiotest.au
a3483f9
a3483f9
%if "%{_lib}" == "lib64"
13c4a4f
install -d -m 0755 %{buildroot}/usr/lib/python%{pybasever}/site-packages/__pycache__
a3483f9
%endif
a3483f9
a3483f9
# Make python3-devel multilib-ready (bug #192747, #139911)
a3483f9
%global _pyconfig32_h pyconfig-32.h
a3483f9
%global _pyconfig64_h pyconfig-64.h
a3483f9
a2f6453
%ifarch %{power64} s390x x86_64 ia64 alpha sparc64 aarch64
a3483f9
%global _pyconfig_h %{_pyconfig64_h}
a3483f9
%else
a3483f9
%global _pyconfig_h %{_pyconfig32_h}
a3483f9
%endif
815994f
5080ffc
# ABIFLAGS, LDVERSION and SOABI are in the upstream Makefile
1c94c1a
%global ABIFLAGS_optimized m
1c94c1a
%global ABIFLAGS_debug     dm
5080ffc
5080ffc
%global LDVERSION_optimized %{pybasever}%{ABIFLAGS_optimized}
5080ffc
%global LDVERSION_debug     %{pybasever}%{ABIFLAGS_debug}
5080ffc
5080ffc
%global SOABI_optimized cpython-%{pyshortver}%{ABIFLAGS_optimized}
5080ffc
%global SOABI_debug     cpython-%{pyshortver}%{ABIFLAGS_debug}
5080ffc
815994f
%if 0%{?with_debug_build}
5080ffc
%global PyIncludeDirs python%{LDVERSION_optimized} python%{LDVERSION_debug}
5080ffc
815994f
%else
5080ffc
%global PyIncludeDirs python%{LDVERSION_optimized}
815994f
%endif
815994f
815994f
for PyIncludeDir in %{PyIncludeDirs} ; do
55cf580
  mv %{buildroot}%{_includedir}/$PyIncludeDir/pyconfig.h \
55cf580
     %{buildroot}%{_includedir}/$PyIncludeDir/%{_pyconfig_h}
55cf580
  cat > %{buildroot}%{_includedir}/$PyIncludeDir/pyconfig.h << EOF
a3483f9
#include <bits/wordsize.h>
a3483f9
a3483f9
#if __WORDSIZE == 32
a3483f9
#include "%{_pyconfig32_h}"
a3483f9
#elif __WORDSIZE == 64
a3483f9
#include "%{_pyconfig64_h}"
a3483f9
#else
a3483f9
#error "Unknown word size"
a3483f9
#endif
a3483f9
EOF
55cf580
done
a3483f9
a3483f9
# Fix for bug 201434: make sure distutils looks at the right pyconfig.h file
824c34b
# Similar for sysconfig: sysconfig.get_config_h_filename tries to locate
824c34b
# pyconfig.h so it can be parsed, and needs to do this at runtime in site.py
824c34b
# when python starts up (bug 653058)
824c34b
#
824c34b
# Split this out so it goes directly to the pyconfig-32.h/pyconfig-64.h
824c34b
# variants:
824c34b
sed -i -e "s/'pyconfig.h'/'%{_pyconfig_h}'/" \
824c34b
  %{buildroot}%{pylibdir}/distutils/sysconfig.py \
824c34b
  %{buildroot}%{pylibdir}/sysconfig.py
a3483f9
a3483f9
# Switch all shebangs to refer to the specific Python version.
55cf580
LD_LIBRARY_PATH=./build/optimized ./build/optimized/python \
55cf580
  Tools/scripts/pathfix.py \
55cf580
  -i "%{_bindir}/python%{pybasever}" \
55cf580
  %{buildroot}
a3483f9
a3483f9
# Remove shebang lines from .py files that aren't executable, and
a3483f9
# remove executability from .py files that don't have a shebang line:
71040c9
find %{buildroot} -name \*.py \
a3483f9
  \( \( \! -perm /u+x,g+x,o+x -exec sed -e '/^#!/Q 0' -e 'Q 1' {} \; \
a3483f9
  -print -exec sed -i '1d' {} \; \) -o \( \
a3483f9
  -perm /u+x,g+x,o+x ! -exec grep -m 1 -q '^#!' {} \; \
a3483f9
  -exec chmod a-x {} \; \) \)
a3483f9
a3483f9
# .xpm and .xbm files should not be executable:
71040c9
find %{buildroot} \
a3483f9
  \( -name \*.xbm -o -name \*.xpm -o -name \*.xpm.1 \) \
a3483f9
  -exec chmod a-x {} \;
a3483f9
a3483f9
# Remove executable flag from files that shouldn't have it:
a3483f9
chmod a-x \
71040c9
  %{buildroot}%{pylibdir}/distutils/tests/Setup.sample \
34c15c7
  %{buildroot}%{pylibdir}/Tools/README
a3483f9
a3483f9
# Get rid of DOS batch files:
71040c9
find %{buildroot} -name \*.bat -exec rm {} \;
a3483f9
a3483f9
# Get rid of backup files:
71040c9
find %{buildroot}/ -name "*~" -exec rm -f {} \;
a3483f9
find . -name "*~" -exec rm -f {} \;
71040c9
rm -f %{buildroot}%{pylibdir}/LICENSE.txt
a3483f9
# Junk, no point in putting in -test sub-pkg
a3483f9
rm -f ${RPM_BUILD_ROOT}/%{pylibdir}/idlelib/testcode.py*
a3483f9
a3483f9
# Get rid of stray patch file from buildroot:
71040c9
rm -f %{buildroot}%{pylibdir}/test/test_imp.py.apply-our-changes-to-expected-shebang # from patch 4
a3483f9
a3483f9
# Fix end-of-line encodings:
71040c9
find %{buildroot}/ -name \*.py -exec sed -i 's/\r//' {} \;
a3483f9
a3483f9
# Fix an encoding:
71040c9
iconv -f iso8859-1 -t utf-8 %{buildroot}/%{pylibdir}/Demo/rpc/README > README.conv && mv -f README.conv %{buildroot}/%{pylibdir}/Demo/rpc/README
a3483f9
a3483f9
# Note that 
a3483f9
#  %{pylibdir}/Demo/distutils/test2to3/setup.py
a3483f9
# is in iso-8859-1 encoding, and that this is deliberate; this is test data
a3483f9
# for the 2to3 tool, and one of the functions of the 2to3 tool is to fixup
a3483f9
# character encodings within python source code
a3483f9
Thomas Spura 1c26b68
# Do bytecompilation with the newly installed interpreter.
Thomas Spura e6314e6
# This is similar to the script in macros.pybytecompile
Thomas Spura ae2fc1c
# compile *.pyo
Thomas Spura e6314e6
find %{buildroot} -type f -a -name "*.py" -print0 | \
Thomas Spura ae2fc1c
    LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
3dbbc14
    PYTHONPATH="%{buildroot}%{_libdir}/python%{pybasever} %{buildroot}%{_libdir}/python%{pybasever}/site-packages" \
Thomas Spura e6314e6
    xargs -0 %{buildroot}%{_bindir}/python%{pybasever} -O -c 'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("%{buildroot}")[2]) for f in sys.argv[1:]]' || :
Thomas Spura ae2fc1c
# compile *.pyc
Thomas Spura ae2fc1c
find %{buildroot} -type f -a -name "*.py" -print0 | \
Thomas Spura ae2fc1c
    LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
3dbbc14
    PYTHONPATH="%{buildroot}%{_libdir}/python%{pybasever} %{buildroot}%{_libdir}/python%{pybasever}/site-packages" \
Thomas Spura ae2fc1c
    xargs -0 %{buildroot}%{_bindir}/python%{pybasever} -O -c 'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("%{buildroot}")[2], optimize=0) for f in sys.argv[1:]]' || :
a3483f9
a3483f9
# Fixup permissions for shared libraries from non-standard 555 to standard 755:
71040c9
find %{buildroot} \
a3483f9
    -perm 555 -exec chmod 755 {} \;
a3483f9
bd4f5e9
# Install macros for rpm:
a39396d
mkdir -p %{buildroot}/%{_rpmconfigdir}/macros.d/
a39396d
install -m 644 %{SOURCE2} %{buildroot}/%{_rpmconfigdir}/macros.d/
a39396d
install -m 644 %{SOURCE3} %{buildroot}/%{_rpmconfigdir}/macros.d/
a3483f9
113725a
# Ensure that the curses module was linked against libncursesw.so, rather than
113725a
# libncurses.so (bug 539917)
71040c9
ldd %{buildroot}/%{dynload_dir}/_curses*.so \
113725a
    | grep curses \
113725a
    | grep libncurses.so && (echo "_curses.so linked against libncurses.so" ; exit 1)
113725a
55cf580
# Ensure that the debug modules are linked against the debug libpython, and
55cf580
# likewise for the optimized modules and libpython:
55cf580
for Module in %{buildroot}/%{dynload_dir}/*.so ; do
55cf580
    case $Module in
5080ffc
    *.%{SOABI_debug})
55cf580
        ldd $Module | grep %{py_INSTSONAME_optimized} &&
5080ffc
            (echo Debug module $Module linked against optimized %{py_INSTSONAME_optimized} ; exit 1)
55cf580
            
55cf580
        ;;
5080ffc
    *.%{SOABI_optimized})
55cf580
        ldd $Module | grep %{py_INSTSONAME_debug} &&
5080ffc
            (echo Optimized module $Module linked against debug %{py_INSTSONAME_debug} ; exit 1)
55cf580
        ;;
55cf580
    esac
55cf580
done
b2154fa
9640a7e
# Create "/usr/bin/python3-debug", a symlink to the python3 debug binary, to
9640a7e
# avoid the user having to know the precise version and ABI flags.  (see
9640a7e
# e.g. rhbz#676748):
00fd884
%if 0%{?with_debug_build}
9640a7e
ln -s \
9640a7e
  %{_bindir}/python%{LDVERSION_debug} \
9640a7e
  %{buildroot}%{_bindir}/python3-debug
00fd884
%endif
9640a7e
c969609
#
c969609
# Systemtap hooks:
c969609
#
c969609
%if 0%{?with_systemtap}
c969609
# Install a tapset for this libpython into tapsetdir, fixing up the path to the
c969609
# library:
c969609
mkdir -p %{buildroot}%{tapsetdir}
a2f6453
%ifarch %{power64} s390x x86_64 ia64 alpha sparc64 aarch64
55cf580
%global libpython_stp_optimized libpython%{pybasever}-64.stp
55cf580
%global libpython_stp_debug     libpython%{pybasever}-debug-64.stp
c969609
%else
55cf580
%global libpython_stp_optimized libpython%{pybasever}-32.stp
55cf580
%global libpython_stp_debug     libpython%{pybasever}-debug-32.stp
c969609
%endif
c969609
c969609
sed \
55cf580
   -e "s|LIBRARY_PATH|%{_libdir}/%{py_INSTSONAME_optimized}|" \
b0ba5d4
   %{_sourcedir}/libpython.stp \
55cf580
   > %{buildroot}%{tapsetdir}/%{libpython_stp_optimized}
55cf580
815994f
%if 0%{?with_debug_build}
f011cdc
# In Python 3, python3 and python3-debug don't point to the same binary,
f011cdc
# so we have to replace "python3" with "python3-debug" to get systemtap
f011cdc
# working with debug build
55cf580
sed \
55cf580
   -e "s|LIBRARY_PATH|%{_libdir}/%{py_INSTSONAME_debug}|" \
f011cdc
   -e 's|"python3"|"python3-debug"|' \
b0ba5d4
   %{_sourcedir}/libpython.stp \
55cf580
   > %{buildroot}%{tapsetdir}/%{libpython_stp_debug}
815994f
%endif # with_debug_build
55cf580
c969609
%endif # with_systemtap
c969609
3d53dce
# Rename the script that differs on different arches to arch specific name
f188880
mv %{buildroot}%{_bindir}/python%{LDVERSION_optimized}-{,`uname -m`-}config
8430e60
echo -e '#!/bin/sh\nexec `dirname $0`/python%{LDVERSION_optimized}-`uname -m`-config "$@"' > \
8430e60
  %{buildroot}%{_bindir}/python%{LDVERSION_optimized}-config
8430e60
echo '[ $? -eq 127 ] && echo "Could not find python%{LDVERSION_optimized}-`uname -m`-config. Look around to see available arches." >&2' >> \
8430e60
  %{buildroot}%{_bindir}/python%{LDVERSION_optimized}-config
8430e60
  chmod +x %{buildroot}%{_bindir}/python%{LDVERSION_optimized}-config
c769a6b
c769a6b
# ======================================================
c769a6b
# Running the upstream test suite
c769a6b
# ======================================================
c769a6b
a3483f9
%check
3dbbc14
3dbbc14
# first of all, check timestamps of bytecode files
3dbbc14
find %{buildroot} -type f -a -name "*.py" -print0 | \
3dbbc14
    LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
3dbbc14
    PYTHONPATH="%{buildroot}%{_libdir}/python%{pybasever} %{buildroot}%{_libdir}/python%{pybasever}/site-packages" \
3dbbc14
    xargs -0 %{buildroot}%{_bindir}/python%{pybasever} %{SOURCE8}
3dbbc14
3dbbc14
55cf580
topdir=$(pwd)
55cf580
CheckPython() {
55cf580
  ConfName=$1	      
5080ffc
  ConfDir=$(pwd)/build/$ConfName
55cf580
55cf580
  echo STARTING: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
55cf580
5a48967
  # Note that we're running the tests using the version of the code in the
5a48967
  # builddir, not in the buildroot.
5db81fb
0c8875f
  # Run the upstream test suite, setting "WITHIN_PYTHON_RPM_BUILD" so that the
0c8875f
  # our non-standard decorators take effect on the relevant tests:
0c8875f
  #   @unittest._skipInRpmBuild(reason)
0c8875f
  #   @unittest._expectedFailureInRpmBuild
29b9689
  # test_faulthandler.test_register_chain currently fails on ppc64le and
29b9689
  #   aarch64, see upstream bug http://bugs.python.org/issue21131
0c8875f
  WITHIN_PYTHON_RPM_BUILD= \
9a778ac
  LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \
Matej Stuchlik 1746188
    --verbose --findleaks \
29b9689
    %ifarch ppc64le aarch64
8d54999
    -x test_faulthandler \
8d54999
    %endif
Thomas Spura b4602e4
    %ifarch %{power64} s390 s390x armv7hl aarch64
8d54999
    -x test_gdb
Matej Stuchlik 1746188
    %endif
a3483f9
5db81fb
  echo FINISHED: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
55cf580
55cf580
}
55cf580
a5cef79
%if 0%{run_selftest_suite}
a5cef79
55cf580
# Check each of the configurations:
815994f
%if 0%{?with_debug_build}
55cf580
CheckPython debug
815994f
%endif # with_debug_build
55cf580
CheckPython optimized
55cf580
a5cef79
%endif # run_selftest_suite
a5cef79
55cf580
c769a6b
# ======================================================
c769a6b
# Cleaning up
c769a6b
# ======================================================
c769a6b
a3483f9
%clean
71040c9
rm -fr %{buildroot}
a3483f9
c769a6b
c769a6b
# ======================================================
c769a6b
# Scriptlets
c769a6b
# ======================================================
c769a6b
a3483f9
%post libs -p /sbin/ldconfig
a3483f9
a3483f9
%postun libs -p /sbin/ldconfig
a3483f9
c769a6b
c769a6b
4aab458
%files
a3483f9
%defattr(-, root, root)
a3483f9
%doc LICENSE README
a3483f9
%{_bindir}/pydoc*
a3483f9
%{_bindir}/python3
a3483f9
%{_bindir}/python%{pybasever}
1c94c1a
%{_bindir}/python%{pybasever}m
1c94c1a
%{_bindir}/pyvenv
f2d9a81
%{_bindir}/pyvenv-%{pybasever}
a3483f9
%{_mandir}/*/*
26c1be5
26c1be5
%files libs
26c1be5
%defattr(-,root,root,-)
26c1be5
%doc LICENSE README
a3483f9
%dir %{pylibdir}
4aab458
%dir %{dynload_dir}
5080ffc
%{dynload_dir}/_bisect.%{SOABI_optimized}.so
1c94c1a
%{dynload_dir}/_bz2.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_codecs_cn.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_codecs_hk.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_codecs_iso2022.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_codecs_jp.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_codecs_kr.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_codecs_tw.%{SOABI_optimized}.so
1c94c1a
%{dynload_dir}/_crypt.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_csv.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_ctypes.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_curses.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_curses_panel.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_dbm.%{SOABI_optimized}.so
1c94c1a
%{dynload_dir}/_decimal.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_elementtree.%{SOABI_optimized}.so
5fe31d8
%if %{with_gdbm}
5080ffc
%{dynload_dir}/_gdbm.%{SOABI_optimized}.so
5fe31d8
%endif
5080ffc
%{dynload_dir}/_hashlib.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_heapq.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_json.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_lsprof.%{SOABI_optimized}.so
1c94c1a
%{dynload_dir}/_lzma.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_multibytecodec.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_multiprocessing.%{SOABI_optimized}.so
3aee76e
%{dynload_dir}/_opcode.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_pickle.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_posixsubprocess.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_random.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_socket.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_sqlite3.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_ssl.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_struct.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/array.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/audioop.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/binascii.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/cmath.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_datetime.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/fcntl.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/grp.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/math.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/mmap.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/nis.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/ossaudiodev.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/parser.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/pyexpat.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/readline.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/resource.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/select.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/spwd.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/syslog.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/termios.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/time.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/unicodedata.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/xxlimited.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/zlib.%{SOABI_optimized}.so
4aab458
13c4a4f
%dir %{pylibdir}/site-packages/
13c4a4f
%dir %{pylibdir}/site-packages/__pycache__/
a3483f9
%{pylibdir}/site-packages/README
7eb10c8
%{pylibdir}/*.py
e1c7be0
%dir %{pylibdir}/__pycache__/
7eb10c8
%{pylibdir}/__pycache__/*%{bytecode_suffixes}
1c94c1a
b282179
%dir %{pylibdir}/asyncio/
b282179
%dir %{pylibdir}/asyncio/__pycache__/
b282179
%{pylibdir}/asyncio/*.py
b282179
%{pylibdir}/asyncio/__pycache__/*%{bytecode_suffixes}
b282179
1c94c1a
%dir %{pylibdir}/collections/
1c94c1a
%dir %{pylibdir}/collections/__pycache__/
1c94c1a
%{pylibdir}/collections/*.py
1c94c1a
%{pylibdir}/collections/__pycache__/*%{bytecode_suffixes}
5080ffc
5080ffc
%dir %{pylibdir}/concurrent/
5080ffc
%dir %{pylibdir}/concurrent/__pycache__/
5080ffc
%{pylibdir}/concurrent/*.py
5080ffc
%{pylibdir}/concurrent/__pycache__/*%{bytecode_suffixes}
5080ffc
5080ffc
%dir %{pylibdir}/concurrent/futures/
5080ffc
%dir %{pylibdir}/concurrent/futures/__pycache__/
5080ffc
%{pylibdir}/concurrent/futures/*.py
5080ffc
%{pylibdir}/concurrent/futures/__pycache__/*%{bytecode_suffixes}
5080ffc
5080ffc
%dir %{pylibdir}/ctypes/
e1c7be0
%dir %{pylibdir}/ctypes/__pycache__/
7eb10c8
%{pylibdir}/ctypes/*.py
7eb10c8
%{pylibdir}/ctypes/__pycache__/*%{bytecode_suffixes}
a3483f9
%{pylibdir}/ctypes/macholib
5080ffc
a3483f9
%{pylibdir}/curses
5080ffc
5080ffc
%dir %{pylibdir}/dbm/
e1c7be0
%dir %{pylibdir}/dbm/__pycache__/
7eb10c8
%{pylibdir}/dbm/*.py
7eb10c8
%{pylibdir}/dbm/__pycache__/*%{bytecode_suffixes}
5080ffc
5080ffc
%dir %{pylibdir}/distutils/
e1c7be0
%dir %{pylibdir}/distutils/__pycache__/
7eb10c8
%{pylibdir}/distutils/*.py
7eb10c8
%{pylibdir}/distutils/__pycache__/*%{bytecode_suffixes}
a3483f9
%{pylibdir}/distutils/README
a3483f9
%{pylibdir}/distutils/command
5080ffc
5080ffc
%dir %{pylibdir}/email/
e1c7be0
%dir %{pylibdir}/email/__pycache__/
7eb10c8
%{pylibdir}/email/*.py
7eb10c8
%{pylibdir}/email/__pycache__/*%{bytecode_suffixes}
a3483f9
%{pylibdir}/email/mime
1c94c1a
%doc %{pylibdir}/email/architecture.rst
5080ffc
a3483f9
%{pylibdir}/encodings
cb97d29
cb97d29
%dir %{pylibdir}/ensurepip/
cb97d29
%dir %{pylibdir}/ensurepip/__pycache__/
cb97d29
%{pylibdir}/ensurepip/*.py
cb97d29
%{pylibdir}/ensurepip/__pycache__/*%{bytecode_suffixes}
cb97d29
%exclude %{pylibdir}/ensurepip/_bundled
cb97d29
Matej Stuchlik 7d579ea
%if 0%{?with_rewheel}
Matej Stuchlik 11fb599
%dir %{pylibdir}/ensurepip/rewheel/
Matej Stuchlik 11fb599
%dir %{pylibdir}/ensurepip/rewheel/__pycache__/
Matej Stuchlik 11fb599
%{pylibdir}/ensurepip/rewheel/*.py
Matej Stuchlik 11fb599
%{pylibdir}/ensurepip/rewheel/__pycache__/*%{bytecode_suffixes}
Matej Stuchlik 7d579ea
%endif
Matej Stuchlik 11fb599
a3483f9
%{pylibdir}/html
a3483f9
%{pylibdir}/http
a3483f9
%{pylibdir}/idlelib
5080ffc
5080ffc
%dir %{pylibdir}/importlib/
e1c7be0
%dir %{pylibdir}/importlib/__pycache__/
7eb10c8
%{pylibdir}/importlib/*.py
7eb10c8
%{pylibdir}/importlib/__pycache__/*%{bytecode_suffixes}
5080ffc
5080ffc
%dir %{pylibdir}/json/
e1c7be0
%dir %{pylibdir}/json/__pycache__/
7eb10c8
%{pylibdir}/json/*.py
7eb10c8
%{pylibdir}/json/__pycache__/*%{bytecode_suffixes}
5080ffc
6a82c19
%{pylibdir}/lib2to3
6a82c19
%exclude %{pylibdir}/lib2to3/tests
a3483f9
%{pylibdir}/logging
a3483f9
%{pylibdir}/multiprocessing
1c94c1a
%{pylibdir}/plat-linux
a3483f9
%{pylibdir}/pydoc_data
5080ffc
5080ffc
%dir %{pylibdir}/sqlite3/
e1c7be0
%dir %{pylibdir}/sqlite3/__pycache__/
7eb10c8
%{pylibdir}/sqlite3/*.py
7eb10c8
%{pylibdir}/sqlite3/__pycache__/*%{bytecode_suffixes}
5080ffc
5080ffc
%dir %{pylibdir}/test/
e1c7be0
%dir %{pylibdir}/test/__pycache__/
e5c246c
%dir %{pylibdir}/test/support/
e5c246c
%dir %{pylibdir}/test/support/__pycache__/
7eb10c8
%{pylibdir}/test/__init__.py
7eb10c8
%{pylibdir}/test/__pycache__/__init__%{bytecode_suffixes}
e5c246c
%{pylibdir}/test/support/__init__.py
e5c246c
%{pylibdir}/test/support/__pycache__/__init__%{bytecode_suffixes}
5080ffc
5080ffc
%exclude %{pylibdir}/turtle.py
5080ffc
%exclude %{pylibdir}/__pycache__/turtle*%{bytecode_suffixes}
5080ffc
5080ffc
%dir %{pylibdir}/unittest/
e1c7be0
%dir %{pylibdir}/unittest/__pycache__/
7eb10c8
%{pylibdir}/unittest/*.py
7eb10c8
%{pylibdir}/unittest/__pycache__/*%{bytecode_suffixes}
5080ffc
a3483f9
%{pylibdir}/urllib
1c94c1a
1c94c1a
%dir %{pylibdir}/venv/
1c94c1a
%dir %{pylibdir}/venv/__pycache__/
1c94c1a
%{pylibdir}/venv/*.py
1c94c1a
%{pylibdir}/venv/__pycache__/*%{bytecode_suffixes}
1c94c1a
%{pylibdir}/venv/scripts
1c94c1a
a3483f9
%{pylibdir}/wsgiref
a3483f9
%{pylibdir}/xml
a3483f9
%{pylibdir}/xmlrpc
5080ffc
a3483f9
%if "%{_lib}" == "lib64"
37de674
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}
37de674
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}/site-packages
13c4a4f
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}/site-packages/__pycache__/
a3483f9
%endif
a3483f9
a3483f9
# "Makefile" and the config-32/64.h file are needed by
a3483f9
# distutils/sysconfig.py:_init_posix(), so we include them in the core
a3483f9
# package, along with their parent directories (bug 531901):
5080ffc
%dir %{pylibdir}/config-%{LDVERSION_optimized}/
5080ffc
%{pylibdir}/config-%{LDVERSION_optimized}/Makefile
5080ffc
%dir %{_includedir}/python%{LDVERSION_optimized}/
5080ffc
%{_includedir}/python%{LDVERSION_optimized}/%{_pyconfig_h}
a3483f9
55cf580
%{_libdir}/%{py_INSTSONAME_optimized}
34c15c7
%{_libdir}/libpython3.so
c969609
%if 0%{?with_systemtap}
55cf580
%{tapsetdir}/%{libpython_stp_optimized}
71040c9
%doc systemtap-example.stp pyfuntop.stp
c969609
%endif
a3483f9
a3483f9
%files devel
a3483f9
%defattr(-,root,root)
5080ffc
%{pylibdir}/config-%{LDVERSION_optimized}/*
5080ffc
%exclude %{pylibdir}/config-%{LDVERSION_optimized}/Makefile
5080ffc
%{_includedir}/python%{LDVERSION_optimized}/*.h
5080ffc
%exclude %{_includedir}/python%{LDVERSION_optimized}/%{_pyconfig_h}
a3483f9
%doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit
a3483f9
%{_bindir}/python3-config
a3483f9
%{_bindir}/python%{pybasever}-config
5080ffc
%{_bindir}/python%{LDVERSION_optimized}-config
f188880
%{_bindir}/python%{LDVERSION_optimized}-*-config
5080ffc
%{_libdir}/libpython%{LDVERSION_optimized}.so
5080ffc
%{_libdir}/pkgconfig/python-%{LDVERSION_optimized}.pc
55cf580
%{_libdir}/pkgconfig/python-%{pybasever}.pc
55cf580
%{_libdir}/pkgconfig/python3.pc
a39396d
%{_rpmconfigdir}/macros.d/macros.python3
a39396d
%{_rpmconfigdir}/macros.d/macros.pybytecompile
a3483f9
a3483f9
%files tools
a3483f9
%defattr(-,root,root,755)
4aab458
%{_bindir}/python3-2to3
34c15c7
%{_bindir}/2to3-%{pybasever}
a3483f9
%{_bindir}/idle*
a3483f9
%{pylibdir}/Tools
a3483f9
%doc %{pylibdir}/Doc
a3483f9
a3483f9
%files tkinter
a3483f9
%defattr(-,root,root,755)
a3483f9
%{pylibdir}/tkinter
a3483f9
%exclude %{pylibdir}/tkinter/test
5080ffc
%{dynload_dir}/_tkinter.%{SOABI_optimized}.so
5080ffc
%{pylibdir}/turtle.py
5080ffc
%{pylibdir}/__pycache__/turtle*%{bytecode_suffixes}
5080ffc
%dir %{pylibdir}/turtledemo
5080ffc
%{pylibdir}/turtledemo/*.py
5080ffc
%{pylibdir}/turtledemo/*.cfg
5080ffc
%dir %{pylibdir}/turtledemo/__pycache__/
5080ffc
%{pylibdir}/turtledemo/__pycache__/*%{bytecode_suffixes}
a3483f9
a3483f9
%files test
a3483f9
%defattr(-, root, root)
a3483f9
%{pylibdir}/ctypes/test
a3483f9
%{pylibdir}/distutils/tests
a3483f9
%{pylibdir}/sqlite3/test
a3483f9
%{pylibdir}/test
5080ffc
%{dynload_dir}/_ctypes_test.%{SOABI_optimized}.so
1c94c1a
%{dynload_dir}/_testbuffer.%{SOABI_optimized}.so
5080ffc
%{dynload_dir}/_testcapi.%{SOABI_optimized}.so
b282179
%{dynload_dir}/_testimportmultiple.%{SOABI_optimized}.so
a3483f9
%{pylibdir}/lib2to3/tests
a3483f9
%{pylibdir}/tkinter/test
e1c7be0
%{pylibdir}/unittest/test
a3483f9
55cf580
55cf580
# We don't bother splitting the debug build out into further subpackages:
55cf580
# if you need it, you're probably a developer.
55cf580
55cf580
# Hence the manifest is the combination of analogous files in the manifests of
55cf580
# all of the other subpackages
55cf580
815994f
%if 0%{?with_debug_build}
55cf580
%files debug
55cf580
%defattr(-,root,root,-)
55cf580
55cf580
# Analog of the core subpackage's files:
5080ffc
%{_bindir}/python%{LDVERSION_debug}
9640a7e
%{_bindir}/python3-debug
55cf580
26c1be5
# Analog of the -libs subpackage's files:
55cf580
# ...with debug builds of the built-in "extension" modules:
5080ffc
%{dynload_dir}/_bisect.%{SOABI_debug}.so
1c94c1a
%{dynload_dir}/_bz2.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_codecs_cn.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_codecs_hk.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_codecs_iso2022.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_codecs_jp.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_codecs_kr.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_codecs_tw.%{SOABI_debug}.so
1c94c1a
%{dynload_dir}/_crypt.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_csv.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_ctypes.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_curses.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_curses_panel.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_dbm.%{SOABI_debug}.so
1c94c1a
%{dynload_dir}/_decimal.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_elementtree.%{SOABI_debug}.so
5fe31d8
%if %{with_gdbm}
5080ffc
%{dynload_dir}/_gdbm.%{SOABI_debug}.so
5fe31d8
%endif
5080ffc
%{dynload_dir}/_hashlib.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_heapq.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_json.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_lsprof.%{SOABI_debug}.so
1c94c1a
%{dynload_dir}/_lzma.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_multibytecodec.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_multiprocessing.%{SOABI_debug}.so
3aee76e
%{dynload_dir}/_opcode.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_pickle.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_posixsubprocess.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_random.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_socket.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_sqlite3.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_ssl.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_struct.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/array.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/audioop.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/binascii.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/cmath.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_datetime.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/fcntl.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/grp.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/math.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/mmap.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/nis.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/ossaudiodev.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/parser.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/pyexpat.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/readline.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/resource.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/select.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/spwd.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/syslog.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/termios.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/time.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/unicodedata.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/zlib.%{SOABI_debug}.so
55cf580
55cf580
# No need to split things out the "Makefile" and the config-32/64.h file as we
55cf580
# do for the regular build above (bug 531901), since they're all in one package
55cf580
# now; they're listed below, under "-devel":
55cf580
55cf580
%{_libdir}/%{py_INSTSONAME_debug}
55cf580
%if 0%{?with_systemtap}
55cf580
%{tapsetdir}/%{libpython_stp_debug}
55cf580
%endif
55cf580
55cf580
# Analog of the -devel subpackage's files:
5080ffc
%{pylibdir}/config-%{LDVERSION_debug}
5080ffc
%{_includedir}/python%{LDVERSION_debug}
5080ffc
%{_bindir}/python%{LDVERSION_debug}-config
5080ffc
%{_libdir}/libpython%{LDVERSION_debug}.so
5080ffc
%{_libdir}/pkgconfig/python-%{LDVERSION_debug}.pc
55cf580
55cf580
# Analog of the -tools subpackage's files:
55cf580
#  None for now; we could build precanned versions that have the appropriate
55cf580
# shebang if needed
55cf580
55cf580
# Analog  of the tkinter subpackage's files:
5080ffc
%{dynload_dir}/_tkinter.%{SOABI_debug}.so
55cf580
55cf580
# Analog  of the -test subpackage's files:
5080ffc
%{dynload_dir}/_ctypes_test.%{SOABI_debug}.so
1c94c1a
%{dynload_dir}/_testbuffer.%{SOABI_debug}.so
5080ffc
%{dynload_dir}/_testcapi.%{SOABI_debug}.so
b282179
%{dynload_dir}/_testimportmultiple.%{SOABI_debug}.so
55cf580
815994f
%endif # with_debug_build
815994f
d5a5bf3
# We put the debug-gdb.py file inside /usr/lib/debug to avoid noise from
d5a5bf3
# ldconfig (rhbz:562980).
d5a5bf3
# 
d5a5bf3
# The /usr/lib/rpm/redhat/macros defines %__debug_package to use
d5a5bf3
# debugfiles.list, and it appears that everything below /usr/lib/debug and
d5a5bf3
# (/usr/src/debug) gets added to this file (via LISTFILES) in
d5a5bf3
# /usr/lib/rpm/find-debuginfo.sh
d5a5bf3
# 
d5a5bf3
# Hence by installing it below /usr/lib/debug we ensure it is added to the
d5a5bf3
# -debuginfo subpackage
d5a5bf3
# (if it doesn't, then the rpmbuild ought to fail since the debug-gdb.py 
d5a5bf3
# payload file would be unpackaged)
d5a5bf3
d5a5bf3
c769a6b
# ======================================================
c769a6b
# Finally, the changelog:
c769a6b
# ======================================================
c769a6b
a3483f9
%changelog
35bab9e
* Thu Jun 16 2016 Tomas Orsava <torsava@redhat.com> - 3.4.2-8
35bab9e
- Fix for: CVE-2016-0772 python: smtplib StartTLS stripping attack
35bab9e
- Raise an error when STARTTLS fails
35bab9e
- rhbz#1303647: https://bugzilla.redhat.com/show_bug.cgi?id=1303647
35bab9e
- rhbz#1346345: https://bugzilla.redhat.com/show_bug.cgi?id=1346345
35bab9e
- Fixed upstream: https://hg.python.org/cpython/rev/d590114c2394
35bab9e
35bab9e
* Mon Jun 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.4.2-7
afe637f
- Added patch for fixing possible integer overflow and heap corruption in zipimporter.get_data()
afe637f
Matej Stuchlik db8996c
* Thu Jul 09 2015 Thomas Spura <tomspur@fedoraproject.org> - 3.4.2-6
Matej Stuchlik db8996c
- sync with master branch to backport some fixes
Matej Stuchlik db8996c
- Use 1024bit DH key in test_ssl (Matej Stuchlik)
Matej Stuchlik db8996c
- Use -O0 when compiling -debug build (Matej Stuchlik)
Matej Stuchlik db8996c
- Update pip version variable to the version we actually ship (Matej Stuchlik)
Matej Stuchlik db8996c
- Fixed undefined behaviour in faulthandler which caused test to hang on x86_64
Matej Stuchlik db8996c
  (http://bugs.python.org/issue23433) (Matej Stuchlik)
Thomas Spura 7155a85
- Disable test_gdb on aarch64 (rhbz#1196181), it joins all other non x86 arches
Thomas Spura 7155a85
  (Peter Robinson)
Thomas Spura b4602e4
- Also disable gdb test on armv7hl
Matej Stuchlik db8996c
Thomas Spura cb053c7
* Mon Jun 29 2015 Thomas Spura <tomspur@fedoraproject.org> - 3.4.2-5
Thomas Spura cb053c7
- python3-devel: Require python-macros for version independant macros such as
Thomas Spura cb053c7
  python_provide. See fpc#281 and fpc#534.
Thomas Spura cb053c7
70025c7
* Mon Jan 12 2015 Dan Horák <dan[at]danny.cz> - 3.4.2-4
70025c7
- build with valgrind on ppc64le
70025c7
- disable test_gdb on s390(x) until rhbz#1181034 is resolved
70025c7
Robert Kuska 86a9a20
* Tue Dec 16 2014 Robert Kuska <rkuska@redhat.com> - 3.4.2-3
Robert Kuska 86a9a20
- New patches: 170 (gc asserts), 200 (gettext headers),
Robert Kuska 86a9a20
  201 (gdbm memory leak)
Robert Kuska 86a9a20
Robert Kuska 6afc2ff
* Thu Dec 11 2014 Robert Kuska <rkuska@redhat.com> - 3.4.2-2
Robert Kuska 6afc2ff
- OpenSSL disabled SSLv3 in SSLv23 method
Robert Kuska 6afc2ff
Matej Stuchlik a8e96a1
* Thu Nov 13 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.2-1
Matej Stuchlik a8e96a1
- Update to 3.4.2
Matej Stuchlik a8e96a1
- Refreshed patches: 156 (gdb autoload)
Matej Stuchlik a8e96a1
- Removed: 195 (Werror declaration), 197 (CVE-2014-4650)
Matej Stuchlik a8e96a1
e0539fb
* Mon Nov 03 2014 Slavek Kabrda <bkabrda@redhat.com> - 3.4.1-16
e0539fb
- Fix CVE-2014-4650 - CGIHTTPServer URL handling
e0539fb
Resolves: rhbz#1113529
e0539fb
e0539fb
* Sun Sep 07 2014 Karsten Hopp <karsten@redhat.com> 3.4.1-15
8d54999
- exclude test_gdb on ppc* (rhbz#1132488)
8d54999
ed631df
* Thu Aug 21 2014 Slavek Kabrda <bkabrda@redhat.com> - 3.4.1-14
ed631df
- Update rewheel patch with fix from https://github.com/bkabrda/rewheel/pull/1
ed631df
2d77c4d
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1-13
2d77c4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2d77c4d
9012997
* Sun Jun  8 2014 Peter Robinson <pbrobinson@fedoraproject.org> 3.4.1-12
9012997
- aarch64 has valgrind, just list those that don't support it
9012997
a292e5b
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.1-11
a292e5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a292e5b
cb99f9f
* Wed Jun 04 2014 Karsten Hopp <karsten@redhat.com> 3.4.1-10
cb99f9f
- bump release and rebuild to link with the correct tcl/tk libs on ppcle
cb99f9f
Matej Stuchlik 1014fca
* Tue Jun 03 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.1-9
Matej Stuchlik 1014fca
- Change paths to bundled projects in rewheel patch
Matej Stuchlik 1014fca
f188880
* Fri May 30 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.1-8
f188880
- In config script, use uname -m to write the arch
f188880
2a2186c
* Thu May 29 2014 Dan Horák <dan[at]danny.cz> - 3.4.1-7
2a2186c
- update the arch list where valgrind exists - %%power64 includes also
2a2186c
    ppc64le which is not supported yet
2a2186c
567c967
* Thu May 29 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.1-6
567c967
- Forward arguments to the arch specific config script
567c967
Resolves: rhbz#1102683
567c967
3d53dce
* Wed May 28 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.1-5
3d53dce
- Rename python3.Xm-config script to arch specific.
3d53dce
Resolves: rhbz#1091815
3d53dce
f30edc5
* Tue May 27 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.1-4
f30edc5
- Use python3-*, not python-* runtime requires on setuptools and pip
aeae72b
- rebuild for tcl-8.6
f30edc5
Matej Stuchlik cfa9e52
* Tue May 27 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.1-3
Matej Stuchlik cfa9e52
- Update the rewheel module
c21eb4a
c75d3be
* Mon May 26 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.1-2
c75d3be
- Fix multilib dependencies.
c75d3be
Resolves: rhbz#1091815
3a3feba
Matej Stuchlik e602f7a
* Sun May 25 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.1-1
Matej Stuchlik e602f7a
- Update to Python 3.4.1
bdf58d6
Matej Stuchlik da57024
* Sun May 25 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-8
Matej Stuchlik da57024
- Fix test_gdb failure on ppc64le
Matej Stuchlik da57024
Resolves: rhbz#1095355
b8daf73
8ab4c2d
* Thu May 22 2014 Miro Hrončok <mhroncok@redhat.com> - 3.4.0-7
8ab4c2d
- Add macro %%python3_version_nodots
a39396d
Matej Stuchlik 1746188
* Sun May 18 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-6
Matej Stuchlik 1746188
- Disable test_faulthandler, test_gdb on aarch64
Matej Stuchlik 1746188
Resolves: rhbz#1045193
Matej Stuchlik 1746188
Matej Stuchlik 0624726
* Fri May 16 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-5
Matej Stuchlik 0624726
- Don't add Werror=declaration-after-statement for extension
Matej Stuchlik 0624726
  modules through setup.py (PyBT#21121)
Matej Stuchlik 0624726
Matej Stuchlik f498010
* Mon May 12 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-4
Matej Stuchlik f498010
- Add setuptools and pip to Requires
Matej Stuchlik f498010
Matej Stuchlik 516eb7a
* Tue Apr 29 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-3
Matej Stuchlik 516eb7a
- Point __os_install_post to correct brp-* files
Matej Stuchlik 516eb7a
Matej Stuchlik 7d579ea
* Tue Apr 15 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-2
Matej Stuchlik 7d579ea
- Temporarily disable tests requiring SIGHUP (rhbz#1088233)
Matej Stuchlik 7d579ea
Matej Stuchlik 11fb599
* Tue Apr 15 2014 Matej Stuchlik <mstuchli@redhat.com> - 3.4.0-1
Matej Stuchlik 11fb599
- Update to Python 3.4 final
Matej Stuchlik 11fb599
- Add patch adding the rewheel module
Matej Stuchlik 11fb599
- Merge patches from master
Matej Stuchlik 11fb599
61fd48d
* Wed Jan 08 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.0-0.1.b2
61fd48d
- Update to Python 3.4 beta 2.
61fd48d
- Refreshed patches: 55 (systemtap), 146 (hashlib-fips), 154 (test_gdb noise)
61fd48d
- Dropped patches: 114 (statvfs constants), 177 (platform unicode)
61fd48d
bf35167
* Mon Nov 25 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.0-0.1.b1
bf35167
- Update to Python 3.4 beta 1.
bf35167
- Refreshed patches: 102 (lib64), 111 (no static lib), 125 (less verbose COUNT
bf35167
ALLOCS), 141 (fix COUNT_ALLOCS in test_module), 146 (hashlib fips),
bf35167
157 (UID+GID overflows), 173 (ENOPROTOOPT in bind_port)
bf35167
- Removed patch 00187 (remove pthread atfork; upstreamed)
bf35167
f5250ec
* Mon Nov 04 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.4.0-0.1.a4
f5250ec
- Update to Python 3.4 alpha 4.
f5250ec
- Refreshed patches: 55 (systemtap), 102 (lib64), 111 (no static lib),
f5250ec
114 (statvfs flags), 132 (unittest rpmbuild hooks), 134 (fix COUNT_ALLOCS in
f5250ec
test_sys), 143 (tsc on ppc64), 146 (hashlib fips), 153 (test gdb noise),
f5250ec
157 (UID+GID overflows), 173 (ENOPROTOOPT in bind_port), 186 (dont raise
f5250ec
from py_compile)
f5250ec
- Removed patches: 129 (test_subprocess nonreadable dir - no longer fails in
f5250ec
Koji), 142 (the mock issue that caused this is fixed)
f5250ec
- Added patch 187 (remove thread atfork) - will be in next version
f5250ec
- Refreshed script for checking pyc and pyo timestamps with new ignored files.
f5250ec
- The fips patch is disabled for now until upstream makes a final decision
f5250ec
what to do with sha3 implementation for 3.4.0.
Matej Stuchlik 54afb02
3dbbc14
* Wed Oct 30 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.2-7
3dbbc14
- Bytecompile all *.py files properly during build (rhbz#1023607)
3dbbc14
Matej Stuchlik 8aaa11c
* Fri Aug 23 2013 Matej Stuchlik <mstuchli@redhat.com> - 3.3.2-6
Matej Stuchlik 8aaa11c
- Added fix for CVE-2013-4238 (rhbz#996399)
Matej Stuchlik 8aaa11c
fbccd69
* Fri Jul 26 2013 Dennis Gilmore <dennis@ausil.us> - 3.3.2-5
fbccd69
- fix up indentation in arm patch
fbccd69
486eb43
* Fri Jul 26 2013 Dennis Gilmore <dennis@ausil.us> - 3.3.2-4
486eb43
- disable a test that fails on arm
486eb43
- enable valgrind support on arm arches
486eb43
001a277
* Tue Jul 02 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.2-3
001a277
- Fix build with libffi containing multilib wrapper for ffi.h (rhbz#979696).
001a277
22e1cc9
* Mon May 20 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.2-2
22e1cc9
- Add patch for CVE-2013-2099 (rhbz#963261).
22e1cc9
a60a842
* Thu May 16 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.2-1
a60a842
- Updated to Python 3.3.2.
a60a842
- Refreshed patches: 153 (gdb test noise)
d4ea6cd
- Dropped patches: 175 (configure -Wformat, fixed upstream), 182 (gdb
d4ea6cd
test threads)
a60a842
- Synced patch numbers with python.spec.
a60a842
9d658b4
* Thu May  9 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.1-4
9d658b4
- fix test.test_gdb.PyBtTests.test_threads on ppc64 (patch 181; rhbz#960010)
9d658b4
f9db6e6
* Thu May 02 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.1-3
f9db6e6
- Add patch that enables building on ppc64p7 (replace the sed, so that
f9db6e6
we get consistent with python2 spec and it's more obvious that we're doing it.
f9db6e6
b935d25
* Wed Apr 24 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.1-2
b935d25
- Add fix for gdb tests failing on arm, rhbz#951802.
b935d25
5023236
* Tue Apr 09 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 3.3.1-1
5023236
- Updated to Python 3.3.1.
5023236
- Refreshed patches: 55 (systemtap), 111 (no static lib), 146 (hashlib fips),
5023236
153 (fix test_gdb noise), 157 (uid, gid overflow - fixed upstream, just
5023236
keeping few more downstream tests)
5023236
- Removed patches: 3 (audiotest.au made it to upstream tarball)
5023236
- Removed workaround for http://bugs.python.org/issue14774, discussed in
5023236
http://bugs.python.org/issue15298 and fixed in revision 24d52d3060e8.
5023236
b4d586e
* Mon Mar 25 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-10
b4d586e
- fix gcc 4.8 incompatibility (rhbz#927358); regenerate autotool intermediates
b4d586e
ff7dfb6
* Mon Mar 25 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-9
ff7dfb6
- renumber patches to keep them in sync with python.spec
ff7dfb6
7c28d2c
* Fri Mar 15 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.0-8
7c28d2c
- Fix error in platform.platform() when non-ascii byte strings are decoded to
7c28d2c
  unicode (rhbz#922149)
7c28d2c
7c28d2c
* Thu Mar 14 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 3.3.0-7
e721470
- Fix up shared library extension (rhbz#889784)
e721470
42e503c
* Thu Mar 07 2013 Karsten Hopp <karsten@redhat.com> 3.3.0-6
42e503c
- add ppc64p7 build target, optimized for Power7
42e503c
260ceea
* Mon Mar  4 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-5
260ceea
- add workaround for ENOPROTOOPT seen running selftests in Koji
260ceea
(rhbz#913732)
260ceea
19e1adc
* Mon Mar  4 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-4
19e1adc
- remove config flag from /etc/rpm/macros.{python3|pybytecompile}
19e1adc
a2f6453
* Mon Feb 11 2013 David Malcolm <dmalcolm@redhat.com> - 3.3.0-3
a2f6453
- add aarch64 (rhbz#909783)
a2f6453
81ac8c8
* Thu Nov 29 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-2
81ac8c8
- add BR on bluez-libs-devel (rhbz#879720)
81ac8c8
513a269
* Sat Sep 29 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-1
513a269
- 3.3.0rc3 -> 3.3.0; drop alphatag
513a269
3705b64
* Mon Sep 24 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.6.rc3
3705b64
- 3.3.0rc2 -> 3.3.0rc3
3705b64
78727de
* Mon Sep 10 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.5.rc2
78727de
- 3.3.0rc1 -> 3.3.0rc2; refresh patch 55
78727de
92d712a
* Mon Aug 27 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.4.rc1
92d712a
- 3.3.0b2 -> 3.3.0rc1; refresh patches 3, 55
92d712a
62d7207
* Mon Aug 13 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.3.b2
62d7207
- 3.3b1 -> 3.3b2; drop upstreamed patch 152; refresh patches 3, 102, 111,
62d7207
134, 153, 160; regenenerate autotools patch; rework systemtap patch to work
62d7207
correctly when LANG=C (patch 55); importlib.test was moved to
62d7207
test.test_importlib upstream
62d7207
d474ecc
* Mon Aug 13 2012 Karsten Hopp <karsten@redhat.com> 3.3.0-0.2.b1
d474ecc
- disable some failing checks on PPC* (rhbz#846849)
d474ecc
6a38560
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.1.b1
1c94c1a
- 3.2 -> 3.3: https://fedoraproject.org/wiki/Features/Python_3.3
1c94c1a
- 3.3.0b1: refresh patches 3, 55, 102, 111, 113, 114, 134, 157; drop upstream
1c94c1a
patch 147; regenenerate autotools patch; drop "--with-wide-unicode" from
1c94c1a
configure (PEP 393); "plat-linux2" -> "plat-linux" (upstream issue 12326);
1c94c1a
"bz2" -> "_bz2" and "crypt" -> "_crypt"; egg-info files are no longer shipped
1c94c1a
for stdlib (upstream issues 10645 and 12218); email/test moved to
1c94c1a
test/test_email; add /usr/bin/pyvenv[-3.3] and venv module (PEP 405); add
1c94c1a
_decimal and _lzma modules; make collections modules explicit in payload again
1c94c1a
(upstream issue 11085); add _testbuffer module to tests subpackage (added in
823581e
upstream commit 3f9b3b6f7ff0); fix test failures (patches 160 and 161);
08ca53f
workaround erroneously shared _sysconfigdata.py upstream issue #14774; fix
f2b86e2
distutils.sysconfig traceback (patch 162); add BuildRequires: xz-devel (for
48d2048
_lzma module); skip some tests within test_socket (patch 163)
1c94c1a
9924024
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.3-11
9924024
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9924024
6a38560
* Fri Jul 20 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.0-0.1.b1
6a38560
cc23835
* Fri Jun 22 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-10
cc23835
- use macro for power64 (rhbz#834653)
cc23835
a25ec0b
* Mon Jun 18 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-9
a25ec0b
- fix missing include in uid/gid handling patch (patch 157; rhbz#830405)
a25ec0b
f011cdc
* Wed May 30 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 3.2.3-8
f011cdc
- fix tapset for debug build
f011cdc
7989368
* Tue May 15 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-7
7989368
- update uid/gid handling to avoid int overflows seen with uid/gid
7989368
values >= 2^31 on 32-bit architectures (patch 157; rhbz#697470)
7989368
8cb91f0
* Fri May  4 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-6
8cb91f0
- renumber autotools patch from 300 to 5000
8cb91f0
- specfile cleanups
8cb91f0
938d1d7
* Mon Apr 30 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-5
938d1d7
- fix test_gdb.py (patch 156; rhbz#817072)
938d1d7
8a28107
* Fri Apr 20 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-4
8a28107
- avoid allocating thunks in ctypes unless absolutely necessary, to avoid
8a28107
generating SELinux denials on "import ctypes" and "import uuid" when embedding
8a28107
Python within httpd (patch 155; rhbz#814391)
8a28107
5974f19
* Fri Apr 20 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-3
5974f19
- add explicit version requirements on expat to avoid linkage problems with
5974f19
XML_SetHashSalt
5974f19
3170c05
* Thu Apr 12 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-2
3170c05
- fix test_gdb (patch 153)
3170c05
2885662
* Wed Apr 11 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-1
2885662
- 3.2.3; refresh patch 102 (lib64); drop upstream patches 148 (gdbm magic
2885662
values), 149 (__pycache__ fix); add patch 152 (test_gdb regex)
2885662
Thomas Spura ae2fc1c
* Thu Feb  9 2012 Thomas Spura <tomspur@fedoraproject.org> - 3.2.2-13
Thomas Spura ae2fc1c
- use newly installed python for byte compiling (now for real)
Thomas Spura e6314e6
Thomas Spura 1c26b68
* Sun Feb  5 2012 Thomas Spura <tomspur@fedoraproject.org> - 3.2.2-12
Thomas Spura 1c26b68
- use newly installed python for byte compiling (#787498)
Thomas Spura 1c26b68
8a69a67
* Wed Jan  4 2012 Ville Skyttä <ville.skytta@iki.fi> - 3.2.2-11
8a69a67
- Build with $RPM_LD_FLAGS (#756863).
8a69a67
- Use xz-compressed source tarball.
8a69a67
1af1383
* Wed Dec 07 2011 Karsten Hopp <karsten@redhat.com> 3.2.2-10
1af1383
- disable rAssertAlmostEqual in test_cmath on PPC (#750811)
1af1383
8c9e381
* Mon Oct 17 2011 Rex Dieter <rdieter@fedoraproject.org> - 3.2.2-9
8c9e381
- python3-devel missing autogenerated pkgconfig() provides (#746751)
8c9e381
e2a3db4
* Mon Oct 10 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-8
e2a3db4
- cherrypick fix for distutils not using __pycache__ when byte-compiling
e2a3db4
files (rhbz#722578)
e2a3db4
9b8d221
* Fri Sep 30 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-7
9b8d221
- re-enable gdbm (patch 148; rhbz#742242)
9b8d221
ab415c6
* Fri Sep 16 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-6
ab415c6
- add a sys._debugmallocstats() function (patch 147)
ab415c6
b8f92b4
* Wed Sep 14 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-5
b8f92b4
- support OpenSSL FIPS mode in _hashlib and hashlib; don't build the _md5 and
b8f92b4
_sha* modules, relying on _hashlib in hashlib (rhbz#563986; patch 146)
b8f92b4
5fe31d8
* Tue Sep 13 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-4
5fe31d8
- disable gdbm module to prepare for gdbm soname bump
5fe31d8
c923b51
* Mon Sep 12 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-3
c923b51
- renumber and rename patches for consistency with python.spec (8 to 55, 106
c923b51
to 104, 6 to 111, 104 to 113, 105 to 114, 125, 131, 130 to 143)
c923b51
0c8875f
* Sat Sep 10 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-2
0c8875f
- rewrite of "check", introducing downstream-only hooks for skipping specific
0c8875f
cases in an rpmbuild (patch 132), and fixing/skipping failing tests in a more
0c8875f
fine-grained manner than before; (patches 106, 133-142 sparsely, moving
0c8875f
patches for consistency with python.spec: 128 to 134, 126 to 135, 127 to 141)
0c8875f
06b3c5b
* Tue Sep  6 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.2-1
06b3c5b
- 3.2.2
06b3c5b
28391cb
* Thu Sep  1 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-7
28391cb
- run selftests with "--verbose"
28391cb
- disable parts of test_io on ppc (rhbz#732998)
28391cb
9a778ac
* Wed Aug 31 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-6
9a778ac
- use "--findleaks --verbose3" when running test suite
9a778ac
ceb359a
* Tue Aug 23 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-5
ceb359a
- re-enable and fix the --with-tsc option on ppc64, and rework it on 32-bit
ceb359a
ppc to avoid aliasing violations (patch 130; rhbz#698726)
ceb359a
4763ff8
* Tue Aug 23 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-4
4763ff8
- don't use --with-tsc on ppc64 debug builds (rhbz#698726)
4763ff8
65e90f6
* Thu Aug 18 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-3
65e90f6
- add %%python3_version to the rpm macros (rhbz#719082)
65e90f6
cdc1710
* Mon Jul 11 2011 Dennis Gilmore <dennis@ausil.us> - 3.2.1-2
cdc1710
- disable some tests on sparc arches 
cdc1710
cce760d
* Mon Jul 11 2011 David Malcolm <dmalcolm@redhat.com> - 3.2.1-1
cce760d
- 3.2.1; refresh lib64 patch (102), subprocess unit test patch (129), disabling
cce760d
of static library build (due to Modules/_testembed; patch 6), autotool
cce760d
intermediates (patch 300)
cce760d
cfd3e15
* Fri Jul  8 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-5
cfd3e15
- use the gdb hooks from the upstream tarball, rather than keeping our own copy
cfd3e15
5db81fb
* Fri Jul  8 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-4
5db81fb
- don't run test_openpty and test_pty in %%check
5db81fb
c769a6b
* Fri Jul  8 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-3
c769a6b
- cleanup of BuildRequires; add comment headings to specfile sections
c769a6b
b0ba5d4
* Tue Apr 19 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-2
b0ba5d4
- fix the libpython.stp systemtap tapset (rhbz#697730)
b0ba5d4
e516bd5
* Mon Feb 21 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-1
e516bd5
- 3.2
e516bd5
- drop alphatag
e516bd5
- regenerate autotool patch
e516bd5
9640a7e
* Mon Feb 14 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.13.rc3
9640a7e
- add a /usr/bin/python3-debug symlink within the debug subpackage
9640a7e
3f75b3e
* Mon Feb 14 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.12.rc3
3f75b3e
- 3.2rc3
3f75b3e
- regenerate autotool patch
3f75b3e
fef240e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-0.11.rc2
fef240e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fef240e
fc9ba51
* Mon Jan 31 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.10.rc2
fc9ba51
- 3.2rc2
fc9ba51
34c15c7
* Mon Jan 17 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.9.rc1
34c15c7
- 3.2rc1
34c15c7
- rework patch 6 (static lib removal)
34c15c7
- remove upstreamed patch 130 (ppc debug build)
34c15c7
- regenerate patch 300 (autotool intermediates)
34c15c7
- updated packaging to reflect upstream rewrite of "Demo" (issue 7962)
34c15c7
- added libpython3.so and 2to3-3.2
34c15c7
5659c63
* Wed Jan  5 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.8.b2
5659c63
- set EXTRA_CFLAGS to our CFLAGS, rather than overriding OPT, fixing a linker
5659c63
error with dynamic annotations (when configured using --with-valgrind)
5659c63
- fix the ppc build of the debug configuration (patch 130; rhbz#661510)
5659c63
31a06df
* Tue Jan  4 2011 David Malcolm <dmalcolm@redhat.com> - 3.2-0.7.b2
31a06df
- add --with-valgrind to configuration (on architectures that support this)
31a06df
c23ee7d
* Wed Dec 29 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.6.b2
c23ee7d
- work around test_subprocess failure seen in koji (patch 129)
c23ee7d
5080ffc
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
5080ffc
- 3.2b2
5080ffc
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
5080ffc
patch 8 (systemtap), patch 102 (lib64)
5080ffc
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
5080ffc
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
5080ffc
fixed upstream)
5080ffc
- regenerate patch 300 (autotool intermediates)
5080ffc
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
5080ffc
patch 128)
5080ffc
- stop using runtest.sh in %%check (dropped by upstream), replacing with
5080ffc
regrtest; fixup list of failing tests
5080ffc
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
5080ffc
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
5080ffc
PEP 3149
5080ffc
- drop itertools, operator and _collections modules from the manifests as py3k
5080ffc
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
5080ffc
- move turtle code into the tkinter subpackage
5080ffc
824c34b
* Wed Nov 17 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.a1
824c34b
- fix sysconfig to not rely on the -devel subpackage (rhbz#653058)
824c34b
26c1be5
* Thu Sep  9 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.4.a1
26c1be5
- move most of the content of the core package to the libs subpackage, given
26c1be5
that the libs aren't meaningfully usable without the standard libraries
26c1be5
e1c7be0
* Wed Sep  8 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.3.a1
e1c7be0
- Move test.support to core package (rhbz#596258)
e1c7be0
- Add various missing __pycache__ directories to payload
e1c7be0
13c4a4f
* Sun Aug 22 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.2-0.2.a1
13c4a4f
- Add __pycache__ directory for site-packages
13c4a4f
997d5a2
* Sun Aug 22 2010 Thomas Spura <tomspur@fedoraproject.org> - 3.2-0.1.a1
997d5a2
- on 64bit "stdlib" was still "/usr/lib/python*" (modify *lib64.patch)
997d5a2
- make find-provides-without-python-sonames.sh 64bit aware
997d5a2
7eb10c8
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
7eb10c8
- 3.2a1; add alphatag
7eb10c8
- rework %%files in the light of PEP 3147 (__pycache__)
7eb10c8
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
7eb10c8
better job of things, and the %%files explicitly lists our modules (r82746
7eb10c8
appears to break the old way of doing things).  This leads to various modules
7eb10c8
changing from "foomodule.so" to "foo.so".  It also leads to the optimized build
7eb10c8
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
7eb10c8
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
7eb10c8
testing/devel purposes)
7eb10c8
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
7eb10c8
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
7eb10c8
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
7eb10c8
- add machinery for rebuilding "configure" and friends, using the correct
7eb10c8
version of autoconf (patch 300)
7eb10c8
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
7eb10c8
- "modulator" was removed upstream
7eb10c8
- drop "-b" from patch applications affecting .py files to avoid littering the
7eb10c8
installation tree
7eb10c8
ab3441a
* Thu Aug 19 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-13
91b7804
- Turn on computed-gotos.
ab3441a
- Fix for parallel make and graminit.c
91b7804
9b81ebe
* Fri Jul  2 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-12
9b81ebe
- rebuild
9b81ebe
03b7fb2
* Fri Jul  2 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-11
03b7fb2
- Fix an incompatibility between pyexpat and the system expat-2.0.1 that led to
03b7fb2
a segfault running test_pyexpat.py (patch 110; upstream issue 9054; rhbz#610312)
03b7fb2
5c9590b
* Fri Jun  4 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-10
5c9590b
- ensure that the compiler is invoked with "-fwrapv" (rhbz#594819)
5c9590b
- reformat whitespace in audioop.c (patch 106)
5c9590b
- CVE-2010-1634: fix various integer overflow checks in the audioop
5c9590b
module (patch 107)
5c9590b
- CVE-2010-2089: further checks within the audioop module (patch 108)
5c9590b
- CVE-2008-5983: the new PySys_SetArgvEx entry point from r81399 (patch 109)
5c9590b
66cf571
* Thu May 27 2010 Dan Horák <dan[at]danny.cz> - 3.1.2-9
66cf571
- reading the timestamp counter is available only on some arches (see Python/ceval.c)
66cf571
d73e38d
* Wed May 26 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-8
d73e38d
- add flags for statvfs.f_flag to the constant list in posixmodule (i.e. "os")
d73e38d
(patch 105)
d73e38d
021b2bc
* Tue May 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-7
021b2bc
- add configure-time support for COUNT_ALLOCS and CALL_PROFILE debug options
021b2bc
(patch 104); enable them and the WITH_TSC option within the debug build
021b2bc
55cf580
* Mon May 24 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-6
55cf580
- build and install two different configurations of Python 3: debug and
55cf580
standard, packaging the debug build in a new "python3-debug" subpackage
55cf580
(patch 103)
55cf580
bbd09cc
* Tue Apr 13 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-5
bbd09cc
- exclude test_http_cookies when running selftests, due to hang seen on
bbd09cc
http://koji.fedoraproject.org/koji/taskinfo?taskID=2088463 (cancelled after
bbd09cc
11 hours)
bbd09cc
- update python-gdb.py from v5 to py3k version submitted upstream
bbd09cc
80325d9
* Wed Mar 31 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-4
80325d9
- update python-gdb.py from v4 to v5 (improving performance and stability,
80325d9
adding commands)
80325d9
da0826a
* Thu Mar 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-3
da0826a
- update python-gdb.py from v3 to v4 (fixing infinite recursion on reference
da0826a
cycles and tracebacks on bytes 0x80-0xff in strings, adding handlers for sets
da0826a
and exceptions)
da0826a
485fd76
* Wed Mar 24 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-2
485fd76
- refresh gdb hooks to v3 (reworking how they are packaged)
485fd76
eeb0b9b
* Sun Mar 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-1
eeb0b9b
- update to 3.1.2: http://www.python.org/download/releases/3.1.2/
eeb0b9b
- drop upstreamed patch 2 (.pyc permissions handling)
eeb0b9b
- drop upstream patch 5 (fix for the test_tk and test_ttk_* selftests)
eeb0b9b
- drop upstreamed patch 200 (path-fixing script)
eeb0b9b
536a207
* Sat Mar 20 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-28
536a207
- fix typo in libpython.stp (rhbz:575336)
536a207
71040c9
* Fri Mar 12 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-27
71040c9
- add pyfuntop.stp example (source 7)
71040c9
- convert usage of $$RPM_BUILD_ROOT to %%{buildroot} throughout, for
71040c9
consistency with python.spec
71040c9
3d86c8f
* Mon Feb 15 2010 Thomas Spura <tomspur@fedoraproject.org> - 3.1.1-26
3d86c8f
- rebuild for new package of redhat-rpm-config (rhbz:564527)
3d86c8f
- use 'install -p' when running 'make install'
3d86c8f
c969609
* Fri Feb 12 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-25
c969609
- split configure options into multiple lines for easy of editing
c969609
- add systemtap static markers (wcohen, mjw, dmalcolm; patch 8), a systemtap
c969609
tapset defining "python.function.entry" and "python.function.return" to make
c969609
the markers easy to use (dmalcolm; source 5), and an example of using the
c969609
tapset to the docs (dmalcolm; source 6) (rhbz:545179)
c969609
d5a5bf3
* Mon Feb  8 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-24
d5a5bf3
- move the -gdb.py file from %%{_libdir}/INSTSONAME-gdb.py to
d5a5bf3
%%{_prefix}/lib/debug/%%{_libdir}/INSTSONAME.debug-gdb.py to avoid noise from
d5a5bf3
ldconfig (bug 562980), and which should also ensure it becomes part of the
d5a5bf3
debuginfo subpackage, rather than the libs subpackage
d5a5bf3
- introduce %%{py_SOVERSION} and %%{py_INSTSONAME} to reflect the upstream
d5a5bf3
configure script, and to avoid fragile scripts that try to figure this out
d5a5bf3
dynamically (e.g. for the -gdb.py change)
d5a5bf3
b2154fa
* Mon Feb  8 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-23
b2154fa
- add gdb hooks for easier debugging (Source 4)
b2154fa
1ae4dd3
* Thu Jan 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-22
1ae4dd3
- update python-3.1.1-config.patch to remove downstream customization of build
1ae4dd3
of pyexpat and elementtree modules
1ae4dd3
- add patch adapted from upstream (patch 7) to add support for building against
1ae4dd3
system expat; add --with-system-expat to "configure" invocation
1ae4dd3
- remove embedded copies of expat and zlib from source tree during "prep"
1ae4dd3
4aab458
* Mon Jan 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-21
4aab458
- introduce %%{dynload_dir} macro
4aab458
- explicitly list all lib-dynload files, rather than dynamically gathering the
4aab458
payload into a temporary text file, so that we can be sure what we are
4aab458
shipping
4aab458
- introduce a macros.pybytecompile source file, to help with packaging python3
4aab458
modules (Source3; written by Toshio)
4aab458
- rename "2to3-3" to "python3-2to3" to better reflect python 3 module packaging
4aab458
plans
4aab458
113725a
* Mon Jan 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-20
113725a
- change python-3.1.1-config.patch to remove our downstream change to curses
113725a
configuration in Modules/Setup.dist, so that the curses modules are built using
113725a
setup.py with the downstream default (linking against libncursesw.so, rather
113725a
than libncurses.so), rather than within the Makefile; add a test to %%install
113725a
to verify the dso files that the curses module is linked against the correct
113725a
DSO (bug 539917; changes _cursesmodule.so -> _curses.so)
113725a
d5d2307
* Fri Jan 22 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-19
d5d2307
- add %%py3dir macro to macros.python3 (to be used during unified python 2/3
d5d2307
builds for setting up the python3 copy of the source tree)
d5d2307
6a82c19
* Wed Jan 20 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-18
6a82c19
- move lib2to3 from -tools subpackage to main package (bug 556667)
6a82c19
aa4aef2
* Sun Jan 17 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-17
aa4aef2
- patch Makefile.pre.in to avoid building static library (patch 6, bug 556092)
aa4aef2
6859f23
* Fri Jan 15 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-16
6859f23
- use the %%{_isa} macro to ensure that the python-devel dependency on python
6859f23
is for the correct multilib arch (#555943)
6859f23
- delete bundled copy of libffi to make sure we use the system one
6859f23
a9e268f
* Fri Jan 15 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-15
a9e268f
- fix the URLs output by pydoc so they point at python.org's 3.1 build of the
a9e268f
docs, rather than the 2.6 build
a9e268f
37de674
* Wed Jan 13 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-14
37de674
- replace references to /usr with %%{_prefix}; replace references to
37de674
/usr/include with %%{_includedir} (Toshio)
37de674
a3483f9
* Mon Jan 11 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-13
a3483f9
- fix permission on find-provides-without-python-sonames.sh from 775 to 755
a3483f9
a3483f9
* Mon Jan 11 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-12
a3483f9
- remove build-time requirements on tix and tk, since we already have
a3483f9
build-time requirements on the -devel subpackages for each of these (Thomas
a3483f9
Spura)
a3483f9
- replace usage of %%define with %%global (Thomas Spura)
a3483f9
- remove forcing of CC=gcc as this old workaround for bug 109268 appears to
a3483f9
longer be necessary
a3483f9
- move various test files from the "tools"/"tkinter" subpackages to the "test"
a3483f9
subpackage
a3483f9
a3483f9
* Thu Jan  7 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-11
a3483f9
- add %%check section (thanks to Thomas Spura)
a3483f9
- update patch 4 to use correct shebang line
a3483f9
- get rid of stray patch file from buildroot
a3483f9
a3483f9
* Tue Nov 17 2009 Andrew McNabb <amcnabb@mcnabbs.org> - 3.1.1-10
a3483f9
- switched a few instances of "find |xargs" to "find -exec" for consistency.
a3483f9
- made the description of __os_install_post more accurate.
a3483f9
a3483f9
* Wed Nov  4 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-9
a3483f9
- add macros.python3 to the -devel subpackage, containing common macros for use
a3483f9
when packaging python3 modules
a3483f9
a3483f9
* Tue Nov  3 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-8
a3483f9
- add a provides of "python(abi)" (see bug 532118)
a3483f9
- fix issues identified by a.badger in package review (bug 526126, comment 39):
a3483f9
  - use "3" thoughout metadata, rather than "3.*"
a3483f9
  - remove conditional around "pkg-config openssl"
a3483f9
  - use standard cleanup of RPM_BUILD_ROOT
a3483f9
  - replace hardcoded references to /usr with _prefix macro
a3483f9
  - stop removing egg-info files
a3483f9
  - use /usr/bin/python3.1 rather than /use/bin/env python3.1 when fixing
a3483f9
up shebang lines
a3483f9
  - stop attempting to remove no-longer-present .cvsignore files
a3483f9
  - move the post/postun sections above the "files" sections
a3483f9
a3483f9
* Thu Oct 29 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-7
a3483f9
- remove commented-away patch 51 (python-2.6-distutils_rpm.patch): the -O1
a3483f9
flag is used by default in the upstream code
a3483f9
- "Makefile" and the config-32/64.h file are needed by distutils/sysconfig.py
a3483f9
_init_posix(), so we include them in the core package, along with their parent
a3483f9
directories (bug 531901)
a3483f9
a3483f9
* Tue Oct 27 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-6
a3483f9
- reword description, based on suggestion by amcnabb
a3483f9
- fix the test_email and test_imp selftests (patch 3 and patch 4 respectively)
a3483f9
- fix the test_tk and test_ttk_* selftests (patch 5)
a3483f9
- fix up the specfile's handling of shebang/perms to avoid corrupting
a3483f9
test_httpservers.py (sed command suggested by amcnabb)
a3483f9
a3483f9
* Thu Oct 22 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-5
a3483f9
- fixup importlib/_bootstrap.py so that it correctly handles being unable to
a3483f9
open .pyc files for writing (patch 2, upstream issue 7187)
a3483f9
- actually apply the rpath patch (patch 1)
a3483f9
a3483f9
* Thu Oct 22 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-4
a3483f9
- update patch0's setup of the crypt module to link it against libcrypt
a3483f9
- update patch0 to comment "datetimemodule" back out, so that it is built
a3483f9
using setup.py (see Setup, option 3), thus linking it statically against
a3483f9
timemodule.c and thus avoiding a run-time "undefined symbol:
a3483f9
_PyTime_DoubleToTimet" failure on "import datetime"
a3483f9
a3483f9
* Wed Oct 21 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-3
a3483f9
- remove executable flag from various files that shouldn't have it
a3483f9
- fix end-of-line encodings
a3483f9
- fix a character encoding
a3483f9
a3483f9
* Tue Oct 20 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-2
a3483f9
- disable invocation of brp-python-bytecompile in postprocessing, since
a3483f9
it would be with the wrong version of python (adapted from ivazquez'
a3483f9
python3000 specfile)
a3483f9
- use a custom implementation of __find_provides in order to filter out bogus
a3483f9
provides lines for the various .so modules
a3483f9
- fixup distutils/unixccompiler.py to remove standard library path from rpath
a3483f9
(patch 1, was Patch0 in ivazquez' python3000 specfile)
a3483f9
- split out libraries into a -libs subpackage
a3483f9
- update summaries and descriptions, basing content on ivazquez' specfile
a3483f9
- fixup executable permissions on .py, .xpm and .xbm files, based on work in
a3483f9
ivazquez's specfile
a3483f9
- get rid of DOS batch files
a3483f9
- fixup permissions for shared libraries from non-standard 555 to standard 755
a3483f9
- move /usr/bin/python*-config to the -devel subpackage
a3483f9
- mark various directories as being documentation
a3483f9
a3483f9
* Thu Sep 24 2009 Andrew McNabb <amcnabb@mcnabbs.org> 3.1.1-1
a3483f9
- Initial package for Python 3.
a3483f9