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

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


commit 1456ff31fd06f824035fa4af9b282c049d606a2b
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-sqlite1.spec | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-sqlite1.spec b/python-sqlite1.spec
index e8fc2da..7c886c7 100644
--- a/python-sqlite1.spec
+++ b/python-sqlite1.spec
@@ -44,16 +44,13 @@ podanego w definicji tabeli.
 %setup -q -n pysqlite
 
 %build
-CFLAGS="%{rpmcflags}"
-export CFLAGS
-python setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}}
 
-python setup.py install \
-	--root=$RPM_BUILD_ROOT --optimize=2
+%py_install
 
 rm -f $RPM_BUILD_ROOT%{py_sitedir}/%{module}/*.py
 cp -aR examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sqlite1.git/commitdiff/1456ff31fd06f824035fa4af9b282c049d606a2b



More information about the pld-cvs-commit mailing list