[projects/template-specs] restore %py_ocomp/%py_comp samples
glen
glen at pld-linux.org
Mon Feb 22 23:19:22 CET 2016
commit caefe7e730beaf06e4d6241c51c34c00bd60703b
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Feb 23 00:19:17 2016 +0200
restore %py_ocomp/%py_comp samples
python.spec | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/python.spec b/python.spec
index 32fea52..960ba8c 100644
--- a/python.spec
+++ b/python.spec
@@ -93,6 +93,12 @@ rm -rf $RPM_BUILD_ROOT
%py_install
%py_postclean
+
+# when files are installed in other way that standard 'setup.py
+# they need to be (re-)compiled
+# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
%endif
%if %{with python3}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/caefe7e730beaf06e4d6241c51c34c00bd60703b
More information about the pld-cvs-commit
mailing list