From: undefine Date: Fri, 20 Feb 2004 22:54:25 +0000 (+0000) Subject: - initital version by Jakub Piotr Cłapa X-Git-Tag: auto/ac/python-CDDB-1_4-1~1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=ebeaabae838b6f86dd691df4208d5e9ba0cb65e1;p=packages%2Fpython-CDDB.git - initital version by Jakub Piotr Cłapa Changed files: python-CDDB.spec -> 1.1 --- ebeaabae838b6f86dd691df4208d5e9ba0cb65e1 diff --git a/python-CDDB.spec b/python-CDDB.spec new file mode 100644 index 0000000..3de3338 --- /dev/null +++ b/python-CDDB.spec @@ -0,0 +1,56 @@ +%define module CDDB + +Summary: Module for accessing CDDB and FreeDB +Summary(pl): Modu³ do ³±czenia z bazami CDDB i FreeDB +Name: python-%{module} +Version: 1.4 +Release: 0.1 +License: GNU +Group: Development/Languages/Python +Source0: http://cddb-py.sourceforge.net/%{module}-%{version}.tar.gz +# Source0-md5: 254698082bafe3030d07d88fb7e13fe2 +URL: http://cddb-py.sourceforge.net/ +%pyrequires_eq python-modules +BuildRequires: python-devel >= 2.3 +BuildRequires: rpm-pythonprov +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This is a set of three modules to access the CDDB and FreeDB online +databases of audio CD track titles and information. It includes a C +extension module to fetch track lengths under Linux, FreeBSD, OpenBSD, +Mac OS X, Solaris, and Win32, which is easily ported to other +operating systems. + +%description -l pl +Jest to zestaw trzech modu³ów umo¿liwiaj±cych po³±czenie z bazami CDDB +i FreeDB. Pakiet zawiera te¿ modu³ w C do wyci±gania d³ugo¶ci ¶cie¿ek. + +%prep +%setup -q -n %{module}-%{version} + +%build +CFLAGS="%{rpmcflags}" +export CLFAGS +python setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{py_sitedir} +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +install cddb-info.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +python setup.py install \ + --root=$RPM_BUILD_ROOT --optimize=2 + +rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.py + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README CHANGES COPYING +%{py_sitedir}/*.py[co] +%{py_sitedir}/cdrom.so +%dir %{_examplesdir}/%{name}-%{version} +%{_examplesdir}/%{name}-%{version}/*