From 587ba3aae826662fff5950681bbc5e111f3250b7f333303ffe30be139adeef37 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Sat, 8 Jul 2023 19:13:00 +0000 Subject: [PATCH] doc OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/unison?expand=0&rev=39 --- unison.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/unison.spec b/unison.spec index 19c9b7e..fded27d 100644 --- a/unison.spec +++ b/unison.spec @@ -88,14 +88,19 @@ dune_release_pkgs='unison,unison-gui,unison-fsmonitor' %endif %install -echo '%%doc src/COPYING' > files %if "%build_flavor" == "doc" mkdir -vp %buildroot%_mandir/man1 cp -avt %buildroot%_mandir/man1 man/%pkg.1 -echo '%%_mandir/man1/%%pkg.*' >> files -test -f doc/%pkg-manual.html && echo "%%doc $_" >> files -test -f doc/%pkg-manual.pdf && echo "%%doc $_" >> files +echo '%%_mandir/man1/unison.*' > files +for ext in html pdf +do + test -f doc/unison-manual.$ext || continue + mkdir -vp %buildroot%_defaultdocdir/%pkg + cp doc/unison-manual.$ext %buildroot%_defaultdocdir/%pkg + echo "%%doc %_defaultdocdir/%pkg/unison-manual.$ext" >> files +done %else +echo '%%doc src/COPYING' > files %ocaml_dune_install %ocaml_create_file_list rm -rfv %buildroot%ocaml_standard_library