forked from pool/python-mutagen
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutagen?expand=0&rev=7
67 lines
2.2 KiB
RPMSpec
67 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-mutagen
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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-mutagen
|
|
Summary: Python module to Handle Audio Metadata
|
|
Version: 1.20
|
|
Release: 2
|
|
License: GPL-2.0
|
|
Group: Development/Libraries/Python
|
|
Url: http://code.google.com/p/mutagen/
|
|
Source: http://mutagen.googlecode.com/files/mutagen-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: dos2unix python-devel
|
|
%py_requires
|
|
%if %suse_version > 1110
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description
|
|
Mutagen is a Python module to handle audio metadata. It supports FLAC,
|
|
M4A, MP3, Ogg FLAC, Ogg Speex, Ogg Theora, Ogg Vorbis, True Audio, and
|
|
WavPack audio files. All versions of ID3v2 are supported, and all
|
|
standard ID3v2.4 frames are parsed. It can read Xing headers to
|
|
accurately calculate the bitrate and length of MP3s. ID3 and APEv2 tags
|
|
can be edited regardless of their audio format. It can also manipulate
|
|
Ogg streams on an individual packet/page level.
|
|
|
|
%prep
|
|
%setup -q -n mutagen-%{version}
|
|
dos2unix TUTORIAL
|
|
# remove shebangs from library files
|
|
find mutagen/ -name "*.py" -exec sed -i -e '/^#!\s\?\/usr\/bin\/\(env\s\)\?python$/d' {} ';'
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --root=$RPM_BUILD_ROOT --prefix="%{_prefix}" \
|
|
--record-rpm=INSTALLED_FILES
|
|
|
|
sed -i -e 's/\.1$/.1.gz/g' INSTALLED_FILES
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files -f INSTALLED_FILES
|
|
%defattr(-, root, root, 0755)
|
|
%doc API-NOTES COPYING NEWS README TODO TUTORIAL
|
|
|
|
%changelog
|