[packages/python3-furo] - updated to 2025.9.25
qboosh
qboosh at pld-linux.org
Sun Dec 14 11:05:32 CET 2025
commit 0ddad673f4170fee657aa567689435ad201c2efc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Dec 14 11:05:52 2025 +0100
- updated to 2025.9.25
python3-furo.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++++------
1 file changed, 60 insertions(+), 7 deletions(-)
---
diff --git a/python3-furo.spec b/python3-furo.spec
index 077aa18..043a3a6 100644
--- a/python3-furo.spec
+++ b/python3-furo.spec
@@ -1,29 +1,54 @@
# TODO:
-# - doc (BR: Sphinx >= 6.0, bs4, sphinx-basic-ng >= 1.0.0.beta2, pygments >= 2.7)
-# - tests (BR: pytest, httpx, tomli, packaging)
# - fix objects.inv paths
+#
+# Conditional build:
+%bcond_without doc # Sphinx documentation
+%bcond_with tests # build tests (rely on network, pypi.org contents)
+
Summary: Clean customizable Sphinx documentation theme
Summary(pl.UTF-8): Czysty, konfigurowalny motyw dokumentacji Sphinksa
Name: python3-furo
-Version: 2024.8.6
-Release: 3
+Version: 2025.9.25
+Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/furo/
Source0: https://files.pythonhosted.org/packages/source/f/furo/furo-%{version}.tar.gz
-# Source0-md5: f3097240959189473d67d001bb2ddd71
-Source1: https://src.fedoraproject.org/repo/pkgs/python-furo/furo-2024.08.06-vendor.tar.xz/sha512/4a4313b30aff8dcb12ca857064bf73a18e3287e1fdd9e5ca55b277519628b8401b287f48195271d09e88249c431d390f3710f10b82b498f0176c4c40a415bb39/furo-2024.08.06-vendor.tar.xz
-# Source1-md5: 685e508601d03c86281ea8fb65f1d844
+# Source0-md5: 73666eb8cb750c9afd973f426fcfeca8
+Source1: https://src.fedoraproject.org/repo/pkgs/python-furo/furo-2025.09.25-vendor.tar.xz/sha512/1a080cd65fe99feb9b1b098895fb64ddfdfa2696abff6de6add1d8f61c4177a1b66808f42a41ef731f67a9b1301ec0cd2f8ce22008e271cd4d469e30d15021c7/furo-2025.09.25-vendor.tar.xz
+# Source1-md5: b9e359aa2811a88bef07986fd0b14228
URL: https://pypi.org/project/furo/
+BuildRequires: nodejs >= 18.20.5
BuildRequires: npm
BuildRequires: python3-build
BuildRequires: python3-installer
BuildRequires: python3-modules >= 1:3.8
BuildRequires: python3-nodeenv
BuildRequires: python3-sphinx_theme_builder >= 0.2.0a10
+%if %{with tests}
+BuildRequires: python3-Sphinx >= 6.0
+BuildRequires: python3-Sphinx < 9
+BuildRequires: python3-accessible-pygments >= 0.0.5
+BuildRequires: python3-bs4
+BuildRequires: python3-httpx
+BuildRequires: python3-packaging
+BuildRequires: python3-pygments >= 2.7
+BuildRequires: python3-pytest
+BuildRequires: python3-sphinx_basic_ng >= 1.0.0b2
+BuildRequires: python3-tomli
+%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 2.044
BuildRequires: yarn
+%if %{with doc}
+BuildRequires: python3-myst_parser
+BuildRequires: python3-sphinx_copybutton
+BuildRequires: python3-sphinx_design
+BuildRequires: python3-sphinx_inline_tabs
+BuildRequires: python3-sphinx_tabs
+BuildRequires: sphinx-pdg-3
+%endif
+BuildRequires: yarn
Requires: python3-modules >= 1:3.8
ExclusiveArch: %{ix86} %{x8664} %{arm} aarch64
BuildArch: noarch
@@ -37,6 +62,17 @@ Clean customizable Sphinx documentation theme.
%description -l pl.UTF-8
Czysty, konfigurowalny motyw dokumentacji Sphinksa.
+%package apidocs
+Summary: API documentation for Python furo module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona furo
+Group: Documentation
+
+%description apidocs
+API documentation for Python furo module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona furo.
+
%prep
%setup -q -n furo-%{version} -a1
@@ -55,6 +91,17 @@ yarn install --offline --non-interactive
nodeenv --node=system --prebuilt --clean-src $PWD/.nodeenv
%py3_build_pyproject
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd)/src \
+sphinx-build-3 -b html docs docs/_build/html
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -68,3 +115,9 @@ rm -rf $RPM_BUILD_ROOT
%doc LICENSE README.md
%{py3_sitescriptdir}/furo
%{py3_sitescriptdir}/furo-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_modules,_sphinx_design_static,_static,contributing,customisation,kitchen-sink,reference,*.html,*.js}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-furo.git/commitdiff/0ddad673f4170fee657aa567689435ad201c2efc
More information about the pld-cvs-commit
mailing list