1fe57a
# ======================================================
1fe57a
# Conditionals and other variables controlling the build
1fe57a
# ======================================================
1fe57a
1fe57a
# Note that the bcond macros are named for the CLI option they create.
1fe57a
# "%%bcond_without" means "ENABLE by default and create a --without option"
1fe57a
1fe57a
# Ability to reuse RPM-installed pip using rewheel
1fe57a
%bcond_with rewheel
1fe57a
1fe57a
# Extra build for debugging the interpreter or C-API extensions
1fe57a
# (the -debug subpackages)
1fe57a
%bcond_with debug_build
1fe57a
1fe57a
# Remove extra packages
1fe57a
%bcond_with tk_and_tools
1fe57a
1fe57a
%global unicode ucs4
1fe57a
1fe57a
%global python python2
1fe57a
1fe57a
%global pybasever 2.7
1fe57a
%global pylibdir %{_libdir}/python%{pybasever}
1fe57a
%global tools_dir %{pylibdir}/Tools
1fe57a
%global demo_dir %{pylibdir}/Demo
1fe57a
%global doc_tools_dir %{pylibdir}/Doc/tools
1fe57a
%global dynload_dir %{pylibdir}/lib-dynload
1fe57a
%global site_packages %{pylibdir}/site-packages
1fe57a
1fe57a
# Python's configure script defines SOVERSION, and this is used in the Makefile
1fe57a
# to determine INSTSONAME, the name of the libpython DSO:
1fe57a
#   LDLIBRARY='libpython$(VERSION).so'
1fe57a
#   INSTSONAME="$LDLIBRARY".$SOVERSION
1fe57a
# We mirror this here in order to make it easier to add the -gdb.py hooks.
1fe57a
# (if these get out of sync, the payload of the libs subpackage will fail
1fe57a
# and halt the build)
1fe57a
%global py_SOVERSION 1.0
1fe57a
%global py_INSTSONAME_optimized libpython%{pybasever}.so.%{py_SOVERSION}
1fe57a
%global py_INSTSONAME_debug     libpython%{pybasever}_d.so.%{py_SOVERSION}
1fe57a
1fe57a
# Disabled for now:
1fe57a
%global with_huntrleaks 0
1fe57a
1fe57a
%global with_gdb_hooks 1
1fe57a
1fe57a
%global with_systemtap 1
1fe57a
1fe57a
# some arches don't have valgrind so we need to disable its support on them
1fe57a
%ifarch %{valgrind_arches}
1fe57a
%global with_valgrind 1
1fe57a
%else
1fe57a
%global with_valgrind 0
1fe57a
%endif
1fe57a
1fe57a
%global with_gdbm 1
1fe57a
1fe57a
%if 0%{?_module_build}
1fe57a
%global with_valgrind 0
1fe57a
%global with_systemtap 0
1fe57a
1fe57a
# (Don't) Run the test suite in %%check
1fe57a
%bcond_with tests
1fe57a
%else
1fe57a
# Run the test suite in %%check
1fe57a
%bcond_without tests
1fe57a
%endif
1fe57a
1fe57a
# Disable automatic bytecompilation. The python2.7 binary is not yet
1fe57a
# available in /usr/bin when Python is built. Also, the bytecompilation fails
1fe57a
# on files that test invalid syntax.
1fe57a
%undefine __brp_python_bytecompile
1fe57a
# The above is broken now
1fe57a
# https://bugzilla.redhat.com/show_bug.cgi?id=1597664
1fe57a
# This is an older non-standard way to disable the brp script, as a workaround
1fe57a
%undefine py_auto_byte_compile
1fe57a
1fe57a
# We need to get a newer configure generated out of configure.in for the following
1fe57a
# patches:
1fe57a
#   patch 4 (CFLAGS)
1fe57a
#   patch 52 (valgrind)
1fe57a
#   patch 55 (systemtap)
1fe57a
#   patch 145 (linux2)
1fe57a
#
1fe57a
# For patch 55 (systemtap), we need to get a new header for configure to use
1fe57a
#
1fe57a
# configure.in requires autoconf-2.65, but the version in Fedora is currently
1fe57a
# autoconf-2.66
1fe57a
#
1fe57a
# For now, we'll generate a patch to the generated configure script and
1fe57a
# pyconfig.h.in on a machine that has a local copy of autoconf 2.65
1fe57a
#
1fe57a
# Instructions on obtaining such a copy can be seen at
1fe57a
#   http://bugs.python.org/issue7997
1fe57a
#
1fe57a
# To make it easy to regenerate the patch, this specfile can be run in two
1fe57a
# ways:
1fe57a
# (i) regenerate_autotooling_patch  0 : the normal approach: prep the
1fe57a
# source tree using a pre-generated patch to the "configure" script, and do a
1fe57a
# full build
1fe57a
# (ii) regenerate_autotooling_patch 1 : intended to be run on a developer's
1fe57a
# workstation: prep the source tree without patching configure, then rerun a
1fe57a
# local copy of autoconf-2.65, regenerate the patch, then exit, without doing
1fe57a
# the rest of the build
1fe57a
%global regenerate_autotooling_patch 0
1fe57a
1fe57a
1fe57a
# ==================
1fe57a
# Top-level metadata
1fe57a
# ==================
1fe57a
Summary: An interpreted, interactive, object-oriented programming language
1fe57a
Name: %{python}
1fe57a
# Remember to also rebase python2-docs when changing this:
1fe57a
Version: 2.7.17
1fe57a
Release: 1%{?dist}
1fe57a
License: Python
1fe57a
Group: Development/Languages
1fe57a
Requires: %{python}-libs%{?_isa} = %{version}-%{release}
1fe57a
Requires: %{python}-for-tests%{?_isa} = %{version}-%{release}
1fe57a
Provides: python(abi) = %{pybasever}
1fe57a
1fe57a
1fe57a
# =======================
1fe57a
# Build-time requirements
1fe57a
# =======================
1fe57a
1fe57a
# (keep this list alphabetized)
1fe57a
1fe57a
BuildRequires: autoconf
1fe57a
%if ! 0%{?_module_build}
1fe57a
BuildRequires: bluez-libs-devel
1fe57a
%endif
1fe57a
BuildRequires: bzip2
1fe57a
BuildRequires: bzip2-devel
1fe57a
BuildRequires: glibc-devel
1fe57a
BuildRequires: gmp-devel
1fe57a
BuildRequires: libdb-devel
1fe57a
BuildRequires: libffi-devel
1fe57a
BuildRequires: ncurses-devel
1fe57a
BuildRequires: openssl-devel
1fe57a
BuildRequires: pkgconfig
1fe57a
BuildRequires: readline-devel
1fe57a
BuildRequires: sqlite-devel
1fe57a
%if %{with tk_and_tools}
1fe57a
BuildRequires: tcl-devel
1fe57a
%endif
1fe57a
1fe57a
# For the nis module
1fe57a
BuildRequires: libnsl2-devel
1fe57a
BuildRequires: libtirpc-devel
1fe57a
1fe57a
# expat 2.1.0 added the symbol XML_SetHashSalt without bumping SONAME.  We use
1fe57a
# it (in pyexpat) in order to enable the fix in Python-2.7.3 for CVE-2012-0876:
1fe57a
BuildRequires: expat-devel >= 2.1.0
1fe57a
1fe57a
BuildRequires: findutils
1fe57a
BuildRequires: gcc-c++
1fe57a
%if %{with_gdbm}
1fe57a
# ABI change without soname bump, reverted
1fe57a
BuildRequires: gdbm-devel >= 1:1.13
1fe57a
%endif
1fe57a
%if %{with tk_and_tools}
1fe57a
BuildRequires: libGL-devel
1fe57a
BuildRequires: libX11-devel
1fe57a
%endif #{with tk_and_tools}
1fe57a
1fe57a
%if 0%{?with_systemtap}
1fe57a
BuildRequires: systemtap-sdt-devel
1fe57a
# (this introduces a circular dependency, in that systemtap-sdt-devel's
1fe57a
# /usr/bin/dtrace is a python script)
1fe57a
%global tapsetdir      /usr/share/systemtap/tapset
1fe57a
%endif # with_systemtap
1fe57a
1fe57a
BuildRequires: tar
1fe57a
%if %{with tk_and_tools}
1fe57a
BuildRequires: tix-devel
1fe57a
BuildRequires: tk-devel
1fe57a
%endif #{with tk_and_tools}
1fe57a
1fe57a
%if 0%{?with_valgrind}
1fe57a
BuildRequires: valgrind-devel
1fe57a
%endif
1fe57a
1fe57a
BuildRequires: zlib-devel
1fe57a
1fe57a
%if %{with rewheel}
1fe57a
BuildRequires: python2-setuptools
1fe57a
Requires: python2-setuptools
1fe57a
1fe57a
%if ! 0%{?_module_build}
1fe57a
BuildRequires: python2-pip
1fe57a
Requires: python2-pip
1fe57a
%endif # !module_build
1fe57a
%endif # rewheel
1fe57a
1fe57a
1fe57a
1fe57a
# =======================
1fe57a
# Source code and patches
1fe57a
# =======================
1fe57a
1fe57a
# The upstream tarball includes questionable executable files for Windows,
1fe57a
# which we should not ship even in the SRPM.
1fe57a
# Run the "get-source.sh" with the version as argument to download the upstream
1fe57a
# tarball and generate a version with the .exe files removed. For example:
1fe57a
# $ ./get-source.sh 2.7.15
1fe57a
1fe57a
Source: Python-%{version}-noexe.tar.xz
1fe57a
1fe57a
# A script to remove .exe files from the source distribution
1fe57a
Source1: get-source.sh
1fe57a
1fe57a
# Work around bug 562906 until it's fixed in rpm-build by providing a fixed
1fe57a
# version of pythondeps.sh:
1fe57a
Source2: pythondeps.sh
1fe57a
%global __python_requires %{SOURCE2}
1fe57a
1fe57a
# Systemtap tapset to make it easier to use the systemtap static probes
1fe57a
# (actually a template; LIBRARY_PATH will get fixed up during install)
1fe57a
# Written by dmalcolm; not yet sent upstream
1fe57a
Source3: libpython.stp
1fe57a
1fe57a
1fe57a
# Example systemtap script using the tapset
1fe57a
# Written by wcohen, mjw, dmalcolm; not yet sent upstream
1fe57a
Source4: systemtap-example.stp
1fe57a
1fe57a
# Another example systemtap script that uses the tapset
1fe57a
# Written by dmalcolm; not yet sent upstream
1fe57a
Source5: pyfuntop.stp
1fe57a
1fe57a
Source7: pynche
1fe57a
1fe57a
# Modules/Setup.dist is ultimately used by the "makesetup" script to construct
1fe57a
# the Makefile and config.c
1fe57a
#
1fe57a
# Upstream leaves many things disabled by default, to try to make it easy as
1fe57a
# possible to build the code on as many platforms as possible.
1fe57a
#
1fe57a
# TODO: many modules can also now be built by setup.py after the python binary
1fe57a
# has been built; need to assess if we should instead build things there
1fe57a
#
1fe57a
# We patch it downstream as follows:
1fe57a
#   - various modules are built by default by upstream as static libraries;
1fe57a
#   we built them as shared libraries
1fe57a
#   - build the "readline" module (appears to also be handled by setup.py now)
1fe57a
#   - build the nis module (which needs the tirpc library since glibc 2.26)
1fe57a
#   - enable the build of the following modules:
1fe57a
#     - array arraymodule.c	# array objects
1fe57a
#     - cmath cmathmodule.c # -lm # complex math library functions
1fe57a
#     - math mathmodule.c # -lm # math library functions, e.g. sin()
1fe57a
#     - _struct _struct.c	# binary structure packing/unpacking
1fe57a
#     - time timemodule.c # -lm # time operations and variables
1fe57a
#     - operator operator.c	# operator.add() and similar goodies
1fe57a
#     - _weakref _weakref.c	# basic weak reference support
1fe57a
#     - _testcapi _testcapimodule.c    # Python C API test module
1fe57a
#     - _random _randommodule.c	# Random number generator
1fe57a
#     - _collections _collectionsmodule.c # Container types
1fe57a
#     - itertools itertoolsmodule.c
1fe57a
#     - strop stropmodule.c
1fe57a
#     - _functools _functoolsmodule.c
1fe57a
#     - _bisect _bisectmodule.c	# Bisection algorithms
1fe57a
#     - unicodedata unicodedata.c    # static Unicode character database
1fe57a
#     - _locale _localemodule.c
1fe57a
#     - fcntl fcntlmodule.c	# fcntl(2) and ioctl(2)
1fe57a
#     - spwd spwdmodule.c		# spwd(3)
1fe57a
#     - grp grpmodule.c		# grp(3)
1fe57a
#     - select selectmodule.c	# select(2); not on ancient System V
1fe57a
#     - mmap mmapmodule.c  # Memory-mapped files
1fe57a
#     - _csv _csv.c  # CSV file helper
1fe57a
#     - _socket socketmodule.c  # Socket module helper for socket(2)
1fe57a
#     - _ssl _ssl.c
1fe57a
#     - crypt cryptmodule.c -lcrypt	# crypt(3)
1fe57a
#     - termios termios.c	# Steen Lumholt's termios module
1fe57a
#     - resource resource.c	# Jeremy Hylton's rlimit interface
1fe57a
#     - audioop audioop.c	# Operations on audio samples
1fe57a
#     - imageop imageop.c	# Operations on images
1fe57a
#     - _md5 md5module.c md5.c
1fe57a
#     - _sha shamodule.c
1fe57a
#     - _sha256 sha256module.c
1fe57a
#     - _sha512 sha512module.c
1fe57a
#     - linuxaudiodev linuxaudiodev.c
1fe57a
#     - timing timingmodule.c
1fe57a
#     - _tkinter _tkinter.c tkappinit.c
1fe57a
#     - dl dlmodule.c
1fe57a
#     - gdbm gdbmmodule.c
1fe57a
#     - _bsddb _bsddb.c
1fe57a
#     - binascii binascii.c
1fe57a
#     - parser parsermodule.c
1fe57a
#     - cStringIO cStringIO.c
1fe57a
#     - cPickle cPickle.c
1fe57a
#     - zlib zlibmodule.c
1fe57a
#     - _multibytecodec cjkcodecs/multibytecodec.c
1fe57a
#     - _codecs_cn cjkcodecs/_codecs_cn.c
1fe57a
#     - _codecs_hk cjkcodecs/_codecs_hk.c
1fe57a
#     - _codecs_iso2022 cjkcodecs/_codecs_iso2022.c
1fe57a
#     - _codecs_jp cjkcodecs/_codecs_jp.c
1fe57a
#     - _codecs_kr cjkcodecs/_codecs_kr.c
1fe57a
#     - _codecs_tw cjkcodecs/_codecs_tw.c
1fe57a
Patch0: python-2.7.1-config.patch
1fe57a
1fe57a
# Removes the "-g" option from "pydoc", for some reason; I believe
1fe57a
# (dmalcolm 2010-01-29) that this was introduced in this change:
1fe57a
# - fix pydoc (#68082)
1fe57a
# in 2.2.1-12 as a response to the -g option needing TkInter installed
1fe57a
# (Red Hat Linux 8)
1fe57a
# Not upstream
1fe57a
Patch1: 00001-pydocnogui.patch
1fe57a
1fe57a
# Add $(CFLAGS) to the linker arguments when linking the "python" binary
1fe57a
# since some architectures (sparc64) need this (rhbz:199373).
1fe57a
# Not yet filed upstream
1fe57a
Patch4: python-2.5-cflags.patch
1fe57a
1fe57a
# Work around a bug in Python' gettext module relating to the "Plural-Forms"
1fe57a
# header (rhbz:252136)
1fe57a
# Related to upstream issues:
1fe57a
#   http://bugs.python.org/issue1448060 and http://bugs.python.org/issue1475523
1fe57a
# though the proposed upstream patches are, alas, different
1fe57a
Patch6: python-2.5.1-plural-fix.patch
1fe57a
1fe57a
# This patch was listed in the changelog as:
1fe57a
#  * Fri Sep 14 2007 Jeremy Katz <katzj@redhat.com> - 2.5.1-11
1fe57a
#  - fix encoding of sqlite .py files to work around weird encoding problem
1fe57a
#  in Turkish (#283331)
1fe57a
# A traceback attached to rhbz 244016 shows the problem most clearly: a
1fe57a
# traceback on attempting to import the sqlite module, with:
1fe57a
#   "SyntaxError: encoding problem: with BOM (__init__.py, line 1)"
1fe57a
# This seems to come from Parser/tokenizer.c:check_coding_spec
1fe57a
# Our patch changes two source files within sqlite3, removing the
1fe57a
# "coding: ISO-8859-1" specs and character E4 = U+00E4 =
1fe57a
# LATIN SMALL LETTER A WITH DIAERESIS from in ghaering's surname.
1fe57a
#
1fe57a
# It may be that the conversion of "ISO-8859-1" to "iso-8859-1" is thwarted
1fe57a
# by the implementation of "tolower" in the Turkish locale; see:
1fe57a
#   https://bugzilla.redhat.com/show_bug.cgi?id=191096#c9
1fe57a
#
1fe57a
# TODO: Not yet sent upstream, and appears to me (dmalcolm 2010-01-29) that
1fe57a
# it may be papering over a symptom
1fe57a
Patch7: python-2.5.1-sqlite-encoding.patch
1fe57a
1fe57a
# FIXME: Lib/ctypes/util.py posix implementation defines a function
1fe57a
# _get_soname(f).  Upstreams's implementation of this uses objdump to read the
1fe57a
# SONAME from a library; we avoid this, apparently to minimize space
1fe57a
# requirements on the live CD:
1fe57a
# (rhbz:307221)
1fe57a
Patch10: 00010-2.7.13-binutils-no-dep.patch
1fe57a
1fe57a
# Upstream as of Python 2.7.3:
1fe57a
#  Patch11: python-2.7rc1-codec-ascii-tolower.patch
1fe57a
1fe57a
# Add various constants to the socketmodule (rhbz#436560):
1fe57a
# TODO: these patches were added in 2.5.1-22 and 2.5.1-24 but appear not to
1fe57a
# have been sent upstream yet:
1fe57a
Patch13: python-2.7rc1-socketmodule-constants.patch
1fe57a
Patch14: python-2.7rc1-socketmodule-constants2.patch
1fe57a
1fe57a
# Remove an "-rpath $(LIBDIR)" argument from the linkage args in configure.in:
1fe57a
# FIXME: is this for OSF, not Linux?
1fe57a
Patch16: python-2.6-rpath.patch
1fe57a
1fe57a
# Fixup distutils/unixccompiler.py to remove standard library path from rpath:
1fe57a
# Adapted from Patch0 in ivazquez' python3000 specfile, removing usage of
1fe57a
# super() as it's an old-style class
1fe57a
Patch17: python-2.6.4-distutils-rpath.patch
1fe57a
1fe57a
# 00055 #
1fe57a
# Systemtap support: add statically-defined probe points
1fe57a
# Patch based on upstream bug: http://bugs.python.org/issue4111
1fe57a
# fixed up by mjw and wcohen for 2.6.2, then fixed up by dmalcolm for 2.6.4
1fe57a
# then rewritten by mjw (attachment 390110 of rhbz 545179), then reformatted
1fe57a
# for 2.7rc1 by dmalcolm:
1fe57a
Patch55: 00055-systemtap.patch
1fe57a
1fe57a
# Only used when "%%{_lib}" == "lib64"
1fe57a
# Fixup various paths throughout the build and in distutils from "lib" to "lib64",
1fe57a
# and add the /usr/lib64/pythonMAJOR.MINOR/site-packages to sitedirs, in front of
1fe57a
# /usr/lib/pythonMAJOR.MINOR/site-packages
1fe57a
# Not upstream
1fe57a
Patch102: 00102-2.7.13-lib64.patch
1fe57a
1fe57a
# Python 2.7 split out much of the path-handling from distutils/sysconfig.py to
1fe57a
# a new sysconfig.py (in r77704).
1fe57a
# We need to make equivalent changes to that new file to ensure that the stdlib
1fe57a
# and platform-specific code go to /usr/lib64 not /usr/lib, on 64-bit archs:
1fe57a
Patch103: python-2.7-lib64-sysconfig.patch
1fe57a
1fe57a
# 00104 #
1fe57a
# Only used when "%%{_lib}" == "lib64"
1fe57a
# Another lib64 fix, for distutils/tests/test_install.py; not upstream:
1fe57a
Patch104: 00104-lib64-fix-for-test_install.patch
1fe57a
1fe57a
# 00111 #
1fe57a
# Patch the Makefile.pre.in so that the generated Makefile doesn't try to build
1fe57a
# a libpythonMAJOR.MINOR.a (bug 550692):
1fe57a
# Downstream only: not appropriate for upstream
1fe57a
Patch111: 00111-no-static-lib.patch
1fe57a
1fe57a
# 00112 #
1fe57a
# Patch to support building both optimized vs debug stacks DSO ABIs, sharing
1fe57a
# the same .py and .pyc files, using "_d.so" to signify a debug build of an
1fe57a
# extension module.
1fe57a
#
1fe57a
# Based on Debian's patch for the same,
1fe57a
#  http://patch-tracker.debian.org/patch/series/view/python2.6/2.6.5-2/debug-build.dpatch
1fe57a
#
1fe57a
# (which was itself based on the upstream Windows build), but with some
1fe57a
# changes:
1fe57a
#
1fe57a
#   * Debian's patch to dynload_shlib.c looks for module_d.so, then module.so,
1fe57a
# but this can potentially find a module built against the wrong DSO ABI.  We
1fe57a
# instead search for just module_d.so in a debug build
1fe57a
#
1fe57a
#   * We remove this change from configure.in's build of the Makefile:
1fe57a
#   SO=$DEBUG_EXT.so
1fe57a
# so that sysconfig.py:customize_compiler stays with shared_lib_extension='.so'
1fe57a
# on debug builds, so that UnixCCompiler.find_library_file can find system
1fe57a
# libraries (otherwise "make sharedlibs" fails to find system libraries,
1fe57a
# erroneously looking e.g. for "libffi_d.so" rather than "libffi.so")
1fe57a
#
1fe57a
#   * We change Lib/distutils/command/build_ext.py:build_ext.get_ext_filename
1fe57a
# to add the _d there, when building an extension.  This way, "make sharedlibs"
1fe57a
# can build ctypes, by finding the sysmtem libffi.so (rather than failing to
1fe57a
# find "libffi_d.so"), and builds the module as _ctypes_d.so
1fe57a
#
1fe57a
#   * Similarly, update build_ext:get_libraries handling of Py_ENABLE_SHARED by
1fe57a
# appending "_d" to the python library's name for the debug configuration
1fe57a
#
1fe57a
#   * We modify Modules/makesetup to add the "_d" to the generated Makefile
1fe57a
# rules for the various Modules/*.so targets
1fe57a
#
1fe57a
# This may introduce issues when building an extension that links directly
1fe57a
# against another extension (e.g. users of NumPy?), but seems more robust when
1fe57a
# searching for external libraries
1fe57a
#
1fe57a
#   * We don't change Lib/distutils/command/build.py: build.build_purelib to
1fe57a
# embed plat_specifier, leaving it as is, as pure python builds should be
1fe57a
# unaffected by these differences (we'll be sharing the .py and .pyc files)
1fe57a
#
1fe57a
#   * We introduce DEBUG_SUFFIX as well as DEBUG_EXT:
1fe57a
#     - DEBUG_EXT is used by ELF files (names and SONAMEs); it will be "_d" for
1fe57a
# a debug build
1fe57a
#     - DEBUG_SUFFIX is used by filesystem paths; it will be "-debug" for a
1fe57a
# debug build
1fe57a
#
1fe57a
#   Both will be empty in an optimized build.  "_d" contains characters that
1fe57a
# are valid ELF metadata, but this leads to various ugly filesystem paths (such
1fe57a
# as the include path), and DEBUG_SUFFIX allows these paths to have more natural
1fe57a
# names.  Changing this requires changes elsewhere in the distutils code.
1fe57a
#
1fe57a
#   * We add DEBUG_SUFFIX to PYTHON in the Makefile, so that the two
1fe57a
# configurations build parallel-installable binaries with different names
1fe57a
# ("python-debug" vs "python").
1fe57a
#
1fe57a
#   * Similarly, we add DEBUG_SUFFIX within python-config and
1fe57a
#  python$(VERSION)-config, so that the two configuration get different paths
1fe57a
#  for these.
1fe57a
#
1fe57a
#  See also patch 130 below
1fe57a
#
1fe57a
Patch112: 00112-2.7.13-debug-build.patch
1fe57a
1fe57a
1fe57a
# 00113 #
1fe57a
# Add configure-time support for the COUNT_ALLOCS and CALL_PROFILE options
1fe57a
# described at http://svn.python.org/projects/python/trunk/Misc/SpecialBuilds.txt
1fe57a
# so that if they are enabled, they will be in that build's pyconfig.h, so that
1fe57a
# extension modules will reliably use them
1fe57a
# Not yet sent upstream
1fe57a
Patch113: 00113-more-configuration-flags.patch
1fe57a
1fe57a
# 00114 #
1fe57a
# Add flags for statvfs.f_flag to the constant list in posixmodule (i.e. "os")
1fe57a
# (rhbz:553020); partially upstream as http://bugs.python.org/issue7647
1fe57a
# Not yet sent upstream
1fe57a
Patch114: 00114-statvfs-f_flag-constants.patch
1fe57a
1fe57a
# Upstream r79310 removed the "Modules" directory from sys.path when Python is
1fe57a
# running from the build directory on POSIX to fix a unit test (issue #8205).
1fe57a
# This seems to have broken the compileall.py done in "make install": it cannot
1fe57a
# find shared library extension modules at this point in the build (sys.path
1fe57a
# does not contain DESTDIR/usr/lib(64)/python-2.7/lib-dynload for some reason),
1fe57a
# leading to the build failing with:
1fe57a
# Traceback (most recent call last):
1fe57a
#   File "/home/david/rpmbuild/BUILDROOT/python-2.7-0.1.rc2.fc14.x86_64/usr/lib64/python2.7/compileall.py", line 17, in <module>
1fe57a
#     import struct
1fe57a
#   File "/home/david/rpmbuild/BUILDROOT/python-2.7-0.1.rc2.fc14.x86_64/usr/lib64/python2.7/struct.py", line 1, in <module>
1fe57a
#    from _struct import *
1fe57a
# ImportError: No module named _struct
1fe57a
# This patch adds the build Modules directory to build path.
1fe57a
Patch121: 00121-add-Modules-to-build-path.patch
1fe57a
1fe57a
# 2.7.1 (in r84230) added a test to test_abc which fails if python is
1fe57a
# configured with COUNT_ALLOCS, which is the case for our debug build
1fe57a
# (the COUNT_ALLOCS instrumentation keeps "C" alive).
1fe57a
# Not yet sent upstream
1fe57a
Patch128: python-2.7.1-fix_test_abc_with_COUNT_ALLOCS.patch
1fe57a
1fe57a
# 00130 #
1fe57a
# Add "--extension-suffix" option to python-config and python-debug-config
1fe57a
# (rhbz#732808)
1fe57a
#
1fe57a
# This is adapted from 3.2's PEP-3149 support.
1fe57a
#
1fe57a
# Fedora's debug build has some non-standard features (see also patch 112
1fe57a
# above), though largely shared with Debian/Ubuntu and Windows
1fe57a
#
1fe57a
# In particular, SO in the Makefile is currently always just ".so" for our
1fe57a
# python 2 optimized builds, but for python 2 debug it should be '_d.so', to
1fe57a
# distinguish the debug vs optimized ABI, following the pattern in the above
1fe57a
# patch.
1fe57a
#
1fe57a
# Not yet sent upstream
1fe57a
Patch130: python-2.7.2-add-extension-suffix-to-python-config.patch
1fe57a
1fe57a
# 00131 #
1fe57a
# The four tests in test_io built on top of check_interrupted_write_retry
1fe57a
# fail when built in Koji, for ppc and ppc64; for some reason, the SIGALRM
1fe57a
# handlers are never called, and the call to write runs to completion
1fe57a
# (rhbz#732998)
1fe57a
Patch131: 00131-disable-tests-in-test_io.patch
1fe57a
1fe57a
# 00132 #
1fe57a
# Add non-standard hooks to unittest for use in the "check" phase below, when
1fe57a
# running selftests within the build:
1fe57a
#   @unittest._skipInRpmBuild(reason)
1fe57a
# for tests that hang or fail intermittently within the build environment, and:
1fe57a
#   @unittest._expectedFailureInRpmBuild
1fe57a
# for tests that always fail within the build environment
1fe57a
#
1fe57a
# The hooks only take effect if WITHIN_PYTHON_RPM_BUILD is set in the
1fe57a
# environment, which we set manually in the appropriate portion of the "check"
1fe57a
# phase below (and which potentially other python-* rpms could set, to reuse
1fe57a
# these unittest hooks in their own "check" phases)
1fe57a
Patch132: 00132-add-rpmbuild-hooks-to-unittest.patch
1fe57a
1fe57a
# 00133 #
1fe57a
# "dl" is deprecated, and test_dl doesn't work on 64-bit builds:
1fe57a
Patch133: 00133-skip-test_dl.patch
1fe57a
1fe57a
# 00136 #
1fe57a
# Some tests try to seek on sys.stdin, but don't work as expected when run
1fe57a
# within Koji/mock; skip them within the rpm build:
1fe57a
Patch136: 00136-skip-tests-of-seeking-stdin-in-rpmbuild.patch
1fe57a
1fe57a
# 00137 #
1fe57a
# Some tests within distutils fail when run in an rpmbuild:
1fe57a
Patch137: 00137-skip-distutils-tests-that-fail-in-rpmbuild.patch
1fe57a
1fe57a
# 00138 #
1fe57a
# Fixup some tests within distutils to work with how debug builds are set up:
1fe57a
Patch138: 00138-fix-distutils-tests-in-debug-build.patch
1fe57a
1fe57a
# 00139 #
1fe57a
# ARM-specific: skip known failure in test_float:
1fe57a
#  http://bugs.python.org/issue8265 (rhbz#706253)
1fe57a
Patch139: 00139-skip-test_float-known-failure-on-arm.patch
1fe57a
1fe57a
# 00140 #
1fe57a
# Sparc-specific: skip known failure in test_ctypes:
1fe57a
#  http://bugs.python.org/issue8314 (rhbz#711584)
1fe57a
# which appears to be a libffi bug
1fe57a
Patch140: 00140-skip-test_ctypes-known-failure-on-sparc.patch
1fe57a
1fe57a
# 00142 #
1fe57a
# Some pty tests fail when run in mock (rhbz#714627):
1fe57a
Patch142: 00142-skip-failing-pty-tests-in-rpmbuild.patch
1fe57a
1fe57a
# 00143 #
1fe57a
# Fix the --with-tsc option on ppc64, and rework it on 32-bit ppc to avoid
1fe57a
# aliasing violations (rhbz#698726)
1fe57a
# Sent upstream as http://bugs.python.org/issue12872
1fe57a
Patch143: 00143-tsc-on-ppc.patch
1fe57a
1fe57a
# 00144 #
1fe57a
# (Optionally) disable the gdbm module:
1fe57a
Patch144: 00144-no-gdbm.patch
1fe57a
1fe57a
# 00146 #
1fe57a
# Support OpenSSL FIPS mode (e.g. when OPENSSL_FORCE_FIPS_MODE=1 is set)
1fe57a
# - handle failures from OpenSSL (e.g. on attempts to use MD5 in a
1fe57a
#   FIPS-enforcing environment)
1fe57a
# - add a new "usedforsecurity" keyword argument to the various digest
1fe57a
#   algorithms in hashlib so that you can whitelist a callsite with
1fe57a
#   "usedforsecurity=False"
1fe57a
# (sent upstream for python 3 as http://bugs.python.org/issue9216; this is a
1fe57a
# backport to python 2.7; see RHEL6 patch 119)
1fe57a
# - enforce usage of the _hashlib implementation: don't fall back to the _md5
1fe57a
#   and _sha* modules (leading to clearer error messages if fips selftests
1fe57a
#   fail)
1fe57a
# - don't build the _md5 and _sha* modules; rely on the _hashlib implementation
1fe57a
#   of hashlib (for example, md5.py will use _hashlib's implementation of MD5,
1fe57a
#   if permitted by the FIPS setting)
1fe57a
# (rhbz#563986)
1fe57a
Patch146: 00146-hashlib-fips.patch
1fe57a
1fe57a
# 00147 #
1fe57a
# Add a sys._debugmallocstats() function
1fe57a
# Based on patch 202 from RHEL 5's python.spec, with updates from rhbz#737198
1fe57a
# Sent upstream as http://bugs.python.org/issue14785
1fe57a
Patch147: 00147-add-debug-malloc-stats.patch
1fe57a
1fe57a
# 00155 #
1fe57a
# Avoid allocating thunks in ctypes unless absolutely necessary, to avoid
1fe57a
# generating SELinux denials on "import ctypes" and "import uuid" when
1fe57a
# embedding Python within httpd (rhbz#814391)
1fe57a
Patch155: 00155-avoid-ctypes-thunks.patch
1fe57a
1fe57a
# 00156 #
1fe57a
# Recent builds of gdb will only auto-load scripts from certain safe
1fe57a
# locations.  Turn off this protection when running test_gdb in the selftest
1fe57a
# suite to ensure that it can load our -gdb.py script (rhbz#817072):
1fe57a
# Not yet sent upstream
1fe57a
Patch156: 00156-gdb-autoload-safepath.patch
1fe57a
1fe57a
# 00165 #
1fe57a
# Backport to Python 2 from Python 3.3 of improvements to the "crypt" module
1fe57a
# adding precanned ways of salting a password (rhbz#835021)
1fe57a
# Based on r88500 patch to py3k from Python 3.3
1fe57a
# plus 6482dd1c11ed, 0586c699d467, 62994662676a, 74a1110a3b50, plus edits
1fe57a
# to docstrings to note that this additional functionality is not standard
1fe57a
# within 2.7
1fe57a
Patch165: 00165-crypt-module-salt-backport.patch
1fe57a
1fe57a
# 00167 #
1fe57a
# Don't run any of the stack navigation tests in test_gdb when Python is
1fe57a
# optimized, since there appear to be many different ways in which gdb can
1fe57a
# fail to read the PyFrameObject* for arbitrary places in the callstack,
1fe57a
# presumably due to compiler optimization (rhbz#912025)
1fe57a
#
1fe57a
# Not yet sent upstream
1fe57a
Patch167: 00167-disable-stack-navigation-tests-when-optimized-in-test_gdb.patch
1fe57a
1fe57a
# 00169 #
1fe57a
# Use SHA-256 rather than implicitly using MD5 within the challenge handling
1fe57a
# in multiprocessing.connection
1fe57a
#
1fe57a
# Sent upstream as http://bugs.python.org/issue17258
1fe57a
# (rhbz#879695)
1fe57a
Patch169: 00169-avoid-implicit-usage-of-md5-in-multiprocessing.patch
1fe57a
1fe57a
# 00170 #
1fe57a
# In debug builds, try to print repr() when a C-level assert fails in the
1fe57a
# garbage collector (typically indicating a reference-counting error
1fe57a
# somewhere else e.g in an extension module)
1fe57a
# Backported to 2.7 from a patch I sent upstream for py3k
1fe57a
#   http://bugs.python.org/issue9263  (rhbz#614680)
1fe57a
# hiding the proposed new macros/functions within gcmodule.c to avoid exposing
1fe57a
# them within the extension API.
1fe57a
# (rhbz#850013)
1fe57a
Patch170: 00170-gc-assertions.patch
1fe57a
1fe57a
# 00174 #
1fe57a
# Workaround for failure to set up prefix/exec_prefix when running
1fe57a
# an embededed libpython that sets Py_SetProgramName() to a name not
1fe57a
# on $PATH when run from the root directory due to
1fe57a
#   https://fedoraproject.org/wiki/Features/UsrMove
1fe57a
# e.g. cmpi-bindings under systemd (rhbz#817554):
1fe57a
Patch174: 00174-fix-for-usr-move.patch
1fe57a
1fe57a
# 00180 #
1fe57a
# Enable building on ppc64p7
1fe57a
# Not appropriate for upstream, Fedora-specific naming
1fe57a
Patch180: 00180-python-add-support-for-ppc64p7.patch
1fe57a
1fe57a
# 00181 #
1fe57a
# Allow arbitrary timeout for Condition.wait, as reported in
1fe57a
# https://bugzilla.redhat.com/show_bug.cgi?id=917709
1fe57a
# Upstream doesn't want this: http://bugs.python.org/issue17748
1fe57a
# But we have no better solution downstream yet, and since there is
1fe57a
# no API breakage, we apply this patch.
1fe57a
# Doesn't apply to Python 3, where this is fixed otherwise and works.
1fe57a
Patch181: 00181-allow-arbitrary-timeout-in-condition-wait.patch
1fe57a
1fe57a
# 00185 #
1fe57a
# Makes urllib2 honor "no_proxy" enviroment variable for "ftp:" URLs
1fe57a
# when ftp_proxy is set
1fe57a
Patch185: 00185-urllib2-honors-noproxy-for-ftp.patch
1fe57a
1fe57a
# 00187 #
1fe57a
# Add an explicit RPATH to pyexpat.so pointing at the directory
1fe57a
# containing the system expat (which has the extra XML_SetHashSalt
1fe57a
# symbol), to avoid an ImportError with a link error if there's an
1fe57a
# LD_LIBRARY_PATH containing a "vanilla" build of expat (without the
1fe57a
# symbol)
1fe57a
Patch187: 00187-add-RPATH-to-pyexpat.patch
1fe57a
1fe57a
# 00191 #
1fe57a
# Disabling NOOP test as it fails without internet connection
1fe57a
Patch191: 00191-disable-NOOP.patch
1fe57a
1fe57a
# 00193 #
1fe57a
# Enable loading sqlite extensions. This patch isn't needed for
1fe57a
# python3.spec, since Python 3 has a configuration option for this.
1fe57a
# rhbz#1066708
1fe57a
# Patch provided by John C. Peterson
1fe57a
Patch193: 00193-enable-loading-sqlite-extensions.patch
1fe57a
1fe57a
# 00198 #
1fe57a
Patch198: 00198-add-rewheel-module.patch
1fe57a
1fe57a
# 00257 #
1fe57a
# Python's threading library doesn't use the monotonic clock when handling wait timeouts,
1fe57a
# so when the system clock is set backwards, the wait doesn't return after the timeout,
1fe57a
# causing deadlocks.
1fe57a
# This patch works around the issue.
1fe57a
# Resolves: rhbz#1565560
1fe57a
# DOWNSTREAM ONLY PATCH
1fe57a
Patch257: 00257-threading-wait-clamp-remaining-time.patch
1fe57a
1fe57a
# 00288 #
1fe57a
# Adds a warning when /usr/bin/python is invoked during rpmbuild
1fe57a
# See https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build
1fe57a
Patch288: 00288-disable-python2.patch
1fe57a
1fe57a
# 00289 #
1fe57a
# Disable automatic detection for the nis module
1fe57a
# (we handle it it in Setup.dist, see Patch0)
1fe57a
Patch289: 00289-disable-nis-detection.patch
1fe57a
1fe57a
# (New patches go here ^^^)
1fe57a
#
1fe57a
# When adding new patches to "python2" and "python3" in Fedora, EL, etc.,
1fe57a
# please try to keep the patch numbers in-sync between all specfiles.
1fe57a
#
1fe57a
# More information, and a patch number catalog, is at:
1fe57a
#
1fe57a
#     https://fedoraproject.org/wiki/SIGs/Python/PythonPatches
1fe57a
1fe57a
# This is the generated patch to "configure"; see the description of
1fe57a
#   %%{regenerate_autotooling_patch}
1fe57a
# above:
1fe57a
1fe57a
# Disable tk for modularity builds to break up build dependencies
1fe57a
Patch04000: 04000-modularity-disable-tk.patch
1fe57a
1fe57a
Patch5000: 05000-autotool-intermediates.patch
1fe57a
1fe57a
# ======================================================
1fe57a
# Additional metadata, and subpackages
1fe57a
# ======================================================
1fe57a
1fe57a
# Providing python27 as now multiple interpreters exist in Fedora
1fe57a
# alongside the system one e.g. python26, python33 etc
1fe57a
Provides:   python27 = %{version}-%{release}
1fe57a
1fe57a
1fe57a
URL: https://www.python.org/
1fe57a
1fe57a
%description
1fe57a
Python 2 is an old version of the language that is incompatible with the 3.x
1fe57a
line of releases. The language is mostly the same, but many details, especially
1fe57a
how built-in objects like dictionaries and strings work, have changed
1fe57a
considerably, and a lot of deprecated features have finally been removed in the
1fe57a
3.x line.
1fe57a
1fe57a
Note that documentation for Python 2 is provided in the python2-docs
1fe57a
package.
1fe57a
1fe57a
This package provides the "python2" executable; most of the actual
1fe57a
implementation is within the "python2-libs" package.
1fe57a
1fe57a
%package for-tests
1fe57a
Summary: The python2-for-tests-command
1fe57a
Requires: %{python}-libs%{?_isa} = %{version}-%{release}
1fe57a
1fe57a
%description for-tests
1fe57a
This package provides the "python2-for-tests" executable, a working
1fe57a
Python 2 interpreter intended for use only in test harnesses that
1fe57a
were not ported to Python 3 yet.
1fe57a
1fe57a
Install this package, but not "python2", to approximate a system that
1fe57a
lacks Python 2 entirely.
1fe57a
1fe57a
1fe57a
%package libs
1fe57a
Summary: Runtime libraries for Python 2
1fe57a
Group: Applications/System
1fe57a
1fe57a
# Needed for ctypes, to load libraries, worked around for Live CDs size
1fe57a
# Requires: binutils
1fe57a
1fe57a
# expat 2.1.0 added the symbol XML_SetHashSalt without bumping SONAME.  We use
1fe57a
# this symbol (in pyexpat), so we must explicitly state this dependency to
1fe57a
# prevent "import pyexpat" from failing with a linker error if someone hasn't
1fe57a
# yet upgraded expat:
1fe57a
Requires: expat >= 2.1.0
1fe57a
1fe57a
# Python built with glibc >= 2.24.90-26 needs to require it (rhbz#1410644).
1fe57a
Requires: glibc%{?_isa} >= 2.24.90-26
1fe57a
1fe57a
%if %{with_gdbm}
1fe57a
# ABI change without soname bump, reverted
1fe57a
Requires: gdbm%{?_isa} >= 1:1.13
1fe57a
%endif
1fe57a
1fe57a
Provides: python-libs = %{version}-%{release}
1fe57a
Provides: python-libs%{?_isa} = %{version}-%{release}
1fe57a
1fe57a
%description libs
1fe57a
This package contains files used to embed Python 2 into applications.
1fe57a
1fe57a
%package devel
1fe57a
Summary: Libraries and header files needed for Python 2 development
1fe57a
Group: Development/Libraries
1fe57a
Requires: %{python}%{?_isa} = %{version}-%{release}
1fe57a
Requires: python-rpm-macros
1fe57a
Requires: python2-rpm-macros
1fe57a
Requires: python3-rpm-generators
1fe57a
Requires: pkgconfig
1fe57a
1fe57a
# https://bugzilla.redhat.com/show_bug.cgi?id=1217376
1fe57a
# https://bugzilla.redhat.com/show_bug.cgi?id=1496757
1fe57a
# https://bugzilla.redhat.com/show_bug.cgi?id=1218294
1fe57a
# TODO change to a specific subpackage once available (#1218294)
1fe57a
Requires: redhat-rpm-config
1fe57a
1fe57a
# Needed here because of the migration of Makefile from -devel to the main
1fe57a
# package
1fe57a
Conflicts: %{python} < %{version}-%{release}
1fe57a
1fe57a
Provides: python-devel = %{version}-%{release}
1fe57a
Provides: python-devel%{?_isa} = %{version}-%{release}
1fe57a
1fe57a
%description devel
1fe57a
This package contains libraries and header files used to build applications
1fe57a
with and native libraries for Python 2
1fe57a
1fe57a
%if %{with tk_and_tools}
1fe57a
%package tools
1fe57a
Summary: A collection of development tools included with Python 2
1fe57a
Group: Development/Tools
1fe57a
Requires: %{name} = %{version}-%{release}
1fe57a
Requires: %{python}-tkinter = %{version}-%{release}
1fe57a
1fe57a
Provides: python-tools = %{version}-%{release}
1fe57a
Provides: python-tools%{?_isa} = %{version}-%{release}
1fe57a
1fe57a
%description tools
1fe57a
This package includes several tools to help with the development of Python 2
1fe57a
programs, including IDLE (an IDE with editing and debugging facilities), a
1fe57a
color editor (pynche), and a python gettext program (pygettext.py).
1fe57a
1fe57a
%package tkinter
1fe57a
Summary: A graphical user interface for the Python 2 scripting language
1fe57a
Group: Development/Languages
1fe57a
Requires: %{name} = %{version}-%{release}
1fe57a
1fe57a
Provides: tkinter = %{version}-%{release}
1fe57a
Provides: tkinter%{?_isa} = %{version}-%{release}
1fe57a
Provides: tkinter2 = %{version}-%{release}
1fe57a
Provides: tkinter2%{?_isa} = %{version}-%{release}
1fe57a
Provides: python-tkinter = %{version}-%{release}
1fe57a
Provides: python-tkinter%{?_isa} = %{version}-%{release}
1fe57a
1fe57a
%description tkinter
1fe57a
1fe57a
The Tkinter (Tk interface) program is an graphical user interface for
1fe57a
the Python 2 scripting language.
1fe57a
1fe57a
You should install the python2tkinter package if you'd like to use a graphical
1fe57a
user interface for Python 2 programming.
1fe57a
%endif %{with tk_and_tools}
1fe57a
1fe57a
%package test
1fe57a
Summary: The test modules from the main python2 package
1fe57a
Group: Development/Languages
1fe57a
Requires: %{name} = %{version}-%{release}
1fe57a
1fe57a
Provides: python-test = %{version}-%{release}
1fe57a
Provides: python-test%{?_isa} = %{version}-%{release}
1fe57a
1fe57a
%description test
1fe57a
1fe57a
The test modules from the main python2 package: %{name}
1fe57a
These have been removed to save space, as they are never or almost
1fe57a
never used in production.
1fe57a
1fe57a
You might want to install the python2-test package if you're developing python 2
1fe57a
code that uses more than just unittest and/or test.support.
1fe57a
1fe57a
%if %{with debug_build}
1fe57a
%package debug
1fe57a
Summary: Debug version of the Python 2 runtime
1fe57a
Group: Applications/System
1fe57a
1fe57a
# The debug build is an all-in-one package version of the regular build, and
1fe57a
# shares the same .py/.pyc files and directories as the regular build.  Hence
1fe57a
# we depend on all of the subpackages of the regular build:
1fe57a
Requires: %{name}%{?_isa} = %{version}-%{release}
1fe57a
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
1fe57a
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
1fe57a
Requires: %{name}-test%{?_isa} = %{version}-%{release}
1fe57a
%if %{with tk_and_tools}
1fe57a
Requires: %{python}-tkinter%{?_isa} = %{version}-%{release}
1fe57a
Requires: %{name}-tools%{?_isa} = %{version}-%{release}
1fe57a
%endif #{with tk_and_tools}
1fe57a
1fe57a
Provides: python-debug = %{version}-%{release}
1fe57a
Provides: python-debug%{?_isa} = %{version}-%{release}
1fe57a
1fe57a
%description debug
1fe57a
python2-debug provides a version of the Python 2 runtime with numerous debugging
1fe57a
features enabled, aimed at advanced Python users, such as developers of Python
1fe57a
extension modules.
1fe57a
1fe57a
This version uses more memory and will be slower than the regular Python 2 build,
1fe57a
but is useful for tracking down reference-counting issues, and other bugs.
1fe57a
1fe57a
The bytecodes are unchanged, so that .pyc files are compatible between the two
1fe57a
version of Python 2, but the debugging features mean that C/C++ extension modules
1fe57a
are ABI-incompatible with those built for the standard runtime.
1fe57a
1fe57a
It shares installation directories with the standard Python 2 runtime, so that
1fe57a
.py and .pyc files can be shared.  All compiled extension modules gain a "_d"
1fe57a
suffix ("foo_d.so" rather than "foo.so") so that each Python 2 implementation can
1fe57a
load its own extensions.
1fe57a
%endif # with debug_build
1fe57a
1fe57a
1fe57a
# ======================================================
1fe57a
# The prep phase of the build:
1fe57a
# ======================================================
1fe57a
1fe57a
%prep
1fe57a
%setup -q -n Python-%{version}
1fe57a
1fe57a
%if 0%{?with_systemtap}
1fe57a
# Provide an example of usage of the tapset:
1fe57a
cp -a %{SOURCE4} .
1fe57a
cp -a %{SOURCE5} .
1fe57a
%endif # with_systemtap
1fe57a
1fe57a
# Ensure that we're using the system copy of various libraries, rather than
1fe57a
# copies shipped by upstream in the tarball:
1fe57a
#   Remove embedded copy of expat:
1fe57a
rm -r Modules/expat || exit 1
1fe57a
1fe57a
#   Remove embedded copy of libffi:
1fe57a
for SUBDIR in darwin libffi libffi_arm_wince libffi_msvc libffi_osx ; do
1fe57a
  rm -r Modules/_ctypes/$SUBDIR || exit 1 ;
