[packages/python-twisted] automatic change: use py_build/py_install macros

jajcus jajcus at pld-linux.org
Sat Nov 28 18:47:03 CET 2015


commit 5f0dc4852093bd2d3ac8bef9a7c495734d249c85
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Nov 28 18:06:44 2015 +0100

    automatic change: use py_build/py_install macros

 python-twisted.spec | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-twisted.spec b/python-twisted.spec
index 3d4d35f..6d69778 100644
--- a/python-twisted.spec
+++ b/python-twisted.spec
@@ -60,7 +60,7 @@ servers, mail servers and more.
 %build
 CC="%{__cc}" \
 CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%{__python} setup.py build
+%py_build
 
 %if %{with tests}
 # bin/trial twisted
@@ -70,10 +70,7 @@ CFLAGS="%{rpmcppflags} %{rpmcflags}" \
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 %{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/twisted/*/test
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-twisted.git/commitdiff/5f0dc4852093bd2d3ac8bef9a7c495734d249c85



More information about the pld-cvs-commit mailing list