File python-tagpy.spec of Package python-tagpy
#
# spec file for package python-tagpy
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-tagpy
Version: 2013.1
Release: 0
Summary: Python Bindings for TagLib
Source: http://pypi.python.org/packages/source/t/tagpy/tagpy-%{version}.tar.gz
Patch1: python-tagpy-no_sleep.patch
Patch2: python-tagpy-remove_ccopt.patch
Url: http://mathema.tician.de/software/tagpy
Group: Development/Libraries/Python
License: MIT
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libtag-devel
BuildRequires: boost-devel
BuildRequires: python-distribute
BuildRequires: python-devel
BuildRequires: gcc-c++ glibc-devel make pkgconfig
BuildRequires: autoconf automake libtool
BuildRequires: update-desktop-files
%if 0%{?suse_version}
%py_requires
%else
Requires: python
%endif
%description
TagPy is a set of Python bindings for Scott Wheeler's TagLib. It builds upon
Boost.Python, a wrapper generation library which is part of the renowned Boost
set of C++ libraries.
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 features have their own specific interfaces, but TagLib's generic tag
reading and writing mechanism is also supported.
%prep
%setup -q -n "tagpy-%{version}"
%patch1
%patch2
%build
%__python ./configure.py \
--python-exe="%__python" \
--prefix="%{_prefix}" \
--taglib-inc-dir="%{_includedir}/taglib" \
--boost-python-libname="boost_python-mt"
%__python ./setup.py build
%install
%__python ./setup.py install \
--prefix="%{_prefix}" \
--root="%{buildroot}" \
--record-rpm=files.lst
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f files.lst
%defattr(-,root,root)
%doc LICENSE
%changelog