1fe57a
done
1fe57a
1fe57a
#   Remove embedded copy of zlib:
1fe57a
rm -r Modules/zlib || exit 1
1fe57a
1fe57a
## Disabling hashlib patch for now as it needs to be reimplemented
1fe57a
## for OpenSSL 1.1.0.
1fe57a
# Don't build upstream Python's implementation of these crypto algorithms;
1fe57a
# instead rely on _hashlib and OpenSSL.
1fe57a
#
1fe57a
# For example, in our builds md5.py uses always uses hashlib.md5 (rather than
1fe57a
# falling back to _md5 when hashlib.md5 is not available); hashlib.md5 is
1fe57a
# implemented within _hashlib via OpenSSL (and thus respects FIPS mode)
1fe57a
#for f in md5module.c md5.c shamodule.c sha256module.c sha512module.c; do
1fe57a
#    rm Modules/$f
1fe57a
#done
1fe57a
1fe57a
#
1fe57a
# Apply patches:
1fe57a
#
1fe57a
%patch0 -p1 -b .rhconfig
1fe57a
%patch1 -p1 -b .no_gui
1fe57a
%patch4 -p1 -b .cflags
1fe57a
%patch6 -p1 -b .plural
1fe57a
%patch7 -p1
1fe57a
1fe57a
%if "%{_lib}" == "lib64"
1fe57a
%patch102 -p1 -b .lib64
1fe57a
%patch103 -p1 -b .lib64-sysconfig
1fe57a
%patch104 -p1
1fe57a
%endif
1fe57a
1fe57a
%patch10 -p1 -b .binutils-no-dep
1fe57a
%patch13 -p1 -b .socketmodule
1fe57a
%patch14 -p1 -b .socketmodule2
1fe57a
%patch16 -p1 -b .rpath
1fe57a
%patch17 -p1 -b .distutils-rpath
1fe57a
1fe57a
%if 0%{?with_systemtap}
1fe57a
%patch55 -p1 -b .systemtap
1fe57a
%endif
1fe57a
1fe57a
%patch111 -p1 -b .no-static-lib
1fe57a
1fe57a
%patch112 -p1 -b .debug-build
1fe57a
1fe57a
%patch113 -p1 -b .more-configuration-flags
1fe57a
1fe57a
%patch114 -p1 -b .statvfs-f-flag-constants
1fe57a
1fe57a
1fe57a
%patch121 -p1
1fe57a
%patch128 -p1
1fe57a
1fe57a
%patch130 -p1
1fe57a
1fe57a
%ifarch ppc %{power64}
1fe57a
%patch131 -p1
1fe57a
%endif
1fe57a
1fe57a
%patch132 -p1
1fe57a
%patch133 -p1
1fe57a
%patch136 -p1 -b .stdin-test
1fe57a
%patch137 -p1
1fe57a
%patch138 -p1
1fe57a
%ifarch %{arm}
1fe57a
%patch139 -p1
1fe57a
%endif
1fe57a
%ifarch %{sparc}
1fe57a
%patch140 -p1
1fe57a
%endif
1fe57a
%patch142 -p1 -b .tty-fail
1fe57a
%patch143 -p1 -b .tsc-on-ppc
1fe57a
%if !%{with_gdbm}
1fe57a
%patch144 -p1
1fe57a
%endif
1fe57a
#patch146 -p1
1fe57a
%patch147 -p1
1fe57a
%patch155 -p1
1fe57a
%patch156 -p1
1fe57a
%patch165 -p1
1fe57a
mv Modules/cryptmodule.c Modules/_cryptmodule.c
1fe57a
%patch167 -p1
1fe57a
%patch169 -p1
1fe57a
%patch170 -p1
1fe57a
%patch174 -p1 -b .fix-for-usr-move
1fe57a
%patch180 -p1
1fe57a
%patch181 -p1
1fe57a
%patch185 -p1
1fe57a
%patch187 -p1
1fe57a
%patch191 -p1
1fe57a
%patch193 -p1
1fe57a
%if %{with rewheel}
1fe57a
%patch198 -p1
1fe57a
%endif
1fe57a
%patch257 -p1
1fe57a
%patch288 -p1
1fe57a
%patch289 -p1
1fe57a
1fe57a
%if ! %{with tk_and_tools}
1fe57a
%patch4000 -p1
1fe57a
%endif
1fe57a
1fe57a
# This shouldn't be necesarry, but is right now (2.2a3)
1fe57a
find -name "*~" |xargs rm -f
1fe57a
1fe57a
%if ! 0%{regenerate_autotooling_patch}
1fe57a
# Normally we apply the patch to "configure"
1fe57a
# We don't apply the patch if we're working towards regenerating it
1fe57a
%patch5000 -p0 -b .autotool-intermediates
1fe57a
%endif
1fe57a
1fe57a
1fe57a
# ======================================================
1fe57a
# Configuring and building the code:
1fe57a
# ======================================================
1fe57a
1fe57a
%build
1fe57a
export RHEL_ALLOW_PYTHON2_FOR_BUILD=1
1fe57a
topdir=$(pwd)
1fe57a
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC -fwrapv"
1fe57a
export CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC -fwrapv"
1fe57a
export CPPFLAGS="$(pkg-config --cflags-only-I libffi)"
1fe57a
export OPT="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC -fwrapv"
1fe57a
export LINKCC="gcc"
1fe57a
export LDFLAGS="$RPM_LD_FLAGS"
1fe57a
if pkg-config openssl ; then
1fe57a
  export CFLAGS="$CFLAGS $(pkg-config --cflags openssl)"
