churchyard / rpms / python3

Forked from rpms/python3 2 years ago
Clone
a3483f
%global pybasever 3.1
a3483f
%global pylibdir %{_libdir}/python%{pybasever}
4aab45
%global dynload_dir %{pylibdir}/lib-dynload
a3483f
d5a5bf
# Python's configure script defines SOVERSION, and this is used in the Makefile
d5a5bf
# to determine INSTSONAME, the name of the libpython DSO:
d5a5bf
#   LDLIBRARY='libpython$(VERSION).so'
d5a5bf
#   INSTSONAME="$LDLIBRARY".$SOVERSION
d5a5bf
# We mirror this here in order to make it easier to add the -gdb.py hooks.
d5a5bf
# (if these get out of sync, the payload of the libs subpackage will fail
d5a5bf
# and halt the build)
d5a5bf
%global py_SOVERSION 1.0
d5a5bf
%global py_INSTSONAME libpython%{pybasever}.so.%{py_SOVERSION}
d5a5bf
b2154f
%global with_gdb_hooks 1
b2154f
c96960
%global with_systemtap 1
c96960
a3483f
# We want to byte-compile the .py files within the packages using the new
a3483f
# python3 binary.
a3483f
# 
a3483f
# Unfortunately, rpmbuild's infrastructure requires us to jump through some
a3483f
# hoops to avoid byte-compiling with the system python 2 version:
a3483f
#   /usr/lib/rpm/redhat/macros sets up build policy that (amongst other things)
a3483f
# defines __os_install_post.  In particular, "brp-python-bytecompile" is
a3483f
# invoked without an argument thus using the wrong version of python
a3483f
# (/usr/bin/python, rather than the freshly built python), thus leading to
a3483f
# numerous syntax errors, and incorrect magic numbers in the .pyc files.  We
a3483f
# thus override __os_install_post to avoid invoking this script:
a3483f
%global __os_install_post /usr/lib/rpm/redhat/brp-compress \
a3483f
  %{!?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip}} \
a3483f
  /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \
a3483f
  /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \
a3483f
  /usr/lib/rpm/redhat/brp-python-hardlink 
