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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:16:58 CET 2015


commit ab210708442d643381aa0f56ffe74c71d5401759
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-bsddb.spec | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-bsddb.spec b/python-bsddb.spec
index 04e2dc9..b6e3be3 100644
--- a/python-bsddb.spec
+++ b/python-bsddb.spec
@@ -80,15 +80,13 @@ załączonej dokumentacji lub na stronie WWW.
 
 %build
 %if %{with python2}
-env CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build -b build-2 \
+env %py_build \
 	--berkeley-db-libdir=%{_libdir} \
 	--berkeley-db=%{_prefix}
 %endif
 
 %if %{with python3}
-env CFLAGS="%{rpmcflags}" \
-%{__python3} setup.py build -b build-3 \
+env %py3_build \
 	--berkeley-db-libdir=%{_libdir} \
 	--berkeley-db=%{_prefix}
 %endif
@@ -97,10 +95,7 @@ env CFLAGS="%{rpmcflags}" \
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py build -b build-2 \
-	install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2 \
+%py_install \
 
 %py_postclean
 
@@ -110,10 +105,7 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build -b build-3 \
-	install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2 \
+%py3_install \
 
 # do not include in main package tests and devel headers
 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/bsddb3/tests
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-bsddb.git/commitdiff/ab210708442d643381aa0f56ffe74c71d5401759



More information about the pld-cvs-commit mailing list