Don't make docs outside of Tumbleweed.
This commit is contained in:
parent
b941d01e76
commit
cacd721eef
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
8
vis.spec
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user