a3483f
# to remove the invocation of brp-python-bytecompile, whilst keeping the
a3483f
# invocation of brp-python-hardlink (since this should still work for python3
a3483f
# pyc/pyo files)
a3483f
a3483f
Summary: Version 3 of the Python programming language aka Python 3000
a3483f
Name: python3
cd7ff0
Version: %{pybasever}.2
2da356
Release: 8%{?dist}
a3483f
License: Python
a3483f
Group: Development/Languages
a3483f
Source: http://python.org/ftp/python/%{version}/Python-%{version}.tar.bz2
a3483f
a3483f
# Avoid having various bogus auto-generated Provides lines for the various
a3483f
# python c modules' SONAMEs:
a3483f
Source1: find-provides-without-python-sonames.sh
a3483f
%global _use_internal_dependency_generator 0
a3483f
%global __find_provides %{SOURCE1}
a3483f
a3483f
# Supply various useful macros for building python 3 modules:
a3483f
#  __python3, python3_sitelib, python3_sitearch
a3483f
Source2: macros.python3
a3483f
4aab45
# Supply an RPM macro "py_byte_compile" for the python3-devel subpackage
4aab45
# to enable specfiles to selectively byte-compile individual files and paths
4aab45
# with different Python runtimes as necessary:
4aab45
Source3: macros.pybytecompile
4aab45
b2154f
# We install a collection of hooks for gdb that make it easier to debug
b2154f
# executables linked against libpython (such as /usr/lib/python itself)
b2154f
#
d5a5bf
# These hooks are implemented in Python itself (though they are for the version
d5a5bf
# of python that gdb is linked with, in this case Python 2.6)
b2154f
#
d5a5bf
# gdb-archer looks for them in the same path as the ELF file, with a -gdb.py suffix.
d5a5bf
# We put them in the debuginfo package by installing them to e.g.:
b2154f
#  /usr/lib/debug/usr/lib/libpython3.1.so.1.0.debug-gdb.py
b2154f
#
b2154f
# See https://fedoraproject.org/wiki/Features/EasierPythonDebugging for more
b2154f
# information
b2154f
#
1f5628
# This is the version from 
1f5628
#  http://bugs.python.org/issue8380
1f5628
#
1f5628
# This is Tools/gdb/libpython.py from:
1f5628
#  http://bugs.python.org/file16902/port-gdb7-hooks-to-py3k.patch
1f5628
# when applied to r80008 of the py3k branch
452066
Source4: python-gdb.py
b2154f
c96960
# Systemtap tapset to make it easier to use the systemtap static probes
c96960
# (actually a template; LIBRARY_PATH will get fixed up during install)
c96960
# Written by dmalcolm; not yet sent upstream
c96960
Source5: libpython.stp
c96960
c96960
# Example systemtap script using the tapset
c96960
# Written by wcohen, mjw, dmalcolm; not yet sent upstream
c96960
Source6: systemtap-example.stp
c96960
1e0349
# Another example systemtap script that uses the tapset
1e0349
# Written by dmalcolm; not yet sent upstream
1e0349
Source7: pyfuntop.stp
1e0349
1e0349
a3483f
Patch0: python-3.1.1-config.patch
a3483f
a3483f
a3483f
# Fixup distutils/unixccompiler.py to remove standard library path from rpath:
a3483f
# Was Patch0 in ivazquez' python3000 specfile:
a3483f
Patch1:         Python-3.1.1-rpath.patch
a3483f
a3483f
# The four TestMIMEAudio tests fail due to "audiotest.au" not being packaged.
a3483f
# It's simplest to remove them:
a3483f
Patch3: python-3.1.1-remove-mimeaudio-tests.patch
a3483f
a3483f
# ImportTests.test_issue1267 in test_imp.py reads pydoc.py's shebang line and
a3483f
# checks that it read it correctly.
a3483f
#
a3483f
# Since we modify the shebang lines in our packaging, we also need to modify
a3483f
# the expected value in this test:
a3483f
Patch4: python-3.1.1-apply-our-changes-to-expected-shebang-for-test_imp.patch
a3483f
aa4aef
# Patch the Makefile.pre.in so that the generated Makefile doesn't try to build
aa4aef
# a libpythonMAJOR.MINOR.a (bug 550692):
aa4aef
Patch6: python-3.1.1-no-static-lib.patch
aa4aef
1ae4dd
# Fixup configure.in and setup.py to build against system expat library.
1ae4dd
# Adapted from http://svn.python.org/view?view=rev&revision=77170
1ae4dd
Patch7: python-3.1.1-with-system-expat.patch
1ae4dd
c96960
# Systemtap support: add statically-defined probe points
c96960
# Patch based on upstream bug: http://bugs.python.org/issue4111
c96960
# fixed up by mjw and wcohen for 2.6.2, then fixed up by dmalcolm for 2.6.4
c96960
# then rewritten by mjw (attachment 390110 of rhbz 545179); ported to 3.1.1 by
c96960
# dmalcolm
c96960
Patch8: python-3.1.1-systemtap.patch
c96960
a3483f
Patch102: python-3.1.1-lib64.patch
a3483f
aa2fa3
# This is the Modules/audioop.c part of the whitespace cleanup in r81032, to make it
aa2fa3
# easier to apply subsequent security fixes:
aa2fa3
Patch106: python-3.1.2-reformat-audioop.c.patch
aa2fa3
aa2fa3
# CVE-2010-1634: fix various integer overflow checks in the audioop module
aa2fa3
# This is the difference from r81032 to r81081 (i.e r81047 and r81081)
aa2fa3
Patch107: python-3.1.2-CVE-2010-1634.patch
aa2fa3
aa2fa3
# CVE-2010-2089: verify sizes/lengths within audioop module:
aa2fa3
Patch108: python-3.1.2-CVE-2010-2089.patch
aa2fa3
aa2fa3
# CVE-2008-5983: the new PySys_SetArgvEx entry point from r81400 (backported to
aa2fa3
# the old layout before the whitespace cleanup of release31-maint in r81033):
aa2fa3
Patch109: python-3.1.2-CVE-2008-5983.patch
a3483f
211f42
# Fix an incompatibility between pyexpat and the system expat-2.0.1 that led to
211f42
# a segfault running test_pyexpat.py (rhbz:610312)
211f42
# Sent upstream as http://bugs.python.org/issue9054
211f42
Patch110: python-3.1.2-fix-expat-issue9054.patch
211f42
211f42
# Fix encoding to utf8 when lone surrogates are present and error handler is
211f42
# set to ignore, replace, or others that return a unicode str.
211f42
# http://bugs.python.org/issue8092
e9848a
Patch111: python3-r80382-r80385-lone-surrogate-and-utf8-error-handler.patch
211f42
a3483f
BuildRoot: %{_tmppath}/%{name}-%{version}-root
a3483f
BuildRequires: readline-devel, openssl-devel, gmp-devel
a3483f
BuildRequires: ncurses-devel, gdbm-devel, zlib-devel, expat-devel
a3483f
BuildRequires: libGL-devel gcc-c++ libX11-devel glibc-devel
a3483f
BuildRequires: bzip2 tar /usr/bin/find pkgconfig tcl-devel tk-devel
a3483f
BuildRequires: tix-devel bzip2-devel sqlite-devel
a3483f
BuildRequires: autoconf
a3483f
BuildRequires: db4-devel >= 4.7
a3483f
BuildRequires: libffi-devel
a3483f
c96960
%if 0%{?with_systemtap}
c96960
BuildRequires: systemtap-sdt-devel
c96960
%global tapsetdir      /usr/share/systemtap/tapset
c96960
%endif
c96960
a3483f
URL: http://www.python.org/
a3483f
a3483f
# See notes in bug 532118:
a3483f
Provides: python(abi) = %{pybasever}
a3483f
a3483f
%description
a3483f
Python 3 is a new version of the language that is incompatible with the 2.x
a3483f
line of releases. The language is mostly the same, but many details, especially
a3483f
how built-in objects like dictionaries and strings work, have changed
a3483f
considerably, and a lot of deprecated features have finally been removed.
a3483f
a3483f
%package libs
a3483f
Summary:        Python 3 runtime libraries
a3483f
Group:          Development/Libraries
a3483f
#Requires:       %{name} = %{version}-%{release}
a3483f
a3483f
%description libs
a3483f
This package contains files used to embed Python 3 into applications.
a3483f
a3483f
%package devel
a3483f
Summary: Libraries and header files needed for Python 3 development
a3483f
Group: Development/Libraries
6859f2
Requires: %{name}%{?_isa} = %{version}-%{release}
a3483f
Conflicts: %{name} < %{version}-%{release}
a3483f
a3483f
%description devel
a3483f
This package contains libraries and header files used to build applications 
a3483f
with and native libraries for Python 3
a3483f
a3483f
%package tools
a3483f
Summary: A collection of tools included with Python 3
a3483f
Group: Development/Tools
a3483f
Requires: %{name} = %{version}-%{release}
a3483f
Requires: %{name}-tkinter = %{version}-%{release}
a3483f
a3483f
%description tools
a3483f
This package contains several tools included with Python 3
a3483f
a3483f
%package tkinter
a3483f
Summary: A GUI toolkit for Python 3
a3483f
Group: Development/Languages
a3483f
BuildRequires:  tcl, tk
a3483f
Requires: %{name} = %{version}-%{release}
a3483f
a3483f
%description tkinter
a3483f
The Tkinter (Tk interface) program is an graphical user interface for
a3483f
the Python scripting language.
a3483f
a3483f
%package test
a3483f
Summary: The test modules from the main python 3 package
a3483f
Group: Development/Languages
a3483f
Requires: %{name} = %{version}-%{release}
a3483f
Requires: %{name}-tools = %{version}-%{release}
a3483f
a3483f
%description test
a3483f
The test modules from the main %{name} package.
a3483f
These are in a separate package to save space, as they are almost never used
a3483f
in production.
a3483f
a3483f
You might want to install the python3-test package if you're developing
a3483f
python 3 code that uses more than just unittest and/or test_support.py.
a3483f
a3483f
%prep
a3483f
%setup -q -n Python-%{version}
a3483f
chmod +x %{SOURCE1}
6859f2
c96960
%if 0%{?with_systemtap}
c96960
# Provide an example of usage of the tapset:
c96960
cp -a %{SOURCE6} .
1e0349
cp -a %{SOURCE7} .
c96960
%endif # with_systemtap
c96960
1ae4dd
# Ensure that we're using the system copy of various libraries, rather than
1ae4dd
# copies shipped by upstream in the tarball:
1ae4dd
#   Remove embedded copy of expat:
1ae4dd
rm -r Modules/expat || exit 1
1ae4dd
1ae4dd
#   Remove embedded copy of libffi:
6859f2
for SUBDIR in darwin libffi libffi_arm_wince libffi_msvc libffi_osx ; do
6859f2
  rm -r Modules/_ctypes/$SUBDIR || exit 1 ;
