|
|
|
@ -1,4 +1,6 @@
|
|
|
|
|
%global realname mutagen
|
|
|
|
|
# Share doc between python- and python3-
|
|
|
|
|
%global _docdir_fmt %{name}
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%bcond_without python3
|
|
|
|
@ -7,7 +9,7 @@
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: python-%{realname}
|
|
|
|
|
Version: 1.32
|
|
|
|
|
Version: 1.33.2
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Mutagen is a Python module to handle audio meta-data
|
|
|
|
|
|
|
|
|
@ -18,6 +20,7 @@ Source0: https://bitbucket.org/lazka/mutagen/downloads/mutagen-%{version}
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python2-sphinx
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
%endif
|
|
|
|
@ -30,6 +33,12 @@ comments. It can also read MPEG audio and Xing headers, FLAC stream
|
|
|
|
|
info blocks, and Ogg Vorbis/FLAC/Theora stream headers. Finally, it
|
|
|
|
|
includes a module to handle generic Ogg bit-streams.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for python-mutagen
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
Contains the html documentation for python mutagen.
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%package -n python3-%{realname}
|
|
|
|
|
Summary: Mutagen is a Python module to handle audio meta-data
|
|
|
|
@ -54,6 +63,10 @@ cp -a . %{py3dir}
|
|
|
|
|
%build
|
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
|
|
pushd docs
|
|
|
|
|
make
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
%{__python3} setup.py build
|
|
|
|
@ -94,7 +107,7 @@ pushd %{py3dir}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc COPYING NEWS README.rst docs/tutorial.rst docs/api_notes.rst docs/bugs.rst
|
|
|
|
|
%doc COPYING NEWS README.rst
|
|
|
|
|
%if !%{with python3}
|
|
|
|
|
%{_bindir}/m*
|
|
|
|
|
%{_mandir}/*/*
|
|
|
|
@ -102,9 +115,12 @@ pushd %{py3dir}
|
|
|
|
|
%{python_sitelib}/%{realname}
|
|
|
|
|
%{python_sitelib}/%{realname}-%{version}-*.egg-info
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc docs/_build/*
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%files -n python3-%{realname}
|
|
|
|
|
%doc COPYING NEWS README.rst docs/tutorial.rst docs/api_notes.rst docs/bugs.rst
|
|
|
|
|
%doc COPYING NEWS README.rst
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%{_bindir}/m*
|
|
|
|
|
%{_mandir}/*/*
|
|
|
|
@ -114,6 +130,10 @@ pushd %{py3dir}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jul 06 2016 Michele Baldessari <michele@acksyn.org> - 1.33.2-1
|
|
|
|
|
- New upstream release
|
|
|
|
|
- Split docs to -doc subpackage
|
|
|
|
|
|
|
|
|
|
* Tue May 03 2016 Michele Baldessari <michele@acksyn.org> - 1.32-1
|
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
|
|