[packages/python3-sphinx_remove_toctrees] - new

qboosh qboosh at pld-linux.org
Wed Sep 4 19:40:24 CEST 2024


commit 89c6d739edb58fd68701284439c56a2a9a1560a1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Sep 4 19:23:44 2024 +0200

    - new

 python3-sphinx_remove_toctrees.spec | 102 ++++++++++++++++++++++++++++++++++++
 1 file changed, 102 insertions(+)
---
diff --git a/python3-sphinx_remove_toctrees.spec b/python3-sphinx_remove_toctrees.spec
new file mode 100644
index 0000000..97f9e28
--- /dev/null
+++ b/python3-sphinx_remove_toctrees.spec
@@ -0,0 +1,102 @@
+#
+# Conditional build:
+%bcond_without	doc	# API documentation
+%bcond_with	tests	# unit tests (not included in sdist)
+
+Summary:	Remove toctrees from Sphinx pages
+Summary(pl.UTF-8):	Usuwanie drzew ze spisem treści ze stron Sphinksa
+Name:		python3-sphinx_remove_toctrees
+# 1.0.0.post1 requires sphinx 5
+Version:	0.0.3
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/sphinx_remove_toctrees/
+Source0:	https://files.pythonhosted.org/packages/source/s/sphinx_remove_toctrees/sphinx-remove-toctrees-%{version}.tar.gz
+# Source0-md5:	bb4c60bb8e18c151805b2d1da60cf1f1
+URL:		https://pypi.org/project/sphinx_remove_toctrees/
+BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-Sphinx >= 4.5
+BuildRequires:	python3-ipython
+BuildRequires:	python3-myst_parser
+BuildRequires:	python3-pytest
+BuildRequires:	python3-sphinx_book_theme
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	python3-ipython
+BuildRequires:	python3-myst_parser
+BuildRequires:	python3-sphinx_book_theme
+BuildRequires:	sphinx-pdg-3 >= 4.5
+%endif
+Requires:	python3-modules >= 1:3.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Improve your Sphinx build time by selectively removing TocTree objects
+from pages. This is useful if your documentation uses auto-generated
+API documentation, which generates a lot of stub pages.
+
+This extension can be used to remove the sidebar links for just the
+pages you specify, speed up the build considerably.
+
+%description -l pl.UTF-8
+Poprawa czasu budowania dokumentacji Sphinksem poprzez wybiórcze
+usuwanie obiektów TocTree ze stron. Jest to przydatne, jeśli
+dokumentacja korzysta z automatycznego generowania dokumentacji API,
+co tworzy wiele stron zaślepkowych.
+
+To rozszerzenie może być użyte do usunięcia odnośników na pasku
+bocznym tylko do podanych stron, co istotnie przyspiesza budowanie.
+
+%package apidocs
+Summary:	API documentation for Python sphinx_remove_toctrees module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona sphinx_remove_toctrees
+Group:		Documentation
+
+%description apidocs
+API documentation for Python sphinx_remove_toctrees module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona sphinx_remove_toctrees.
+
+%prep
+%setup -q -n sphinx-remove-toctrees-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd) \
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/sphinx_remove_toctrees
+%{py3_sitescriptdir}/sphinx_remove_toctrees-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,second,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinx_remove_toctrees.git/commitdiff/89c6d739edb58fd68701284439c56a2a9a1560a1



More information about the pld-cvs-commit mailing list