%define name pyvorbis %define version 1.5 %define prerel a %define release %mkrel 0.%prerel.5 %define pyoggversion 1.3 Summary: A wrapper for the Vorbis libraries Name: %{name} Version: %{version} Release: %{release} Source0: http://ekyo.nerim.net/software/pyogg/%{name}-%{version}%{prerel}.tar.gz #gw from Debian: fix Unicode in VorbisComment, add pyao support to the example Patch: pyvorbis-1.3-unicode.patch Patch1: pyvorbis-1.5a-python2.5.patch # fix linking with libogg Patch2: pyvorbis-1.5a-fix_linking.patch License: LGPL Group: Development/Python BuildRequires: libvorbis-devel BuildRequires: libpython-devel BuildRequires: pyogg >= %pyoggversion Requires: pyogg >= %pyoggversion Url: http://ekyo.nerim.net/software/pyogg/index.html %description pyvorbis - a Python wrapper for the Ogg/Vorbis library Ogg/Vorbis is available at http://www.xiph.org This is the Vorbis module. You will need to download and install the Python ogg module (available wherever you got this) before you can build the vorbis module. %prep %setup -q -n %name-%version%prerel %patch -p1 -b .unicode %patch1 -p1 -b .python2.5 %patch2 -p0 %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 ChangeLog NEWS %py_platsitedir/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 1.5-0.a.5.mga3 + Revision: 379769 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Mar 29 2011 misc <misc> 1.5-0.a.4.mga1 + Revision: 78773 - fix build and underlinking issue, patch 2 + ennael <ennael> - clean spec file + grenoya <grenoya> - imported package pyvorbis