From d4e0740c5d72035ff701dd77a2e41c4149464a403d2c36b6dad58dbca14d371c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Wed, 21 Jun 2023 12:31:31 +0200 Subject: [PATCH] Generate documentation. --- vis.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/vis.spec b/vis.spec index c342e9b..2221b08 100644 --- a/vis.spec +++ b/vis.spec @@ -69,9 +69,13 @@ export CFLAGS="%{optflags} -fcommon" %make_build debug make -C doc singlehtml epub +cp doc/build/sphinx/singlehtml/{index,VisEditor}.html %install %make_install +rm -r %{buildroot}%{_datadir}/doc/vis +find doc/build -name \*.htm\* +find . -name \*.htm\* %check # According to the debian/rules: @@ -81,12 +85,14 @@ make -C doc singlehtml epub %make_build -C test/lua %make_build -C test/vis +%clean + %files %{_bindir}/vis* %{_datadir}/vis %{_mandir}/man1/* -%dir %{_datadir}/doc/vis -%{_datadir}/doc/vis/LICENSE -%{_datadir}/doc/vis/README.md +%doc README.md LICENSE +%doc doc/build/sphinx/epub/VisEditor.epub +%doc doc/build/sphinx/singlehtml/VisEditor.html %changelog