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