%define name pymad %define version 0.5.4 %define release %mkrel 3 Summary: A wrapper for the MAD MPEG Audio decoder library Name: %{name} Version: %{version} Release: %{release} Source0: http://spacepants.org/src/pymad/download/%{name}-%{version}.tar.bz2 License: GPL Group: Development/Python BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: libmad-devel BuildRequires: libpython-devel Url: http://spacepants.org/src/pymad/ %description pymad - a Python wrapper for the MPEG Audio Decoder library MAD is available at http://www.mars.org/home/rob/proj/mpeg/ Access this module via "import mad" or "from mad import *". To decode an mp3 stream, you'll want to create a MadFile object and read data from that. You can then write the data to a sound device. See the example program in test/ for a simple mp3 player that uses libao for the sound device. %prep %setup -q %build python config_unix.py python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install --root=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README AUTHORS NEWS THANKS %py_platsitedir/* %changelog * Tue Nov 28 2006 Götz Waschk <waschk@mandriva.org> 0.5.4-3mdv2007.0 + Revision: 88190 - Import pymad * Tue Nov 28 2006 Götz Waschk <waschk@mandriva.org> 0.5.4-3mdv2007.1 - update file list * Wed Jun 28 2006 Götz Waschk <waschk@mandriva.org> 0.5.4-2mdv2007.0 - Rebuild * Mon Jun 27 2005 Götz Waschk <waschk@mandriva.org> 0.5.4-1mdk - New release 0.5.4 * Mon Apr 25 2005 Götz Waschk <waschk@mandriva.org> 0.5.3-1mdk - New release 0.5.3 * Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.5.2-2mdk - Rebuild for new python * Fri Nov 5 2004 Goetz Waschk <waschk@linux-mandrake.com> 0.5.2-1mdk - New release 0.5.2 * Tue Oct 7 2003 Götz Waschk <waschk@linux-mandrake.com> 0.5.1-1mdk - fix file list - new version * Fri Aug 29 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4.1-1mdk - initial package