]> git.pld-linux.org Git - packages/python-affinity.git/blobdiff - python-affinity.spec
automatic change: use py_build/py_install macros
[packages/python-affinity.git] / python-affinity.spec
index f2d54a8c222d85233967d8feb3de9a72974d4a66..be121a5cd2f0dc532106de9b4e885fa5fe577720 100644 (file)
@@ -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}
This page took 0.059975 seconds and 4 git commands to generate.