Accepting request 76396 from devel:languages:python:Factory

OBS-URL: https://build.opensuse.org/request/show/76396
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python?expand=0&rev=70
This commit is contained in:
Sascha Peilicke 2011-07-19 11:37:10 +00:00 committed by Git OBS Bridge
commit 6b6e223215
6 changed files with 42 additions and 4 deletions

20
python-2.7.1-linux3.patch Normal file
View File

@ -0,0 +1,20 @@
--- Python-2.7.1/setup.py 2011/07/10 23:56:34 1.1
+++ Python-2.7.1/setup.py 2011/07/10 23:57:47
@@ -1454,14 +1454,14 @@
# Platform-specific libraries
- if platform == 'linux2':
+ if (platform in ('linux2', 'linux3')):
# Linux-specific modules
exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
else:
missing.append('linuxaudiodev')
- if (platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
- 'freebsd7', 'freebsd8')
+ if (platform in ('linux2', 'linux3', 'freebsd4', 'freebsd5',
+ 'freebsd6', 'freebsd7', 'freebsd8')
or platform.startswith("gnukfreebsd")):
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
else:

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 11 01:59:56 CEST 2011 - ro@suse.de
- fix build on factory: setup reports linux3 not linux2 now,
adapt checks
-------------------------------------------------------------------
Tue May 31 17:58:30 UTC 2011 - jmatejek@novell.com

View File

@ -30,7 +30,7 @@ Obsoletes: python-64bit
#
Summary: Python Interpreter base package
Version: 2.7.1
Release: 2
Release: 5
%define tarversion %{version}
%define tarname Python-%{tarversion}
Source0: %{tarname}.tar.bz2
@ -52,12 +52,13 @@ Patch12: http://psf.upfronthosting.co.za/roundup/tracker/file19029/python
Patch13: python-2.7.1-fix_date_time_compiler.patch
Patch14: python-2.7-CVE-2011-1521-fileurl.patch
Patch15: python-2.7-fix-parallel-make.patch
Patch16: python-2.7.1-linux3.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define python_version %(echo %{version} | head -c 3)
Provides: %{name} = %{python_version}
# explicitly, see bnc#697251
Requires: libpython2_7-1_0 = %{version}-%{release}
Requires: libpython2_7-1_0 = %{version}-%{release}
%description
Python is an interpreted, object-oriented programming language, and is
@ -148,6 +149,7 @@ Authors:
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
# drop Autoconf version requirement
sed -i 's/^version_required/dnl version_required/' configure.in
@ -195,6 +197,8 @@ EXCLUDE="$EXCLUDE -x test_gdb"
# 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
# test_subprocess and test_unittest and test_threaded_import fail in Factory
EXCLUDE="$EXCLUDE -x test_subprocess -x test_unittest -xtest_threaded_import"
# Limit virtual memory to avoid spurious failures
if test $(ulimit -v) = unlimited || test $(ulimit -v) -gt 10000000; then
ulimit -v 10000000 || :

View File

@ -24,7 +24,7 @@ Group: Development/Languages/Python
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Additional Package Documentation for Python.
Version: 2.7
Release: 10
Release: 5
%define pyver 2.7.1
BuildArch: noarch
%define tarname Python-%{pyver}

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 11 01:59:56 CEST 2011 - ro@suse.de
- fix build on factory: setup reports linux3 not linux2 now,
adapt checks
-------------------------------------------------------------------
Tue May 24 14:30:10 UTC 2011 - jmatejek@novell.com

View File

@ -32,7 +32,7 @@ Obsoletes: python-64bit
Obsoletes: python-nothreads python21 python-elementtree python-sqlite
Summary: Python Interpreter
Version: 2.7.1
Release: 6
Release: 5
Requires: python-base = %{version}
%define tarversion %{version}
%define tarname Python-%{tarversion}
@ -52,6 +52,7 @@ Patch6: python-2.6b3-curses-panel.patch
Patch7: sparc_longdouble.patch
Patch9: python-2.7.1-fix_date_time_compiler.patch
Patch10: python-2.7-fix-parallel-make.patch
Patch11: python-2.7.1-linux3.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define python_version %(echo %{version} | head -c 3)
@ -183,6 +184,7 @@ Authors:
%patch7 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
# drop Autoconf version requirement
sed -i 's/^version_required/dnl version_required/' configure.in