From 148b8dd6ca05a9f61f7a489ba03f64ef894c7d62 Mon Sep 17 00:00:00 2001 From: Jacek Konieczny Date: Sat, 28 Nov 2015 18:06:42 +0100 Subject: [PATCH] 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} -- 2.44.0