Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 7324e66ba825cb8f49c547565e4fd17c > files > 2

pymad-0.5.2-2mdk.src.rpm

%define name pymad
%define version 0.5.2
%define release 2mdk

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
%_libdir/python%pyver/site-packages/madmodule.so

%changelog
* 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