[packages/BitTornado] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 19:20:33 CET 2015
commit 9d9e4ee13737e386a5a33db6ccc433e8822a13f4
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 19:20:07 2015 +0100
automatic change: use py_build/py_install macros
BitTornado.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/BitTornado.spec b/BitTornado.spec
index 0fd7ce3..243c1b1 100644
--- a/BitTornado.spec
+++ b/BitTornado.spec
@@ -59,7 +59,7 @@ find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_mandir}/man1
-python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
+%py_install
find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
install docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/BitTornado.git/commitdiff/9d9e4ee13737e386a5a33db6ccc433e8822a13f4
More information about the pld-cvs-commit
mailing list