File python-tag.spec of Package python-tag
# vim: set ts=4 sw=4 et:
# Copyright (c) 2007-2008 oc2pus
# Copyright (c) 2010 Pascal Bleser <pascal.bleser@opensuse.org>
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to packman@links2linux.de
Summary: TagPy is a set of Python bindings) for taglib
Name: python-tag
Version: 0.94.8
Release: 0.pm.1.1
Source: http://pypi.python.org/packages/source/t/tagpy/tagpy-%{version}.tar.gz
License: BSD (revised)
Group: Development/Languages/Python
URL: http://news.tiker.net/software/tagpy
%py_requires
BuildRequires: boost-devel
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: python-devel
BuildRequires: python-distribute
BuildRequires: taglib-devel >= 1.4
Requires: taglib >= 1.4
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
TagPy is a Python crust (or a set of Python bindings) for Scott
Wheeler's TagLib.
Just like TagLib, TagPy can:
* read and write ID3 tags of version 1 and 2, with many supported
frame types for version 2 (in MPEG Layer 2 and MPEG Layer 3, FLAC
and MPC)
* access Xiph Comments in Ogg Vorbis Files and Ogg Flac Files
* access APE tags in Musepack and MP3 files.
All these have their own specific interfaces, but TagLib's generic
tag reading and writing mechanism is also supported.
Authors:
--------
Andreas Kloeckner <inform@tiker.net>
%prep
%setup -q -n "tagpy-%{version}"
%build
%__sed -i -e "s|boost_python|%{_libdir}/boost_python|g" setup.py
./configure.py \
%if %suse_version == 1100
--boost-inc-dir=./ \
%endif
--boost-python-libname=boost_python
CFLAGS="%{optflags} `pkg-config --cflags taglib`" \
%__python setup.py build
%install
%__python setup.py install \
--root=%{buildroot} \
--prefix=%{_prefix} \
--record-rpm=files.lst
%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
%files -f files.lst
%defattr(-,root,root,-)
%doc README LICENSE
%changelog
* Wed Dec 1 2010 pascal.bleser@opensuse.org
- update to 0.94.8
* Sat Nov 21 2009 pascal@links2linux.de
- update to 0.94.7
- not built on 11.0, boost too old there
* Mon Dec 15 2008 toni@links2linux.de
- rebuild to use correct boost(-devel) on build-server
* Mon Dec 8 2008 toni@links2linux.de
- update to 0.94.5
* Fri May 2 2008 toni@links2linux.de
- update to 0.94.1
* Sat Apr 28 2007 toni@links2linux.de
- update to 0.91
* Sun Apr 15 2007 toni@links2linux.de
- Initial build 0.90.1