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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:45:32 CET 2015


commit 432bc1f57e58451f07007019555d1f7c5fb51e95
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Nov 28 18:06:44 2015 +0100

    automatic change: use py_build/py_install macros

 python-sqlite.spec | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-sqlite.spec b/python-sqlite.spec
index 623d732..6d468bd 100644
--- a/python-sqlite.spec
+++ b/python-sqlite.spec
@@ -37,17 +37,14 @@ podanego w definicji tabeli.
 %setup -q -n pysqlite-%{version}
 
 %build
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}}
 
 PYTHONPATH=$RPM_BUILD_ROOT%{py_sitedir} \
-	%{__python} setup.py install \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+	%py_install
 
 rm -rf $RPM_BUILD_ROOT%{py_sitedir}/pysqlite2/test/py25
 rm -rf $RPM_BUILD_ROOT%{py_sitedir}/pysqlite2/{,test/}*.py \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sqlite.git/commitdiff/432bc1f57e58451f07007019555d1f7c5fb51e95



More information about the pld-cvs-commit mailing list