6859f2
done
6859f2
1ae4dd
#   Remove embedded copy of zlib:
1ae4dd
rm -r Modules/zlib || exit 1
1ae4dd
1ae4dd
#
1ae4dd
# Apply patches:
1ae4dd
#
a3483f
%patch0 -p1 -b .config
a3483f
%patch1 -p1 -b .rpath
a3483f
%patch3 -p1 -b .remove-mimeaudio-tests
a3483f
%patch4 -p1 -b .apply-our-changes-to-expected-shebang
aa4aef
%patch6 -p1 -b .no-static-lib
1ae4dd
%patch7 -p1 -b .expat
c96960
%if 0%{?with_systemtap}
c96960
%patch8 -p1 -b .systemtap
c96960
%endif
a3483f
a3483f
%if "%{_lib}" == "lib64"
a3483f
%patch102 -p1 -b .lib64
a3483f
%endif
a3483f
aa2fa3
%patch106 -p3 -b .reformat-audioop
aa2fa3
%patch107 -p3 -b .CVE-2010-1634
aa2fa3
%patch108 -p1 -b .CVE-2010-2089
aa2fa3
%patch109 -p1 -b .CVE-2008-5983
aa2fa3
211f42
%patch110 -p0 -b .fix-expat-issue9054
211f42
e9848a
%patch111 -p1 -b .surrogate-utf8
211f42
a9e268
# Currently (2010-01-15), http://docs.python.org/library is for 2.6, and there
a9e268
# are many differences between 2.6 and the Python 3 library.
a9e268
#
a9e268
# Fix up the URLs within pydoc to point at the documentation for this
a9e268
# MAJOR.MINOR version:
a9e268
#
a9e268
sed --in-place \
a9e268
    --expression="s|http://docs.python.org/library|http://docs.python.org/%{pybasever}/library|g" \
a9e268
    Lib/pydoc.py || exit 1
a3483f
a3483f
%build
aa2fa3
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC -fwrapv"
aa2fa3
export CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC -fwrapv"
a3483f
export CPPFLAGS="`pkg-config --cflags-only-I libffi`"
aa2fa3
export OPT="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC -fwrapv"
a3483f
export LINKCC="gcc"
a3483f
export CFLAGS="$CFLAGS `pkg-config --cflags openssl`"
a3483f
export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
a3483f
a3483f
autoconf
c96960
c96960
# For patch 8 (systemtap), we need to get a new header for configure to use:
c96960
autoheader
c96960
c96960
%configure \
c96960
  --enable-ipv6 \
c96960
  --with-wide-unicode \
c96960
  --enable-shared \
c96960
%if 0%{?with_systemtap}
c96960
  --with-dtrace \
c96960
  --with-tapset-install-dir=%{tapsetdir} \
c96960
%endif
c96960
  --with-system-ffi \
c96960
  --with-system-expat
c96960
a3483f
a3483f
make OPT="$CFLAGS" %{?_smp_mflags}
a3483f
a3483f
a3483f
%install
1e0349
rm -fr %{buildroot}
1e0349
mkdir -p %{buildroot}%{_prefix} %{buildroot}%{_mandir}
a3483f
1e0349
make install DESTDIR=%{buildroot} INSTALL="install -p"
a3483f
a3483f
mkdir -p ${RPM_BUILD_ROOT}%{pylibdir}/site-packages
a3483f
4aab45
mv ${RPM_BUILD_ROOT}%{_bindir}/2to3 ${RPM_BUILD_ROOT}%{_bindir}/python3-2to3
a3483f
a3483f
# Development tools
a3483f
install -m755 -d ${RPM_BUILD_ROOT}%{pylibdir}/Tools
a3483f
install Tools/README ${RPM_BUILD_ROOT}%{pylibdir}/Tools/
a3483f
cp -ar Tools/freeze ${RPM_BUILD_ROOT}%{pylibdir}/Tools/
a3483f
cp -ar Tools/i18n ${RPM_BUILD_ROOT}%{pylibdir}/Tools/
a3483f
cp -ar Tools/modulator ${RPM_BUILD_ROOT}%{pylibdir}/Tools/
a3483f
cp -ar Tools/pynche ${RPM_BUILD_ROOT}%{pylibdir}/Tools/
a3483f
cp -ar Tools/scripts ${RPM_BUILD_ROOT}%{pylibdir}/Tools/
a3483f
a3483f
# Documentation tools
1e0349
install -m755 -d %{buildroot}%{pylibdir}/Doc
1e0349
cp -ar Doc/tools %{buildroot}%{pylibdir}/Doc/
a3483f
a3483f
# Demo scripts
1e0349
cp -ar Demo %{buildroot}%{pylibdir}/
a3483f
a3483f
# Fix for bug #136654
1e0349
rm -f %{buildroot}%{pylibdir}/email/test/data/audiotest.au %{buildroot}%{pylibdir}/test/audiotest.au
a3483f
a3483f
%if "%{_lib}" == "lib64"
1e0349
install -d %{buildroot}/usr/lib/python%{pybasever}/site-packages
a3483f
%endif
a3483f
a3483f
# Make python3-devel multilib-ready (bug #192747, #139911)
a3483f
%global _pyconfig32_h pyconfig-32.h
a3483f
%global _pyconfig64_h pyconfig-64.h
a3483f
a3483f
%ifarch ppc64 s390x x86_64 ia64 alpha sparc64
a3483f
%global _pyconfig_h %{_pyconfig64_h}
a3483f
%else
a3483f
%global _pyconfig_h %{_pyconfig32_h}
a3483f
%endif
1e0349
mv %{buildroot}%{_includedir}/python%{pybasever}/pyconfig.h \
1e0349
   %{buildroot}%{_includedir}/python%{pybasever}/%{_pyconfig_h}
