Generate documentation.

This commit is contained in:
Matej Cepl 2023-06-21 12:31:31 +02:00
parent 4be17c7017
commit d4e0740c5d

View File

@ -69,9 +69,13 @@ export CFLAGS="%{optflags} -fcommon"
%make_build debug %make_build debug
make -C doc singlehtml epub make -C doc singlehtml epub
cp doc/build/sphinx/singlehtml/{index,VisEditor}.html
%install %install
%make_install %make_install
rm -r %{buildroot}%{_datadir}/doc/vis
find doc/build -name \*.htm\*
find . -name \*.htm\*
%check %check
# According to the debian/rules: # According to the debian/rules:
@ -81,12 +85,14 @@ make -C doc singlehtml epub
%make_build -C test/lua %make_build -C test/lua
%make_build -C test/vis %make_build -C test/vis
%clean
%files %files
%{_bindir}/vis* %{_bindir}/vis*
%{_datadir}/vis %{_datadir}/vis
%{_mandir}/man1/* %{_mandir}/man1/*
%dir %{_datadir}/doc/vis %doc README.md LICENSE
%{_datadir}/doc/vis/LICENSE %doc doc/build/sphinx/epub/VisEditor.epub
%{_datadir}/doc/vis/README.md %doc doc/build/sphinx/singlehtml/VisEditor.html
%changelog %changelog