[packages/python-inet_diag] automatic change: use py_build/py_install macros

jajcus jajcus at pld-linux.org
Sat Nov 28 18:26:20 CET 2015


commit e4bd550a42143f3fdef1d529f275f5b52da1e64d
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-inet_diag.spec | 20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)
---
diff --git a/python-inet_diag.spec b/python-inet_diag.spec
index 375a367..cab074f 100644
--- a/python-inet_diag.spec
+++ b/python-inet_diag.spec
@@ -49,15 +49,11 @@ odpytywanie stanu gniazd AF_INET.
 
 %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
 
 %install
@@ -65,19 +61,11 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_sbindir}
 
 %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
 
 cp -p psk.py $RPM_BUILD_ROOT%{_sbindir}/psk
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-inet_diag.git/commitdiff/e4bd550a42143f3fdef1d529f275f5b52da1e64d



More information about the pld-cvs-commit mailing list