[packages/python-prctl] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:34:53 CET 2015
commit bf5b9add45ddb8bc0ad6e1464dcccd51ba4cb5a3
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:43 2015 +0100
automatic change: use py_build/py_install macros
python-prctl.spec | 20 ++++----------------
1 file changed, 4 insertions(+), 16 deletions(-)
---
diff --git a/python-prctl.spec b/python-prctl.spec
index 202ab90..7ab3883 100644
--- a/python-prctl.spec
+++ b/python-prctl.spec
@@ -57,15 +57,11 @@ Dokumentacja API %{module}.
%build
%if %{with python2}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build --build-base build-2
+%py_build
%endif
%if %{with python3}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python3} setup.py build --build-base build-3
+%py3_build
%endif
%if %{with doc}
@@ -78,21 +74,13 @@ rm -rf _build/html/_sources
rm -rf $RPM_BUILD_ROOT
%if %{with python2}
-%{__python} setup.py \
- build --build-base build-2 \
- install --skip-build \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py_install
%py_postclean
%endif
%if %{with python3}
-%{__python3} setup.py \
- build --build-base build-3 \
- install --skip-build \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py3_install
%endif
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-prctl.git/commitdiff/bf5b9add45ddb8bc0ad6e1464dcccd51ba4cb5a3
More information about the pld-cvs-commit
mailing list