[packages/python-pycups] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:37:06 CET 2015
commit f3e9c3e59b481ccd25b5aabc542bda21b423abae
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-pycups.spec | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-pycups.spec b/python-pycups.spec
index a8161ad..563052c 100644
--- a/python-pycups.spec
+++ b/python-pycups.spec
@@ -71,14 +71,14 @@ Dokumentacja do pycupsa.
%if %{with python2}
CC="%{__cc}" \
CFLAGS="%{rpmcflags} -fno-strict-aliasing" \
-%{__python} setup.py build \
+%py_build \
--build-base build-2
%endif
%if %{with python3}
CC="%{__cc}" \
CFLAGS="%{rpmcflags} -fno-strict-aliasing" \
-%{__python3} setup.py build \
+%py3_build \
--build-base build-3
%endif
@@ -88,20 +88,12 @@ CFLAGS="%{rpmcflags} -fno-strict-aliasing" \
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
%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-pycups.git/commitdiff/f3e9c3e59b481ccd25b5aabc542bda21b423abae
More information about the pld-cvs-commit
mailing list