]> git.pld-linux.org Git - packages/python-CDDB.git/blobdiff - python-CDDB.spec
automatic change: use py_build/py_install macros
[packages/python-CDDB.git] / python-CDDB.spec
index dd7341dc4520f4f9e59f4d3a05699ee50817f9bb..84b43c8dcf5e047b285f5445b27cc88580d8e366 100644 (file)
@@ -4,7 +4,7 @@ Summary:        Module for accessing CDDB and FreeDB
 Summary(pl.UTF-8):     Moduł dostępu do baz CDDB i FreeDB
 Name:          python-%{module}
 Version:       1.4
-Release:       5
+Release:       7
 License:       GPL
 Group:         Libraries/Python
 Source0:       http://cddb-py.sourceforge.net/%{module}-%{version}.tar.gz
@@ -34,17 +34,13 @@ pod Linuksem, FreeBSD, OpenBSD, MacOS X, Solarisem i Win32.
 %setup -q -n %{module}-%{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},%{_examplesdir}/%{name}-%{version}}
 
-python setup.py install \
-       --root=$RPM_BUILD_ROOT \
-       --optimize=2
+%py_install
 
 install cddb-info.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
This page took 0.048556 seconds and 4 git commands to generate.