1fe57a
  export LDFLAGS="$LDFLAGS $(pkg-config --libs-only-L openssl)"
1fe57a
fi
1fe57a
# Force CC
1fe57a
export CC=gcc
1fe57a
1fe57a
%if 0%{regenerate_autotooling_patch}
1fe57a
# If enabled, this code regenerates the patch to "configure", using a
1fe57a
# local copy of autoconf-2.65, then exits the build
1fe57a
#
1fe57a
# The following assumes that the copy is installed to ~/autoconf-2.65/bin
1fe57a
# as per these instructions:
1fe57a
#   http://bugs.python.org/issue7997
1fe57a
1fe57a
for f in pyconfig.h.in configure ; do
1fe57a
    cp $f $f.autotool-intermediates ;
1fe57a
done
1fe57a
1fe57a
# Rerun the autotools:
1fe57a
PATH=~/autoconf-2.65/bin:$PATH autoconf
1fe57a
autoheader
1fe57a
1fe57a
# Regenerate the patch:
1fe57a
gendiff . .autotool-intermediates > %{PATCH5000}
1fe57a
1fe57a
1fe57a
# Exit the build
1fe57a
exit 1
1fe57a
%endif
1fe57a
1fe57a
# Define a function, for how to perform a "build" of python for a given
1fe57a
# configuration:
1fe57a
BuildPython() {
1fe57a
  ConfName=$1
1fe57a
  BinaryName=$2
1fe57a
  SymlinkName=$3
1fe57a
  ExtraConfigArgs=$4
1fe57a
  PathFixWithThisBinary=$5
1fe57a
1fe57a
  ConfDir=build/$ConfName
1fe57a
1fe57a
  echo STARTING: BUILD OF PYTHON FOR CONFIGURATION: $ConfName - %{_bindir}/$BinaryName
1fe57a
  mkdir -p $ConfDir
1fe57a
1fe57a
  pushd $ConfDir
1fe57a
1fe57a
  # Use the freshly created "configure" script, but in the directory two above:
1fe57a
  %global _configure $topdir/configure
1fe57a
1fe57a
%configure \
1fe57a
  --enable-ipv6 \
1fe57a
  --enable-shared \
1fe57a
  --enable-unicode=%{unicode} \
1fe57a
  --with-dbmliborder=gdbm:ndbm:bdb \
1fe57a
  --with-system-expat \
1fe57a
  --with-system-ffi \
1fe57a
%if 0%{?with_systemtap}
1fe57a
  --with-dtrace \
1fe57a
  --with-tapset-install-dir=%{tapsetdir} \
1fe57a
%endif
1fe57a
%if 0%{?with_valgrind}
1fe57a
  --with-valgrind \
1fe57a
%endif
1fe57a
  $ExtraConfigArgs \
1fe57a
  %{nil}
1fe57a
1fe57a
make EXTRA_CFLAGS="$CFLAGS" %{?_smp_mflags}
1fe57a
1fe57a
# We need to fix shebang lines across the full source tree.
1fe57a
#
1fe57a
# We do this using the pathfix.py script, which requires one of the
1fe57a
# freshly-built Python binaries.
1fe57a
#
1fe57a
# We use the optimized python binary, and make the shebangs point at that same
1fe57a
# optimized python binary:
1fe57a
if $PathFixWithThisBinary
1fe57a
then
1fe57a
  # pathfix.py currently only works with files matching ^[a-zA-Z0-9_]+\.py$
1fe57a
  # when crawling through directories, so we handle the special cases manually
1fe57a
  LD_LIBRARY_PATH="$topdir/$ConfDir" ./$BinaryName \
1fe57a
    $topdir/Tools/scripts/pathfix.py \
1fe57a
      -i "%{_bindir}/python%{pybasever}" \
1fe57a
      $topdir \
1fe57a
      $topdir/Tools/pynche/pynche \
1fe57a
      $topdir/Demo/pdist/{rcvs,rcsbump,rrcs} \
1fe57a
      $topdir/Demo/scripts/find-uname.py \
1fe57a
      $topdir/Tools/scripts/reindent-rst.py
1fe57a
fi
1fe57a
1fe57a
# Rebuild with new python
1fe57a
# We need a link to a versioned python in the build directory
1fe57a
ln -s $BinaryName $SymlinkName
1fe57a
LD_LIBRARY_PATH="$topdir/$ConfDir" PATH=$PATH:$topdir/$ConfDir make -s EXTRA_CFLAGS="$CFLAGS" %{?_smp_mflags}
1fe57a
1fe57a
  popd
1fe57a
  echo FINISHED: BUILD OF PYTHON FOR CONFIGURATION: $ConfDir
1fe57a
}
1fe57a
1fe57a
# Use "BuildPython" to support building with different configurations:
1fe57a
1fe57a
%if %{with debug_build}
1fe57a
BuildPython debug \
1fe57a
  python-debug \
1fe57a
  python%{pybasever}-debug \
1fe57a
%ifarch %{ix86} x86_64 ppc %{power64}
1fe57a
  "--with-pydebug --with-tsc --with-count-allocs --with-call-profile" \
1fe57a
%else
1fe57a
  "--with-pydebug --with-count-allocs --with-call-profile" \
1fe57a
%endif
1fe57a
  false
1fe57a
%endif # with debug_build
1fe57a
1fe57a
BuildPython optimized \
1fe57a
  python \
1fe57a
  python%{pybasever} \
1fe57a
%ifarch %{ix86} x86_64
1fe57a
  "" \
1fe57a
%else
1fe57a
  "" \
1fe57a
%endif
1fe57a
  true
1fe57a
1fe57a
1fe57a
# ======================================================
1fe57a
# Installing the built code:
1fe57a
# ======================================================
1fe57a
1fe57a
%install
1fe57a
export RHEL_ALLOW_PYTHON2_FOR_BUILD=1
1fe57a
topdir=$(pwd)
1fe57a
rm -rf %{buildroot}
1fe57a
mkdir -p %{buildroot}%{_prefix} %{buildroot}%{_mandir}
1fe57a
1fe57a
# Clean up patched .py files that are saved as .lib64
1fe57a
for f in distutils/command/install distutils/sysconfig; do
1fe57a
    rm -f Lib/$f.py.lib64
1fe57a
done
1fe57a
1fe57a
InstallPython() {
1fe57a
1fe57a
  ConfName=$1
1fe57a
  BinaryName=$2
1fe57a
  PyInstSoName=$3
1fe57a
1fe57a
  ConfDir=build/$ConfName
1fe57a
1fe57a
  echo STARTING: INSTALL OF PYTHON FOR CONFIGURATION: $ConfName - %{_bindir}/$BinaryName
1fe57a
  mkdir -p $ConfDir
1fe57a
1fe57a
  pushd $ConfDir
1fe57a
1fe57a
make install DESTDIR=%{buildroot}
1fe57a
1fe57a
# We install a collection of hooks for gdb that make it easier to debug
1fe57a
# executables linked against libpython (such as /usr/lib/python itself)
1fe57a
#
1fe57a
# These hooks are implemented in Python itself
1fe57a
#
1fe57a
# gdb-archer looks for them in the same path as the ELF file, with a -gdb.py suffix.
1fe57a
# We put them in the debuginfo package by installing them to e.g.:
1fe57a
#  /usr/lib/debug/usr/lib/libpython2.6.so.1.0.debug-gdb.py
1fe57a
# (note that the debug path is /usr/lib/debug for both 32/64 bit)
1fe57a
#
1fe57a
# See https://fedoraproject.org/wiki/Features/EasierPythonDebugging for more
1fe57a
# information
1fe57a
#
1fe57a
# Initially I tried:
1fe57a
#  /usr/lib/libpython2.6.so.1.0-gdb.py
1fe57a
# but doing so generated noise when ldconfig was rerun (rhbz:562980)
1fe57a
#
1fe57a
%if 0%{?with_gdb_hooks}
1fe57a
DirHoldingGdbPy=%{_prefix}/lib/debug/%{_libdir}
1fe57a
PathOfGdbPy=$DirHoldingGdbPy/$PyInstSoName.debug-gdb.py
1fe57a
1fe57a
mkdir -p %{buildroot}$DirHoldingGdbPy
1fe57a
cp $topdir/Tools/gdb/libpython.py %{buildroot}$PathOfGdbPy
1fe57a
1fe57a
# Manually byte-compile the file, in case find-debuginfo.sh is run before
1fe57a
# brp-python-bytecompile, so that the .pyc/.pyo files are properly listed in
1fe57a
# the debuginfo manifest:
1fe57a
LD_LIBRARY_PATH="$topdir/$ConfDir" $topdir/$ConfDir/$BinaryName \
1fe57a
  -c "import compileall; import sys; compileall.compile_dir('%{buildroot}$DirHoldingGdbPy', ddir='$DirHoldingGdbPy')"
1fe57a
1fe57a
LD_LIBRARY_PATH="$topdir/$ConfDir" $topdir/$ConfDir/$BinaryName -O \
1fe57a
  -c "import compileall; import sys; compileall.compile_dir('%{buildroot}$DirHoldingGdbPy', ddir='$DirHoldingGdbPy')"
1fe57a
%endif # with_gdb_hooks
1fe57a
1fe57a
  popd
1fe57a
1fe57a
  echo FINISHED: INSTALL OF PYTHON FOR CONFIGURATION: $ConfName
1fe57a
}
1fe57a
1fe57a
# Use "InstallPython" to support building with different configurations:
1fe57a
1fe57a
# Install the "debug" build first, so that we can move some files aside
1fe57a
%if %{with debug_build}
1fe57a
InstallPython debug \
1fe57a
  python%{pybasever}-debug \
1fe57a
  %{py_INSTSONAME_debug}
1fe57a
%endif # with debug_build
1fe57a
1fe57a
# Now the optimized build:
1fe57a
InstallPython optimized \
1fe57a
  python%{pybasever} \
1fe57a
  %{py_INSTSONAME_optimized}
1fe57a
1fe57a
1fe57a
# Fix the interpreter path in binaries installed by distutils
1fe57a
# (which changes them by itself)
1fe57a
# Make sure we preserve the file permissions
1fe57a
for fixed in %{buildroot}%{_bindir}/pydoc; do
1fe57a
    sed 's,#!.*/python$,#!/usr/bin/env python%{pybasever},' $fixed > $fixed- \
1fe57a
        && cat $fixed- > $fixed && rm -f $fixed-
1fe57a
done
1fe57a
1fe57a
# Junk, no point in putting in -test sub-pkg
1fe57a
rm -f %{buildroot}/%{pylibdir}/idlelib/testcode.py*
1fe57a
1fe57a
# don't include tests that are run at build time in the package
1fe57a
# This is documented, and used: rhbz#387401
1fe57a
if /bin/false; then
1fe57a
 # Move this to -test subpackage.
1fe57a
mkdir save_bits_of_test
1fe57a
for i in test_support.py __init__.py; do
1fe57a
  cp -a %{buildroot}/%{pylibdir}/test/$i save_bits_of_test
