Blame SPECS/python2.spec

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