1e0349
cat > %{buildroot}%{_includedir}/python%{pybasever}/pyconfig.h << EOF
a3483f
#include <bits/wordsize.h>
a3483f
a3483f
#if __WORDSIZE == 32
a3483f
#include "%{_pyconfig32_h}"
a3483f
#elif __WORDSIZE == 64
a3483f
#include "%{_pyconfig64_h}"
a3483f
#else
a3483f
#error "Unknown word size"
a3483f
#endif
a3483f
EOF
a3483f
a3483f
# Fix for bug 201434: make sure distutils looks at the right pyconfig.h file
1e0349
sed -i -e "s/'pyconfig.h'/'%{_pyconfig_h}'/" %{buildroot}%{pylibdir}/distutils/sysconfig.py
a3483f
a3483f
# Switch all shebangs to refer to the specific Python version.
1e0349
LD_LIBRARY_PATH=. ./python Tools/scripts/pathfix.py -i "%{_bindir}/python%{pybasever}" %{buildroot}
a3483f
a3483f
# Remove shebang lines from .py files that aren't executable, and
a3483f
# remove executability from .py files that don't have a shebang line:
1e0349
find %{buildroot} -name \*.py \
a3483f
  \( \( \! -perm /u+x,g+x,o+x -exec sed -e '/^#!/Q 0' -e 'Q 1' {} \; \
a3483f
  -print -exec sed -i '1d' {} \; \) -o \( \
a3483f
  -perm /u+x,g+x,o+x ! -exec grep -m 1 -q '^#!' {} \; \
a3483f
  -exec chmod a-x {} \; \) \)
a3483f
a3483f
# .xpm and .xbm files should not be executable:
1e0349
find %{buildroot} \
a3483f
  \( -name \*.xbm -o -name \*.xpm -o -name \*.xpm.1 \) \
a3483f
  -exec chmod a-x {} \;
a3483f
a3483f
# Remove executable flag from files that shouldn't have it:
a3483f
chmod a-x \
1e0349
  %{buildroot}%{pylibdir}/Demo/comparisons/patterns \
1e0349
  %{buildroot}%{pylibdir}/distutils/tests/Setup.sample \
1e0349
  %{buildroot}%{pylibdir}/Demo/rpc/test \
1e0349
  %{buildroot}%{pylibdir}/Tools/README \
1e0349
  %{buildroot}%{pylibdir}/Demo/scripts/newslist.doc \
1e0349
  %{buildroot}%{pylibdir}/Demo/md5test/foo
a3483f
a3483f
# Get rid of DOS batch files:
1e0349
find %{buildroot} -name \*.bat -exec rm {} \;
a3483f
a3483f
# Get rid of backup files:
1e0349
find %{buildroot}/ -name "*~" -exec rm -f {} \;
a3483f
find . -name "*~" -exec rm -f {} \;
1e0349
rm -f %{buildroot}%{pylibdir}/LICENSE.txt
a3483f
# Junk, no point in putting in -test sub-pkg
a3483f
rm -f ${RPM_BUILD_ROOT}/%{pylibdir}/idlelib/testcode.py*
a3483f
a3483f
# Get rid of stray patch file from buildroot:
1e0349
rm -f %{buildroot}%{pylibdir}/test/test_imp.py.apply-our-changes-to-expected-shebang # from patch 4
a3483f
a3483f
# Fix end-of-line encodings:
1e0349
find %{buildroot}/ -name \*.py -exec sed -i 's/\r//' {} \;
a3483f
a3483f
# Fix an encoding:
1e0349
iconv -f iso8859-1 -t utf-8 %{buildroot}/%{pylibdir}/Demo/rpc/README > README.conv && mv -f README.conv %{buildroot}/%{pylibdir}/Demo/rpc/README
a3483f
a3483f
# Note that 
a3483f
#  %{pylibdir}/Demo/distutils/test2to3/setup.py
a3483f
# is in iso-8859-1 encoding, and that this is deliberate; this is test data
a3483f
# for the 2to3 tool, and one of the functions of the 2to3 tool is to fixup
a3483f
# character encodings within python source code
a3483f
a3483f
# Do bytecompilation with the new interpreter.
a3483f
LD_LIBRARY_PATH=. /usr/lib/rpm/brp-python-bytecompile ./python
a3483f
a3483f
# Fixup permissions for shared libraries from non-standard 555 to standard 755:
1e0349
find %{buildroot} \
a3483f
    -perm 555 -exec chmod 755 {} \;
a3483f
1e0349
mkdir -p %{buildroot}/%{_sysconfdir}/rpm
1e0349
install -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/rpm
1e0349
install -m 644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/rpm
a3483f
113725
# Ensure that the curses module was linked against libncursesw.so, rather than
113725
# libncurses.so (bug 539917)
1e0349
ldd %{buildroot}/%{dynload_dir}/_curses*.so \
113725
    | grep curses \
113725
    | grep libncurses.so && (echo "_curses.so linked against libncurses.so" ; exit 1)
113725
b2154f
# Copy up the gdb hooks into place; the python file will be autoloaded by gdb
b2154f
# when visiting libpython.so, provided that the python file is installed to the
b2154f
# same path as the library (or its .debug file) plus a "-gdb.py" suffix, e.g:
d5a5bf
#  /usr/lib/debug/usr/lib64/libpython3.1.so.1.0.debug-gdb.py
d5a5bf
# (note that the debug path is /usr/lib/debug for both 32/64 bit)
d5a5bf
# 
d5a5bf
# Initially I tried:
b2154f
#  /usr/lib/libpython3.1.so.1.0-gdb.py
d5a5bf
# but doing so generated noise when ldconfig was rerun (rhbz:562980)
b2154f
#
b2154f
%if 0%{?with_gdb_hooks}
d5a5bf
mkdir -p %{buildroot}%{_prefix}/lib/debug/%{_libdir}
452066
cp %{SOURCE4} %{buildroot}%{_prefix}/lib/debug/%{_libdir}/%{py_INSTSONAME}.debug-gdb.py
b2154f
%endif # with_gdb_hooks
b2154f
c96960
#
c96960
# Systemtap hooks:
c96960
#
c96960
%if 0%{?with_systemtap}
c96960
# Install a tapset for this libpython into tapsetdir, fixing up the path to the
c96960
# library:
c96960
mkdir -p %{buildroot}%{tapsetdir}
c96960
%ifarch ppc64 s390x x86_64 ia64 alpha sparc64
c96960
%global libpython_stp libpython%{pybasever}-64.stp
c96960
%else
c96960
%global libpython_stp libpython%{pybasever}-32.stp
c96960
%endif
c96960
c96960
sed \
c96960
   -e "s|LIBRARY_PATH|%{_libdir}/%{py_INSTSONAME}|" \
