]> git.pld-linux.org Git - packages/python-logilab-common.git/commitdiff
- single package cannot be installed< and %{py_sitesciptdir} at the same time\!
authorJacek Konieczny <jajcus@pld-linux.org>
Fri, 10 Sep 2004 10:19:34 +0000 (10:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-logilab-common.spec -> 1.17

python-logilab-common.spec

index 0db0b6d95efd99b2e4aa862a9cd39061e9a9e4f4..d793ed9344fda79659355197fab88f367386086e 100644 (file)
@@ -1,15 +1,10 @@
 
-# TODO:
-#      - check if %%{py_sitescriptdir} used here doesn't break other
-#        python-logilab packages
-#        (I changed sth. is this what author meant?)
-
 %define        module  common
 Summary:       Logilab common modules
 Summary(pl):   Wspólne modu³y Logilab
 Name:          python-logilab-common
 Version:       0.5.2
-Release:       2
+Release:       3
 License:       GPL
 Group:         Development/Languages/Python
 Source0:       ftp://ftp.logilab.fr/pub/common/%{module}-%{version}.tar.gz
@@ -46,13 +41,11 @@ python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
 # and some not, so they all provide the __init__.py and we
 # have to remove it in dependent software and create it
 # here
-for DIR in $RPM_BUILD_ROOT{%{py_sitescriptdir},%{py_sitedir}}; do
-touch $DIR/logilab/__init__.py
-%py_comp $DIR/logilab/
-%py_ocomp $DIR/logilab/
+touch $RPM_BUILD_ROOT%{py_sitescriptdir}/logilab/__init__.py
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}/logilab/
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}/logilab/
 
-find $DIR -name \*.py -exec rm -f {} \;
-done
+find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm -f {} \;
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -61,4 +54,3 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc ChangeLog README
 %{py_sitescriptdir}/*
-%{py_sitedir}/*
This page took 0.109382 seconds and 4 git commands to generate.