This commit is contained in:
committed by
Git OBS Bridge
parent
da47da1873
commit
50348391e3
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package python-base (Version 2.6rc2)
|
||||
# spec file for package python-base (Version 2.6.0)
|
||||
#
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@@ -27,24 +27,25 @@ License: X11/MIT
|
||||
Group: Development/Languages/Python
|
||||
AutoReqProv: on
|
||||
Summary: Python Interpreter base package
|
||||
Version: 2.6rc2
|
||||
Version: 2.6.0
|
||||
Release: 1
|
||||
%define tarname Python-%{version}
|
||||
#%define tarname Python-%{version}
|
||||
%define tarname Python-2.6
|
||||
Source0: %{tarname}.tar.bz2
|
||||
Source1: macros.python
|
||||
Source6: README.SUSE
|
||||
Source13: distutils.cfg
|
||||
Source14: _local.pth
|
||||
Patch01: Python-2.3.3-dirs.patch
|
||||
Patch10: python-distutils-rpm-8.patch
|
||||
Patch21: Python-2.6b1-multilib.patch
|
||||
Patch25: python-2.6b1-canonicalize2.patch
|
||||
Patch26: python-2.6b1-localpath.patch
|
||||
Patch31: python-2.5.2-fwrapv.patch
|
||||
Patch35: python-2.5.2-configure.patch
|
||||
Patch36: python-2.6rc1-bug-no-proxy.patch
|
||||
Patch37: python-2.6rc2-https-proxy.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%define python_version %(echo %{version} | head -c 3)
|
||||
Provides: %{name} = %{python_version}
|
||||
|
||||
%description
|
||||
Python is an interpreted, object-oriented programming language, and is
|
||||
@@ -124,10 +125,8 @@ Authors:
|
||||
%patch10 -p1
|
||||
%patch21 -p1
|
||||
%patch25
|
||||
%patch26
|
||||
%patch31
|
||||
%patch35
|
||||
%patch36
|
||||
%patch37
|
||||
# some cleanup
|
||||
find . -name .cvsignore -type f -print0 | xargs -0 rm -f
|
||||
@@ -159,7 +158,10 @@ touch Parser/asdl* Python/Python-ast.c Include/Python-ast.h
|
||||
########################################
|
||||
# compile
|
||||
########################################
|
||||
make %{?jobs:-j%jobs} DESTDIR=$RPM_BUILD_ROOT
|
||||
LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH \
|
||||
make %{?jobs:-j%jobs} \
|
||||
DESTDIR=$RPM_BUILD_ROOT \
|
||||
profile-opt
|
||||
|
||||
%check
|
||||
# on hppa, the threading of glibc is quite broken. The tests just stop
|
||||
@@ -194,6 +196,7 @@ make \
|
||||
# install site-specific tweaks
|
||||
ln -s python%{python_version} ${RPM_BUILD_ROOT}%{_bindir}/python2
|
||||
install -m 644 %{S:13} ${RPM_BUILD_ROOT}%{_libdir}/python%{python_version}/distutils
|
||||
install -m 644 %{S:14} ${RPM_BUILD_ROOT}%{_libdir}/python%{python_version}/site-packages
|
||||
install -d -m 755 ${RPM_BUILD_ROOT}/etc/rpm
|
||||
install -m 644 %{S:1} ${RPM_BUILD_ROOT}/etc/rpm
|
||||
########################################
|
||||
@@ -298,6 +301,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/python%{python_version}/wsgiref
|
||||
%dir %{_libdir}/python%{python_version}/site-packages
|
||||
%{_libdir}/python%{python_version}/site-packages/README
|
||||
%{_libdir}/python%{python_version}/site-packages/_local.pth
|
||||
%dir %{_libdir}/python%{python_version}/lib-dynload
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_bisect.so
|
||||
%{_libdir}/python%{python_version}/lib-dynload/_bytesio.so
|
||||
@@ -354,7 +358,8 @@ 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-%{version}-py%{python_version}.egg-info
|
||||
%{_libdir}/python%{python_version}/lib-dynload/%{tarname}-py%{python_version}.egg-info
|
||||
# these modules don't support 64-bit arches (disabled by setup.py)
|
||||
%ifnarch alpha ia64 x86_64 s390x ppc64
|
||||
# requires sizeof(int) == sizeof(long) == sizeof(char*)
|
||||
@@ -368,6 +373,15 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_bindir}/python2
|
||||
|
||||
%changelog
|
||||
* Thu Oct 09 2008 matejcik@suse.cz
|
||||
- update to 2.6 final (version name is 2.6.0 to make upgrade from
|
||||
2.6rc2 possible)
|
||||
- replaced site.py hack with a .pth file to do the same thing
|
||||
(cleaner solution that doesn't mess up documented behavior
|
||||
and also fixes virtualenv, bnc#430761)
|
||||
- enabled profile optimized build
|
||||
- fixed %%py_requires macro (bnc#346490)
|
||||
- provide %%name = 2.6
|
||||
* Fri Sep 19 2008 matejcik@suse.cz
|
||||
- moved tests to %%check section
|
||||
- update to 2.6rc2
|
||||
|
||||
Reference in New Issue
Block a user