2007-07-17 02:42:32 +00:00
|
|
|
#
|
2011-12-12 09:03:51 +00:00
|
|
|
# spec file for package python-mutagen
|
2007-07-17 02:42:32 +00:00
|
|
|
#
|
2017-01-26 09:13:45 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-07-17 02:42:32 +00:00
|
|
|
#
|
2009-06-18 15:36:23 +00:00
|
|
|
# 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.
|
|
|
|
|
|
2007-07-17 02:42:32 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2013-10-15 10:45:27 +00:00
|
|
|
|
2017-04-12 19:06:58 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2007-07-17 02:42:32 +00:00
|
|
|
Name: python-mutagen
|
Accepting request 480414 from home:alarrosa:branches:devel:languages:python
- update to version 1.37:
* Relicense "GPLv2" → "GPLv2 or later" :bug:`291`
* DSF: add `mutagen.dsf` module for DSF (DSD Stream File) support
:pr:`283` (Boris Pruessmann)
* MP3: Add `mp3.MPEGInfo.encoder_settings` containing a guess of the encoder
settings used, for example ``"-V2"`` for LAME :bug:`66`
* ID3: add iTunes movement related frames `id3.MVIN` and `id3.MVNM`
* MP4: support ``©mvi``, ``©mvc``, ``shwm``, ``stik``, ``rtng``, ``tves``,
``tvsn``, ``plID``, ``cnID``, ``geID``, ``atID``, ``sfID``, ``cmID``,
``akID`` :bug:`130`
- update to version 1.36.3:
* MP3: fix error with xing frames without a frame count :bug:`292`
- Run spec file through spec-cleaner
OBS-URL: https://build.opensuse.org/request/show/480414
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutagen?expand=0&rev=25
2017-03-21 16:15:46 +00:00
|
|
|
Version: 1.37
|
2013-10-13 12:12:34 +00:00
|
|
|
Release: 0
|
2008-01-17 23:30:36 +00:00
|
|
|
Summary: Python module to Handle Audio Metadata
|
Accepting request 480414 from home:alarrosa:branches:devel:languages:python
- update to version 1.37:
* Relicense "GPLv2" → "GPLv2 or later" :bug:`291`
* DSF: add `mutagen.dsf` module for DSF (DSD Stream File) support
:pr:`283` (Boris Pruessmann)
* MP3: Add `mp3.MPEGInfo.encoder_settings` containing a guess of the encoder
settings used, for example ``"-V2"`` for LAME :bug:`66`
* ID3: add iTunes movement related frames `id3.MVIN` and `id3.MVNM`
* MP4: support ``©mvi``, ``©mvc``, ``shwm``, ``stik``, ``rtng``, ``tves``,
``tvsn``, ``plID``, ``cnID``, ``geID``, ``atID``, ``sfID``, ``cmID``,
``akID`` :bug:`130`
- update to version 1.36.3:
* MP3: fix error with xing frames without a frame count :bug:`292`
- Run spec file through spec-cleaner
OBS-URL: https://build.opensuse.org/request/show/480414
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutagen?expand=0&rev=25
2017-03-21 16:15:46 +00:00
|
|
|
License: GPL-2.0+
|
2007-07-17 02:42:32 +00:00
|
|
|
Group: Development/Libraries/Python
|
2013-10-13 12:12:34 +00:00
|
|
|
Url: https://pypi.python.org/pypi/mutagen
|
2017-03-22 15:32:11 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/m/mutagen/mutagen-%{version}.tar.gz
|
2017-04-12 19:06:58 +00:00
|
|
|
# PATCH-FIX-OPENSUSE reduce-test-length.diff alarrosa@suse.com -- Reduce the number of iterations so tests don't take so long to finish
|
|
|
|
|
Patch0: reduce-test-length.diff
|
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2007-07-17 02:42:32 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-04-12 19:06:58 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
2007-07-17 02:42:32 +00:00
|
|
|
|
|
|
|
|
%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
|
2008-01-17 23:30:36 +00:00
|
|
|
can be edited regardless of their audio format. It can also manipulate
|
|
|
|
|
Ogg streams on an individual packet/page level.
|
2007-07-17 02:42:32 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n mutagen-%{version}
|
2017-01-26 09:13:45 +00:00
|
|
|
%patch0 -p1
|
2010-10-27 04:50:10 +00:00
|
|
|
# remove shebangs from library files
|
2015-04-03 17:24:46 +00:00
|
|
|
find mutagen/ -name "*.py" -exec sed -i -e '/^#!\s\?\/usr\/bin\/\(env\s\)\?python$/d' {} ';'
|
2007-07-17 02:42:32 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-04-12 19:06:58 +00:00
|
|
|
%python_build
|
2007-07-17 02:42:32 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-04-12 19:06:58 +00:00
|
|
|
%python_install
|
2013-10-15 10:45:27 +00:00
|
|
|
|
2017-04-12 19:06:58 +00:00
|
|
|
for i in mid3cp mid3iconv mid3v2 moggsplit mutagen-inspect mutagen-pony; do
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/${i}
|
|
|
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/${i}.1
|
2016-01-14 14:46:28 +00:00
|
|
|
done
|
2017-04-12 19:06:58 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/mutagen
|
2013-10-15 10:45:27 +00:00
|
|
|
|
|
|
|
|
%post
|
2017-04-12 19:06:58 +00:00
|
|
|
%{python_install_alternative mid3cp mid3iconv mid3v2 moggsplit mutagen-inspect mutagen-pony mid3cp.1 mid3iconv.1 mid3v2.1 moggsplit.1 mutagen-inspect.1 mutagen-pony.1}
|
2013-10-15 10:45:27 +00:00
|
|
|
|
2016-08-15 15:52:18 +00:00
|
|
|
%preun
|
2017-04-12 19:06:58 +00:00
|
|
|
%{python_uninstall_alternative mid3cp}
|
2010-10-27 04:50:10 +00:00
|
|
|
|
2016-01-14 14:46:28 +00:00
|
|
|
%check
|
|
|
|
|
export LANG=en_US.UTF-8
|
2017-04-12 19:06:58 +00:00
|
|
|
#export PATH="$PATH:%%{buildroot}%%{_bindir}"
|
|
|
|
|
%python_exec setup.py test
|
2016-01-14 14:46:28 +00:00
|
|
|
|
2017-04-12 19:06:58 +00:00
|
|
|
%files %{python_files}
|
2007-07-17 02:42:32 +00:00
|
|
|
%defattr(-, root, root, 0755)
|
2015-04-03 17:24:46 +00:00
|
|
|
%doc COPYING NEWS README.rst
|
2017-04-12 19:06:58 +00:00
|
|
|
%python_alternative %{_bindir}/mid3cp
|
|
|
|
|
%python_alternative %{_bindir}/mid3iconv
|
|
|
|
|
%python_alternative %{_bindir}/mid3v2
|
|
|
|
|
%python_alternative %{_bindir}/moggsplit
|
|
|
|
|
%python_alternative %{_bindir}/mutagen-inspect
|
|
|
|
|
%python_alternative %{_bindir}/mutagen-pony
|
|
|
|
|
%python_alternative %{_mandir}/man1/mid3cp.1%{ext_man}
|
|
|
|
|
%python_alternative %{_mandir}/man1/mid3iconv.1%{ext_man}
|
|
|
|
|
%python_alternative %{_mandir}/man1/mid3v2.1%{ext_man}
|
|
|
|
|
%python_alternative %{_mandir}/man1/moggsplit.1%{ext_man}
|
|
|
|
|
%python_alternative %{_mandir}/man1/mutagen-inspect.1%{ext_man}
|
|
|
|
|
%python_alternative %{_mandir}/man1/mutagen-pony.1%{ext_man}
|
2016-01-14 14:46:28 +00:00
|
|
|
%{python_sitelib}/mutagen
|
2017-04-12 19:06:58 +00:00
|
|
|
%{python_sitelib}/mutagen-%{version}-py%{python_version}.egg-info
|
2007-07-17 02:42:32 +00:00
|
|
|
|
|
|
|
|
%changelog
|