summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2023-08-12 08:47:20 +0200
committerMatěj Cepl <mcepl@cepl.eu>2023-08-12 09:10:10 +0200
commit725960d0d2c2fec40623d4494d748a028aca9809 (patch)
tree49672d583a2865e44e90e7ae1ebe4249dd73e341
parenta1e3120819b4c08a2c9b6e2bbaf14b756716fe78 (diff)
downloadvis-pkg-725960d0d2c2fec40623d4494d748a028aca9809.tar.gz
Don't make docs outside of Tumbleweed.
-rw-r--r--vis.changes5
-rw-r--r--vis.spec8
2 files changed, 12 insertions, 1 deletions
diff --git a/vis.changes b/vis.changes
index d1cbf5c..f530662 100644
--- a/vis.changes
+++ b/vis.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Sat Aug 12 06:44:49 UTC 2023 - Matej Cepl <mcepl@suse.com>
+
+- python3-Sphinx all the time
+
+-------------------------------------------------------------------
Sat Aug 12 05:06:13 UTC 2023 - Matej Cepl <mcepl@suse.com>
- And back ...
diff --git a/vis.spec b/vis.spec
index c546a69..c1f1c31 100644
--- a/vis.spec
+++ b/vis.spec
@@ -35,9 +35,9 @@ BuildRequires: tar
Suggests: par_text
# ExclusiveArch: x86_64 %%{ix86}
%if 0%{?suse_version} > 1550
-BuildRequires: doxygen
BuildRequires: python3-Sphinx
BuildRequires: python3-breathe
+BuildRequires: doxygen
BuildRequires: lua54-busted
BuildRequires: lua54-devel
BuildRequires: lua54-luafilesystem
@@ -70,14 +70,18 @@ export CFLAGS="%{optflags} -fcommon"
%configure
%make_build debug
+%if 0%{?suse_version} > 1550
make -C doc singlehtml epub
cp doc/build/sphinx/singlehtml/{index,VisEditor}.html
+%endif
%install
%make_install
rm -r %{buildroot}%{_datadir}/doc/vis
+%if 0%{?suse_version} > 1550
find doc/build -name \*.htm\*
find . -name \*.htm\*
+%endif
%check
# According to the debian/rules:
@@ -94,7 +98,9 @@ find . -name \*.htm\*
%{_datadir}/vis
%{_mandir}/man1/*
%doc README.md LICENSE
+%if 0%{?suse_version} > 1550
%doc doc/build/sphinx/epub/VisEditor.epub
%doc doc/build/sphinx/singlehtml/VisEditor.html
+%endif
%changelog