[packages/python3-sphinxcontrib-contentui] - updated to 0.2.5 from github archive
qboosh
qboosh at pld-linux.org
Sat Dec 27 10:39:18 CET 2025
commit f89515dc8fbe740877312ca4ba8c13783ccf6024
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 27 10:39:42 2025 +0100
- updated to 0.2.5 from github archive
python3-sphinxcontrib-contentui.spec | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)
---
diff --git a/python3-sphinxcontrib-contentui.spec b/python3-sphinxcontrib-contentui.spec
index 92ca314..9ad178c 100644
--- a/python3-sphinxcontrib-contentui.spec
+++ b/python3-sphinxcontrib-contentui.spec
@@ -1,24 +1,29 @@
+# TODO: doc (fails with package not installed already)
#
# Conditional build:
-%bcond_without doc # API documentation
-%bcond_without tests # unit tests
+%bcond_with doc # API documentation
Summary: Contentui extension for Sphinx
Summary(pl.UTF-8): Rozszerzenie contentui dla Sphinksa
Name: python3-sphinxcontrib-contentui
-# 0.2.3 to 0.2.5 released as whl only
-Version: 0.2.2
+Version: 0.2.5
Release: 1
+# tags and notes specify "BSD", but included LICENSE file is MIT???
License: BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/sphinxcontrib-contentui/
-Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-contentui/sphinxcontrib-contentui-%{version}.tar.gz
-# Source0-md5: 227c346182518be53e84ac2e651b623f
+#Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-contentui/sphinxcontrib-contentui-%{version}.tar.gz
+# since 0.2.3 only wheels published on pypi, so use git archive
+Source0: https://github.com/ulrobix/sphinxcontrib-contentui/archive/%{version}/sphinxcontrib-contentui-%{version}.tar.gz
+# Source0-md5: 774a9e95c36665166aad0cf850c1dec1
URL: https://pypi.org/project/sphinxcontrib-contentui/
BuildRequires: python3-modules >= 1:3.2
BuildRequires: python3-setuptools
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: sphinx-pdg-3 >= 2.0
+%endif
Requires: python3-modules >= 1:3.2
Requires: python3-sphinxcontrib
BuildArch: noarch
@@ -57,6 +62,11 @@ Dokumentacja API modułu Pythona sphinxcontrib-contentui.
%build
%py3_build
+%if %{with doc}
+PYTHONPATH=$(pwd) \
+sphinx-build-3 -b html docs docs/_build/html
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -67,7 +77,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CHANGES.rst README.rst
+%doc CHANGES.rst LICENSE README.rst
%{py3_sitescriptdir}/sphinxcontrib/contentui.css
%{py3_sitescriptdir}/sphinxcontrib/contentui.js
%{py3_sitescriptdir}/sphinxcontrib/contentui.py
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinxcontrib-contentui.git/commitdiff/f89515dc8fbe740877312ca4ba8c13783ccf6024
More information about the pld-cvs-commit
mailing list