doc
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/unison?expand=0&rev=39
This commit is contained in:
parent
11c985191a
commit
587ba3aae8
13
unison.spec
13
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user