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 <>
# 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

Name:           python-tagpy
Version:        2013.1
Release:        1.1
Summary:        Python Bindings for TagLib
Patch1:         python-tagpy-no_sleep.patch
Patch2:         python-tagpy-remove_ccopt.patch
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}
Requires:       python

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.

%setup -q -n "tagpy-%{version}"

%__python ./ \
    --python-exe="%__python" \
    --prefix="%{_prefix}" \
    --taglib-inc-dir="%{_includedir}/taglib" \

%__python ./ build

%__python ./ install \
    --prefix="%{_prefix}" \
    --root="%{buildroot}" \

%{?buildroot:%__rm -rf "%{buildroot}"}

%files -f files.lst

* Thu Dec 27 2012
- Update to version 2013.1
  * Fixed compatibility with taglib 1.8
  * Switch to using explicit taglib prefix
  * Some minor fixes
- Remove patch python-tagpy-taglib18_compat.patch:
  Upstream fix applied
- Rebased patch python-tagpy-remove_ccopt.patch
- Rebased patch python-tagpy-no_sleep.patch
* Thu Nov  8 2012
- Add patch python-tagpy-taglib18_compat.patch:
  Makes tagpy build with taglib 1.8, now ID3v2::Tag::render is
- Add explicit dependency on python-base
* Sun Feb 26 2012
- initial version (0.94.8)