[skel] Fix rpm's .spec file skeleton
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 07 Feb 2017 10:37:37 +0100
changeset 11978 9d27e426adc2
parent 11977 6eb79532af12
child 11979 c93b47ba0093
[skel] Fix rpm's .spec file skeleton It's broken for new-style packages since it doesn't consider (even remove) python packages.
cubicweb/skeleton/DISTNAME.spec.tmpl
--- a/cubicweb/skeleton/DISTNAME.spec.tmpl	Thu Feb 23 17:36:11 2017 +0100
+++ b/cubicweb/skeleton/DISTNAME.spec.tmpl	Tue Feb 07 10:37:37 2017 +0100
@@ -35,13 +35,10 @@
 
 %%install
 %%{__python} setup.py --quiet install --no-compile --prefix=%%{_prefix} --root="$RPM_BUILD_ROOT"
-# remove generated .egg-info file
-rm -rf $RPM_BUILD_ROOT/usr/lib/python*
-
 
 %%clean
 rm -rf $RPM_BUILD_ROOT
 
 %%files
 %%defattr(-, root, root)
-%%{_prefix}/share/cubicweb/cubes/*
+%%{_python_sitelib}/*