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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:14:31 CET 2015


commit 148b8dd6ca05a9f61f7a489ba03f64ef894c7d62
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Nov 28 18:06:42 2015 +0100

    automatic change: use py_build/py_install macros

 python-affinity.spec | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/python-affinity.spec b/python-affinity.spec
index f2d54a8..be121a5 100644
--- a/python-affinity.spec
+++ b/python-affinity.spec
@@ -27,18 +27,13 @@ by wrapping the specific underlying function calls of each platform.
 %setup -q -n %{module}-%{version}
 
 %build
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build
+%py_build
 
 %{?with_tests:%{__python} setup.py test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-affinity.git/commitdiff/148b8dd6ca05a9f61f7a489ba03f64ef894c7d62



More information about the pld-cvs-commit mailing list