-# 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
# 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
%defattr(644,root,root,755)
%doc ChangeLog README
%{py_sitescriptdir}/*
-%{py_sitedir}/*