[packages/python-gevent] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:24:47 CET 2015
commit 37c131a9cef412f27fdb3737d4f1c317f0d89106
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-gevent.spec | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-gevent.spec b/python-gevent.spec
index 1a0fbb2..02f5e1f 100644
--- a/python-gevent.spec
+++ b/python-gevent.spec
@@ -92,7 +92,7 @@ CC="%{__cc}" \
CFLAGS="%{rpmcflags}" \
%{?with_system_libev:LIBEV_EMBED=false} \
%{?with_system_c_ares:CARES_EMBED=false} \
-%{__python} setup.py build --build-base build-2
+%py_build
%if %{with tests}
cd greentest
@@ -106,7 +106,7 @@ CC="%{__cc}" \
CFLAGS="%{rpmcflags}" \
%{?with_system_libev:LIBEV_EMBED=false} \
%{?with_system_c_ares:CARES_EMBED=false} \
-%{__python3} setup.py build --build-base build-3
+%py3_build
%if %{with tests}
cd greentest
@@ -121,11 +121,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%{?with_system_libev:LIBEV_EMBED=false} \
%{?with_system_c_ares:CARES_EMBED=false} \
-%{__python} setup.py \
- build --build-base build-2 \
- install --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
%py_postclean
%endif
@@ -133,11 +129,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python3}
%{?with_system_libev:LIBEV_EMBED=false} \
%{?with_system_c_ares:CARES_EMBED=false} \
-%{__python3} setup.py \
- build --build-base build-3 \
- install --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py3_install
%endif
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-gevent.git/commitdiff/37c131a9cef412f27fdb3737d4f1c317f0d89106
More information about the pld-cvs-commit
mailing list