[packages/kitty] Add build_docs bulding

glen glen at pld-linux.org
Wed Feb 22 21:47:54 CET 2023


commit 87b69c7cbd6545d84b9f440f0ef498bd78dc32d3
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Wed Feb 22 22:38:04 2023 +0200

    Add build_docs bulding

 kitty.spec | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/kitty.spec b/kitty.spec
index 7229dcb..81ad1c2 100644
--- a/kitty.spec
+++ b/kitty.spec
@@ -61,6 +61,7 @@ BuildRequires:	python3dist(sphinx)
 BuildRequires:	python3dist(sphinx-copybutton)
 BuildRequires:	python3dist(sphinx-inline-tabs)
 #BuildRequires:	python3dist(sphinxext-opengraph)
+BuildRequires:	sphinx-pdg
 %endif
 %if %{with tests}
 BuildRequires:	/usr/bin/getent
@@ -161,6 +162,12 @@ sed -e "s/f.endswith('\.so')/f.endswith('\.so') or f.endswith('\.py')/g" -i setu
 # script-without-shebang '__init__.py'
 find -type f -name "*.py*" | xargs chmod a-x
 
+%build
+%if %{with build_docs}
+%{__python3} setup.py build
+%{__make} -C docs man html
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %set_build_flags
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kitty.git/commitdiff/87b69c7cbd6545d84b9f440f0ef498bd78dc32d3



More information about the pld-cvs-commit mailing list