SPECS: python-setuptools.spec - fix
arekm
arekm at pld-linux.org
Sat Dec 10 22:57:22 CET 2005
Author: arekm Date: Sat Dec 10 21:57:21 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- fix
---- Files affected:
SPECS:
python-setuptools.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/python-setuptools.spec
diff -u SPECS/python-setuptools.spec:1.2 SPECS/python-setuptools.spec:1.3
--- SPECS/python-setuptools.spec:1.2 Fri Dec 9 21:39:16 2005
+++ SPECS/python-setuptools.spec Sat Dec 10 22:57:14 2005
@@ -11,6 +11,7 @@
Source0: http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}.zip
# Source0-md5: 3eecdf66c1a2cf8a6556bc00b69d572a
URL: http://peak.telecommunity.com/DevCenter/setuptools
+BuildRequires: findutils
%pyrequires_eq python
BuildRequires: python-devel
BuildRequires: unzip
@@ -36,6 +37,13 @@
python ./setup.py install \
--optimize 2 \
--root=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name '*.pyc' -exec rm "{}" ";"
+find $RPM_BUILD_ROOT -type f -name '*.pyo' -exec rm "{}" ";"
+find $RPM_BUILD_ROOT -type f -exec sed -i -e "s#$RPM_BUILD_ROOT##g" "{}" ";"
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_postclean
echo '%{module}-%{version}-py%{py_ver}.egg' > $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}.pth
@@ -55,6 +63,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2005/12/10 21:57:14 arekm
+- fix
+
Revision 1.2 2005/12/09 20:39:16 arekm
- --root option casuses that pth file is not created; create manually
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/python-setuptools.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list