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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:22:15 CET 2015


commit e31ddc2345133ddacb7086317b30d01bc74a9f4b
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-elftools.spec | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-elftools.spec b/python-elftools.spec
index d2b68b1..20705c0 100644
--- a/python-elftools.spec
+++ b/python-elftools.spec
@@ -59,7 +59,7 @@ informacji dla debuggera DWARF.
 
 %build
 %if %{with python2}
-%{__python} setup.py build --build-base build-2
+%py_build
 
 %if %{with tests}
 %{__python} ./test/all_tests.py
@@ -67,7 +67,7 @@ informacji dla debuggera DWARF.
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%py3_build %{?with_tests:test}
 
 %if %{with tests}
 %{__python3} ./test/all_tests.py
@@ -78,21 +78,13 @@ informacji dla debuggera DWARF.
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py \
-	build --build-base build-2 \
-	install --skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-	build --build-base build-3 \
-	install --skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 # readelf clone example
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-elftools.git/commitdiff/e31ddc2345133ddacb7086317b30d01bc74a9f4b



More information about the pld-cvs-commit mailing list