%define shortname tagpy %define subrel 1 Name: python-tagpy Version: 0.94.5 Release: %mkrel 2 Summary: Python bindings for TagLib to read and write music files tags License: BSD Group: Development/Python Url: http://news.tiker.net/software/tagpy Source0: http://news.tiker.net/news.tiker.net/download/software/tagpy/tagpy-%{version}.tar.gz Source1: tagpy-LICENSE Patch0: tagpy-0.94.5-baz.patch BuildRequires: python-setuptools BuildRequires: taglib-devel BuildRequires: boost-devel %description TagPy is a Python crust (or a set of Python bindings) for TagLib, which allows to read and write ID3 tags of version 1 and 2, access Xiph Comments in Ogg Vorbis Files and Ogg Flac Files and access APE tags in Musepack and MP3 files. %prep %setup -q -n %{shortname}-%{version} %patch0 -p1 -b .baz %{__install} -p -m 0644 %{SOURCE1} LICENSE %build ./configure --boost-python-libname=boost_python-mt CFLAGS="%{optflags} -I%{_includedir}/taglib" %{__python} setup.py build %install %{__rm} -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} %files %doc LICENSE README test/*.py test/tagrename %{py_platsitedir}/%{shortname}/ %{py_platsitedir}/_%{shortname}.so %{py_platsitedir}/%{shortname}-%{version}-py%{pyver}.egg-info %changelog * Wed Aug 24 2011 jquelin <jquelin> 0.94.5-2.1.mga1 + Revision: 135144 - bug#1576 - provide sonata - add python-tagpy to mageia 1 + fwang <fwang> - rebuild for new boost * Wed Jun 29 2011 jquelin <jquelin> 0.94.5-1.mga2 + Revision: 115623 - imported package python-tagpy * Wed Jun 29 2011 Jerome Quelin <jquelin@mageia.org> 0.94.5-1.mga2 - import from mandriva