From f1d7af4b3c7029bcc08ff7131186189b6deba47e Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Wed, 6 Jul 2016 15:00:48 +0200 Subject: [PATCH] New upstream release - Split docs to -doc subpackage --- .gitignore | 1 + python-mutagen.spec | 26 +++++++++++++++++++++++--- sources | 2 +- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 118b982..3e120d2 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/python-mutagen.spec b/python-mutagen.spec index 9616a1e..fa19968 100644 --- a/python-mutagen.spec +++ b/python-mutagen.spec @@ -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 - 1.33.2-1 +- New upstream release +- Split docs to -doc subpackage + * Tue May 03 2016 Michele Baldessari - 1.32-1 - New upstream release diff --git a/sources b/sources index 634dd08..4b2b5bc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -349b987d26dbf15f64919f80c060eb14 mutagen-1.32.tar.gz +40c079f8b794d2888ee1a3225d182174 mutagen-1.33.2.tar.gz