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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:40:55 CET 2015


commit 21c6c84695fe003225ce167368c0e2b2dba6dfe9
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-pyv4l.spec | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/python-pyv4l.spec b/python-pyv4l.spec
index 3d0dd29..e5f113b 100644
--- a/python-pyv4l.spec
+++ b/python-pyv4l.spec
@@ -30,15 +30,13 @@ wygodny interfejs obiektowy do funkcji Video 4 Linux.
 %build
 CFLAGS="%{rpmcflags}" \
 LDFLAGS="-L/usr/X11R6/%{_lib}" \
-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
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 install examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyv4l.git/commitdiff/21c6c84695fe003225ce167368c0e2b2dba6dfe9



More information about the pld-cvs-commit mailing list