forked from pool/python
This commit is contained in:
parent
eed0cf819e
commit
5ea972e63f
@ -1,2 +1,6 @@
|
||||
[build_py]
|
||||
optimize=0
|
||||
|
||||
[install]
|
||||
prefix=/usr/local
|
||||
optimize=0
|
||||
|
@ -17,7 +17,7 @@ Group: Development/Languages/Python
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Summary: Additional Package Documentation for Python.
|
||||
Version: 2.5.1
|
||||
Release: 15
|
||||
Release: 19
|
||||
%define pyver %{version}
|
||||
BuildArch: noarch
|
||||
%define tarname Python-%{pyver}
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 3 15:25:32 CEST 2007 - jmatejek@suse.cz
|
||||
|
||||
- replaced duplicate files with hardlinks
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 27 14:51:03 CEST 2007 - jmatejek@suse.cz
|
||||
|
||||
|
13
python.spec
13
python.spec
@ -11,8 +11,8 @@
|
||||
# norootforbuild
|
||||
|
||||
Name: python
|
||||
BuildRequires: blt db-devel gcc-c++ gdbm-devel gmp-devel libbz2-devel ncurses-devel openssl-devel readline-devel sqlite-devel tk-devel xorg-x11-devel
|
||||
Requires: openssl >= 0.9.8e
|
||||
BuildRequires: blt db-devel fdupes gcc-c++ gdbm-devel gmp-devel libbz2-devel libopenssl-devel ncurses-devel readline-devel sqlite-devel tk-devel xorg-x11-devel
|
||||
#Requires: openssl >= 0.9.8e
|
||||
URL: http://www.python.org/
|
||||
License: X11/MIT, PSF LICENSE AGREEMENT FOR PYTHON 2.3
|
||||
Group: Development/Languages/Python
|
||||
@ -20,7 +20,7 @@ Autoreqprov: on
|
||||
Obsoletes: python-nothreads python21
|
||||
Summary: Python Interpreter
|
||||
Version: 2.5.1
|
||||
Release: 18
|
||||
Release: 23
|
||||
%define tarname Python-%{version}
|
||||
Source0: %{tarname}.tar.bz2
|
||||
Source6: README.SUSE
|
||||
@ -270,6 +270,11 @@ for dir in bin include %{_lib} ; do
|
||||
rm -f $RPM_BUILD_ROOT/%{_prefix}/$dir/python
|
||||
ln -s python%{python_version} $RPM_BUILD_ROOT/%{_prefix}/$dir/python
|
||||
done
|
||||
# replace duplicate .pyo/.pyc with hardlinks
|
||||
fdupes -qr1 $RPM_BUILD_ROOT/%{_libdir}/python%{python_version} | \
|
||||
grep '^.*py[oc] .*py[oc] $' | \
|
||||
sed -r 's#^(.*\.py)[oc] .+$#\1c \1o#' | \
|
||||
xargs -L 1 ln -f
|
||||
########################################
|
||||
# documentation
|
||||
########################################
|
||||
@ -461,6 +466,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%attr(755, root, root) %{_bindir}/smtpd.py
|
||||
|
||||
%changelog
|
||||
* Fri Aug 03 2007 - jmatejek@suse.cz
|
||||
- replaced duplicate files with hardlinks
|
||||
* Fri Jul 27 2007 - jmatejek@suse.cz
|
||||
- removed emacs python-mode and dependency on emacs
|
||||
* Fri Jun 08 2007 - jmatejek@suse.cz
|
||||
|
Loading…
x
Reference in New Issue
Block a user