]> git.pld-linux.org Git - packages/python-setuptools.git/commitdiff
- fix
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 10 Dec 2005 21:57:14 +0000 (21:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-setuptools.spec -> 1.3

python-setuptools.spec

index 17491bc86cbf175f86e0da25d543b8a89515fe94..e1b1cb617c1660f2aac7ced16989e5b3bde87b63 100644 (file)
@@ -10,6 +10,7 @@ Group:                Development/Languages/Python
 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
@@ -35,6 +36,13 @@ rm -rf $RPM_BUILD_ROOT
 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
This page took 0.088884 seconds and 4 git commands to generate.