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

jajcus jajcus at pld-linux.org
Sat Nov 28 18:09:15 CET 2015


commit 23e714af2cf6718624b235dd2eb59bcd7d54283d
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Nov 28 18:06:41 2015 +0100

    automatic change: use py_build/py_install macros

 python-ID3.spec | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/python-ID3.spec b/python-ID3.spec
index 5663651..31cdabe 100644
--- a/python-ID3.spec
+++ b/python-ID3.spec
@@ -46,18 +46,14 @@ proszeni są o kontakt z autorem.
 %setup -q -n id3-py-%{version}
 
 %build
-CFLAGS="%{rpmcflags}"
-export CFLAGS
-python setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{py_sitedir}
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 install id3-tagger.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-python setup.py install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2
+%py_install
 
 rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-ID3.git/commitdiff/23e714af2cf6718624b235dd2eb59bcd7d54283d



More information about the pld-cvs-commit mailing list