c96960
   %{SOURCE5} \
c96960
   > %{buildroot}%{tapsetdir}/%{libpython_stp}
c96960
%endif # with_systemtap
c96960
a3483f
%check
a3483f
# Run the upstream test suite, using the "runtests.sh" harness from the upstream
a3483f
# tarball.
1f5628
# I'm seeing occasional hangs in some http tests when running the test suite
1f5628
# inside Koji.  For that reason I exclude them
1f5628
LD_LIBRARY_PATH=$(pwd) ./runtests.sh -x test_httplib test_http_cookies
a3483f
a3483f
# Note that we're running the tests using the version of the code in the builddir,
a3483f
# not in the buildroot.
a3483f
a3483f
# The harness only emits the names of the test scripts it ran, along with a
a3483f
# summary of the form:
a3483f
#   2 BAD
a3483f
# 313 GOOD
a3483f
#  22 SKIPPED
a3483f
# 337 total
a3483f
# As a byproduct it writes files "GOOD", "BAD", "SKIPPED", listing names of
a3483f
# files (e.g. "test_imp") along with a subdirectory OUT containing files of the
a3483f
# form $TEST.out
a3483f
# Each such logfile starts with a line indicating the name of the test
a3483f
a3483f
# Output the logs from failing tests, so that they are captured in the rpmbuild
a3483f
# log:
a3483f
for TESTNAME in $(cat BAD); do
a3483f
  cat OUT/$TESTNAME.out ; 