1fe57a
done
1fe57a
rm -rf %{buildroot}/%{pylibdir}/test
1fe57a
mkdir %{buildroot}/%{pylibdir}/test
1fe57a
cp -a save_bits_of_test/* %{buildroot}/%{pylibdir}/test
1fe57a
fi
1fe57a
1fe57a
# tools
1fe57a
1fe57a
mkdir -p ${RPM_BUILD_ROOT}%{site_packages}
1fe57a
1fe57a
#pynche
1fe57a
install -p -m755 %{SOURCE7} ${RPM_BUILD_ROOT}%{_bindir}/pynche
1fe57a
chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/pynche
1fe57a
rm -f Tools/pynche/*.pyw
1fe57a
cp -rp Tools/pynche \
1fe57a
  ${RPM_BUILD_ROOT}%{site_packages}/
1fe57a
1fe57a
mv Tools/pynche/README Tools/pynche/README.pynche
1fe57a
1fe57a
#gettext
1fe57a
install -m755  Tools/i18n/pygettext.py %{buildroot}%{_bindir}/
1fe57a
install -m755  Tools/i18n/msgfmt.py %{buildroot}%{_bindir}/
1fe57a
1fe57a
# Useful development tools
1fe57a
install -m755 -d %{buildroot}%{tools_dir}/scripts
1fe57a
install Tools/README %{buildroot}%{tools_dir}/
1fe57a
install Tools/scripts/*py %{buildroot}%{tools_dir}/scripts/
1fe57a
1fe57a
# Documentation tools
1fe57a
install -m755 -d %{buildroot}%{doc_tools_dir}
1fe57a
#install -m755 Doc/tools/mkhowto %{buildroot}%{doc_tools_dir}
1fe57a
1fe57a
# Useful demo scripts
1fe57a
install -m755 -d %{buildroot}%{demo_dir}
1fe57a
cp -ar Demo/* %{buildroot}%{demo_dir}
1fe57a
1fe57a
# Get rid of crap
1fe57a
find %{buildroot}/ -name "*~"|xargs rm -f
1fe57a
find %{buildroot}/ -name ".cvsignore"|xargs rm -f
1fe57a
find %{buildroot}/ -name "*.bat"|xargs rm -f
1fe57a
find . -name "*~"|xargs rm -f
1fe57a
find . -name ".cvsignore"|xargs rm -f
1fe57a
#zero length
1fe57a
rm -f %{buildroot}%{pylibdir}/LICENSE.txt
1fe57a
1fe57a
1fe57a
# Provide binaries in the form of bin2 and bin2.7, thus implementing
1fe57a
# (and expanding) the recommendations of PEP 394.
1fe57a
mv %{buildroot}%{_bindir}/idle %{buildroot}%{_bindir}/idle%{pybasever}
1fe57a
ln -s ./idle%{pybasever} %{buildroot}%{_bindir}/idle2
1fe57a
ln -s ./idle2 %{buildroot}%{_bindir}/idle
1fe57a
1fe57a
mv %{buildroot}%{_bindir}/pynche %{buildroot}%{_bindir}/pynche%{pybasever}
1fe57a
ln -s ./pynche%{pybasever} %{buildroot}%{_bindir}/pynche2
1fe57a
ln -s ./pynche2 %{buildroot}%{_bindir}/pynche
1fe57a
1fe57a
mv %{buildroot}%{_bindir}/pydoc %{buildroot}%{_bindir}/pydoc%{pybasever}
1fe57a
ln -s ./pydoc%{pybasever} %{buildroot}%{_bindir}/pydoc2
1fe57a
ln -s ./pydoc2 %{buildroot}%{_bindir}/pydoc
1fe57a
1fe57a
mv %{buildroot}%{_bindir}/pygettext.py %{buildroot}%{_bindir}/pygettext%{pybasever}.py
1fe57a
ln -s ./pygettext%{pybasever}.py %{buildroot}%{_bindir}/pygettext2.py
1fe57a
ln -s ./pygettext2.py %{buildroot}%{_bindir}/pygettext.py
1fe57a
1fe57a
mv %{buildroot}%{_bindir}/msgfmt.py %{buildroot}%{_bindir}/msgfmt%{pybasever}.py
1fe57a
ln -s ./msgfmt%{pybasever}.py %{buildroot}%{_bindir}/msgfmt2.py
1fe57a
ln -s ./msgfmt2.py %{buildroot}%{_bindir}/msgfmt.py
1fe57a
1fe57a
mv %{buildroot}%{_bindir}/smtpd.py %{buildroot}%{_bindir}/smtpd%{pybasever}.py
1fe57a
ln -s ./smtpd%{pybasever}.py %{buildroot}%{_bindir}/smtpd2.py
1fe57a
ln -s ./smtpd2.py %{buildroot}%{_bindir}/smtpd.py
1fe57a
1fe57a
# Fix bug #143667: python should own /usr/lib/python2.x on 64-bit machines
1fe57a
%if "%{_lib}" == "lib64"
1fe57a
install -d %{buildroot}/%{_prefix}/lib/python%{pybasever}/site-packages
1fe57a
%endif
1fe57a
1fe57a
# Make python-devel multilib-ready (bug #192747, #139911)
1fe57a
%global _pyconfig32_h pyconfig-32.h
1fe57a
%global _pyconfig64_h pyconfig-64.h
1fe57a
1fe57a
%ifarch %{power64} s390x x86_64 ia64 alpha sparc64 aarch64 %{mips64} riscv64
1fe57a
%global _pyconfig_h %{_pyconfig64_h}
1fe57a
%else
1fe57a
%global _pyconfig_h %{_pyconfig32_h}
1fe57a
%endif
1fe57a
1fe57a
%if %{with debug_build}
1fe57a
%global PyIncludeDirs python%{pybasever} python%{pybasever}-debug
1fe57a
%else
1fe57a
%global PyIncludeDirs python%{pybasever}
1fe57a
%endif
1fe57a
1fe57a
for PyIncludeDir in %{PyIncludeDirs} ; do
1fe57a
  mv %{buildroot}%{_includedir}/$PyIncludeDir/pyconfig.h \
1fe57a
     %{buildroot}%{_includedir}/$PyIncludeDir/%{_pyconfig_h}
1fe57a
  cat > %{buildroot}%{_includedir}/$PyIncludeDir/pyconfig.h << EOF
1fe57a
#include <bits/wordsize.h>
1fe57a
1fe57a
#if __WORDSIZE == 32
1fe57a
#include "%{_pyconfig32_h}"
1fe57a
#elif __WORDSIZE == 64
1fe57a
#include "%{_pyconfig64_h}"
1fe57a
#else
1fe57a
#error "Unknown word size"
1fe57a
#endif
1fe57a
EOF
1fe57a
done
1fe57a
ln -s ../../libpython%{pybasever}.so %{buildroot}%{pylibdir}/config/libpython%{pybasever}.so
1fe57a
1fe57a
# Fix for bug 201434: make sure distutils looks at the right pyconfig.h file
1fe57a
# Similar for sysconfig: sysconfig.get_config_h_filename tries to locate
1fe57a
# pyconfig.h so it can be parsed, and needs to do this at runtime in site.py
1fe57a
# when python starts up.
1fe57a
#
1fe57a
# Split this out so it goes directly to the pyconfig-32.h/pyconfig-64.h
1fe57a
# variants:
1fe57a
sed -i -e "s/'pyconfig.h'/'%{_pyconfig_h}'/" \
1fe57a
  %{buildroot}%{pylibdir}/distutils/sysconfig.py \
1fe57a
  %{buildroot}%{pylibdir}/sysconfig.py
1fe57a
1fe57a
# Ensure that the curses module was linked against libncursesw.so, rather than
1fe57a
# libncurses.so (bug 539917)
1fe57a
ldd %{buildroot}/%{dynload_dir}/_curses*.so \
1fe57a
    | grep curses \
1fe57a
    | grep libncurses.so && (echo "_curses.so linked against libncurses.so" ; exit 1)
1fe57a
1fe57a
# Ensure that the debug modules are linked against the debug libpython, and
1fe57a
# likewise for the optimized modules and libpython:
1fe57a
for Module in %{buildroot}/%{dynload_dir}/*.so ; do
1fe57a
    case $Module in
1fe57a
    *_d.so)
1fe57a
        ldd $Module | grep %{py_INSTSONAME_optimized} &&
1fe57a
            (echo Debug module $Module linked against optimized %{py_INSTSONAME_optimized} ; exit 1)
1fe57a
1fe57a
        ;;
1fe57a
    *)
1fe57a
        ldd $Module | grep %{py_INSTSONAME_debug} &&
1fe57a
            (echo Optimized module $Module linked against debug %{py_INSTSONAME_optimized} ; exit 1)
1fe57a
        ;;
1fe57a
    esac
1fe57a
done
1fe57a
1fe57a
#
1fe57a
# Systemtap hooks:
1fe57a
#
1fe57a
%if 0%{?with_systemtap}
1fe57a
# Install a tapset for this libpython into tapsetdir, fixing up the path to the
1fe57a
# library:
1fe57a
mkdir -p %{buildroot}%{tapsetdir}
1fe57a
%ifarch %{power64} s390x x86_64 ia64 alpha sparc64 aarch64 %{mips64}
1fe57a
%global libpython_stp_optimized libpython%{pybasever}-64.stp
1fe57a
%global libpython_stp_debug     libpython%{pybasever}-debug-64.stp
1fe57a
%else
1fe57a
%global libpython_stp_optimized libpython%{pybasever}-32.stp
1fe57a
%global libpython_stp_debug     libpython%{pybasever}-debug-32.stp
1fe57a
%endif
1fe57a
1fe57a
sed \
1fe57a
   -e "s|LIBRARY_PATH|%{_libdir}/%{py_INSTSONAME_optimized}|" \
1fe57a
   %{SOURCE3} \
1fe57a
   > %{buildroot}%{tapsetdir}/%{libpython_stp_optimized}
1fe57a
1fe57a
%if %{with debug_build}
1fe57a
sed \
1fe57a
   -e "s|LIBRARY_PATH|%{_libdir}/%{py_INSTSONAME_debug}|" \
1fe57a
   %{SOURCE3} \
1fe57a
   > %{buildroot}%{tapsetdir}/%{libpython_stp_debug}
1fe57a
%endif # with debug_build
1fe57a
%endif # with_systemtap
1fe57a
1fe57a
# Do bytecompilation with the newly installed interpreter.
1fe57a
# compile *.pyo
1fe57a
find %{buildroot} -type f -a -name "*.py" -print0 | \
1fe57a
    LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
1fe57a
    PYTHONPATH="%{buildroot}%{_libdir}/python%{pybasever} %{buildroot}%{_libdir}/python%{pybasever}/site-packages" \
1fe57a
    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:]]' || :
1fe57a
# compile *.pyc
1fe57a
find %{buildroot} -type f -a -name "*.py" -print0 | \
1fe57a
    LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
1fe57a
    PYTHONPATH="%{buildroot}%{_libdir}/python%{pybasever} %{buildroot}%{_libdir}/python%{pybasever}/site-packages" \
1fe57a
    xargs -0 %{buildroot}%{_bindir}/python%{pybasever} -c 'import py_compile, sys; [py_compile.compile(f, dfile=f.partition("%{buildroot}")[2]) for f in sys.argv[1:]]' || :
1fe57a
1fe57a
1fe57a
# Make library-files user writable
1fe57a
/usr/bin/chmod 755 %{buildroot}%{dynload_dir}/*.so
1fe57a
/usr/bin/chmod 755 %{buildroot}%{_libdir}/libpython%{pybasever}.so.1.0
1fe57a
%if %{with debug_build}
1fe57a
/usr/bin/chmod 755 %{buildroot}%{_libdir}/libpython%{pybasever}_d.so.1.0
1fe57a
%endif # with debug_build
1fe57a
1fe57a
# Add an executable for tests
1fe57a
cp %{buildroot}%{_bindir}/python%{pybasever} %{buildroot}%{_bindir}/python2-for-tests
1fe57a
# Remove unversioned executables
1fe57a
rm %{buildroot}%{_bindir}/python
1fe57a
rm %{buildroot}%{_bindir}/idle
1fe57a
rm %{buildroot}%{_bindir}/pydoc
1fe57a
rm %{buildroot}%{_bindir}/pynche
1fe57a
rm %{buildroot}%{_bindir}/smtpd.py
1fe57a
rm %{buildroot}%{_bindir}/python-config
1fe57a
# Remove unversioned manpage
1fe57a
rm %{buildroot}%{_mandir}/man1/python.*
1fe57a
1fe57a
1fe57a
# ======================================================
1fe57a
# Running the upstream test suite
1fe57a
# ======================================================
1fe57a
1fe57a
%check
1fe57a
export RHEL_ALLOW_PYTHON2_FOR_BUILD=1
1fe57a
topdir=$(pwd)
1fe57a
CheckPython() {
1fe57a
  ConfName=$1
1fe57a
  BinaryName=$2
1fe57a
  ConfDir=$(pwd)/build/$ConfName
1fe57a
1fe57a
  export OPENSSL_CONF=/non-existing-file
1fe57a
1fe57a
  echo STARTING: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
1fe57a
1fe57a
  # Note that we're running the tests using the version of the code in the
1fe57a
  # builddir, not in the buildroot.
1fe57a
1fe57a
  pushd $ConfDir
1fe57a
1fe57a
  EXTRATESTOPTS="--verbose"
1fe57a
1fe57a
%ifarch s390 s390x %{power64} %{arm} aarch64 %{mips}
1fe57a
    EXTRATESTOPTS="$EXTRATESTOPTS -x test_gdb"
1fe57a
%endif
1fe57a
%ifarch %{mips64}
1fe57a
    EXTRATESTOPTS="$EXTRATESTOPTS -x test_ctypes"
1fe57a
%endif
1fe57a
1fe57a
%if 0%{?with_huntrleaks}
1fe57a
  # Try to detect reference leaks on debug builds.  By default this means
1fe57a
  # running every test 10 times (6 to stabilize, then 4 to watch):
1fe57a
  if [ "$ConfName" = "debug"  ] ; then
1fe57a
    EXTRATESTOPTS="$EXTRATESTOPTS --huntrleaks : "
1fe57a
  fi
1fe57a
%endif
1fe57a
1fe57a
  # Run the upstream test suite, setting "WITHIN_PYTHON_RPM_BUILD" so that the
1fe57a
  # our non-standard decorators take effect on the relevant tests:
1fe57a
  #   @unittest._skipInRpmBuild(reason)
1fe57a
  #   @unittest._expectedFailureInRpmBuild
1fe57a
  WITHIN_PYTHON_RPM_BUILD= EXTRATESTOPTS="$EXTRATESTOPTS -x test_distutils" make test
1fe57a
1fe57a
  popd
1fe57a
1fe57a
  echo FINISHED: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
1fe57a
1fe57a
}
1fe57a
1fe57a
%if %{with tests}
1fe57a
1fe57a
# no locale coercion in python2
1fe57a
# test_ssl:test_load_dh_params shutil.copies into unicode filename
1fe57a
export LC_ALL=C.utf-8
1fe57a
1fe57a
# Check each of the configurations:
1fe57a
%if %{with debug_build}
1fe57a
CheckPython \
1fe57a
  debug \
1fe57a
  python%{pybasever}-debug
1fe57a
%endif # with debug_build
1fe57a
CheckPython \
1fe57a
  optimized \
1fe57a
  python%{pybasever}
1fe57a
1fe57a
%endif # with tests
1fe57a
1fe57a
1fe57a
# ======================================================
1fe57a
# Cleaning up
1fe57a
# ======================================================
1fe57a
1fe57a
1fe57a
%files
1fe57a
%defattr(-, root, root, -)
1fe57a
%{!?_licensedir:%global license %%doc}
1fe57a
%license LICENSE
1fe57a
%doc README
1fe57a
%{_bindir}/pydoc*
1fe57a
%{_bindir}/%{python}
1fe57a
%{_bindir}/python%{pybasever}
1fe57a
%{_mandir}/*/*
1fe57a
1fe57a
%files for-tests
1fe57a
%license LICENSE
1fe57a
%{_bindir}/python2-for-tests
1fe57a
1fe57a
%files libs
1fe57a
%defattr(-,root,root,-)
1fe57a
%{!?_licensedir:%global license %%doc}
1fe57a
%license LICENSE
1fe57a
%doc README
1fe57a
%dir %{pylibdir}
1fe57a
%dir %{dynload_dir}
1fe57a
1fe57a
%{dynload_dir}/_md5module.so
1fe57a
%{dynload_dir}/_sha256module.so
1fe57a
%{dynload_dir}/_sha512module.so
1fe57a
%{dynload_dir}/_shamodule.so
1fe57a
1fe57a
%{dynload_dir}/Python-%{version}-py%{pybasever}.egg-info
1fe57a
%{dynload_dir}/_bisectmodule.so
1fe57a
%{dynload_dir}/_bsddb.so
1fe57a
%{dynload_dir}/_codecs_cn.so
1fe57a
%{dynload_dir}/_codecs_hk.so
1fe57a
%{dynload_dir}/_codecs_iso2022.so
1fe57a
%{dynload_dir}/_codecs_jp.so
1fe57a
%{dynload_dir}/_codecs_kr.so
1fe57a
%{dynload_dir}/_codecs_tw.so
1fe57a
%{dynload_dir}/_collectionsmodule.so
1fe57a
%{dynload_dir}/_csv.so
1fe57a
%{dynload_dir}/_ctypes.so
1fe57a
%{dynload_dir}/_curses.so
1fe57a
%{dynload_dir}/_curses_panel.so
1fe57a
%{dynload_dir}/_elementtree.so
1fe57a
%{dynload_dir}/_functoolsmodule.so
1fe57a
%{dynload_dir}/_hashlib.so
1fe57a
%{dynload_dir}/_heapq.so
1fe57a
%{dynload_dir}/_hotshot.so
1fe57a
%{dynload_dir}/_io.so
1fe57a
%{dynload_dir}/_json.so
1fe57a
%{dynload_dir}/_localemodule.so
1fe57a
%{dynload_dir}/_lsprof.so
1fe57a
%{dynload_dir}/_multibytecodecmodule.so
1fe57a
%{dynload_dir}/_multiprocessing.so
1fe57a
%{dynload_dir}/_randommodule.so
1fe57a
%{dynload_dir}/_socketmodule.so
1fe57a
%{dynload_dir}/_sqlite3.so
1fe57a
%{dynload_dir}/_ssl.so
1fe57a
%{dynload_dir}/_struct.so
1fe57a
%{dynload_dir}/arraymodule.so
1fe57a
%{dynload_dir}/audioop.so
1fe57a
%{dynload_dir}/binascii.so
1fe57a
%{dynload_dir}/bz2.so
1fe57a
%{dynload_dir}/cPickle.so
1fe57a
%{dynload_dir}/cStringIO.so
1fe57a
%{dynload_dir}/cmathmodule.so
1fe57a
%{dynload_dir}/_cryptmodule.so
1fe57a
%{dynload_dir}/datetime.so
1fe57a
%{dynload_dir}/dbm.so
1fe57a
%{dynload_dir}/dlmodule.so
1fe57a
%{dynload_dir}/fcntlmodule.so
1fe57a
%{dynload_dir}/future_builtins.so
1fe57a
%if %{with_gdbm}
1fe57a
%{dynload_dir}/gdbmmodule.so
1fe57a
%endif
1fe57a
%{dynload_dir}/grpmodule.so
1fe57a
%{dynload_dir}/imageop.so
1fe57a
%{dynload_dir}/itertoolsmodule.so
1fe57a
%{dynload_dir}/linuxaudiodev.so
1fe57a
%{dynload_dir}/math.so
1fe57a
%{dynload_dir}/mmapmodule.so
1fe57a
%{dynload_dir}/nismodule.so
1fe57a
%{dynload_dir}/operator.so
1fe57a
%{dynload_dir}/ossaudiodev.so
1fe57a
%{dynload_dir}/parsermodule.so
1fe57a
%{dynload_dir}/pyexpat.so
1fe57a
%{dynload_dir}/readline.so
1fe57a
%{dynload_dir}/resource.so
1fe57a
%{dynload_dir}/selectmodule.so
1fe57a
%{dynload_dir}/spwdmodule.so
1fe57a
%{dynload_dir}/stropmodule.so
1fe57a
%{dynload_dir}/syslog.so
1fe57a
%{dynload_dir}/termios.so
1fe57a
%{dynload_dir}/timemodule.so
1fe57a
%{dynload_dir}/timingmodule.so
1fe57a
%{dynload_dir}/unicodedata.so
1fe57a
%{dynload_dir}/xxsubtype.so
1fe57a
%{dynload_dir}/zlibmodule.so
1fe57a
1fe57a
%dir %{site_packages}
1fe57a
%{site_packages}/README
1fe57a
%{pylibdir}/*.py*
1fe57a
%{pylibdir}/*.doc
1fe57a
%{pylibdir}/wsgiref.egg-info
1fe57a
%dir %{pylibdir}/bsddb
1fe57a
%{pylibdir}/bsddb/*.py*
1fe57a
%{pylibdir}/compiler
1fe57a
%dir %{pylibdir}/ctypes
1fe57a
%{pylibdir}/ctypes/*.py*
1fe57a
%{pylibdir}/ctypes/macholib
1fe57a
%{pylibdir}/curses
1fe57a
%dir %{pylibdir}/distutils
1fe57a
%{pylibdir}/distutils/*.py*
1fe57a
%{pylibdir}/distutils/README
1fe57a
%{pylibdir}/distutils/command
1fe57a
%exclude %{pylibdir}/distutils/command/wininst-*.exe
1fe57a
%dir %{pylibdir}/email
1fe57a
%{pylibdir}/email/*.py*
1fe57a
%{pylibdir}/email/mime
1fe57a
%{pylibdir}/encodings
1fe57a
%{pylibdir}/hotshot
1fe57a
%{pylibdir}/idlelib
1fe57a
%{pylibdir}/importlib
1fe57a
%dir %{pylibdir}/json
1fe57a
%{pylibdir}/json/*.py*
1fe57a
%{pylibdir}/lib2to3
1fe57a
%exclude %{pylibdir}/lib2to3/tests
1fe57a
%{pylibdir}/logging
1fe57a
%{pylibdir}/multiprocessing
1fe57a
%{pylibdir}/plat-linux2
1fe57a
%{pylibdir}/pydoc_data
1fe57a
%dir %{pylibdir}/sqlite3
1fe57a
%{pylibdir}/sqlite3/*.py*
1fe57a
1fe57a
# Some bits of test are used for actual testing of stuff, not just python itself:
1fe57a
# See also https://bugzilla.redhat.com/show_bug.cgi?id=1528899
1fe57a
%dir %{pylibdir}/test
1fe57a
%{pylibdir}/test/__init__.py*
1fe57a
%{pylibdir}/test/support/
1fe57a
%{pylibdir}/test/script_helper.py*
1fe57a
%{pylibdir}/test/test_support.py*
1fe57a
1fe57a
%{pylibdir}/unittest
1fe57a
%{pylibdir}/wsgiref
1fe57a
%{pylibdir}/xml
1fe57a
%if "%{_lib}" == "lib64"
1fe57a
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}
1fe57a
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}/site-packages
1fe57a
%endif
1fe57a
1fe57a
# "Makefile" and the config-32/64.h file are needed by
1fe57a
# distutils/sysconfig.py:_init_posix(), so we include them in the libs
1fe57a
# package, along with their parent directories (bug 531901):
1fe57a
%dir %{pylibdir}/config
1fe57a
%{pylibdir}/config/Makefile
1fe57a
%dir %{_includedir}/python%{pybasever}
1fe57a
%{_includedir}/python%{pybasever}/%{_pyconfig_h}
1fe57a
1fe57a
%{_libdir}/%{py_INSTSONAME_optimized}
1fe57a
%if 0%{?with_systemtap}
1fe57a
%dir %(dirname %{tapsetdir})
1fe57a
%dir %{tapsetdir}
1fe57a
%{tapsetdir}/%{libpython_stp_optimized}
1fe57a
%doc systemtap-example.stp pyfuntop.stp
1fe57a
%endif
1fe57a
1fe57a
%dir %{pylibdir}/ensurepip/
1fe57a
%{pylibdir}/ensurepip/*.py*
1fe57a
%exclude %{pylibdir}/ensurepip/_bundled
1fe57a
1fe57a
%if %{with rewheel}
1fe57a
%dir %{pylibdir}/ensurepip/rewheel/
1fe57a
%{pylibdir}/ensurepip/rewheel/*.py*
1fe57a
%endif
1fe57a
1fe57a
1fe57a
%files devel
1fe57a
%defattr(-,root,root,-)
1fe57a
%{_libdir}/pkgconfig/python-%{pybasever}.pc
1fe57a
%{_libdir}/pkgconfig/python.pc
1fe57a
%{_libdir}/pkgconfig/python2.pc
1fe57a
%{pylibdir}/config/*
1fe57a
%exclude %{pylibdir}/config/Makefile
1fe57a
%exclude %{pylibdir}/distutils/command/wininst-*.exe
1fe57a
%{_includedir}/python%{pybasever}/*.h
1fe57a
%exclude %{_includedir}/python%{pybasever}/%{_pyconfig_h}
1fe57a
%doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit
1fe57a
%{_bindir}/python2-config
1fe57a
%{_bindir}/python%{pybasever}-config
1fe57a
%{_libdir}/libpython%{pybasever}.so
1fe57a
1fe57a
%if %{with tk_and_tools}
1fe57a
%files tools
1fe57a
%defattr(-,root,root,755)
1fe57a
%doc Tools/pynche/README.pynche
1fe57a
%{site_packages}/pynche
1fe57a
%{_bindir}/smtpd*.py*
1fe57a
1fe57a
# https://bugzilla.redhat.com/show_bug.cgi?id=1111275
1fe57a
%exclude %{_bindir}/2to3*
1fe57a
1fe57a
%{_bindir}/idle*
1fe57a
%{_bindir}/pynche*
1fe57a
%{_bindir}/pygettext*.py*
1fe57a
%{_bindir}/msgfmt*.py*
1fe57a
%{tools_dir}
1fe57a
%{demo_dir}
1fe57a
%{pylibdir}/Doc
1fe57a
1fe57a
%files tkinter
1fe57a
%defattr(-,root,root,755)
1fe57a
%{pylibdir}/lib-tk
1fe57a
%{dynload_dir}/_tkinter.so
1fe57a
1fe57a
%else #{with tk_and_tools}
1fe57a
1fe57a
%exclude %{site_packages}/pynche
1fe57a
%exclude %{_bindir}/smtpd*.py*
1fe57a
1fe57a
# https://bugzilla.redhat.com/show_bug.cgi?id=1111275
1fe57a
%exclude %{_bindir}/2to3*
1fe57a
1fe57a
%exclude %{_bindir}/idle*
1fe57a
%exclude %{_bindir}/pynche*
1fe57a
%exclude %{_bindir}/pygettext*.py*
1fe57a
%exclude %{_bindir}/msgfmt*.py*
1fe57a
%exclude %{tools_dir}
1fe57a
%exclude %{demo_dir}
1fe57a
%exclude %{pylibdir}/Doc
1fe57a
1fe57a
%exclude %{pylibdir}/lib-tk
1fe57a
%exclude %{dynload_dir}/_tkinter.so
1fe57a
1fe57a
%endif
1fe57a
1fe57a
%files test
1fe57a
%defattr(-, root, root, -)
1fe57a
%{pylibdir}/bsddb/test
1fe57a
%{pylibdir}/ctypes/test
1fe57a
%{pylibdir}/distutils/tests
1fe57a
%{pylibdir}/email/test
1fe57a
%{pylibdir}/json/tests
1fe57a
%{pylibdir}/lib2to3/tests
1fe57a
%{pylibdir}/sqlite3/test
1fe57a
%{pylibdir}/test/*
1fe57a
1fe57a
# Some bits of test are used for actual testing of stuff, not just python itself:
1fe57a
# See also https://bugzilla.redhat.com/show_bug.cgi?id=1528899
1fe57a
%exclude %{pylibdir}/test/__init__.py*
1fe57a
%exclude %{pylibdir}/test/support/
1fe57a
%exclude %{pylibdir}/test/script_helper.py*
1fe57a
%exclude %{pylibdir}/test/test_support.py*
1fe57a
1fe57a
%{dynload_dir}/_ctypes_test.so
1fe57a
%{dynload_dir}/_testcapimodule.so
1fe57a
1fe57a
1fe57a
# We don't bother splitting the debug build out into further subpackages:
1fe57a
# if you need it, you're probably a developer.
1fe57a
1fe57a
# Hence the manifest is the combination of analogous files in the manifests of
1fe57a
# all of the other subpackages
1fe57a
1fe57a
%if %{with debug_build}
1fe57a
%files debug
1fe57a
%defattr(-,root,root,-)
1fe57a
1fe57a
# Analog of the core subpackage's files:
1fe57a
%{_bindir}/python-debug
1fe57a
%{_bindir}/%{python}-debug
1fe57a
%{_bindir}/python%{pybasever}-debug
1fe57a
1fe57a
# Analog of the -libs subpackage's files, with debug builds of the built-in
1fe57a
# "extension" modules:
1fe57a
1fe57a
%{dynload_dir}/_md5module_d.so
1fe57a
%{dynload_dir}/_sha256module_d.so
1fe57a
%{dynload_dir}/_sha512module_d.so
1fe57a
%{dynload_dir}/_shamodule_d.so
1fe57a
1fe57a
%{dynload_dir}/_bisectmodule_d.so
1fe57a
%{dynload_dir}/_bsddb_d.so
1fe57a
%{dynload_dir}/_codecs_cn_d.so
1fe57a
%{dynload_dir}/_codecs_hk_d.so
1fe57a
%{dynload_dir}/_codecs_iso2022_d.so
1fe57a
%{dynload_dir}/_codecs_jp_d.so
1fe57a
%{dynload_dir}/_codecs_kr_d.so
1fe57a
%{dynload_dir}/_codecs_tw_d.so
1fe57a
%{dynload_dir}/_collectionsmodule_d.so
1fe57a
%{dynload_dir}/_csv_d.so
1fe57a
%{dynload_dir}/_ctypes_d.so
1fe57a
%{dynload_dir}/_curses_d.so
1fe57a
%{dynload_dir}/_curses_panel_d.so
1fe57a
%{dynload_dir}/_elementtree_d.so
1fe57a
%{dynload_dir}/_functoolsmodule_d.so
1fe57a
%{dynload_dir}/_hashlib_d.so
1fe57a
%{dynload_dir}/_heapq_d.so
1fe57a
%{dynload_dir}/_hotshot_d.so
1fe57a
%{dynload_dir}/_io_d.so
1fe57a
%{dynload_dir}/_json_d.so
1fe57a
%{dynload_dir}/_localemodule_d.so
1fe57a
%{dynload_dir}/_lsprof_d.so
1fe57a
%{dynload_dir}/_multibytecodecmodule_d.so
1fe57a
%{dynload_dir}/_multiprocessing_d.so
1fe57a
%{dynload_dir}/_randommodule_d.so
1fe57a
%{dynload_dir}/_socketmodule_d.so
1fe57a
%{dynload_dir}/_sqlite3_d.so
1fe57a
%{dynload_dir}/_ssl_d.so
1fe57a
%{dynload_dir}/_struct_d.so
1fe57a
%{dynload_dir}/arraymodule_d.so
1fe57a
%{dynload_dir}/audioop_d.so
1fe57a
%{dynload_dir}/binascii_d.so
1fe57a
%{dynload_dir}/bz2_d.so
1fe57a
%{dynload_dir}/cPickle_d.so
1fe57a
%{dynload_dir}/cStringIO_d.so
1fe57a
%{dynload_dir}/cmathmodule_d.so
1fe57a
%{dynload_dir}/_cryptmodule_d.so
1fe57a
%{dynload_dir}/datetime_d.so
1fe57a
%{dynload_dir}/dbm_d.so
1fe57a
%{dynload_dir}/dlmodule_d.so
1fe57a
%{dynload_dir}/fcntlmodule_d.so
1fe57a
%{dynload_dir}/future_builtins_d.so
1fe57a
%if %{with_gdbm}
1fe57a
%{dynload_dir}/gdbmmodule_d.so
1fe57a
%endif
1fe57a
%{dynload_dir}/grpmodule_d.so
1fe57a
%{dynload_dir}/imageop_d.so
1fe57a
%{dynload_dir}/itertoolsmodule_d.so
1fe57a
%{dynload_dir}/linuxaudiodev_d.so
1fe57a
%{dynload_dir}/math_d.so
1fe57a
%{dynload_dir}/mmapmodule_d.so
1fe57a
%{dynload_dir}/nismodule_d.so
1fe57a
%{dynload_dir}/operator_d.so
1fe57a
%{dynload_dir}/ossaudiodev_d.so
1fe57a
%{dynload_dir}/parsermodule_d.so
1fe57a
%{dynload_dir}/pyexpat_d.so
1fe57a
%{dynload_dir}/readline_d.so
1fe57a
%{dynload_dir}/resource_d.so
1fe57a
%{dynload_dir}/selectmodule_d.so
1fe57a
%{dynload_dir}/spwdmodule_d.so
1fe57a
%{dynload_dir}/stropmodule_d.so
1fe57a
%{dynload_dir}/syslog_d.so
1fe57a
%{dynload_dir}/termios_d.so
1fe57a
%{dynload_dir}/timemodule_d.so
1fe57a
%{dynload_dir}/timingmodule_d.so
1fe57a
%{dynload_dir}/unicodedata_d.so
1fe57a
%{dynload_dir}/xxsubtype_d.so
1fe57a
%{dynload_dir}/zlibmodule_d.so
1fe57a
1fe57a
# No need to split things out the "Makefile" and the config-32/64.h file as we
1fe57a
# do for the regular build above (bug 531901), since they're all in one package
1fe57a
# now; they're listed below, under "-devel":
1fe57a
1fe57a
%{_libdir}/%{py_INSTSONAME_debug}
1fe57a
%if 0%{?with_systemtap}
1fe57a
%dir %(dirname %{tapsetdir})
1fe57a
%dir %{tapsetdir}
1fe57a
%{tapsetdir}/%{libpython_stp_debug}
1fe57a
%endif
1fe57a
1fe57a
# Analog of the -devel subpackage's files:
1fe57a
%dir %{pylibdir}/config-debug
1fe57a
%{_libdir}/pkgconfig/python-%{pybasever}-debug.pc
1fe57a
%{_libdir}/pkgconfig/python-debug.pc
1fe57a
%{_libdir}/pkgconfig/python2-debug.pc
1fe57a
%{pylibdir}/config-debug/*
1fe57a
%{_includedir}/python%{pybasever}-debug/*.h
1fe57a
%{_bindir}/python-debug-config
1fe57a
%{_bindir}/python2-debug-config
1fe57a
%{_bindir}/python%{pybasever}-debug-config
1fe57a
%{_libdir}/libpython%{pybasever}_d.so
1fe57a
1fe57a
# Analog of the -tools subpackage's files:
1fe57a
#  None for now; we could build precanned versions that have the appropriate
1fe57a
# shebang if needed
1fe57a
1fe57a
%if ! 0%{?_module_build}
1fe57a
# Analog  of the tkinter subpackage's files:
1fe57a
%{dynload_dir}/_tkinter_d.so
1fe57a
%endif
1fe57a
1fe57a
# Analog  of the -test subpackage's files:
1fe57a
%{dynload_dir}/_ctypes_test_d.so
1fe57a
%{dynload_dir}/_testcapimodule_d.so
1fe57a
1fe57a
%endif # with debug_build
1fe57a
1fe57a
# We put the debug-gdb.py file inside /usr/lib/debug to avoid noise from
1fe57a
# ldconfig (rhbz:562980).
1fe57a
#
1fe57a
# The /usr/lib/rpm/redhat/macros defines the __debug_package macro to use
1fe57a
# debugfiles.list, and it appears that everything below /usr/lib/debug and
1fe57a
# (/usr/src/debug) gets added to this file (via LISTFILES) in
1fe57a
# /usr/lib/rpm/find-debuginfo.sh
1fe57a
#
1fe57a
# Hence by installing it below /usr/lib/debug we ensure it is added to the
1fe57a
# -debuginfo subpackage
1fe57a
# (if it doesn't, then the rpmbuild ought to fail since the debug-gdb.py
1fe57a
# payload file would be unpackaged)
1fe57a
1fe57a
# Workaround for rhbz#1476593
1fe57a
%undefine _debuginfo_subpackages
1fe57a
1fe57a
# ======================================================
1fe57a
# Finally, the changelog:
1fe57a
# ======================================================
1fe57a
1fe57a
%changelog
1fe57a
* Wed Oct 23 2019 Charalampos Stratakis <cstratak@redhat.com> - 2.7.17-1
1fe57a
- Update to 2.7.17
1fe57a
Resolves: rhbz#1759946
1fe57a
1fe57a
* Tue Jun 11 2019 Charalampos Stratakis <cstratak@redhat.com> - 2.7.16-8
1fe57a
- Fix urlparse.urlsplit() error message for Unicode URL
1fe57a
Resolves: rhbz#1689328
1fe57a
1fe57a
* Fri Jun 07 2019 Charalampos Stratakis <cstratak@redhat.com> - 2.7.16-7
1fe57a
- Security fix for CVE-2019-10160
1fe57a
Resolves: rhbz#1689328
1fe57a
1fe57a
* Thu May 30 2019 Charalampos Stratakis <cstratak@redhat.com> - 2.7.16-6
1fe57a
- Security fix for CVE-2019-9948
1fe57a
Resolves: rhbz#1704177
1fe57a
1fe57a
* Thu May 30 2019 Charalampos Stratakis <cstratak@redhat.com> - 2.7.16-5
1fe57a
- Disallow control chars in http URLs
1fe57a
- Fixes CVE-2019-9740 and CVE-2019-9947
1fe57a
Resolves: rhbz#1704369 and rhbz#1703537
1fe57a
1fe57a
* Fri May 03 2019 Charalampos Stratakis <cstratak@redhat.com> - 2.7.16-4
1fe57a
- Updated fix for CVE-2019-9636
1fe57a
Resolves: rhbz#1689328
1fe57a
1fe57a
* Fri Apr 12 2019 Charalampos Stratakis <cstratak@redhat.com> - 2.7.16-3
1fe57a
- Fix coverity scan static analysis issues
1fe57a
Resolves: rhbz#1602667
1fe57a
1fe57a
* Wed Apr 3 2019 Charalampos Stratakis <cstratak@redhat.com> - 2.7.16-2
1fe57a
- Security fix for CVE-2019-9636 (rhbz#1689328)
1fe57a
1fe57a
* Mon Apr 1 2019 Charalampos Stratakis <cstratak@redhat.com> - 2.7.16-1
1fe57a
- Update to 2.7.16
1fe57a
Resolves: rhbz#1680964
1fe57a
1fe57a
* Thu Nov 29 2018 Tomas Orsava <torsava@redhat.com> - 2.7.15-16
1fe57a
- Bump NVR to redo CI gating tests, because the "update test" was
1fe57a
  malfunctioning and had to be fixed
1fe57a
Resolves: rhbz#1565560
1fe57a
1fe57a
* Wed Nov 28 2018 Charalampos Stratakis <cstratak@redhat.com> - 2.7.15-15
1fe57a
- Workaround Python's threading library issue with non returning wait, for signals with timeout
1fe57a
Resolves: rhbz#1565560
1fe57a
1fe57a
* Tue Nov 13 2018 Charalampos Stratakis <cstratak@redhat.com> - 2.7.15-14
1fe57a
- Add choices for sort option of cProfile for better output
1fe57a
Resolves: rhbz#1565101
1fe57a
1fe57a
* Wed Nov 07 2018 Lumír Balhar <lbalhar@redhat.com> - 2.7.15-13
1fe57a
- Bring audiotest.au back to package. It's not copyrighted anymore.
1fe57a
- Resolves: rhbz#1643970
1fe57a
1fe57a
* Fri Oct 12 2018 Petr Viktorin <pviktori@redhat.com> - 2.7.15-12
1fe57a
- Remove Windows binaries from the source archive
1fe57a
- Resolves: rhbz#1633220
1fe57a
1fe57a
* Fri Oct 12 2018 Charalampos Stratakis <cstratak@redhat.com> - 2.7.15-11
1fe57a
- Fix test_dbm_gnu for gdbm 1.15 which fails on ppc64le
1fe57a
Resolves: rhbz#1638710
1fe57a
1fe57a
* Mon Sep 24 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7.15-10
1fe57a
- Security fix for CVE-2018-14647
1fe57a
Resolves: rhbz#1632095
1fe57a
1fe57a
* Sat Aug 04 2018 Petr Viktorin <pviktori@redhat.com> - 2.7.15-9
1fe57a
- Disable Python 2 at the C level
1fe57a
1fe57a
* Fri Aug  3 2018 Florian Weimer <fweimer@redhat.com> - 2.7.15-8
1fe57a
- Honor %%{valgrind_arches}
1fe57a
1fe57a
* Thu Aug 02 2018 Charalampos Stratakis <cstratak@redhat.com> - 2.7.15-7
1fe57a
- Disable optimizations
1fe57a
- Disable ssl related tests for now
1fe57a
1fe57a
* Wed Jul 25 2018 Petr Kubat <pkubat@redhat.com> - 2.7.15-6
1fe57a
- Rebuilt for gdbm
1fe57a
1fe57a
* Mon Jul 09 2018 Petr Viktorin <pviktori@redhat.com> - 2.7.15-5
1fe57a
- Don't build the tkinter and tools subpackages
1fe57a
1fe57a
* Thu Jun 28 2018 Petr Viktorin <pviktori@redhat.com> - 2.7.15-4
1fe57a
- Disable Python 2
1fe57a
- Exclude the unversioned commands in /usr/bin
1fe57a
- Exclude the unversioned man page
1fe57a
- No longer Provide unversioned "python"
1fe57a
1fe57a
* Tue Jun 26 2018 Petr Viktorin <pviktori@redhat.com> - 2.7.15-3
1fe57a
- Bump release
1fe57a
1fe57a
* Fri Jun 22 2018 Petr Viktorin <pviktori@redhat.com> - 2.7.15-2
1fe57a
- Provide the python2-for-tests package
1fe57a
- Disable rewheel & ensurepip
1fe57a
- Disable the debug build
1fe57a
1fe57a
* Tue May 01 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7.15-1
1fe57a
- Update to version 2.7.15
1fe57a
1fe57a
* Wed Apr 25 2018 Tomas Orsava <torsava@redhat.com> - 2.7.14-17
1fe57a
- Change shebangs to the proper versioned binary
1fe57a
- Bytecompile files manually, disbale brp-python-bytecompile
1fe57a
Resolves: rhbz#1572171
1fe57a
1fe57a
* Fri Apr 13 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7.14-16
1fe57a
- Remove Obsoletes tag from when python was renamed to python2 (Fedora 25 was last)
1fe57a
1fe57a
* Wed Mar 14 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7.14-15
1fe57a
- Fix broken SSL module
1fe57a
Resolves: rhbz#1555081
1fe57a
1fe57a
* Tue Mar 13 2018 Charalampos Stratakis <cstratak@redhat.com> - 2.7.14-14
1fe57a
- Do not send IP addresses in SNI TLS extension
1fe57a
1fe57a
* Mon Feb 26 2018 Petr Viktorin <pviktori@redhat.com> - 2.7.14-13
1fe57a
- Fix -Wint-in-bool-context warnings
1fe57a
Resolves: rhbz#1473425
1fe57a
1fe57a
* Sat Feb 24 2018 Florian Weimer <fweimer@redhat.com> - 2.7.14-12
1fe57a
- Rebuild with new LDFLAGS from redhat-rpm-config
1fe57a
1fe57a
* Thu Feb 15 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7.14-11
1fe57a
- Move test.support and test.script_helper to python2-libs
1fe57a
Resolves: rhbz#1528899
1fe57a
1fe57a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.14-10
1fe57a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1fe57a
1fe57a
* Tue Jan 30 2018 Petr Viktorin <pviktori@redhat.com> - 2.7.14-9
1fe57a
- Add patch 288: warn/fail if Python 2 is called as /usr/bin/python and
1fe57a
  PYTHON_DISALLOW_AMBIGUOUS_VERSION is set
1fe57a
- Add patch 289: Fix for over-aligned GC info
1fe57a
1fe57a
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 2.7.14-8
1fe57a
- Rebuilt for switch to libxcrypt
1fe57a
1fe57a
* Wed Jan 17 2018 Petr Viktorin <pviktori@redhat.com> - 2.7.14-7
1fe57a
- Build the nis module with tirpc
1fe57a
1fe57a
* Tue Jan 16 2018 Miro Hrončok <mhroncok@redhat.com> - 2.7.14-6
1fe57a
- Rebuild for reverted gdbm 1.13 on Fedora 27
1fe57a
1fe57a
* Thu Jan 11 2018 Charalampos Stratakis <cstratak@redhat.com> - 2.7.14-5
1fe57a
- Rebuild for gdbm 1.14
1fe57a
1fe57a
* Mon Dec 11 2017 Charalampos Stratakis <cstratak@redhat.com> - 2.7.14-4
1fe57a
- Fix hanging of all threads when trying to access an inaccessible NFS server.
1fe57a
1fe57a
* Thu Nov 09 2017 Miro Hrončok <mhroncok@redhat.com> - 2.7.14-3
1fe57a
- Make the -devel package require redhat-rpm-config
1fe57a
Resolves: rhbz#1496757
1fe57a
1fe57a
* Thu Nov 02 2017 Charalampos Stratakis <cstratak@redhat.com> - 2.7.14-2
1fe57a
- Add a new PYTHONSHOWREFCOUNT environment variable for printing the reference
1fe57a
  count in debug builds.
1fe57a
- Fix nondeterministic read in test_pty.
1fe57a
1fe57a
* Mon Oct 09 2017 Iryna Shcherbina <ishcherb@redhat.com> - 2.7.14-1
1fe57a
- Update to version 2.7.14
1fe57a
1fe57a
* Thu Aug 31 2017 Tomas Orsava <torsava@redhat.com> - 2.7.13-18
1fe57a
- Switch some macros into bconds to facilitate modularity
1fe57a
1fe57a
* Wed Aug 16 2017 Miro Hrončok <mhroncok@redhat.com> - 2.7.13-17
1fe57a
- Exclude /usr/bin/2to3 (rhbz#1111275)
1fe57a
1fe57a
* Mon Aug 14 2017 David "Sanqui" Labský <dlabsky@redhat.com> - 2.7.13-16
1fe57a
- Do not generate debuginfo subpackages (#1476593)
1fe57a
1fe57a
* Wed Aug 09 2017 Michal Cyprian <mcyprian@redhat.com> - 2.7.13-15
1fe57a
- Revert "Add --executable option to install.py command"
1fe57a
  This enhancement is currently not needed and it can possibly
1fe57a
  collide with `pip --editable`option
1fe57a
1fe57a
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.13-14
1fe57a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1fe57a
1fe57a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.13-13
1fe57a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1fe57a
1fe57a
* Mon Jun 26 2017 Charalampos Stratakis <cstratak@redhat.com> - 2.7.13-11
1fe57a
- Fix test_alpn_protocols from test_ssl
1fe57a
1fe57a
* Wed May 31 2017 Miro Hrončok <mhroncok@redhat.com> - 2.7.13-11
1fe57a
- Change fixed Obsoletes version with a dynamic one (rhbz#1457336)
1fe57a
1fe57a
* Thu May 18 2017 Karsten Hopp <karsten@redhat.com> - 2.7.13-10
1fe57a
- revert logic for modularity patch and enable gdbm for modularity 
1fe57a
1fe57a
* Tue May 16 2017 Tomas Orsava <torsava@redhat.com> - 2.7.13-9
1fe57a
- Added a dependency to the devel subpackage on python3-rpm-generators which
1fe57a
  have been excised out of rpm-build
1fe57a
- There is no Python 2 package containing Python RPM generators, therefore
1fe57a
  Python 3 is needed when Python 2 package is to be built, but this was
1fe57a
  decided not to be a problem due to nearing EOL of Python 2
1fe57a
- Involves: rhbz#1410631, rhbz#1444925
1fe57a
1fe57a
* Wed May 10 2017 Charalampos Stratakis <cstratak@redhat.com> - 2.7.13-8
1fe57a
- Enable profile guided optimizations for x86_64 and i686 architectures
1fe57a
- Update description to reflect that Python 2 is not the default Python
1fe57a
1fe57a
* Tue Apr 25 2017 Karsten Hopp <karsten@redhat.com> - 2.7.13-7
1fe57a
- apply modularity patch only during module builds
1fe57a
1fe57a
* Sun Apr 23 2017 Karsten Hopp <karsten@redhat.com> - 2.7.13-6
1fe57a
- add missing patch
1fe57a
1fe57a
* Fri Apr 21 2017 Karsten Hopp <karsten@redhat.com> - 2.7.13-5
1fe57a
- drop a couple of dependencies for Modularity builds
1fe57a
1fe57a
* Tue Feb 21 2017 Michal Cyprian <mcyprian@redhat.com> - 2.7.13-5
1fe57a
- Add --executable option to install.py command
1fe57a
1fe57a
* Fri Feb 17 2017 Charalampos Stratakis <cstratak@redhat.com> - 2.7.13-4
1fe57a
- Fix the upgrade path to F26 due to renaming the package to python2 (rhbz#1420332)
1fe57a
1fe57a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.13-3
1fe57a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1fe57a
1fe57a
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 2.7.13-2
1fe57a
- Rebuild for readline 7.x
1fe57a
1fe57a
* Wed Jan 11 2017 Charalampos Stratakis <cstratak@redhat.com> - 2.7.13-1
1fe57a
- Update to 2.7.13
1fe57a
- Don't blow up on EL7 kernel (random generator) (rhbz#1410175, rhbz#1410187)
1fe57a
- Require glibc >= 2.24.90-26 (rhbz#1410644)
1fe57a
1fe57a
* Thu Oct 27 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.7.12-9
1fe57a
- Rename package to python2 and also rename the subpackages accordingly
1fe57a
- Provide and obsolete python and the respective subpackages to ensure a clean
1fe57a
upgrade path
1fe57a
- Remove old provides for packages that got into stdlib
1fe57a
- Implement PEP 394
1fe57a
1fe57a
* Wed Oct 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.7.12-8
1fe57a
- Port ssl and hashlib modules to OpenSSL 1.1.0
1fe57a
- Drop hashlib patch for now
1fe57a
- Add riscv64 arch to 64bit and no-valgrind arches
1fe57a
1fe57a
* Thu Sep 29 2016 Miro Hrončok <mhroncok@redhat.com> - 2.7.12-7
1fe57a
- Provide python27
1fe57a
1fe57a
* Fri Sep 02 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.7.12-6
1fe57a
- Remove unversioned Obsoletes
1fe57a
1fe57a
* Thu Sep 01 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.7.12-5
1fe57a
- Rebase rewheel patch so it applies properly (rhbz#1372183)
1fe57a
1fe57a
* Tue Aug 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.7.12-4
1fe57a
- SPEC file cleanup
1fe57a
- Removal of unapplied patches
1fe57a
1fe57a
* Tue Aug 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.7.12-3
1fe57a
- Fix for CVE-2016-1000110 HTTPoxy attack
1fe57a
- SPEC file cleanup
1fe57a
1fe57a
* Mon Aug 01 2016 Michal Toman <mtoman@fedoraproject.org> - 2.7.12-2
1fe57a
- Build properly on MIPS
1fe57a
1fe57a
* Fri Jul 15 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.7.12-1
1fe57a
- Update to 2.7.12
1fe57a
- Refactored patches: 10, 102, 112, 134, 153
1fe57a
- Dropped patches: 166, 209, 210
1fe57a
1fe57a
* Fri Jul 08 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.7.11-8
1fe57a
- Refactor patch for properly fixing CVE-2016-5636
1fe57a
1fe57a
* Fri Jul 08 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.7.11-7
1fe57a
- Fix test_pyexpat failure with Expat version of 2.2.0
1fe57a
1fe57a
* Thu Jun 16 2016 Tomas Orsava <torsava@redhat.com> - 2.7.11-6
1fe57a
- Fix for: CVE-2016-0772 python: smtplib StartTLS stripping attack
1fe57a
- Raise an error when STARTTLS fails
1fe57a
- rhbz#1303647: https://bugzilla.redhat.com/show_bug.cgi?id=1303647
1fe57a
- rhbz#1346344: https://bugzilla.redhat.com/show_bug.cgi?id=1346344
1fe57a
- Fixed upstream: https://hg.python.org/cpython/rev/b3ce713fb9be
1fe57a
1fe57a
* Mon Jun 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.7.11-5
1fe57a
- Added patch for fixing possible integer overflow and heap corruption in zipimporter.get_data()
1fe57a
1fe57a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.11-4
1fe57a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1fe57a
1fe57a
* Wed Jan 13 2016 Orion Poplawski <orion@cora.nwra.com> - 2.7.11-3
1fe57a
- Drop macros, require python/python2-rpm-macros
1fe57a
1fe57a
* Wed Dec 30 2015 Orion Poplawski <orion@cora.nwra.com> - 2.7.11-2
1fe57a
- Get ready for separate python-macros package
1fe57a
1fe57a
* Tue Dec 15 2015 Robert Kuska <rkuska@redhat.com> - 2.7.11-1
1fe57a
- Update to 2.7.11
1fe57a
1fe57a
* Thu Oct 15 2015 Thomas Spura <tomspur@fedoraproject.org> - 2.7.10-11
1fe57a
- provide/obsolete _isa packages in python_provide (#1271776)
1fe57a
1fe57a
* Wed Sep 23 2015 Robert Kuska <rkuska@redhat.com> - 2.7.10-10
1fe57a
- Revert the moving modules to python-tools because distutils uses lib2to3
1fe57a
1fe57a
* Tue Sep 22 2015 Robert Kuska <rkuska@redhat.com> - 2.7.10-9
1fe57a
- Move idlelib and lib2to3 modules to pythont-tools
1fe57a
1fe57a
* Thu Sep 3 2015 Orion Poplawski <orion@cora.nwra.com> - 2.7.10-8
1fe57a
- Fix quoting in %%python_provide macro
1fe57a
1fe57a
* Thu Sep 3 2015 Orion Poplawski <orion@cora.nwra.com> - 2.7.10-7
1fe57a
- Add obsoletes to %%python_provide macro to fix upgrade path
1fe57a
- Fix python2- provides for python- packages in %%python_provide
1fe57a
1fe57a
* Thu Jul 23 2015 Thomas Spura <tomspur@fedoraproject.org> - 2.7.10-6
1fe57a
- python-macros: remove R on python (#1246036)
1fe57a
1fe57a
* Wed Jul 22 2015 Thomas Spura <tomspur@fedoraproject.org> - 2.7.10-5
1fe57a
- Include epoch in the python_provide macro fpc#534 (Slavek Kabrda)
1fe57a
1fe57a
* Mon Jun 29 2015 Thomas Spura <tomspur@fedoraproject.org> - 2.7.10-4
1fe57a
- correct python_provide macro to include version only when emiting provides
1fe57a
1fe57a
* Thu Jun 25 2015 Thomas Spura <tomspur@fedoraproject.org> - 2.7.10-3
1fe57a
- Add unversioned python-macros from fpc#281 and fpc#534
1fe57a
  and require it from python-devel
1fe57a
- Make python-macros noarch
1fe57a
1fe57a
* Wed Jun 17 2015 Matej Stuchlik <mstuchli@redhat.com> - 2.7.10-2
1fe57a
- Make relocating Python by changing _prefix actually work
1fe57a
Resolves: rhbz#1231801
1fe57a
1fe57a
* Mon May 25 2015 Matej Stuchlik <mstuchli@redhat.com> - 2.7.10-1
1fe57a
- Update to 2.7.10
1fe57a
1fe57a
* Tue May  5 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2.7.9-11
1fe57a
- Disable test_gdb on aarch64 (rhbz#1196181), it joins all other non x86 arches
1fe57a
1fe57a
* Wed Apr 15 2015 Robert Kuska <rkuska@redhat.com> - 2.7.9-10
1fe57a
- Remove provides/obsolates for unittest2
1fe57a
- Skip test_gdb on arm until rhbz#1196181 is resolved
1fe57a
1fe57a
* Thu Mar 05 2015 Matej Stuchlik <mstuchli@redhat.com> - 2.7.9-9
1fe57a
- Add proper rewheel Requires
1fe57a
1fe57a
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 2.7.9-8
1fe57a
- Rebuilt for Fedora 23 Change
1fe57a
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
1fe57a
1fe57a
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 2.7.9-7
1fe57a
- Rebuilt for Fedora 23 Change
1fe57a
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
1fe57a
1fe57a
* Tue Feb 17 2015 Ville Skyttä <ville.skytta@iki.fi> - 2.7.9-6
1fe57a
- Own systemtap dirs (#710733)
1fe57a
1fe57a
* Fri Feb 06 2015 Karsten Hopp <karsten@redhat.com> 2.7.9-5
1fe57a
- disable test_gdb on ppc64* until rhbz#1132488 is really resolved
1fe57a
1fe57a
* Tue Jan 20 2015 Slavek Kabrda <bkabrda@redhat.com> - 2.7.9-4
1fe57a
- We need to provide both arch specific and noarch Provide for python2-devel
1fe57a
in order not to break noarch builds.
1fe57a
1fe57a
* Tue Jan 20 2015 Slavek Kabrda <bkabrda@redhat.com> - 2.7.9-3
1fe57a
- Make python2-devel provide arch specific.
1fe57a
Resolves: rhbz#1183530
1fe57a
1fe57a
* Mon Jan 12 2015 Dan Horák <dan[at]danny.cz> - 2.7.9-2
1fe57a
- build with valgrind on ppc64le
1fe57a
- disable test_gdb on s390(x) until rhbz#1181034 is resolved
1fe57a
1fe57a
* Thu Dec 11 2014 Matej Stuchlik <mstuchli@redhat.com> - 2.7.9-1
1fe57a
- Update to 2.7.9
1fe57a
- Refreshed patches: #55, #137, #146, #153, #156, #198
1fe57a
- Dropped patches: #196, #197
1fe57a
- New patch: #199
1fe57a
- Added the rewheel module
1fe57a
1fe57a
* Mon Nov 24 2014 Matej Stuchlik <mstuchli@redhat.com> - 2.7.8-10
1fe57a
- Improve python2_version macros
1fe57a
1fe57a
* Thu Nov 13 2014 Matej Stuchlik <mstuchli@redhat.com> - 2.7.8-9
1fe57a
- Add python2_version_nodots macro
1fe57a
1fe57a
* Mon Nov 10 2014 Slavek Kabrda <bkabrda@redhat.com> - 2.7.8-8
1fe57a
- Revert previous change, see rhbz#1161166#c6.
1fe57a
1fe57a
* Fri Nov 07 2014 Slavek Kabrda <bkabrda@redhat.com> - 2.7.8-7
1fe57a
- Provide importable unittest2
1fe57a
Resolves: rhbz#1161166
1fe57a
1fe57a
* Thu Aug 21 2014 Robert Kuska <rkuska@redhat.com> - 2.7.8-6
1fe57a
- Update patch 196 (ssl backport)
1fe57a
1fe57a
* Tue Aug 19 2014 Robert Kuska <rkuska@redhat.com> - 2.7.8-5
1fe57a
- Backport ssl module from python3
1fe57a
1fe57a
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.8-4
1fe57a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
1fe57a
1fe57a
* Thu Jul 31 2014 Tom Callaway <spot@fedoraproject.org> - 2.7.8-3
1fe57a
- fix license handling
1fe57a
1fe57a
* Fri Jul 18 2014 Robert Kuska <rkuska@redhat.com> - 2.7.8-2
1fe57a
- Enable SSLv2 and SSLv3 when SSLv23_method is used in ssl
1fe57a
1fe57a
* Mon Jul 14 2014 Robert Kuska <rkuska@redhat.com> - 2.7.8-1
1fe57a
- Update to 2.7.8
1fe57a
1fe57a
* Fri Jul 11 2014 Dan Horák <dan[at]danny.cz> - 2.7.7-3
1fe57a
- rebuilt for updated libffi ABI on ppc64le
1fe57a
1fe57a
* Sat Jun  7 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2.7.7-2
1fe57a
- aarch64 has valgrind, just list those that don't support it
1fe57a
1fe57a
* Wed Jun 04 2014 Matej Stuchlik <mstuchli@redhat.com> - 2.7.7-1
1fe57a
- Update to 2.7.7
1fe57a
- Refreshed patches: #16, #112, #138, #147, #157, #166, #173, #5000
1fe57a
- Dropped patches: #190, #192, #194
1fe57a
1fe57a
* Tue Jun 03 2014 Dan Horák <dan[at]danny.cz> - 2.7.6-9
1fe57a
- update the arch list where valgrind exists - %%power64 includes also
1fe57a
    ppc64le which is not supported yet
1fe57a
1fe57a
* Wed May 21 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 2.7.6-8
1fe57a
- Rebuilt for https://fedoraproject.org/wiki/Changes/f21tcl86
1fe57a
1fe57a
* Fri May 09 2014 Tomas Radej <tradej@redhat.com> - 2.7.6-7
1fe57a
- Fixed obsoletes on ordereddict (bz #1095434)
1fe57a
1fe57a
* Mon Apr 14 2014 Tomas Radej <tradej@redhat.com> - 2.7.6-6
1fe57a
- Obsoletes python-ordereddict (bz #1085593, not precisely 1:1 replacement)
1fe57a
1fe57a
* Mon Apr 07 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.6-5
1fe57a
- Fix test failure with SQLite > 3.8.4.
1fe57a
- Obsolete/Provide python-unittest2
1fe57a
Related: rhbz#1060426
1fe57a
1fe57a
* Wed Feb 19 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.6-4
1fe57a
- Enable loading sqlite extensions.
1fe57a
Resolves: rhbz#1066708
1fe57a
1fe57a
* Mon Feb 10 2014 Tomas Radej <tradej@redhat.com> - 2.7.6-3
1fe57a
- Fixed buffer overflow (upstream patch)
1fe57a
Resolves: rhbz#1062375
1fe57a
1fe57a
* Tue Feb 04 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.6-2
1fe57a
- Install macros in _rpmconfigdir.
1fe57a
1fe57a
* Wed Jan 29 2014 Tomas Radej <tradej@redhat.com> - 2.7.6-1
1fe57a
- Updated to v2.7.6
1fe57a
- Freshened patches 102, 111, 112, 136, and 142
1fe57a
- Dropped patches 186, 188 (both fixed upstream)
1fe57a
1fe57a
* Wed Jan 15 2014 Matej Stuchlik <mstuchli@redhat.com> - 2.7.5-11
1fe57a
- Make library-files user writable to get rid of
1fe57a
  Permission Denied in buildlog from debuginfo-packaging
1fe57a
1fe57a
* Tue Jan 14 2014 Dennis Gilmore <dennis@ausil.us> - 2.7.5-10
1fe57a
- enable valgrind support on 32 bit arm
1fe57a
1fe57a
* Tue Nov 12 2013 Tomas Radej <tradej@redhat.com> - 2.7.5-9
1fe57a
- Import get_python_version in bdist_rpm
1fe57a
Resolves: rhbz#1029082
1fe57a
1fe57a
* Tue Oct 08 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.5-8
1fe57a
- Fix processing gdb py-bt command in eval calls.
1fe57a
Resolves: rhbz#1008154
1fe57a
1fe57a
* Tue Sep 03 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.5-7
1fe57a
- Removed ancient Obsolete: python-sqlite2.
1fe57a
1fe57a
* Mon Aug 26 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.5-6
1fe57a
- Sync back/renumber patches to stay consistent with rhel.
1fe57a
1fe57a
* Mon Aug 19 2013 Matej Stuchlik <mstuchli@redhat.com> - 2.7.5-5
1fe57a
- Added fix for CVE-2013-4238 (rhbz#998430)
1fe57a
1fe57a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.5-4
1fe57a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1fe57a
1fe57a
* Mon Jul 08 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.5-3
1fe57a
- Fix build with libffi containing multilib wrapper for ffi.h (rhbz#979696).
1fe57a
1fe57a
* Mon Jul 08 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.5-2
1fe57a
- Obsolete PyXML as requested in rhbz#981137.
1fe57a
1fe57a
* Thu May 16 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.5-1
1fe57a
- Updated to Python 2.7.5.
1fe57a
- Refreshed patches: 0 (config), 102 (lib64), 121 (add Modules to build path),
1fe57a
153 (gdb test noise)
1fe57a
- Dropped patches: 126, 127 (big endian issues, both fixed upstream),
1fe57a
175 (configure -Wformat, fixed upstream)
1fe57a
- Synced patch numbers with python3.spec.
1fe57a
1fe57a
* Tue May 14 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.4-5
1fe57a
- fix multilib issue in python-tools due to /usr/bin/pynche (source 7;
1fe57a
rhbz#831437)
1fe57a
1fe57a
* Thu May 02 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.4-4
1fe57a
- Add patch that enables building on ppc64p7.
1fe57a
1fe57a
* Mon Apr 22 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.4-3
1fe57a
- Allow arbitrary timeout in Condition.wait (rhbz#917709).
1fe57a
1fe57a
* Thu Apr 11 2013 Kalev Lember <kalevlember@gmail.com> - 2.7.4-2
1fe57a
- Build with libdb 5.3 instead of libdb4
1fe57a
- Refreshed patches: 0 (config), 102 (lib64)
1fe57a
- Dropped patches: 54 (db4 version), 159 (db4 include path adjustment)
1fe57a
1fe57a
* Mon Apr 08 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.4-1
1fe57a
- Updated to Python 2.7.4.
1fe57a
- Refreshed patches: 0 (config), 7 (sqlite encoding), 16 (rpath in config),
1fe57a
55 (systemtap), 111 (no static lib), 112 (debug build), 113 (more
1fe57a
configuration flags), 130 (add extension to python config), 134 (fix
1fe57a
COUNT_ALLOCS in test_sys), 146 (haslib FIPS), 147 (add debug malloc stats),
1fe57a
153 (fix gdb test noise), 157 (uid, gid overflow - fixed upstream, just
1fe57a
keeping few more downstream tests), 165 (crypt module salt backport),
1fe57a
175 (fix configure Wformat), 5000 (regenerated autotooling patch)
1fe57a
- Dropped patches: 101 (lib64 regex; merged upstream), 171 (exception on
1fe57a
missing /dev/urandom; merged upstream), 172 (poll for multiprocessing socket
1fe57a
connection; merged upstream)
1fe57a
1fe57a
* Mon Mar 25 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-35
1fe57a
- fix gcc 4.8 incompatibility (rhbz#927358); regenerate autotool intermediates
1fe57a
1fe57a
* Wed Mar  6 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-34
1fe57a
- restrict scope of workaround for cmpi-bindings issue to avoid breaking
1fe57a
in-tree running of test_sys and test_subprocess (rhbz#817554)
1fe57a
1fe57a
* Wed Mar  6 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-33
1fe57a
- add workaround for cmpi-bindings issue (rhbz#817554)
1fe57a
1fe57a
* Mon Mar  4 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-32
1fe57a
- add workaround for ENOPROTOOPT seen running selftests in Koji
1fe57a
(rhbz#913732)
1fe57a
1fe57a
* Mon Mar  4 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-31
1fe57a
- remove config flag from /etc/rpm/macros.python2
1fe57a
1fe57a
* Fri Feb 22 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-30
1fe57a
- remove __debug_package macro from comment
1fe57a
1fe57a
* Fri Feb 22 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-29
1fe57a
- drop -b from application of patch 157 (uid/gid overflows)
1fe57a
1fe57a
* Fri Feb 22 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-28
1fe57a
- fix bogus dates in changelog
1fe57a
1fe57a
* Thu Feb 21 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-27
1fe57a
- port _multiprocessing.Connection.poll() to use the "poll" syscall, rather
1fe57a
than "select", allowing large numbers of subprocesses (patch 172;
1fe57a
rhbz#849992)
1fe57a
1fe57a
* Thu Feb 21 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-26
1fe57a
- raise correct exception in os.urandom() when /dev/urandom is missing
1fe57a
(patch 171; rhbz#907383)
1fe57a
1fe57a
* Wed Feb 20 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-25
1fe57a
- in debug builds, try to print repr() when a C-level assert fails in the
1fe57a
garbage collector (typically indicating a reference-counting error somewhere
1fe57a
else e.g in an extension module) (patch 170; rhbz#850013)
1fe57a
1fe57a
* Wed Feb 20 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-24
1fe57a
- move lib2to3/tests from python-libs to python-test (rhbz#850056)
1fe57a
1fe57a
* Wed Feb 20 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-23
1fe57a
- use SHA-256 rather than implicitly using MD5 within the challenge handling
1fe57a
in multiprocessing.connection (patch 169; rhbz#879695)
1fe57a
1fe57a
* Wed Feb 20 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-22
1fe57a
- fix a problem with distutils.sysconfig when CFLAGS is defined in the
1fe57a
environment (patch 168; rhbz#849994)
1fe57a
1fe57a
* Wed Feb 20 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-21
1fe57a
- don't run any stack navigation tests in test_gdb for optimized builds
1fe57a
(patch 167; rhbz#912025)
1fe57a
1fe57a
* Wed Feb 20 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-20
1fe57a
- s/cryptmodule/_cryptmodule/ in package payload (rhbz#835021)
1fe57a
1fe57a
* Tue Feb 19 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-19
1fe57a
- bulletproof the gdb debugging hooks against a failure seen in ARM builds
1fe57a
(patch 166; rhbz#912025)
1fe57a
- re-enable make check on ARM (rhbz#912025)
1fe57a
1fe57a
* Tue Feb 19 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-18
1fe57a
- backport pre-canned ways of salting a password to the "crypt" module from 3.3
1fe57a
(rhbz#835021)
1fe57a
1fe57a
* Tue Feb 19 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-17
1fe57a
- remove "_default_patch_fuzz" directive to avoid patches being silently
1fe57a
misapplied (refresh patch 1, patch 101, patch 102, patch 111, patch 121,
1fe57a
patch 158; rename patch 1, patch 101, patch 121; apply patch 54 before the
1fe57a
lib64 patches to avoid fuzz problems caused by the conditional application
1fe57a
of the lib64 patches)
1fe57a
1fe57a
* Mon Feb 18 2013 Peter Robinson <pbrobinson@fedoraproject.org> 2.7.3-16
1fe57a
- disable make check on ARM for the moment until 912025 is fixed
1fe57a
1fe57a
* Mon Feb 11 2013 David Malcolm <dmalcolm@redhat.com> - 2.7.3-15
1fe57a
- add aarch64 (rhbz#909783)
1fe57a
1fe57a
* Thu Nov 29 2012 David Malcolm <dmalcolm@redhat.com> - 2.7.3-14
1fe57a
- add BR on bluez-libs-devel (rhbz#879720)
1fe57a
1fe57a
* Thu Aug  9 2012 David Malcolm <dmalcolm@redhat.com> - 2.7.3-13
1fe57a
- remove f18 conditional from patch 159
1fe57a
1fe57a
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.3-12
1fe57a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1fe57a
1fe57a
* Tue Jul 17 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.3-11
1fe57a
- fix memory leak in module _hashlib (patch 158, rhbz#836285)
1fe57a
- fix db4 include path for libdb4 package (f18 and above) (patch 159)
1fe57a
1fe57a
* Tue Jun 26 2012 David Malcolm <dmalcolm@redhat.com> - 2.7.3-10
1fe57a
- fix missing include in uid/gid handling patch (patch 157; rhbz#830405)
1fe57a
1fe57a
* Fri Jun 22 2012 David Malcolm <dmalcolm@redhat.com> - 2.7.3-9
1fe57a
- use rpm macro for power64 (rhbz#834653)
1fe57a
1fe57a
* Tue May 15 2012 David Malcolm <dmalcolm@redhat.com> - 2.7.3-8
1fe57a
- update uid/gid handling to avoid int overflows seen with uid/gid
1fe57a
values >= 2^31 on 32-bit architectures (patch 157; rhbz#697470)
1fe57a
1fe57a
* Fri May  4 2012 David Malcolm <dmalcolm@redhat.com> - 2.7.3-7
1fe57a
- renumber autotools patch from 300 to 5000
1fe57a
- specfile cleanups
1fe57a
1fe57a
* Mon Apr 30 2012 David Malcolm <dmalcolm@redhat.com> - 2.7.3-6
1fe57a
- try again to fix test_gdb.py (patch 156; rhbz#817072)
1fe57a
1fe57a
* Mon Apr 30 2012 David Malcolm <dmalcolm@redhat.com> - 2.7.3-5
1fe57a
- fix test_gdb.py (patch 156; rhbz#817072)
1fe57a
1fe57a
* Fri Apr 20 2012 David Malcolm <dmalcolm@redhat.com> - 2.7.3-4
1fe57a
- avoid allocating thunks in ctypes unless absolutely necessary, to avoid
1fe57a
generating SELinux denials on "import ctypes" and "import uuid" when embedding
1fe57a
Python within httpd (patch 155; rhbz#814391)
1fe57a
1fe57a
* Thu Apr 19 2012 David Malcolm <dmalcolm@redhat.com> - 2.7.3-3
1fe57a
- add explicit version requirements on expat to avoid linkage problems with
1fe57a
XML_SetHashSalt
1fe57a
1fe57a
* Wed Apr 18 2012 David Malcolm <dmalcolm@redhat.com> - 2.7.3-2
1fe57a
- fix -config symlinks (patch 112; rhbz#813836)
1fe57a
1fe57a
* Wed Apr 11 2012 David Malcolm <dmalcolm@redhat.com> - 2.7.3-1
1fe57a
- 2.7.3: refresh patch 102 (lib64); drop upstream patches 11 (ascii-to-lower),
1fe57a
115 (pydoc robustness), 145 (linux2), 148 (gdbm magic values), 151 (deadlock
1fe57a
in fork); refresh patch 112 (debug build); revise patch 127
1fe57a
(test_structmember); fix test_gdb (patch 153); refresh patch 137 (distutils
1fe57a
tests); add python2.pc to python-devel; regenerate the autotool intermediates
1fe57a
patch (patch 300)
1fe57a
1fe57a
* Sat Feb 25 2012 Thomas Spura <tomspur@fedoraproject.org> - 2.7.2-20
1fe57a
- fix deadlock issue (#787712)
1fe57a
1fe57a
* Fri Feb 17 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 2.7.2-19
1fe57a
- Obsolete python-sqlite2
1fe57a
1fe57a
* Thu Nov 24 2011 Ville Skyttä <ville.skytta@iki.fi> - 2.7.2-18
1fe57a
- Build with $RPM_LD_FLAGS (#756862).
1fe57a
- Use xz-compressed source tarball.
1fe57a
1fe57a
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.2-17
1fe57a
- Rebuilt for glibc bug#747377
1fe57a
1fe57a
* Fri Sep 30 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-16
1fe57a
- re-enable gdbm (patch 148; rhbz#742242)
1fe57a
1fe57a
* Fri Sep 16 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-15
1fe57a
- add a sys._debugmallocstats() function (patch 147)
1fe57a
1fe57a
* Wed Sep 14 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-14
1fe57a
- support OpenSSL FIPS mode in _hashlib and hashlib; don't build the _md5 and
1fe57a
_sha* modules, relying on _hashlib in hashlib, and thus within md5 etc
1fe57a
(rhbz#563986; patch 146)
1fe57a
1fe57a
* Wed Sep 14 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-13
1fe57a
- force sys.platform to be "linux2" (patch 145)
1fe57a
1fe57a
* Tue Sep 13 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-12
1fe57a
- disable gdbm module to prepare for gdbm soname bump
1fe57a
1fe57a
* Mon Sep 12 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-11
1fe57a
- rename and renumber patches for consistency with python3.spec (55, 111, 113,
1fe57a
114, 125, 131, 129 to 143)
1fe57a
1fe57a
* Sat Sep 10 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-10
1fe57a
- rewrite of "check", introducing downstream-only hooks for skipping specific
1fe57a
cases in an rpmbuild (patch 132), and fixing/skipping failing tests in a more
1fe57a
fine-grained manner than before (patches 104, 133-142)
1fe57a
1fe57a
* Thu Sep  1 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-9
1fe57a
- run selftests with "--verbose"
1fe57a
- disable parts of test_io on ppc (rhbz#732998)
1fe57a
1fe57a
* Tue Aug 23 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-8
1fe57a
- add --extension-suffix option to python-config (patch 130; rhbz#732808)
1fe57a
1fe57a
* Tue Aug 23 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-7
1fe57a
- re-enable and fix the --with-tsc option on ppc64, and rework it on 32-bit
1fe57a
ppc to avoid aliasing violations (patch 129; rhbz#698726)
1fe57a
1fe57a
* Tue Aug 23 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-6
1fe57a
- don't use --with-tsc on ppc64 debug builds (rhbz#698726)
1fe57a
1fe57a
* Thu Aug 18 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-5
1fe57a
- add rpm macros file (rhbz#731800)
1fe57a
1fe57a
* Fri Jul  8 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-4
1fe57a
- cleanup of BuildRequires; add comment headings to specfile sections
1fe57a
1fe57a
* Wed Jun 22 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-3
1fe57a
- reorganize test exclusions (test_openpty and test_pty seem to be failing on
1fe57a
every arch, not just the explicitly-listed ones)
1fe57a
1fe57a
* Mon Jun 13 2011 Dan Horák <dan[at]danny.cz> - 2.7.2-2
1fe57a
- add s390(x) excluded tests
1fe57a
1fe57a
* Mon Jun 13 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.2-1
1fe57a
- 2.7.2; drop upstreamed patches: patch 122 (parallel make fix), patch 124
1fe57a
(test_commands and SELinux), patch 130 (ppc preprocessor macro in debug
1fe57a
build); patch 131 (decimal in Turkish locale); regenerate the autotool
1fe57a
intermediates patch (patch 300)
1fe57a
1fe57a
* Tue Jun 07 2011 Dennis Gilmore <dennis@ausil.us> - 2.7.1-9
1fe57a
- fix sparc building by excluding failing tests RHBZ#711584
1fe57a
1fe57a
* Mon May 23 2011 Peter Robinson <pbrobinson@gmail.com> - 2.7.1-8
1fe57a
- fix compile on ARM by excluding failing tests on arm - RHBZ #706253
1fe57a
1fe57a
* Tue Apr 12 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.1-7
1fe57a
- fix "import decimal" in the Turkish locale (patch 131; rhbz#694928)
1fe57a
1fe57a
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.1-6
1fe57a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1fe57a
1fe57a
* Fri Jan  21 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 2.7.1-5
1fe57a
- Switch from setting OPT to setting EXTRA_CFLAGS so we don't overwrite the
1fe57a
  DNDEBUG flag
1fe57a
1fe57a
* Fri Jan  7 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.1-4
1fe57a
- for now, drop "obsoletes" of python-argparse, since it interracts badly with
1fe57a
multilib (rhbz#667984)
1fe57a
1fe57a
* Fri Jan  7 2011 Thomas Spura <tomspur@fedoraproject.org> - 2.7.1-3
1fe57a
- obsolete/provide python-argparse (new in 2.7)
1fe57a
1fe57a
* Thu Jan  6 2011 David Malcolm <dmalcolm@redhat.com> - 2.7.1-2
1fe57a
- fix the ppc build of the debug configuration (patch 130; rhbz#661510)
1fe57a
1fe57a
* Thu Dec 23 2010 David Malcolm <dmalcolm@redhat.com> - 2.7.1-1
1fe57a
- 2.7.1, reworking patch 0 (config), patch 102 (lib64); drop upstream
1fe57a
patch 56 (cfgparse), patch 110 (ctypes/SELinux/noexecmem), patch 119 (expat
1fe57a
compat), patch 123 (2to3 on "from itertools import *")
1fe57a
- fix test_abc's test_cache_leak in the debug build (patch 128)
1fe57a
- drop _weakref.so from manifest (_weakref became a core module in r84230)
1fe57a
1fe57a
* Wed Sep 29 2010 jkeating - 2.7-13
1fe57a
- Rebuilt for gcc bug 634757
1fe57a
1fe57a
* Mon Sep 27 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-12
1fe57a
- fix test_structmember on 64bit-bigendian (patch 127)
1fe57a
1fe57a
* Fri Sep 24 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-11
1fe57a
- fix dbm_contains on 64bit-bigendian (patch 126; rhbz#626756)
1fe57a
1fe57a
* Thu Sep 16 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 2.7-10
1fe57a
- backport a patch to fix a change in behaviour in configparse.
1fe57a
1fe57a
* Thu Sep  9 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-9
1fe57a
- move most of the payload of the core package to the libs subpackage, given
1fe57a
that the libs aren't meaningfully usable without the standard libraries
1fe57a
1fe57a
* Wed Aug 18 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-8
1fe57a
- add %%check section
1fe57a
- update lib64 patch (patch 102) to fix expected output in test_site.py on
1fe57a
64-bit systems
1fe57a
- patch test_commands.py to work with SELinux (patch 124)
1fe57a
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
1fe57a
1fe57a
* Mon Jul 26 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-7
1fe57a
- fixup missing -lcrypt to "crypt" module in config patch (patch 0)
1fe57a
1fe57a
* Mon Jul 26 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-6
1fe57a
- re-enable systemtap
1fe57a
- cherrypick upstream patch to 2to3 for "from itertools import *"
1fe57a
traceback (patch 123)
1fe57a
1fe57a
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-5
1fe57a
- disable systemtap for now (dtrace is failing on startup due to the bug
1fe57a
mentioned in 2.7-4)
1fe57a
- provide relative path to python binary when running pathfix.py
1fe57a
- fix parallel make (patch 122)
1fe57a
1fe57a
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-4
1fe57a
- fix reference to pyconfig.h in sysconfig that led to failure on startup if
1fe57a
python-devel was not installed
1fe57a
1fe57a
* Thu Jul  8 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-3
1fe57a
- add patch to fixup the new sysconfig.py for our multilib support on
1fe57a
64-bit (patch 103)
1fe57a
1fe57a
* Thu Jul  8 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-2
1fe57a
- add machinery for regenerating the "configure" script in the face of
1fe57a
mismatching autoconf versions (patch 300)
1fe57a
1fe57a
* Tue Jul  6 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-1
1fe57a
- 2.7 final; drop alphatag
1fe57a
- drop patch 117 (upstream), patch 120 (upstreamed)
1fe57a
- fix the commented-out __python_ver from 26 to 27
1fe57a
1fe57a
* Tue Jun 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-0.1.rc2
1fe57a
- 2.7rc2
1fe57a
- revert r79310 (patch 121)
1fe57a
- remove modulator: upstream removed it in r78338
1fe57a
- rename mathmodule(_d).so to math(_d).so in manifests (appears to be changed
1fe57a
by r76861)
1fe57a
- _bytesio(_d).so and _filesio(_d).so were consolidated into _io(_d).so in
1fe57a
r73394 (upstream issue 6215)
1fe57a
- use the gdb hooks from the upstream tarball, rather than keeping our own
1fe57a
copy. The upstream version has some whitespace changes, a new write_repr for
1fe57a
unicode objects, and various bulletproofings for being run on older gdbs
1fe57a
1fe57a
* Tue Jun 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-0.1.rc1
1fe57a
- 2.7rc1:
1fe57a
  - rework patches to apply against 2.7 (which among other changes has had a
1fe57a
whitespace cleanup of the .c code): .rhconfig (patch0), .binutils-no-dep
1fe57a
(patch10), .ascii-tolower (patch11), .socketmodule (patch13), .socketmodule2
1fe57a
(patch14), .systemtap (patch55), .lib64 (patch102), .selinux (patch110),
1fe57a
.no-static-lib (patch111), .debug-build (patch112), .statvfs-f-flag-constants
1fe57a
(patch114), ..CVE-2010-2089 (patch117)
1fe57a
  - drop upstream patches: .expat (patch3), .brprpm (patch51), .valgrind
1fe57a
(patch52), .db48 (patch53), .CVE-2010-1634 (patch 116), .CVE-2008-5983 (patch
1fe57a
118)
1fe57a
1fe57a
* Tue Jun 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-17
1fe57a
- Stop python bailing out with an assertion failure when UnicodeDecodeErrors
1fe57a
occur on very large buffers (patch 120, upstream issue 9058)
1fe57a
1fe57a
* Mon Jun 21 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-16
1fe57a
- Fix an incompatibility between pyexpat and the system expat-2.0.1 that led to
1fe57a
a segfault running test_pyexpat.py (patch 119; upstream issue 9054)
1fe57a
1fe57a
* Tue Jun  8 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-15
1fe57a
- add a flag to make it easy to turn off the debug build when troubleshooting
1fe57a
the rpm build
1fe57a
1fe57a
* Sat Jun  5 2010 Dan Horák <dan[at]danny.cz> - 2.6.5-14
1fe57a
- reading the timestamp counter is available only on some arches (see Python/ceval.c)
1fe57a
- disable --with-valgrind on s390(x) arches
1fe57a
1fe57a
* Fri Jun  4 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-13
1fe57a
- ensure that the compiler is invoked with "-fwrapv" (rhbz#594819)
1fe57a
- CVE-2010-1634: fix various integer overflow checks in the audioop
1fe57a
module (patch 116)
1fe57a
- CVE-2010-2089: further checks within the audioop module (patch 117)
1fe57a
- CVE-2008-5983: the new PySys_SetArgvEx entry point from r81399 (patch 118)
1fe57a
1fe57a
* Thu May 27 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-12
1fe57a
- make "pydoc -k" more robust in the face of broken modules (rhbz:461419, patch115)
1fe57a
1fe57a
* Wed May 26 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-11
1fe57a
- add flags for statvfs.f_flag to the constant list in posixmodule (i.e. "os")
1fe57a
(patch 114)
1fe57a
1fe57a
* Tue May 25 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-10
1fe57a
- add configure-time support for COUNT_ALLOCS and CALL_PROFILE debug options
1fe57a
(patch 113); enable them and the WITH_TSC option within the debug build
1fe57a
1fe57a
* Tue May 18 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-9
1fe57a
- build and install two different configurations of Python: debug and standard,
1fe57a
packaging the debug build in a new "python-debug" subpackage (patch 112)
1fe57a
1fe57a
* Tue May  4 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-8
1fe57a
- don't delete wsgiref.egg-info (rhbz:588426)
1fe57a
1fe57a
* Mon Apr 26 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-7
1fe57a
- disable --with-valgrind on sparc arches
1fe57a
1fe57a
* Mon Apr 12 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-6
1fe57a
- move the "bdist_wininst" command's template .exe files from the core package
1fe57a
to the devel subpackage, to save space (rhbz:525469)
1fe57a
- fix stray doublelisting of config directory wildcard in devel subpackage
1fe57a
1fe57a
* Wed Mar 31 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-5
1fe57a
- update python-gdb.py from v4 to v5 (improving performance and stability,
1fe57a
adding commands)
1fe57a
1fe57a
* Thu Mar 25 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-4
1fe57a
- update python-gdb.py from v3 to v4 (fixing infinite recursion on reference
1fe57a
cycles and tracebacks on bytes 0x80-0xff in strings, adding handlers for sets
1fe57a
and exceptions)
1fe57a
1fe57a
* Wed Mar 24 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-3
1fe57a
- refresh gdb hooks to v3 (reworking how they are packaged)
1fe57a
1fe57a
* Mon Mar 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-2
1fe57a
- remove unnecessary arch-conditionality for patch 101
1fe57a
1fe57a
* Fri Mar 19 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.5-1
1fe57a
- update to 2.6.5: http://www.python.org/download/releases/2.6.5/
1fe57a
- replace our patch to compile against db4.8 with a patch from
1fe57a
upstream (patch 53, from r78974); update patch 54 since part of it is now in
1fe57a
that upstream patch
1fe57a
- update patch 110 so that it still applies in the face of upstream r78380
1fe57a
1fe57a
* Tue Mar 16 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-23
1fe57a
- fixup distutils/unixccompiler.py to remove standard library path from
1fe57a
rpath (patch 17)
1fe57a
- delete DOS batch files
1fe57a
1fe57a
* Fri Mar 12 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-22
1fe57a
- add pyfuntop.stp; allow systemtap support to be disabled
1fe57a
- remove trailing period from tkinter summary
1fe57a
- don't own /usr/bin/python-config if you're not the main python
1fe57a
1fe57a
* Thu Mar 11 2010 Marcela Mašláňová <mmaslano@redhat.com> - 2.6.4-21
1fe57a
- rebuild with new gdbm
1fe57a
1fe57a
* Thu Feb 11 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-20
1fe57a
- avoid having the "test" subdirectory and the files within it that are in the
1fe57a
core subpackage also be owned by the test subpackage (rhbz:467588)
1fe57a
1fe57a
* Wed Feb 10 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-19
1fe57a
- revise the systemtap patch (patch 55:python-2.6.4-dtrace.patch) to the
1fe57a
new version by mjw in attachment 390110 of rhbz:545179, as this should
1fe57a
eliminate the performance penalty for the case where the probes aren't in
1fe57a
use, and eliminate all architecture-specific code (rhbz:563541; except on
1fe57a
sparc)
1fe57a
1fe57a
* Tue Feb  9 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-18
1fe57a
- add a systemtap tapset defining "python.function.entry" and
1fe57a
"python.function.return" to make it easy to use the static probepoint within
1fe57a
Python; add an example of using the tapset to the docs
1fe57a
1fe57a
* Tue Feb  9 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-17
1fe57a
- add systemtap static probes (wcohen; patch 55; rh bug #545179)
1fe57a
- update some comments in specfile relating to gdb work
1fe57a
- manually byte-compile the gdb.py file with the freshly-built python to ensure
1fe57a
that .pyx and .pyo files make it into the debuginfo manifest if they are later
1fe57a
byte-compiled after find-debuginfo.sh is run
1fe57a
1fe57a
* Mon Feb  8 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-16
1fe57a
- move the -gdb.py file from %%{_libdir}/INSTSONAME-gdb.py to
1fe57a
%%{_prefix}/lib/debug/%%{_libdir}/INSTSONAME.debug-gdb.py to avoid noise from
1fe57a
ldconfig (bug 562980), and which should also ensure it becomes part of the
1fe57a
debuginfo subpackage, rather than the libs subpackage
1fe57a
- introduce %%{py_SOVERSION} and %%{py_INSTSONAME} to reflect the upstream
1fe57a
configure script, and to avoid fragile scripts that try to figure this out
1fe57a
dynamically (e.g. for the -gdb.py change)
1fe57a
1fe57a
* Mon Feb  8 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-15
1fe57a
- work around bug 562906 by supplying a fixed version of pythondeps.sh
1fe57a
- set %%{_python_bytecompile_errors_terminate_build} to 0 to prevent the broken
1fe57a
test files from killing the build on buildroots where python is installed
1fe57a
1fe57a
* Fri Feb  5 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-14
1fe57a
- add gdb hooks for easier debugging
1fe57a
1fe57a
* Fri Jan 29 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-13
1fe57a
- document all patches, and remove the commented-out ones
1fe57a
1fe57a
* Tue Jan 26 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-12
1fe57a
- Address some of the issues identified in package review (bug 226342):
1fe57a
  - update libs requirement on base package to use %%{name} for consistency's
1fe57a
sake
1fe57a
  - convert from backticks to $() syntax throughout
1fe57a
  - wrap value of LD_LIBRARY_PATH in quotes
1fe57a
  - convert "/usr/bin/find" requirement to "findutils"
1fe57a
  - remove trailing periods from summaries of -devel and -tools subpackages
1fe57a
  - fix spelling mistake in description of -test subpackage
1fe57a
  - convert usage of $$RPM_BUILD_ROOT to %%{buildroot} throughout, for
1fe57a
stylistic consistency
1fe57a
  - supply dirmode arguments to defattr directives
1fe57a
1fe57a
* Mon Jan 25 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-11
1fe57a
- update python-2.6.2-config.patch to remove downstream customization of build
1fe57a
of pyexpat and elementtree modules
1fe57a
- add patch adapted from upstream (patch 3) to add support for building against
1fe57a
system expat; add --with-system-expat to "configure" invocation
1fe57a
- remove embedded copy of expat from source tree during "prep"
1fe57a
1fe57a
* Mon Jan 25 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-10
1fe57a
- introduce macros for 3 directories, replacing expanded references throughout:
1fe57a
%%{pylibdir}, %%{dynload_dir}, %%{site_packages}
1fe57a
- explicitly list all lib-dynload files, rather than dynamically gathering the
1fe57a
payload into a temporary text file, so that we can be sure what we are
1fe57a
shipping; remove now-redundant testing for presence of certain .so files
1fe57a
- remove embedded copy of zlib from source tree before building
1fe57a
1fe57a
* Mon Jan 25 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-9
1fe57a
- change python-2.6.2-config.patch to remove our downstream change to curses
1fe57a
configuration in Modules/Setup.dist, so that the curses modules are built using
1fe57a
setup.py with the downstream default (linking against libncursesw.so, rather
1fe57a
than libncurses.so), rather than within the Makefile; add a test to %%install
1fe57a
to verify the dso files that the curses module is linked against the correct
1fe57a
DSO (bug 539917; changes _cursesmodule.so -> _curses.so)
1fe57a
1fe57a
* Fri Jan 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-8
1fe57a
- rebuild (bug 556975)
1fe57a
1fe57a
* Wed Jan 20 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-7
1fe57a
- move lib2to3 from -tools subpackage to main package (bug 556667)
1fe57a
1fe57a
* Mon Jan 18 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-6
1fe57a
- patch Makefile.pre.in to avoid building static library (patch111, bug 556092)
1fe57a
- split up the "configure" invocation flags onto individual lines
1fe57a
1fe57a
* Fri Jan 15 2010 David Malcolm <dmalcolm@redhat.com> - 2.6.4-5
1fe57a
- replace usage of %%define with %%global
1fe57a
- use the %%{_isa} macro to ensure that the python-devel dependency on python
1fe57a
is for the correct multilib arch (#555943)
1fe57a
- delete bundled copy of libffi to make sure we use the system one
1fe57a
- replace references to /usr with %%{_prefix}; replace references to
1fe57a
/usr/include with %%{_includedir}
1fe57a
1fe57a
* Wed Dec 16 2009 David Malcolm <dmalcolm@redhat.com> - 2.6.4-4
1fe57a
- automatically disable arena allocator when run under valgrind (upstream
1fe57a
issue 2422; patch 52)
1fe57a
- add patch from Josh Boyer containing diff against upstream PyBSDDB to make
1fe57a
the bsddb module compile against db-4.8 (patch 53, #544275); bump the necessary
1fe57a
version of db4-devel to 4.8
1fe57a
- patch setup.py so that it searches for db-4.8, and enable debug output for
1fe57a
said search; make Setup.dist use db-4.8 (patch 54)
1fe57a
1fe57a
* Thu Nov 12 2009 David Malcolm <dmalcolm@redhat.com> - 2.6.4-3
1fe57a
- fixup the build when __python_ver is set (Zach Sadecki; bug 533989); use
1fe57a
pybasever in the files section
1fe57a
1fe57a
* Thu Oct 29 2009 David Malcolm <dmalcolm@redhat.com> - 2.6.4-2
1fe57a
- "Makefile" and the config-32/64.h file are needed by distutils/sysconfig.py
1fe57a
_init_posix(), so we include them in the core package, along with their parent
1fe57a
directories (bug 531901)
1fe57a
1fe57a
* Mon Oct 26 2009 David Malcolm <dmalcolm@redhat.com> - 2.6.4-1
1fe57a
- Update to 2.6.4
1fe57a
1fe57a
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 2.6.2-2
1fe57a
- rebuilt with new openssl
1fe57a
1fe57a
* Mon Jul 27 2009 James Antill <james.antill@redhat.com> - 2.6.2-1
1fe57a
- Update to 2.6.2
1fe57a
1fe57a
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-11
1fe57a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1fe57a
1fe57a
* Sat Jul 4 2009 Jonathan Steffan <jsteffan@fedoraproject.org> - 2.6-10
1fe57a
- Move python-config to devel subpackage (#506153)
1fe57a
- Update BuildRoot for new standard
1fe57a
1fe57a
* Sun Jun 28 2009 Jonathan Steffan <jsteffan@fedoraproject.org> - 2.6-9
1fe57a
- Update python-tools description (#448940)
1fe57a
1fe57a
* Wed Apr 15 2009 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 2.6-8
1fe57a
- Replace python-hashlib and python-uuid (#484715)
1fe57a
1fe57a
* Tue Mar 17 2009 James Antill <james@fedoraproject.org> - 2.6-7
1fe57a
- Use system libffi
1fe57a
- Resolves: bug#490573
1fe57a
- Fix SELinux execmem problems
1fe57a
- Resolves: bug#488396
1fe57a
1fe57a
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-5
1fe57a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1fe57a
1fe57a
* Fri Jan 16 2009 Tomas Mraz <tmraz@redhat.com> - 2.6-4
1fe57a
- rebuild with new openssl
1fe57a
1fe57a
* Tue Jan  6 2009 James Antill <james.antill@redhat.com> - 2.6-3
1fe57a
- Fix distutils generated rpms.
1fe57a
- Resolves: bug#236535
1fe57a
1fe57a
* Wed Dec 10 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.6-2
1fe57a
- Enable -lcrypt for cryptmodule
1fe57a
1fe57a
* Fri Nov 28 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.6-1
1fe57a
- Update to 2.6
1fe57a
1fe57a
* Tue Sep 30 2008 James Antill <james.antill@redhat.com> - 2.5.2-1
1fe57a
- Move to 2.5.2
1fe57a
- Fix CVE-2008-2316 hashlib overflow.
1fe57a
1fe57a
* Thu Jul 17 2008 Jeremy Katz <katzj@redhat.com> - 2.5.1-30
1fe57a
- Fix up the build for new rpm
1fe57a
- And actually build against db4-4.7 (#455170)
1fe57a
1fe57a
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.5.1-27
1fe57a
- fix license tag
1fe57a
- enable support for db4-4.7
1fe57a
1fe57a
* Sun Jun 15 2008 James Antill <jantill@redhat.com> - 2.5.1-26
1fe57a
- Fix sporadic listdir problem
1fe57a
- Resolves: bug#451494
1fe57a
1fe57a
* Mon Apr  7 2008 James Antill <jantill@redhat.com> - 2.5.1-25
1fe57a
- Rebuild to re-gen autoconf file due to glibc change.
1fe57a
- Resolves: bug#441003
1fe57a
1fe57a
* Tue Mar 25 2008 James Antill <jantill@redhat.com> - 2.5.1-24
1fe57a
- Add more constants to socketmodule
1fe57a
1fe57a
* Sat Mar  8 2008 James Antill <jantill@redhat.com> - 2.5.1-22
1fe57a
- Add constants to socketmodule
1fe57a
- Resolves: bug#436560
1fe57a
1fe57a
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.5.1-22
1fe57a
- Autorebuild for GCC 4.3
1fe57a
1fe57a
* Sun Jan 13 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.5.1-21
1fe57a
- rebuild for new tk in rawhide
1fe57a
1fe57a
* Mon Jan  7 2008 James Antill <jantill@redhat.com> - 2.5.1-20
1fe57a
- Add valgrind support files, as doc, to python-devel
1fe57a
- Relates: rhbz#418621
1fe57a
- Add new API from 2.6, set_wakeup_fd ... use at own risk, presumably won't
1fe57a
- change but I have no control to guarantee that.
1fe57a
- Resolves: rhbz#427794
1fe57a
- Add gdbinit support file, as doc, to python-devel
1fe57a
1fe57a
* Fri Jan  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.5.1-19
1fe57a
- rebuild for new tcl/tk in rawhide
1fe57a
1fe57a
* Fri Dec  7 2007 James Antill <jantill@redhat.com> - 2.5.1-18
1fe57a
- Create a python-test sub-module, over 3MB of stuff noone wants.
1fe57a
- Don't remove egginfo files, try this see what happens ... may revert.
1fe57a
- Resolves: rhbz#414711
1fe57a
1fe57a
* Mon Dec  3 2007 Jeremy Katz <katzj@redhat.com> - 2.5.1-17
1fe57a
- rebuild for new libssl
1fe57a
1fe57a
* Fri Nov 30 2007 James Antill <jantill@redhat.com> - 2.5.1-16
1fe57a
- Fix pyconfig.h comment typo.
1fe57a
- Add back test_support.py and the __init__.py file.
1fe57a
- Resolves: rhbz#387401
1fe57a
1fe57a
* Tue Oct 30 2007 James Antill <jantill@redhat.com> - 2.5.1-15
1fe57a
- Do codec lowercase in C Locale.
1fe57a
- Resolves: 207134 191096
1fe57a
- Fix stupid namespacing in pysqlite, minimal upgrade to 2.3.3 pysqlite
1fe57a
- Resolves: 263221
1fe57a
1fe57a
* Wed Oct 24 2007 James Antill <jantill@redhat.com> - 2.5.1-14
1fe57a
- Remove bintuils dep. for live CD ... add work around for ctypes
1fe57a
1fe57a
* Mon Oct 22 2007 James Antill <jantill@redhat.com> - 2.5.1-13
1fe57a
- Add tix buildprereq
1fe57a
- Add tkinter patch
1fe57a
- Resolves: #281751
1fe57a
- Fix ctypes loading of libraries, add requires on binutils
1fe57a
- Resolves: #307221
1fe57a
- Possible fix for CVE-2007-4965 possible exploitable integer overflow
1fe57a
- Resolves: #295971
1fe57a
1fe57a
* Tue Oct 16 2007 Mike Bonnet <mikeb@redhat.com> - 2.5.1-12
1fe57a
- fix marshalling of objects in xmlrpclib (python bug #1739842)
1fe57a
1fe57a
* Fri Sep 14 2007 Jeremy Katz <katzj@redhat.com> - 2.5.1-11
1fe57a
- fix encoding of sqlite .py files to work around weird encoding problem
1fe57a
  in Turkish (#283331)
1fe57a
1fe57a
* Mon Sep 10 2007 Jeremy Katz <katzj@redhat.com> - 2.5.1-10
1fe57a
- work around problems with multi-line plural specification (#252136)
1fe57a
1fe57a
* Tue Aug 28 2007 Jeremy Katz <katzj@redhat.com> - 2.5.1-9
1fe57a
- rebuild against new expat
1fe57a
1fe57a
* Tue Aug 14 2007 Jeremy Katz <katzj@redhat.com> - 2.5.1-8
1fe57a
- build against db4.6
1fe57a
1fe57a
* Tue Aug 14 2007 Dennis Gilmore <dennis@ausil.us> - 2.5.1-7
1fe57a
- add sparc64 to the list of archs for _pyconfig64_h
1fe57a
1fe57a
* Fri Aug 10 2007 Jeremy Katz <katzj@redhat.com> - 2.5.1-6
1fe57a
- fix ctypes again on some arches (Hans de Goede, #251637)
1fe57a
1fe57a
* Fri Jul  6 2007 Jeremy Katz <katzj@redhat.com> - 2.5.1-5
1fe57a
- link curses modules with ncursesw (#246385)
1fe57a
1fe57a
* Wed Jun 27 2007 Jeremy Katz <katzj@redhat.com> - 2.5.1-4
1fe57a
- fix _elementtree.so build (#245703)
1fe57a
- ensure that extension modules we expect are actually built rather than
1fe57a
  having them silently fall out of the package
1fe57a
1fe57a
* Tue Jun 26 2007 Jeremy Katz <katzj@redhat.com> - 2.5.1-3
1fe57a
- link with system expat (#245703)
1fe57a
1fe57a
* Thu Jun 21 2007 Jeremy Katz <katzj@redhat.com> - 2.5.1-2
1fe57a
- rebuild to take advantage of hardlinking between identical pyc/pyo files
1fe57a
1fe57a
* Thu May 31 2007 Jeremy Katz <katzj@redhat.com> - 2.5.1-1
1fe57a
- update to python 2.5.1
1fe57a
1fe57a
* Mon Mar 19 2007 Jeremy Katz <katzj@redhat.com> - 2.5.3-12
1fe57a
- fix alpha build (#231961)
1fe57a
1fe57a
* Tue Feb 13 2007 Jeremy Katz <katzj@redhat.com> - 2.5.3-11
1fe57a
- tcl/tk was reverted; rebuild again
1fe57a
1fe57a
* Thu Feb  1 2007 Jeremy Katz <katzj@redhat.com> - 2.5.3-10
1fe57a
- rebuild for new tcl/tk
1fe57a
1fe57a
* Tue Jan 16 2007 Miroslav Lichvar <mlichvar@redhat.com> - 2.5.3-9
1fe57a
- link with ncurses
1fe57a
1fe57a
* Sat Jan  6 2007 Jeremy Katz <katzj@redhat.com> - 2.5.3-8
1fe57a
- fix extensions to use shared libpython (#219564)
1fe57a
- all 64bit platforms need the regex fix (#122304)
1fe57a
1fe57a
* Wed Jan  3 2007 Jeremy Katz <katzj@redhat.com> - 2.5.3-7
1fe57a
- fix ctypes to not require execstack (#220669)
1fe57a
1fe57a
* Fri Dec 15 2006 Jeremy Katz <katzj@redhat.com> - 2.5.3-6
1fe57a
- don't link against compat-db (Robert Scheck)
1fe57a
1fe57a
* Wed Dec 13 2006 Jarod Wilson <jwilson@redhat.com> - 2.5.3-5
1fe57a
- fix invalid assert in debug mode (upstream changeset 52622)
1fe57a
1fe57a
* Tue Dec 12 2006 Jeremy Katz <katzj@redhat.com> - 2.5.3-4
1fe57a
- obsolete/provide python-ctypes (#219256)
1fe57a
1fe57a
* Mon Dec 11 2006 Jeremy Katz <katzj@redhat.com> - 2.5.3-3
1fe57a
- fix atexit traceback with failed syslog logger (#218214)
1fe57a
- split libpython into python-libs subpackage for multilib apps
1fe57a
  embedding python interpreters
1fe57a
1fe57a
* Wed Dec  6 2006 Jeremy Katz <katzj@redhat.com> - 2.5.3-2
1fe57a
- disable installation of .egg-info files for now
1fe57a
1fe57a
* Tue Dec  5 2006 Jeremy Katz <katzj@redhat.com>
1fe57a
- support db 4.5
1fe57a
- obsolete python-elementtree; since it requires some code tweaks, don't
1fe57a
  provide it
1fe57a
- obsolete old python-sqlite; provide the version that's actually included
1fe57a
1fe57a
* Mon Oct 30 2006 Jeremy Katz <katzj@redhat.com>
1fe57a
- fix _md5 and _sha modules (Robert Sheck)
1fe57a
- no longer provide optik compat; it's been a couple of years now
1fe57a
- no longer provide the old shm module; if this is still needed, let's
1fe57a
  build it separately
1fe57a
- no longer provide japanese codecs; should be a separate package
1fe57a
1fe57a
* Mon Oct 23 2006 Jeremy Katz <katzj@redhat.com> - 2.5-0
1fe57a
- update to 2.5.0 final
1fe57a
1fe57a
* Fri Aug 18 2006 Mihai Ibanescu <misa@redhat.com> - 2.4.99.c1
1fe57a
- Updated to 2.5c1. Merged fixes from FC6 too:
1fe57a
- Fixed bug #199373 (on some platforms CFLAGS is needed when linking)
1fe57a
- Fixed bug #198971 (case conversion not locale safe in logging library)
1fe57a
- Verified bug #201434 (distutils.sysconfig is confused by the change to make
1fe57a
  python-devel multilib friendly) is fixed upstream
1fe57a
1fe57a
* Sun Jul 16 2006 Mihai Ibanescu <misa@redhat.com> - 2.4.99.b2
1fe57a
- Updated to 2.5b2 (which for comparison reasons is re-labeled 2.4.99.b2)
1fe57a
1fe57a
* Fri Jun 23 2006 Mihai Ibanescu <misa@redhat.com> - 2.4.99.b1
1fe57a
- Updated to 2.5b1 (which for comparison reasons is re-labeled 2.4.99.b1)
1fe57a
1fe57a
* Tue Jun 13 2006 Jeremy Katz <katzj@redhat.com> - 2.4.3-11.FC6
1fe57a
- and fix it for real
1fe57a
1fe57a
* Tue Jun 13 2006 Jeremy Katz <katzj@redhat.com> - 2.4.3-10.FC6
1fe57a
- fix python-devel on ia64
1fe57a
1fe57a
* Tue Jun 13 2006 Mihai Ibanescu <misa@redhat.com> - 2.4.3-9
1fe57a
- Fixed python-devel to be multilib friendly (bug #192747, #139911)
1fe57a
1fe57a
* Tue Jun 13 2006 Mihai Ibanescu <misa@redhat.com> - 2.4.3-8
1fe57a
- Only copying mkhowto from the Docs - we don't need perl dependencies from
1fe57a
  python-tools.
1fe57a
1fe57a
* Mon Jun 12 2006 Mihai Ibanescu <misa@redhat.com> - 2.4.3-7
1fe57a
- Fixed bug #121198 (webbrowser.py should use the user's preferences first)
1fe57a
1fe57a
* Mon Jun 12 2006 Mihai Ibanescu <misa@redhat.com> - 2.4.3-6
1fe57a
- Fixed bug #192592 (too aggressive assertion fails) - SF#1257960
1fe57a
- Fixed bug #167468 (Doc/tools not included) - added in the python-tools package
1fe57a
1fe57a
* Thu Jun  8 2006 Mihai Ibanescu <misa@redhat.com> - 2.4.3-5
1fe57a
- Fixed bug #193484 (added pydoc in the main package)
1fe57a
1fe57a
* Mon Jun  5 2006 Mihai Ibanescu <misa@redhat.com> - 2.4.3-4
1fe57a
- Added dist in the release
1fe57a
1fe57a
* Mon May 15 2006 Mihai Ibanescu <misa@redhat.com> - 2.4.3-3
1fe57a
- rebuilt to fix broken libX11 dependency
1fe57a
1fe57a
* Wed Apr 12 2006 Jeremy Katz <katzj@redhat.com> - 2.4.3-2
1fe57a
- rebuild with new gcc to fix #188649
1fe57a
1fe57a
* Thu Apr  6 2006 Mihai Ibanescu <misa@redhat.com> - 2.4.3-1
1fe57a
- Updated to 2.4.3
1fe57a
1fe57a
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.4.2-3.2.1
1fe57a
- bump again for double-long bug on ppc(64)
1fe57a
1fe57a
* Fri Feb 10 2006 Mihai Ibanescu <misa@redhat.com> - 2.4.3-3.2
1fe57a
- rebuilt for newer tix
1fe57a
1fe57a
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.4.2-3.1
1fe57a
- rebuilt for new gcc4.1 snapshot and glibc changes
1fe57a
1fe57a
* Fri Jan 20 2006 Mihai Ibanescu <misa@redhat.com> 2.4.2-3
1fe57a
- fixed #136654 for another instance of audiotest.au
1fe57a
1fe57a
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
1fe57a
- rebuilt
1fe57a
1fe57a
* Sat Nov 19 2005 Bill Nottingham <notting@redhat.com> 2.4.2-2
1fe57a
- fix build for modular X, remove X11R6 path references
1fe57a
1fe57a
* Tue Nov 15 2005 Mihai Ibanescu <misa@redhat.com> 2.4.2-1
1fe57a
- Upgraded to 2.4.2
1fe57a
- BuildRequires autoconf
1fe57a
1fe57a
* Wed Nov  9 2005 Mihai Ibanescu <misa@redhat.com> 2.4.1-16
1fe57a
- Rebuilding against newer openssl.
1fe57a
- XFree86-devel no longer exists
1fe57a
1fe57a
* Mon Sep 26 2005 Peter Jones <pjones@redhat.com> 2.4.1-14
1fe57a
- Once more -- this time, to fix -EPERM when you run it in a directory
1fe57a
  you can't read from.
1fe57a
1fe57a
* Mon Sep 26 2005 Peter Jones <pjones@redhat.com> 2.4.1-13
1fe57a
- So, 5 or 6 people have said it works for them with this patch...
1fe57a
1fe57a
* Sun Sep 25 2005 Peter Jones <pjones@redhat.com> 2.4.1-12
1fe57a
- Fixed bug #169159 (check for argc>0 and argv[0] == NULL, not just
1fe57a
    argv[0][0]='\0')
1fe57a
  Reworked the patch from -8 a bit more.
1fe57a
1fe57a
* Fri Sep 23 2005 Mihai Ibanescu <misa@redhat.com> 2.4.1-10
1fe57a
- Fixed bug #169159 (don't let python core dump if no arguments are passed in)
1fe57a
  Reworked the patch from -8 a bit more.
1fe57a
1fe57a
* Thu Sep 22 2005 Peter Jones <pjones@redhat.com> 2.4.1-8
1fe57a
- Fix bug #169046 more correctly.
1fe57a
1fe57a
* Thu Sep 22 2005 Mihai Ibanescu <misa@redhat.com> 2.4.1-7
1fe57a
- Fixed bug #169046 (realpath is unsafe); thanks to
1fe57a
  Peter Jones <pjones@redhat.com> and Arjan van de Ven <arjanv@redhat.com> for
1fe57a
  diagnosing and the patch.
1fe57a
1fe57a
* Tue Sep 20 2005 Mihai Ibanescu <misa@redhat.com> 2.4.1-4
1fe57a
- Fixed bug #168655 (fixes for building as python24)
1fe57a
1fe57a
* Tue Jul 26 2005 Mihai Ibanescu <misa@redhat.com> 2.4.1-3
1fe57a
- Fixed bug #163435 (pynche doesn't start))
1fe57a
1fe57a
* Wed Apr 20 2005 Mihai Ibanescu <misa@redhat.com> 2.4.1-2
1fe57a
- Fixed bug #143667 (python should own /usr/lib/python* on 64-bit systems, for
1fe57a
  noarch packages)
1fe57a
- Fixed bug #143419 (BuildRequires db4 is not versioned)
1fe57a
1fe57a
* Wed Apr  6 2005 Mihai Ibanescu <misa@redhat.com> 2.4.1-1
1fe57a
- updated to 2.4.1
1fe57a
1fe57a
* Mon Mar 14 2005 Mihai Ibanescu <misa@redhat.com> 2.4-6
1fe57a
- building the docs from a different source rpm, to decouple bootstrapping
1fe57a
  python from having tetex installed
1fe57a
1fe57a
* Fri Mar 11 2005 Dan Williams <dcbw@redhat.com> 2.4-5
1fe57a
- Rebuild to pick up new libssl.so.5
1fe57a
1fe57a
* Wed Feb  2 2005 Mihai Ibanescu <misa@redhat.com> 2.4-4
1fe57a
- Fixed security issue in SimpleXMLRPCServer.py (#146647)
1fe57a
1fe57a
* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 2.4-3
1fe57a
- Rebuilt for new readline.
1fe57a
1fe57a
* Mon Dec  6 2004 Jeff Johnson <jbj@jbj.org> 2.4-2
1fe57a
- db-4.3.21 returns DB_BUFFER_SMALL rather than ENOMEM (#141994).
1fe57a
- add Provide: python(abi) = 2.4
1fe57a
- include msgfmt/pygettext *.pyc and *.pyo from brp-python-bytecompile.
1fe57a
1fe57a
* Fri Dec  3 2004 Mihai Ibanescu <misa@redhat.com> 2.4-1
1fe57a
- Python-2.4.tar.bz2 (final)
1fe57a
1fe57a
* Fri Nov 19 2004 Mihai Ibanescu <misa@redhat.com> 2.4-0.c1.1
1fe57a
- Python-2.4c1.tar.bz2 (release candidate 1)
1fe57a
1fe57a
* Thu Nov 11 2004 Jeff Johnson <jbj@jbj.org> 2.4-0.b2.4
1fe57a
- rebuild against db-4.3.21.
1fe57a
1fe57a
* Mon Nov  8 2004 Jeremy Katz <katzj@redhat.com> - 2.4-0.b2.3
1fe57a
- fix the lib64 patch so that 64bit arches still look in /usr/lib/python...
1fe57a
1fe57a
* Mon Nov  8 2004 Jeremy Katz <katzj@redhat.com> - 2.4-0.b2.2
1fe57a
- cryptmodule still needs -lcrypt (again)
1fe57a
1fe57a
* Thu Nov  4 2004 Mihai Ibanescu <misa@redhat.com> 2.4-0.b2.1
1fe57a
- Updated to python 2.4b2 (and labeled it 2.4-0.b2.1 to avoid breaking rpm's
1fe57a
  version comparison)
1fe57a
1fe57a
* Thu Nov  4 2004 Mihai Ibanescu <misa@redhat.com> 2.3.4-13
1fe57a
- Fixed bug #138112 (python overflows stack buffer) - SF bug 105470
1fe57a
1fe57a
* Tue Nov  2 2004 Mihai Ibanescu <misa@redhat.com> 2.3.4-12
1fe57a
- Fixed bugs #131439 #136023 #137863 (.pyc/.pyo files had the buildroot added)
1fe57a
1fe57a
* Tue Oct 26 2004 Mihai Ibanescu <misa@redhat.com> 2.3.4-11
1fe57a
- Fixed bug #136654 (python has sketchy audio clip)
1fe57a
1fe57a
* Tue Aug 31 2004 Mihai Ibanescu <misa@redhat.com> 2.3.4-10
1fe57a
- Fixed bug #77418 (Demo dir not packaged)
1fe57a
- More tweaking on #19347 (Moved Tools/ under /usr/lib/python2.3/Tools)
1fe57a
1fe57a
* Fri Aug 13 2004 Mihai Ibanescu <misa@redhat.com> 2.3.4-8
1fe57a
- Fixed bug #129769: Makefile in new python conflicts with older version found
1fe57a
  in old python-devel
1fe57a
- Reorganized the spec file to get rid of the aspython2 define; __python_ver
1fe57a
  is more powerful.
1fe57a
1fe57a
* Tue Aug  3 2004 Mihai Ibanescu <misa@redhat.com> 2.3.4-7
1fe57a
- Including html documentation for non-i386 arches
1fe57a
- Fixed #125362 (python-doc html files have japanese character encoding)
1fe57a
- Fixed #128923 (missing dependency between python and python-devel)
1fe57a
1fe57a
* Fri Jul 30 2004 Mihai Ibanescu <misa@redhat.com> 2.3.4-6
1fe57a
- Fixed #128030 (help() not printing anything)
1fe57a
- Fixed #125472 (distutils.sysconfig.get_python_lib() not returning the right
1fe57a
  path on 64-bit systems)
1fe57a
- Fixed #127357 (building python as a shared library)
1fe57a
- Fixed  #19347 (including the contents of Tools/scripts/ in python-tools)
1fe57a
1fe57a
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
1fe57a
- rebuilt
1fe57a
1fe57a
* Tue Jun  8 2004 Mihai Ibanescu <misa@redhat.com> 2.3.4-3
1fe57a
- Added an optik.py that provides the same interface from optparse for
1fe57a
  backward compatibility; obsoleting python-optik
1fe57a
1fe57a
* Mon Jun  7 2004 Mihai Ibanescu <misa@redhat.com> 2.3.4-2
1fe57a
- Patched bdist_rpm to allow for builds of multiple binary rpms (bug #123598)
1fe57a
1fe57a
* Fri Jun  4 2004 Mihai Ibanescu <misa@redhat.com> 2.3.4-1
1fe57a
- Updated to 2.3.4-1 with Robert Scheck's help (bug #124764)
1fe57a
- Added BuildRequires: tix-devel (bug #124918)
1fe57a
1fe57a
* Fri May  7 2004 Mihai Ibanescu <misa@redhat.com> 2.3.3-6
1fe57a
- Correct fix for #122304 from upstream:
1fe57a
  http://sourceforge.net/tracker/?func=detail&atid=105470&aid=931848&group_id=5470
1fe57a
1fe57a
* Thu May  6 2004 Mihai Ibanescu <misa@redhat.com> 2.3.3-4
1fe57a
- Fix for bug #122304 : splitting the domain name fails on 64-bit arches
1fe57a
- Fix for bug #120879 : including Makefile into the main package
1fe57a
1fe57a
- Requires XFree86-devel instead of -libs (see bug #118442)
1fe57a
1fe57a
* Tue Mar 16 2004 Mihai Ibanescu <misa@redhat.com> 2.3.3-3
1fe57a
- Requires XFree86-devel instead of -libs (see bug #118442)
1fe57a
1fe57a
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
1fe57a
- rebuilt
1fe57a
1fe57a
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
1fe57a
- rebuilt
1fe57a
1fe57a
* Fri Dec 19 2003 Jeff Johnson <jbj@jbj.org> 2.3.3-1
1fe57a
- upgrade to 2.3.3.
1fe57a
1fe57a
* Sat Dec 13 2003 Jeff Johnson <jbj@jbj.org> 2.3.2-9
1fe57a
- rebuild against db-4.2.52.
1fe57a
1fe57a
* Fri Dec 12 2003 Jeremy Katz <katzj@redhat.com> 2.3.2-8
1fe57a
- more rebuilding for new tcl/tk
1fe57a
1fe57a
* Wed Dec  3 2003 Jeff Johnson <jbj@jbj.org> 2.3.2-7.1
1fe57a
- rebuild against db-4.2.42.
1fe57a
1fe57a
* Fri Nov 28 2003 Mihai Ibanescu <misa@redhat.com> 2.3.2-7
1fe57a
- rebuilt against newer tcl/tk
1fe57a
1fe57a
* Mon Nov 24 2003 Mihai Ibanescu <misa@redhat.com> 2.3.2-6
1fe57a
- added a Provides: python-abi
1fe57a
1fe57a
* Wed Nov 12 2003 Mihai Ibanescu <misa@redhat.com> 2.3.2-5
1fe57a
- force CC (#109268)
1fe57a
1fe57a
* Sun Nov  9 2003 Jeremy Katz <katzj@redhat.com> 2.3.2-4
1fe57a
- cryptmodule still needs -lcrypt
1fe57a
1fe57a
* Wed Nov  5 2003 Mihai Ibanescu <misa@redhat.com> 2.3.2-2
1fe57a
- Added patch for missing mkhowto
1fe57a
1fe57a
* Thu Oct 16 2003 Mihai Ibanescu <misa@redhat.com> 2.3.2-1
1fe57a
- Updated to 2.3.2
1fe57a
1fe57a
* Thu Sep 25 2003 Mihai Ibanescu <misa@redhat.com> 2.3.1-1
1fe57a
- 2.3.1 final
1fe57a
1fe57a
* Tue Sep 23 2003 Mihai Ibanescu <misa@redhat.com> 2.3.1-0.8.RC1
1fe57a
- Building the python 2.3.1 release candidate
1fe57a
- Updated the lib64 patch
1fe57a
1fe57a
* Wed Jul 30 2003 Mihai Ibanescu <misa@redhat.com> 2.3-0.2
1fe57a
- Building python 2.3
1fe57a
- Added more BuildRequires
1fe57a
- Updated the startup files for modulator and pynche; idle installs its own
1fe57a
  now.
1fe57a
1fe57a
* Thu Jul  3 2003 Mihai Ibanescu <misa@redhat.com> 2.2.3-4
1fe57a
- Rebuilt against newer db4 packages (bug #98539)
1fe57a
1fe57a
* Mon Jun 9 2003 Elliot Lee <sopwith@redhat.com> 2.2.3-3
1fe57a
- rebuilt
1fe57a
1fe57a
* Sat Jun  7 2003 Mihai Ibanescu <misa@redhat.com> 2.2.3-2
1fe57a
- Rebuilt
1fe57a
1fe57a
* Fri Jun  6 2003 Mihai Ibanescu <misa@redhat.com> 2.2.3-1
1fe57a
- Upgraded to 2.2.3
1fe57a
1fe57a
* Wed Apr  2 2003 Mihai Ibanescu <misa@redhat.com> 2.2.2-28
1fe57a
- Rebuilt
1fe57a
1fe57a
* Wed Apr  2 2003 Mihai Ibanescu <misa@redhat.com> 2.2.2-27
1fe57a
- Modified the ftpuri patch conforming to http://ietf.org/rfc/rfc1738.txt
1fe57a
1fe57a
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
1fe57a
- rebuilt
1fe57a
1fe57a
* Mon Feb 24 2003 Mihai Ibanescu <misa@redhat.com> 2.2.2-25
1fe57a
- Fixed bug #84886: pydoc dies when run w/o arguments
1fe57a
- Fixed bug #84205: add python shm module back (used to be shipped with 1.5.2)
1fe57a
- Fixed bug #84966: path in byte-compiled code still wrong
1fe57a
1fe57a
* Thu Feb 20 2003 Jeremy Katz <katzj@redhat.com> 2.2.2-23
1fe57a
- ftp uri's should be able to specify being rooted at the root instead of
1fe57a
  where you login via ftp (#84692)
1fe57a
1fe57a
* Mon Feb 10 2003 Mihai Ibanescu <misa@redhat.com> 2.2.2-22
1fe57a
- Using newer Japanese codecs (1.4.9). Thanks to
1fe57a
  Peter Bowen <pzb@datastacks.com> for pointing this out.
1fe57a
1fe57a
* Thu Feb  6 2003 Mihai Ibanescu <misa@redhat.com> 2.2.2-21
1fe57a
- Rebuild
1fe57a
1fe57a
* Wed Feb  5 2003 Mihai Ibanescu <misa@redhat.com> 2.2.2-20
1fe57a
- Release number bumped really high: turning on UCS4 (ABI compatibility
1fe57a
  breakage)
1fe57a
1fe57a
* Fri Jan 31 2003 Mihai Ibanescu <misa@redhat.com> 2.2.2-13
1fe57a
- Attempt to look both in /usr/lib64 and /usr/lib/python2.2/site-packages/:
1fe57a
  some work on python-2.2.2-lib64.patch
1fe57a
1fe57a
* Thu Jan 30 2003 Mihai Ibanescu <misa@redhat.com> 2.2.2-12
1fe57a
- Rebuild to incorporate the removal of .lib64 and - files.
1fe57a
1fe57a
* Thu Jan 30 2003 Mihai Ibanescu <misa@redhat.com> 2.2.2-11.7.3
1fe57a
- Fixed bug #82544: Errata removes most tools
1fe57a
- Fixed bug #82435: Python 2.2.2 errata breaks redhat-config-users
1fe57a
- Removed .lib64 and - files that get installed after we fix the multilib
1fe57a
  .py files.
1fe57a
1fe57a
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
1fe57a
- rebuilt
1fe57a
1fe57a
* Wed Jan 15 2003 Jens Petersen <petersen@redhat.com> 2.2.2-10
1fe57a
- rebuild to update tkinter's tcltk deps
1fe57a
- convert changelog to utf-8
1fe57a
1fe57a
* Tue Jan  7 2003 Nalin Dahyabhai <nalin@redhat.com> 2.2.2-9
1fe57a
- rebuild
1fe57a
1fe57a
* Fri Jan  3 2003 Nalin Dahyabhai <nalin@redhat.com>
1fe57a
- pick up OpenSSL cflags and ldflags from pkgconfig if available
1fe57a
1fe57a
* Thu Jan  2 2003 Jeremy Katz <katzj@redhat.com> 2.2.2-8
1fe57a
- urllib2 didn't support non-anonymous ftp.  add support based on how
1fe57a
  urllib did it (#80676, #78168)
1fe57a
1fe57a
* Mon Dec 16 2002 Mihai Ibanescu <misa@redhat.com> 2.2.2-7
1fe57a
- Fix bug #79647 (Rebuild of SRPM fails if python isn't installed)
1fe57a
- Added a bunch of missing BuildRequires found while fixing the
1fe57a
  above-mentioned bug
1fe57a
1fe57a
* Tue Dec 10 2002 Tim Powers <timp@redhat.com> 2.2.2-6
1fe57a
- rebuild to fix broken tcltk deps for tkinter
1fe57a
1fe57a
* Fri Nov 22 2002 Mihai Ibanescu <misa@redhat.com>
1fe57a
2.2.2-3.7.3
1fe57a
- Recompiled for 7.3 (to fix the -lcrypt bug)
1fe57a
- Fix for the spurious error message at the end of the build (build-requires
1fe57a
  gets confused by executable files starting with """"): make the tests
1fe57a
  non-executable.
1fe57a
1fe57a
* Wed Nov 20 2002 Mihai Ibanescu <misa@redhat.com>
1fe57a
2.2.2-5
1fe57a
- Fixed configuration patch to add -lcrypt when compiling cryptmodule.c
1fe57a
1fe57a
2.2.2-4
1fe57a
- Spec file change from Matt Wilson <msw@redhat.com> to disable linking
1fe57a
  with the C++ compiler.
1fe57a
1fe57a
* Mon Nov 11 2002 Mihai Ibanescu <misa@redhat.com>
1fe57a
2.2.2-3.*
1fe57a
- Merged patch from Karsten Hopp <karsten@redhat.de> from 2.2.1-17hammer to
1fe57a
  use %%{_libdir}
1fe57a
- Added XFree86-libs as BuildRequires (because of tkinter)
1fe57a
- Fixed duplicate listing of plat-linux2
1fe57a
- Fixed exclusion of lib-dynload/japanese
1fe57a
- Added lib64 patch for the japanese codecs
1fe57a
- Use setup magic instead of using tar directly on JapaneseCodecs
1fe57a
1fe57a
* Tue Nov  5 2002 Mihai Ibanescu <misa@redhat.com>
1fe57a
2.2.2-2
1fe57a
- Fix #76912 (python-tools contains idle, which uses tkinter, but there is no
1fe57a
  requirement of tkinter from python-tools).
1fe57a
- Fix #74013 (rpm is missing the /usr/lib/python2.2/test directory)
1fe57a
1fe57a
* Mon Nov  4 2002 Mihai Ibanescu <misa@redhat.com>
1fe57a
- builds as python2 require a different libdb
1fe57a
- changed the buildroot name of python to match python2 builds
1fe57a
1fe57a
* Fri Nov  1 2002 Mihai Ibanescu <misa@redhat.com>
1fe57a
- updated python to 2.2.2 and adjusted the patches accordingly
1fe57a
1fe57a
* Mon Oct 21 2002 Mihai Ibanescu <misa@redhat.com>
1fe57a
- Fix #53930 (Python-2.2.1-buildroot-bytecode.patch)
1fe57a
- Added BuildPrereq dependency on gcc-c++
1fe57a
1fe57a
* Fri Aug 30 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1-17
1fe57a
- security fix for _execvpe
1fe57a
1fe57a
* Tue Aug 13 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1-16
1fe57a
- Fix  #71011,#71134, #58157
1fe57a
1fe57a
* Wed Aug  7 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1-15
1fe57a
- Resurrect tkinter
1fe57a
- Fix for distutils (#67671)
1fe57a
- Fix #69962
1fe57a
1fe57a
* Thu Jul 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1-14
1fe57a
- Obsolete tkinter/tkinter2 (#69838)
1fe57a
1fe57a
* Tue Jul 23 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1-13
1fe57a
- Doc fixes (#53951) - not on alpha at the momemt
1fe57a
1fe57a
* Mon Jul  8 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1-12
1fe57a
- fix pydoc (#68082)
1fe57a
1fe57a
* Mon Jul  8 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1-11
1fe57a
- Add db4-devel as a BuildPrereq
1fe57a
1fe57a
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 2.2.1-10
1fe57a
- automated rebuild
1fe57a
1fe57a
* Mon Jun 17 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1-9
1fe57a
- Add Japanese codecs (#66352)
1fe57a
1fe57a
* Tue Jun 11 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1-8
1fe57a
- No more tkinter...
1fe57a
1fe57a
* Wed May 29 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1-7
1fe57a
- Rebuild
1fe57a
1fe57a
* Tue May 21 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1-6
1fe57a
- Add the email subcomponent (#65301)
1fe57a
1fe57a
* Fri May 10 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1-5
1fe57a
- Rebuild
1fe57a
1fe57a
* Thu May 02 2002 Than Ngo <than@redhat.com> 2.2.1-4
1fe57a
- rebuild i new enviroment
1fe57a
1fe57a
* Tue Apr 23 2002 Trond Eivind Glomsrød <teg@redhat.com>
1fe57a
- Use ucs2, not ucs4, to avoid breaking tkinter (#63965)
1fe57a
1fe57a
* Mon Apr 22 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1-2
1fe57a
- Make it use db4
1fe57a
1fe57a
* Fri Apr 12 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2.1-1
1fe57a
- 2.2.1 - a bugfix-only release
1fe57a
1fe57a
* Fri Apr 12 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2-16
1fe57a
- the same, but in builddirs - this will remove them from the
1fe57a
  docs package, which doesn't look in the buildroot for files.
1fe57a
1fe57a
* Fri Apr 12 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2-15
1fe57a
- Get rid of temporary files and .cvsignores included
1fe57a
  in the tarball and make install
1fe57a
1fe57a
* Fri Apr  5 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2-14
1fe57a
- Don't own lib-tk in main package, only in tkinter (#62753)
1fe57a
1fe57a
* Mon Mar 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2-13
1fe57a
- rebuild
1fe57a
1fe57a
* Mon Mar 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2-12
1fe57a
- rebuild
1fe57a
1fe57a
* Fri Mar  1 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2-11
1fe57a
- Add a not to the Distutils obsoletes test (doh!)
1fe57a
1fe57a
* Fri Mar  1 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2-10
1fe57a
- Rebuild
1fe57a
1fe57a
* Mon Feb 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2-9
1fe57a
- Only obsolete Distutils when built as python
1fe57a
1fe57a
* Thu Feb 21 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2-8
1fe57a
- Make files in /usr/bin install side by side with python 1.5 when
1fe57a
- Drop explicit requirement of db4
1fe57a
  built as python2
1fe57a
1fe57a
* Thu Jan 31 2002 Elliot Lee <sopwith@redhat.com> 2.2-7
1fe57a
- Use version and pybasever macros to make updating easy
1fe57a
- Use _smp_mflags macro
1fe57a
1fe57a
* Tue Jan 29 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2-6
1fe57a
- Add db4-devel to BuildPrereq
1fe57a
1fe57a
* Fri Jan 25 2002 Nalin Dahyabhai <nalin@redhat.com> 2.2-5
1fe57a
- disable ndbm support, which is db2 in disguise (really interesting things
1fe57a
  can happen when you mix db2 and db4 in a single application)
1fe57a
1fe57a
* Thu Jan 24 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2-4
1fe57a
- Obsolete subpackages if necesarry
1fe57a
- provide versioned python2
1fe57a
- build with db4
1fe57a
1fe57a
* Wed Jan 16 2002 Trond Eivind Glomsrød <teg@redhat.com> 2.2-3
1fe57a
- Alpha toolchain broken. Disable build on alpha.
1fe57a
- New openssl
1fe57a
1fe57a
* Wed Dec 26 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2-1
1fe57a
- 2.2 final
1fe57a
1fe57a
* Fri Dec 14 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2-0.11c1
1fe57a
- 2.2 RC 1
1fe57a
- Don't include the _tkinter module in the main package - it's
1fe57a
  already in the tkiter packace
1fe57a
- Turn off the mpzmodule, something broke in the buildroot
1fe57a
1fe57a
* Wed Nov 28 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2-0.10b2
1fe57a
- Use -fPIC for OPT as well, in lack of a proper libpython.so
1fe57a
1fe57a
* Mon Nov 26 2001 Matt Wilson <msw@redhat.com> 2.2-0.9b2
1fe57a
- changed DESTDIR to point to / so that distutils will install dynload
1fe57a
  modules properly in the installroot
1fe57a
1fe57a
* Fri Nov 16 2001 Matt Wilson <msw@redhat.com> 2.2-0.8b2
1fe57a
- 2.2b2
1fe57a
1fe57a
* Fri Oct 26 2001 Matt Wilson <msw@redhat.com> 2.2-0.7b1
1fe57a
- python2ify
1fe57a
1fe57a
* Fri Oct 19 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2-0.5b1
1fe57a
- 2.2b1
1fe57a
1fe57a
* Sun Sep 30 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2-0.4a4
1fe57a
- 2.2a4
1fe57a
- Enable UCS4 support
1fe57a
- Enable IPv6
1fe57a
- Provide distutils
1fe57a
- Include msgfmt.py and pygettext.py
1fe57a
1fe57a
* Fri Sep 14 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2-0.3a3
1fe57a
- Obsolete Distutils, which is now part of the main package
1fe57a
- Obsolete python2
1fe57a
1fe57a
* Thu Sep 13 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2-0.2a3
1fe57a
- Add docs, tools and tkinter subpackages, to match the 1.5 layout
1fe57a
1fe57a
* Wed Sep 12 2001 Trond Eivind Glomsrød <teg@redhat.com> 2.2-0.1a3
1fe57a
- 2.2a3
1fe57a
- don't build tix and blt extensions
1fe57a
1fe57a
* Mon Aug 13 2001 Trond Eivind Glomsrød <teg@redhat.com>
1fe57a
- Add tk and tix to build dependencies
1fe57a
1fe57a
* Sat Jul 21 2001 Trond Eivind Glomsrød <teg@redhat.com>
1fe57a
- 2.1.1 bugfix release - with a GPL compatible license
1fe57a
1fe57a
* Fri Jul 20 2001 Trond Eivind Glomsrød <teg@redhat.com>
1fe57a
- Add new build dependencies (#49753)
1fe57a
1fe57a
* Tue Jun 26 2001 Nalin Dahyabhai <nalin@redhat.com>
1fe57a
- build with -fPIC
1fe57a
1fe57a
* Fri Jun  1 2001 Trond Eivind Glomsrød <teg@redhat.com>
1fe57a
- 2.1
1fe57a
- reorganization of file includes
1fe57a
1fe57a
* Wed Dec 20 2000 Trond Eivind Glomsrød <teg@redhat.com>
1fe57a
- fix the "requires" clause, it lacked a space causing problems
1fe57a
- use %%{_tmppath}
1fe57a
- don't define name, version etc
1fe57a
- add the available patches from the Python home page
1fe57a
1fe57a
* Fri Dec 15 2000 Matt Wilson <msw@redhat.com>
1fe57a
- added devel subpackage
1fe57a
1fe57a
* Fri Dec 15 2000 Matt Wilson <msw@redhat.com>
1fe57a
- modify all files to use "python2.0" as the intrepter
1fe57a
- don't build the Expat bindings
1fe57a
- build against db1
1fe57a
1fe57a
* Mon Oct 16 2000 Jeremy Hylton <jeremy@beopen.com>
1fe57a
- updated for 2.0 final
1fe57a
1fe57a
* Mon Oct  9 2000 Jeremy Hylton <jeremy@beopen.com>
1fe57a
- updated for 2.0c1
1fe57a
- build audioop, imageop, and rgbimg extension modules
1fe57a
- include xml.parsers subpackage
1fe57a
- add test.xml.out to files list
1fe57a
1fe57a
* Thu Oct  5 2000 Jeremy Hylton <jeremy@beopen.com>
1fe57a
- added bin/python2.0 to files list (suggested by Martin v. L?)
1fe57a
1fe57a
* Tue Sep 26 2000 Jeremy Hylton <jeremy@beopen.com>
1fe57a
- updated for release 1 of 2.0b2
1fe57a
- use .bz2 version of Python source
1fe57a
1fe57a
* Tue Sep 12 2000 Jeremy Hylton <jeremy@beopen.com>
1fe57a
- Version 2 of 2.0b1
1fe57a
- Make the package relocatable.  Thanks to Suchandra Thapa.
1fe57a
- Exclude Tkinter from main RPM.  If it is in a separate RPM, it is
1fe57a
  easier to track Tk releases.