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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:37:57 CET 2015


commit 859cf23398fc833748f4760276575b4db47f9113
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-pygit2.spec | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/python-pygit2.spec b/python-pygit2.spec
index eccb48c..430a696 100644
--- a/python-pygit2.spec
+++ b/python-pygit2.spec
@@ -72,19 +72,19 @@ Dokumentacja API %{module}.
 %{__rm} test/test_{credentials,repository}.py
 
 %build
-%{__python} setup.py build --build-base build-2
+%py_build
 %if %{with python3}
-%{__python3} setup.py build --build-base build-3
+%py3_build
 %endif
 
-%{?with_tests:%{__python} setup.py build -b build-2 test}
+%{?with_tests:%py_build test}
 
 %if %{with python3}
 %{__python3} setup.py \
 	build -b build-3
 
 %if %{with tests}
-%{__python3} setup.py build -b build-3 test
+%py3_build test
 %endif
 %endif
 
@@ -106,11 +106,7 @@ rm -rf $RPM_BUILD_ROOT
 %py_postclean
 
 %if %{with python3}
-%{__python3} setup.py \
-	build --build-base build-3 \
-	install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2
+%py3_install
 %endif
 
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pygit2.git/commitdiff/859cf23398fc833748f4760276575b4db47f9113



More information about the pld-cvs-commit mailing list