Accepting request 34635 from devel:languages:python:Factory

Copy from devel:languages:python:Factory/python based on submit request 34635 from user matejcik

OBS-URL: https://build.opensuse.org/request/show/34635
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python?expand=0&rev=45
This commit is contained in:
OBS User autobuild
2010-03-12 16:36:40 +00:00
committed by Git OBS Bridge
parent 8938d1ada0
commit 0d0d04ac0b
12 changed files with 44 additions and 271 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package python-base (Version 2.6.2)
# spec file for package python-base (Version 2.6.4.92)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -32,9 +32,11 @@ Obsoletes: python-64bit
%endif
#
Summary: Python Interpreter base package
Version: 2.6.2
Release: 10
%define tarname Python-%{version}
Version: 2.6.4.92
Release: 1
#%define tarversion %{version}
%define tarversion 2.6.5rc2
%define tarname Python-%{tarversion}
Source0: %{tarname}.tar.bz2
Source1: macros.python
Source2: baselibs.conf
@@ -45,12 +47,9 @@ Patch01: Python-2.3.3-dirs.patch
Patch10: python-distutils-rpm-8.patch
Patch21: Python-2.6.2-multilib.patch
Patch25: python-2.6b1-canonicalize2.patch
Patch31: python-2.5.2-fwrapv.patch
Patch35: python-2.5.2-configure.patch
Patch37: python-2.6rc2-https-proxy.patch
Patch38: python-2.6-gettext-plurals.patch
Patch39: python-2.6.2-test_distutils.patch
Patch40: python-2.6.2-expat.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define python_version %(echo %{version} | head -c 3)
Provides: %{name} = %{python_version}
@@ -133,12 +132,9 @@ Authors:
%patch10 -p1
%patch21 -p1
%patch25
%patch31
%patch35
%patch37
%patch38
%patch39
%patch40
# some cleanup
find . -name .cvsignore -type f -print0 | xargs -0 rm -f
find . -name CVS -type d -print0 | xargs -0 rm -rf
@@ -193,6 +189,8 @@ EXCLUDE="$EXCLUDE -x test_nis -x test_threading"
# test_smtplib's testSend is known to be broken and on ia64 it actually fails most of the time, preventing the build.
EXCLUDE="$EXCLUDE -x test_smtplib"
%endif
# TODO remove this exclude at release: test_distutils fails in 2.6.5rc1 for some unrelated reason
EXCLUDE="$EXCLUDE -x test_distutils"
# Limit virtual memory to avoid spurious failures
if test $(ulimit -v) = unlimited || test $(ulimit -v) -gt 10000000; then
ulimit -v 10000000 || :
@@ -384,7 +382,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/python%{python_version}/lib-dynload/_codecs*.so
%{_libdir}/python%{python_version}/lib-dynload/_multibytecodec.so
%{_libdir}/python%{python_version}/lib-dynload/audioop.so
%{_libdir}/python%{python_version}/lib-dynload/Python-%{version}-py%{python_version}.egg-info
%{_libdir}/python%{python_version}/lib-dynload/Python-%{tarversion}-py%{python_version}.egg-info
# these modules don't support 64-bit arches (disabled by setup.py)
%ifnarch alpha ia64 x86_64 s390x ppc64 sparc64
# requires sizeof(int) == sizeof(long) == sizeof(char*)