Nowy spec do CDDB
Adapterized, sorry :]
-- z wyrazami szacunku, Jakub Piotr CÅapa
# $Revision: $, $Date: $ %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}/*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <[EMAIL PROTECTED]>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log: $
__________________________________________________________ nie pytaj co inni zrobili dla pld, pomysl ile sam zrobiles
