[packages/kitty] - updated prep and docs
baggins
baggins at pld-linux.org
Fri May 30 16:15:31 CEST 2025
commit 5dc1f4a1a472c4e7ac11bbda2cb53d3421a68d4b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri May 30 17:39:06 2025 +0200
- updated prep and docs
kitty.spec | 33 +++++++++++----------------------
1 file changed, 11 insertions(+), 22 deletions(-)
---
diff --git a/kitty.spec b/kitty.spec
index f8ac12b..0069f68 100644
--- a/kitty.spec
+++ b/kitty.spec
@@ -1,11 +1,8 @@
#
# Conditional build:
%bcond_with tests # build without tests
-%bcond_with build_docs # build docs instead of pre-packaged files
-%bcond_with vendor # create vendor tarba
-
-# NOTE:
-# - docs build requires git checkout and (yet) missing sphinxext-opengraph package
+%bcond_without docs # build docs instead of pre-packaged files
+%bcond_with vendor # create vendor tarball
Summary: Cross-platform, fast, feature full, GPU based terminal emulator
Name: kitty
@@ -55,11 +52,12 @@ BuildRequires: xorg-lib-libXinerama-devel
BuildRequires: xorg-lib-libXrandr-devel
BuildRequires: xorg-lib-libxkbcommon-x11-devel
BuildRequires: zlib-devel
-%if %{with build_docs}
-BuildRequires: python3dist(sphinx)
-BuildRequires: python3dist(sphinx-copybutton)
-BuildRequires: python3dist(sphinx-inline-tabs)
-#BuildRequires: python3dist(sphinxext-opengraph)
+%if %{with docs}
+BuildRequires: python3-Sphinx
+BuildRequires: python3-sphinx_copybutton
+BuildRequires: python3-sphinx_inline_tabs
+BuildRequires: python3-furo
+BuildRequires: python3-sphinxext.opengraph
BuildRequires: sphinx-pdg
%endif
%if %{with tests}
@@ -142,7 +140,7 @@ Summary: Documentation for %{name}
This package contains the documentation for %{name}.
%prep
-%autosetup -p1 %{?without_vendor:-a4}
+%setup -q %{!?with_vendor:-a4}
%if %{with vendor}
go mod vendor
@@ -150,12 +148,6 @@ tar -caf %{_sourcedir}/%{name}-%{version}-vendor.tar.xz vendor
exit 1
%endif
-# Changing sphinx theme to classic
-sed "s/html_theme = 'furo'/html_theme = 'classic'/" -i docs/conf.py
-
-# Missing in pld
-%{__sed} -i -e '/sphinxext.opengraph/d' docs/conf.py
-
find -type f -name "*.py" | xargs sed -i \
-e 's|%{_bindir}/env python3|%{__python3}|g' \
-e 's|%{_bindir}/env python|%{__python3}|g' \
@@ -163,13 +155,10 @@ find -type f -name "*.py" | xargs sed -i \
%{nil}
# non-executable-script
-sed -e "s/f.endswith('\.so')/f.endswith('\.so') or f.endswith('\.py')/g" -i setup.py
-
-# script-without-shebang '__init__.py'
-find -type f -name "*.py*" | xargs chmod a-x
+%{__sed} -e "s/f.endswith('\.so')/f.endswith('\.so') or f.endswith('\.py')/g" -i setup.py
%build
-%if %{with build_docs}
+%if %{with docs}
%{__python3} setup.py build
%{__make} -C docs man html
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kitty.git/commitdiff/5dc1f4a1a472c4e7ac11bbda2cb53d3421a68d4b
More information about the pld-cvs-commit
mailing list