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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:42:51 CET 2015


commit 32d3e8a0b13d7738857270fdc2d07138c247a0c9
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-rtslib-fb.spec | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-rtslib-fb.spec b/python-rtslib-fb.spec
index e8d083d..17bbd52 100644
--- a/python-rtslib-fb.spec
+++ b/python-rtslib-fb.spec
@@ -42,11 +42,11 @@ generic SCSI target, present in 3.x Linux kernel versions.
 
 %build
 %if %{with python2}
-%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%py_build %{?with_tests:test}
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%py3_build %{?with_tests:test}
 %endif
 
 %install
@@ -54,21 +54,13 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_mandir}/man{5,8}
 
 %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
 
 cp doc/*.5 $RPM_BUILD_ROOT%{_mandir}/man5/
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-rtslib-fb.git/commitdiff/32d3e8a0b13d7738857270fdc2d07138c247a0c9



More information about the pld-cvs-commit mailing list