%global _docdir_fmt %{name} Name: python-sphinx-autobuild Version: 2021.3.14 Release: 3%{?dist} Summary: Autobuild a Sphinx directory when a change is detected License: MIT URL: https://github.com/executablebooks/sphinx-autobuild Source0: %{pypi_source sphinx-autobuild} BuildArch: noarch BuildRequires: help2man BuildRequires: python3-devel BuildRequires: %{py3_dist colorama} BuildRequires: %{py3_dist flit-core} BuildRequires: %{py3_dist livereload} BuildRequires: %{py3_dist pip} BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist setuptools} BuildRequires: %{py3_dist sphinx} BuildRequires: %{py3_dist wheel} %description Rebuild Sphinx documentation on changes, with live-reload in the browser. %package -n python3-sphinx-autobuild Summary: Autobuild a Sphinx directory when a change is detected %description -n python3-sphinx-autobuild Rebuild Sphinx documentation on changes, with live-reload in the browser. %package doc Summary: Documentation for sphinx-autobuild Provides: bundled(js-jquery) Provides: bundled(js-underscore) %description doc Documentation for sphinx-autobuild. %prep %autosetup -n sphinx-autobuild-%{version} %build %pyproject_wheel rst2html --no-datestamp NEWS.rst NEWS.html # Build the documentation mkdir html sphinx-build -b html docs html rm -rf html/{.buildinfo,.doctrees} %install %pyproject_install %pyproject_save_files sphinx_autobuild # Install a man page export PYTHONPATH=%{buildroot}%{python3_sitelib} mkdir -p %{buildroot}%{_mandir}/man1 help2man -N %{buildroot}%{_bindir}/sphinx-autobuild > \ %{buildroot}%{_mandir}/man1/sphinx-autobuild.1 %check %pytest %files -n python3-sphinx-autobuild -f %{pyproject_files} %doc AUTHORS NEWS.html README.md %license LICENSE %{_bindir}/sphinx-autobuild %{_mandir}/man1/sphinx-autobuild.1* %files doc %doc html %changelog * Fri Jul 22 2022 Fedora Release Engineering - 2021.3.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 2021.3.14-2 - Rebuilt for Python 3.11 * Tue Apr 12 2022 Jerry James - 2021.3.14 - Bring back to Fedora * Mon Aug 19 2019 Miro Hrončok - 0.7.1-15 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.7.1-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Mar 25 2019 Sundeep Anand - 0.7.1-13 - bump version * Wed Mar 13 2019 Jeroen van Meeuwen (Kolab Systems) - 0.7.1-12 - Remove python2-sphinx-autobuild without condition, missing run-time requirements * Tue Mar 12 2019 Miro Hrončok - 0.7.1-11 - Remove python2-sphinx-autobuild on Fedora 31 * Fri Mar 1 2019 Nick Cross - 0.7.1-10 - Correct dependencies. Patch port-for to unpin it. * Sat Feb 02 2019 Fedora Release Engineering - 0.7.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.7.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.7.1-5 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.7.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - Fix creation of python2- subpackage * Thu Jul 27 2017 Fedora Release Engineering - 0.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jul 10 2017 Sundeep Anand - 0.7.1-1 - Updated to version 0.7.1 * Wed Aug 10 2016 Sundeep Anand - 0.6.0-3 - https://bugzilla.redhat.com/show_bug.cgi?id=1365796 * Thu Jun 23 2016 Sundeep Anand - 0.6.0-2 - fix: epel py3 dependency * Mon Jun 20 2016 Sundeep Anand - 0.6.0-1 - https://bugzilla.redhat.com/show_bug.cgi?id=1348003 * Tue Feb 16 2016 Sundeep Anand - 0.5.2-4 - https://bugzilla.redhat.com/show_bug.cgi?id=1307172 * Thu Feb 04 2016 Fedora Release Engineering - 0.5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jan 27 2016 Sundeep Anand - 0.5.2-2 - Fix binary shebang in python3 subpackage * Fri Jan 22 2016 Sundeep Anand - 0.5.2-1 - Initial RPM Package