New upstream release

- Split docs to -doc subpackage
epel9
Michele Baldessari 9 years ago
parent 4cc1523f81
commit f1d7af4b3c

1
.gitignore vendored

@ -6,3 +6,4 @@ mutagen-1.19.tar.gz
/mutagen-1.30.tar.gz
/mutagen-1.31.tar.gz
/mutagen-1.32.tar.gz
/mutagen-1.33.2.tar.gz

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

@ -1 +1 @@
349b987d26dbf15f64919f80c060eb14 mutagen-1.32.tar.gz
40c079f8b794d2888ee1a3225d182174 mutagen-1.33.2.tar.gz

Loading…
Cancel
Save