]> git.pld-linux.org Git - packages/python-ID3.git/commitdiff
automatic change: use py_build/py_install macros
authorJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 17:06:41 +0000 (18:06 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 17:06:41 +0000 (18:06 +0100)
python-ID3.spec

index 5663651cc2268f0c1ae6473e4e2b3e1bdf663a88..31cdabeac2b53f559410684f09deb63ef8cef4b0 100644 (file)
@@ -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
 
This page took 0.138577 seconds and 4 git commands to generate.