a3483f
done
a3483f
a3483f
# There are 5 expected BAD results here:
a3483f
#
a3483f
# (1) test_distutils.py: tries to build an RPM inside the rpmbuild; I'll simply
a3483f
# let this one fail for now (has trouble linking against -lpython3.1; perhaps
a3483f
# LD_LIBRARY_PATH is being discarded somewhere?)
a3483f
#
a3483f
# (2) test_imp.py: ImportTests.test_issue1267 in test_imp.py reads pydoc.py's
a3483f
# shebang line and checks that it read it correctly.tests that the shebang line
a3483f
# is as expected.  Unfortunately if we patch this up in the buildir (in the
a3483f
# build phase), then the "make install" will try to reference
a3483f
# /usr/bin/python%{pybasever} which won't exist on a clean build environment.
a3483f
# So we fix up the shebang lines after this in the install phase, and expect
a3483f
# this test to fail in the check phase.  It ought to pass when run on the built
a3483f
# RPMs
a3483f
#
a3483f
# (3) test_socket.py:testSockName can fail here if DNS isn't properly set up:
a3483f
#     my_ip_addr = socket.gethostbyname(socket.gethostname())
a3483f
# socket.gaierror: [Errno -2] Name or service not known
a3483f
#
a3483f
# (4) test_subprocess: merely get "errors occurred"
a3483f
#
a3483f
# (5) test_telnet: can get a "socket.error: [Errno 104] Connection reset by peer"
a3483f
#
a3483f
# Some additional tests fail when running the test suite as non-root outside of
a3483f
# the build, due to permissions issues.
a3483f
a3483f
%clean
1e0349
rm -fr %{buildroot}
a3483f
a3483f
%post libs -p /sbin/ldconfig
a3483f
a3483f
%postun libs -p /sbin/ldconfig
a3483f
4aab45
%files
a3483f
%defattr(-, root, root)
a3483f
%doc LICENSE README
a3483f
%{_bindir}/pydoc*
a3483f
%{_bindir}/python3
a3483f
%{_bindir}/python%{pybasever}
a3483f
%{_mandir}/*/*
a3483f
%dir %{pylibdir}
4aab45
%dir %{dynload_dir}
4aab45
%{dynload_dir}/Python-%{version}-py%{pybasever}.egg-info
4aab45
%{dynload_dir}/_bisectmodule.so
4aab45
%{dynload_dir}/_codecs_cn.so
4aab45
%{dynload_dir}/_codecs_hk.so
4aab45
%{dynload_dir}/_codecs_iso2022.so
4aab45
%{dynload_dir}/_codecs_jp.so
4aab45
%{dynload_dir}/_codecs_kr.so
4aab45
%{dynload_dir}/_codecs_tw.so
4aab45
%{dynload_dir}/_collectionsmodule.so
4aab45
%{dynload_dir}/_csv.so
4aab45
%{dynload_dir}/_ctypes.so
4aab45
%{dynload_dir}/_curses.so
4aab45
%{dynload_dir}/_curses_panel.so
4aab45
%{dynload_dir}/_dbm.so
4aab45
%{dynload_dir}/_elementtree.so
4aab45
%{dynload_dir}/_gdbmmodule.so
4aab45
%{dynload_dir}/_hashlib.so
4aab45
%{dynload_dir}/_heapqmodule.so
4aab45
%{dynload_dir}/_json.so
4aab45
%{dynload_dir}/_lsprof.so
4aab45
%{dynload_dir}/_multibytecodecmodule.so
4aab45
%{dynload_dir}/_multiprocessing.so
4aab45
%{dynload_dir}/_pickle.so
4aab45
%{dynload_dir}/_randommodule.so
4aab45
%{dynload_dir}/_sha1module.so
4aab45
%{dynload_dir}/_sha256module.so
4aab45
%{dynload_dir}/_sha512module.so
4aab45
%{dynload_dir}/_socketmodule.so
4aab45
%{dynload_dir}/_sqlite3.so
4aab45
%{dynload_dir}/_ssl.so
4aab45
%{dynload_dir}/_struct.so
4aab45
%{dynload_dir}/_weakref.so
4aab45
%{dynload_dir}/arraymodule.so
4aab45
%{dynload_dir}/atexitmodule.so
4aab45
%{dynload_dir}/audioop.so
4aab45
%{dynload_dir}/binascii.so
4aab45
%{dynload_dir}/bz2.so
4aab45
%{dynload_dir}/cmathmodule.so
4aab45
%{dynload_dir}/cryptmodule.so
4aab45
%{dynload_dir}/datetime.so
4aab45
%{dynload_dir}/fcntlmodule.so
4aab45
%{dynload_dir}/grpmodule.so
4aab45
%{dynload_dir}/itertoolsmodule.so
4aab45
%{dynload_dir}/mathmodule.so
4aab45
%{dynload_dir}/mmapmodule.so
4aab45
%{dynload_dir}/nismodule.so
4aab45
%{dynload_dir}/operator.so
4aab45
%{dynload_dir}/ossaudiodev.so
4aab45
%{dynload_dir}/parsermodule.so
4aab45
%{dynload_dir}/pyexpat.so
4aab45
%{dynload_dir}/readline.so
4aab45
%{dynload_dir}/resource.so
4aab45
%{dynload_dir}/selectmodule.so
4aab45
%{dynload_dir}/spwdmodule.so
4aab45
%{dynload_dir}/syslogmodule.so
4aab45
%{dynload_dir}/termios.so
4aab45
%{dynload_dir}/timemodule.so
4aab45
%{dynload_dir}/unicodedata.so
4aab45
%{dynload_dir}/xxsubtype.so
4aab45
%{dynload_dir}/zlibmodule.so
4aab45
a3483f
%dir %{pylibdir}/site-packages
a3483f
%{pylibdir}/site-packages/README
a3483f
%{pylibdir}/*.py*
a3483f
%{pylibdir}/*.doc
a3483f
%{pylibdir}/wsgiref.egg-info
a3483f
%dir %{pylibdir}/ctypes
a3483f
%{pylibdir}/ctypes/*.py*
a3483f
%{pylibdir}/ctypes/macholib
a3483f
%{pylibdir}/curses
a3483f
%dir %{pylibdir}/dbm
a3483f
%{pylibdir}/dbm/*.py*
a3483f
%dir %{pylibdir}/distutils
a3483f
%{pylibdir}/distutils/*.py*
a3483f
%{pylibdir}/distutils/README
a3483f
%{pylibdir}/distutils/command
a3483f
%dir %{pylibdir}/email
a3483f
%{pylibdir}/email/*.py*
a3483f
%{pylibdir}/email/mime
a3483f
%{pylibdir}/encodings
a3483f
%{pylibdir}/html
a3483f
%{pylibdir}/http
a3483f
%{pylibdir}/idlelib
a3483f
%dir %{pylibdir}/importlib
a3483f
%{pylibdir}/importlib/*.py*
a3483f
%dir %{pylibdir}/json
a3483f
%{pylibdir}/json/*.py*
6a82c1
%{pylibdir}/lib2to3
6a82c1
%exclude %{pylibdir}/lib2to3/tests
a3483f
%{pylibdir}/logging
a3483f
%{pylibdir}/multiprocessing
a3483f
%{pylibdir}/plat-linux2
a3483f
%{pylibdir}/pydoc_data
a3483f
%dir %{pylibdir}/sqlite3
a3483f
%{pylibdir}/sqlite3/*.py*
a3483f
%dir %{pylibdir}/test
a3483f
%{pylibdir}/test/__init__.py*
2da356
%{pylibdir}/test/support.py*
a3483f
%{pylibdir}/urllib
a3483f
%{pylibdir}/wsgiref
a3483f
%{pylibdir}/xml
a3483f
%{pylibdir}/xmlrpc
a3483f
%if "%{_lib}" == "lib64"
37de67
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}
37de67
%attr(0755,root,root) %dir %{_prefix}/lib/python%{pybasever}/site-packages
a3483f
%endif
a3483f
a3483f
# "Makefile" and the config-32/64.h file are needed by
a3483f
# distutils/sysconfig.py:_init_posix(), so we include them in the core
a3483f
# package, along with their parent directories (bug 531901):
a3483f
%dir %{pylibdir}/config
a3483f
%{pylibdir}/config/Makefile
37de67
%dir %{_includedir}/python%{pybasever}
37de67
%{_includedir}/python%{pybasever}/%{_pyconfig_h}
a3483f
a3483f
%files libs
a3483f
%defattr(-,root,root,-)
d5a5bf
%{_libdir}/%{py_INSTSONAME}
c96960
%if 0%{?with_systemtap}
c96960
%{tapsetdir}/%{libpython_stp}
1e0349
%doc systemtap-example.stp pyfuntop.stp
c96960
%endif
a3483f
a3483f
%files devel
a3483f
%defattr(-,root,root)
a3483f
%{pylibdir}/config/*
a3483f
%exclude %{pylibdir}/config/Makefile
a3483f
/usr/include/python%{pybasever}/*.h
a3483f
%exclude /usr/include/python%{pybasever}/%{_pyconfig_h}
a3483f
%doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit
a3483f
%{_bindir}/python3-config
a3483f
%{_bindir}/python%{pybasever}-config
a3483f
%{_libdir}/libpython%{pybasever}.so
a3483f
%{_libdir}/pkgconfig/python*.pc
a3483f
%config(noreplace) %{_sysconfdir}/rpm/macros.python3
4aab45
%config(noreplace) %{_sysconfdir}/rpm/macros.pybytecompile
a3483f
a3483f
%files tools
a3483f
%defattr(-,root,root,755)
4aab45
%{_bindir}/python3-2to3
a3483f
%{_bindir}/idle*
a3483f
%{pylibdir}/Tools
a3483f
%doc %{pylibdir}/Demo
a3483f
%exclude %{pylibdir}/Demo/distutils
a3483f
%exclude %{pylibdir}/Demo/md5test
a3483f
%doc %{pylibdir}/Doc
a3483f
a3483f
%files tkinter
a3483f
%defattr(-,root,root,755)
a3483f
%{pylibdir}/tkinter
a3483f
%exclude %{pylibdir}/tkinter/test
4aab45
%{dynload_dir}/_tkinter.so
a3483f
a3483f
%files test
a3483f
%defattr(-, root, root)
a3483f
%{pylibdir}/ctypes/test
a3483f
%{pylibdir}/distutils/tests
a3483f
%{pylibdir}/email/test
a3483f
%{pylibdir}/importlib/test
a3483f
%{pylibdir}/json/tests
a3483f
%{pylibdir}/sqlite3/test
a3483f
%{pylibdir}/test
2da356
%exclude %{pylibdir}/test/__init__.py*
2da356
%exclude %{pylibdir}/test/support.py*
4aab45
%{dynload_dir}/_ctypes_test.so
4aab45
%{dynload_dir}/_testcapimodule.so
a3483f
%{pylibdir}/lib2to3/tests
a3483f
%doc %{pylibdir}/Demo/distutils
a3483f
%doc %{pylibdir}/Demo/md5test
a3483f
%{pylibdir}/tkinter/test
a3483f
d5a5bf
# We put the debug-gdb.py file inside /usr/lib/debug to avoid noise from
d5a5bf
# ldconfig (rhbz:562980).
d5a5bf
# 
d5a5bf
# The /usr/lib/rpm/redhat/macros defines %__debug_package to use
d5a5bf
# debugfiles.list, and it appears that everything below /usr/lib/debug and
d5a5bf
# (/usr/src/debug) gets added to this file (via LISTFILES) in
d5a5bf
# /usr/lib/rpm/find-debuginfo.sh
d5a5bf
# 
d5a5bf
# Hence by installing it below /usr/lib/debug we ensure it is added to the
d5a5bf
# -debuginfo subpackage
d5a5bf
# (if it doesn't, then the rpmbuild ought to fail since the debug-gdb.py 
d5a5bf
# payload file would be unpackaged)
d5a5bf
d5a5bf
a3483f
%changelog
2da356
* Wed Sep  8 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-8
2da356
- add test.support to the core package (rhbz#596258)
2da356
211f42
* Sun Aug 22 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-7
211f42
- Backport from F14:
211f42
  - Fix for lone surrogates, utf8 and certain encode error handlers.
211f42
  - Fix an incompatibility between pyexpat and the system expat-2.0.1 that led to
211f42
    a segfault running test_pyexpat.py (patch 110; upstream issue 9054; rhbz#610312)
211f42
aa2fa3
* Fri Jun  4 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-6
aa2fa3
- ensure that the compiler is invoked with "-fwrapv" (rhbz#594819)
aa2fa3
- reformat whitespace in audioop.c (patch 106)
aa2fa3
- CVE-2010-1634: fix various integer overflow checks in the audioop
aa2fa3
module (patch 107)
aa2fa3
- CVE-2010-2089: further checks within the audioop module (patch 108)
aa2fa3
- CVE-2008-5983: the new PySys_SetArgvEx entry point from r81399 (patch 109)
aa2fa3
1f5628
* Tue Apr 13 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-5
1f5628
- exclude test_http_cookies when running selftests, due to hang seen on
1f5628
http://koji.fedoraproject.org/koji/taskinfo?taskID=2088463 (cancelled after
1f5628
11 hours)
1f5628
- update python-gdb.py from v5 to py3k version submitted upstream
1f5628
a24fa2
* Wed Mar 31 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-4
a24fa2
- update python-gdb.py from v4 to v5 (improving performance and stability,
a24fa2
adding commands)
a24fa2
6952be
* Thu Mar 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-3
6952be
- update python-gdb.py from v3 to v4 (fixing infinite recursion on reference
6952be
cycles and tracebacks on bytes 0x80-0xff in strings, adding handlers for sets
6952be
and exceptions)
6952be
452066
* Wed Mar 24 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-2
452066
- refresh gdb hooks to v3 (reworking how they are packaged)
452066
cd7ff0
* Sun Mar 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-1
cd7ff0
- update to 3.1.2: http://www.python.org/download/releases/3.1.2/
cd7ff0
- drop upstreamed patch 2 (.pyc permissions handling)
cd7ff0
- drop upstream patch 5 (fix for the test_tk and test_ttk_* selftests)
cd7ff0
- drop upstreamed patch 200 (path-fixing script)
cd7ff0
85bcec
* Sat Mar 20 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-28
85bcec
- fix typo in libpython.stp (rhbz:575336)
85bcec
1e0349
* Fri Mar 12 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-27
1e0349
- add pyfuntop.stp example (source 7)
1e0349
- convert usage of $$RPM_BUILD_ROOT to %%{buildroot} throughout, for
1e0349
consistency with python.spec
1e0349
3d86c8
* Mon Feb 15 2010 Thomas Spura <tomspur@fedoraproject.org> - 3.1.1-26
3d86c8
- rebuild for new package of redhat-rpm-config (rhbz:564527)
3d86c8
- use 'install -p' when running 'make install'
3d86c8
c96960
* Fri Feb 12 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-25
c96960
- split configure options into multiple lines for easy of editing
c96960
- add systemtap static markers (wcohen, mjw, dmalcolm; patch 8), a systemtap
c96960
tapset defining "python.function.entry" and "python.function.return" to make
c96960
the markers easy to use (dmalcolm; source 5), and an example of using the
c96960
tapset to the docs (dmalcolm; source 6) (rhbz:545179)
c96960
d5a5bf
* Mon Feb  8 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-24
d5a5bf
- move the -gdb.py file from %%{_libdir}/INSTSONAME-gdb.py to
d5a5bf
%%{_prefix}/lib/debug/%%{_libdir}/INSTSONAME.debug-gdb.py to avoid noise from
d5a5bf
ldconfig (bug 562980), and which should also ensure it becomes part of the
d5a5bf
debuginfo subpackage, rather than the libs subpackage
d5a5bf
- introduce %%{py_SOVERSION} and %%{py_INSTSONAME} to reflect the upstream
d5a5bf
configure script, and to avoid fragile scripts that try to figure this out
d5a5bf
dynamically (e.g. for the -gdb.py change)
d5a5bf
b2154f
* Mon Feb  8 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-23
b2154f
- add gdb hooks for easier debugging (Source 4)
b2154f
1ae4dd
* Thu Jan 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-22
1ae4dd
- update python-3.1.1-config.patch to remove downstream customization of build
1ae4dd
of pyexpat and elementtree modules
1ae4dd
- add patch adapted from upstream (patch 7) to add support for building against
1ae4dd
system expat; add --with-system-expat to "configure" invocation
1ae4dd
- remove embedded copies of expat and zlib from source tree during "prep"
1ae4dd
4aab45
* Mon Jan 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-21
4aab45
- introduce %%{dynload_dir} macro
4aab45
- explicitly list all lib-dynload files, rather than dynamically gathering the
4aab45
payload into a temporary text file, so that we can be sure what we are
4aab45
shipping
4aab45
- introduce a macros.pybytecompile source file, to help with packaging python3
4aab45
modules (Source3; written by Toshio)
4aab45
- rename "2to3-3" to "python3-2to3" to better reflect python 3 module packaging
4aab45
plans
4aab45
113725
* Mon Jan 25 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-20
113725
- change python-3.1.1-config.patch to remove our downstream change to curses
113725
configuration in Modules/Setup.dist, so that the curses modules are built using
113725
setup.py with the downstream default (linking against libncursesw.so, rather
113725
than libncurses.so), rather than within the Makefile; add a test to %%install
113725
to verify the dso files that the curses module is linked against the correct
113725
DSO (bug 539917; changes _cursesmodule.so -> _curses.so)
113725
d5d230
* Fri Jan 22 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-19
d5d230
- add %%py3dir macro to macros.python3 (to be used during unified python 2/3
d5d230
builds for setting up the python3 copy of the source tree)
d5d230
6a82c1
* Wed Jan 20 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-18
6a82c1
- move lib2to3 from -tools subpackage to main package (bug 556667)
6a82c1
aa4aef
* Sun Jan 17 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-17
aa4aef
- patch Makefile.pre.in to avoid building static library (patch 6, bug 556092)
aa4aef
6859f2
* Fri Jan 15 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-16
6859f2
- use the %%{_isa} macro to ensure that the python-devel dependency on python
6859f2
is for the correct multilib arch (#555943)
6859f2
- delete bundled copy of libffi to make sure we use the system one
6859f2
a9e268
* Fri Jan 15 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-15
a9e268
- fix the URLs output by pydoc so they point at python.org's 3.1 build of the
a9e268
docs, rather than the 2.6 build
a9e268
37de67
* Wed Jan 13 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-14
37de67
- replace references to /usr with %%{_prefix}; replace references to
37de67
/usr/include with %%{_includedir} (Toshio)
37de67
a3483f
* Mon Jan 11 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-13
a3483f
- fix permission on find-provides-without-python-sonames.sh from 775 to 755
a3483f
a3483f
* Mon Jan 11 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-12
a3483f
- remove build-time requirements on tix and tk, since we already have
a3483f
build-time requirements on the -devel subpackages for each of these (Thomas
a3483f
Spura)
a3483f
- replace usage of %%define with %%global (Thomas Spura)
a3483f
- remove forcing of CC=gcc as this old workaround for bug 109268 appears to
a3483f
longer be necessary
a3483f
- move various test files from the "tools"/"tkinter" subpackages to the "test"
a3483f
subpackage
a3483f
a3483f
* Thu Jan  7 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.1-11
a3483f
- add %%check section (thanks to Thomas Spura)
a3483f
- update patch 4 to use correct shebang line
a3483f
- get rid of stray patch file from buildroot
a3483f
a3483f
* Tue Nov 17 2009 Andrew McNabb <amcnabb@mcnabbs.org> - 3.1.1-10
a3483f
- switched a few instances of "find |xargs" to "find -exec" for consistency.
a3483f
- made the description of __os_install_post more accurate.
a3483f
a3483f
* Wed Nov  4 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-9
a3483f
- add macros.python3 to the -devel subpackage, containing common macros for use
a3483f
when packaging python3 modules
a3483f
a3483f
* Tue Nov  3 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-8
a3483f
- add a provides of "python(abi)" (see bug 532118)
a3483f
- fix issues identified by a.badger in package review (bug 526126, comment 39):
a3483f
  - use "3" thoughout metadata, rather than "3.*"
a3483f
  - remove conditional around "pkg-config openssl"
a3483f
  - use standard cleanup of RPM_BUILD_ROOT
a3483f
  - replace hardcoded references to /usr with _prefix macro
a3483f
  - stop removing egg-info files
a3483f
  - use /usr/bin/python3.1 rather than /use/bin/env python3.1 when fixing
a3483f
up shebang lines
a3483f
  - stop attempting to remove no-longer-present .cvsignore files
a3483f
  - move the post/postun sections above the "files" sections
a3483f
a3483f
* Thu Oct 29 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-7
a3483f
- remove commented-away patch 51 (python-2.6-distutils_rpm.patch): the -O1
a3483f
flag is used by default in the upstream code
a3483f
- "Makefile" and the config-32/64.h file are needed by distutils/sysconfig.py
a3483f
_init_posix(), so we include them in the core package, along with their parent
a3483f
directories (bug 531901)
a3483f
a3483f
* Tue Oct 27 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-6
a3483f
- reword description, based on suggestion by amcnabb
a3483f
- fix the test_email and test_imp selftests (patch 3 and patch 4 respectively)
a3483f
- fix the test_tk and test_ttk_* selftests (patch 5)
a3483f
- fix up the specfile's handling of shebang/perms to avoid corrupting
a3483f
test_httpservers.py (sed command suggested by amcnabb)
a3483f
a3483f
* Thu Oct 22 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-5
a3483f
- fixup importlib/_bootstrap.py so that it correctly handles being unable to
a3483f
open .pyc files for writing (patch 2, upstream issue 7187)
a3483f
- actually apply the rpath patch (patch 1)
a3483f
a3483f
* Thu Oct 22 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-4
a3483f
- update patch0's setup of the crypt module to link it against libcrypt
a3483f
- update patch0 to comment "datetimemodule" back out, so that it is built
a3483f
using setup.py (see Setup, option 3), thus linking it statically against
a3483f
timemodule.c and thus avoiding a run-time "undefined symbol:
a3483f
_PyTime_DoubleToTimet" failure on "import datetime"
a3483f
a3483f
* Wed Oct 21 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-3
a3483f
- remove executable flag from various files that shouldn't have it
a3483f
- fix end-of-line encodings
a3483f
- fix a character encoding
a3483f
a3483f
* Tue Oct 20 2009 David Malcolm <dmalcolm@redhat.com> - 3.1.1-2
a3483f
- disable invocation of brp-python-bytecompile in postprocessing, since
a3483f
it would be with the wrong version of python (adapted from ivazquez'
a3483f
python3000 specfile)
a3483f
- use a custom implementation of __find_provides in order to filter out bogus
a3483f
provides lines for the various .so modules
a3483f
- fixup distutils/unixccompiler.py to remove standard library path from rpath
a3483f
(patch 1, was Patch0 in ivazquez' python3000 specfile)
a3483f
- split out libraries into a -libs subpackage
a3483f
- update summaries and descriptions, basing content on ivazquez' specfile
a3483f
- fixup executable permissions on .py, .xpm and .xbm files, based on work in
a3483f
ivazquez's specfile
a3483f
- get rid of DOS batch files
a3483f
- fixup permissions for shared libraries from non-standard 555 to standard 755
a3483f
- move /usr/bin/python*-config to the -devel subpackage
a3483f
- mark various directories as being documentation
a3483f
a3483f
* Thu Sep 24 2009 Andrew McNabb <amcnabb@mcnabbs.org> 3.1.1-1
a3483f
- Initial package for Python 3.
a3483f