%global srcname sphinxcontrib-fulltoc %global sum Include a full table of contents in your Sphinx HTML sidebar Name: python-%{srcname} Version: 1.1 Release: 3%{?dist} Summary: %{sum} License: ASL 2.0 URL: https://github.com/dreamhost/%{srcname} Source0: https://pypi.python.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch %description sphinxcontrib-fulltoc is an extension for the Sphinx documentation system that changes the HTML output to include a more detailed table of contents in the sidebar. By default Sphinx only shows the local headers for the current page. With the extension installed, all of the page titles are included, and the local headers for the current page are also included in the appropriate place within the document. %package -n python2-%{srcname} Summary: %{sum} BuildRequires: python2-devel BuildRequires: python-pbr Requires: python-sphinx %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} sphinxcontrib-fulltoc is an extension for the Sphinx documentation system that changes the HTML output to include a more detailed table of contents in the sidebar. By default Sphinx only shows the local headers for the current page. With the extension installed, all of the page titles are included, and the local headers for the current page are also included in the appropriate place within the document. %package -n python3-%{srcname} Summary: %{sum} BuildRequires: python3-devel BuildRequires: python3-pbr Requires: python3-sphinx %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} sphinxcontrib-fulltoc is an extension for the Sphinx documentation system that changes the HTML output to include a more detailed table of contents in the sidebar. By default Sphinx only shows the local headers for the current page. With the extension installed, all of the page titles are included, and the local headers for the current page are also included in the appropriate place within the document. %package -n python-%{srcname}-doc Summary: %{sum} BuildRequires: python-sphinx %{?python_provide:%python_provide python3-%{srcname}} %description -n python-%{srcname}-doc sphinxcontrib-fulltoc is an extension for the Sphinx documentation system that changes the HTML output to include a more detailed table of contents in the sidebar. By default Sphinx only shows the local headers for the current page. With the extension installed, all of the page titles are included, and the local headers for the current page are also included in the appropriate place within the document. This package contains the documentation for sphinxcontrib-fulltoc. %prep %autosetup -n %{srcname}-%{version} rm -r *.egg-info find . -name '*.py[co]' -delete %build %py2_build %py3_build make -C docs html PYTHONPATH=$(pwd) make -C docs man PYTHONPATH=$(pwd) rm docs/build/html/.buildinfo %install %py2_install %py3_install # Install the man pages install -p -D -T -m 0644 docs/build/man/%{srcname}.1 %{buildroot}%{_mandir}/man1/python2-%{srcname}.1 install -p -D -T -m 0644 docs/build/man/%{srcname}.1 %{buildroot}%{_mandir}/man1/python3-%{srcname}.1 %files -n python2-%{srcname} %license LICENSE %doc README.rst AUTHORS ChangeLog announce.rst %{_mandir}/man1/python2-%{srcname}.1* %{python2_sitelib}/* %files -n python3-%{srcname} %license LICENSE %doc README.rst AUTHORS ChangeLog announce.rst %{_mandir}/man1/python3-%{srcname}.1* %{python3_sitelib}/* %files -n python-%{srcname}-doc %license LICENSE %doc docs/build/html/* %changelog * Wed Dec 16 2015 Jeremy Cline 1.1-3 - Added man pages * Tue Dec 15 2015 Jeremy Cline 1.1-2 - Added a -doc subpackage * Sat Dec 12 2015 Jeremy Cline 1.1-1 - Initial release