Olaf Hering 2023-07-07 16:25:06 +00:00 committed by Git OBS Bridge
parent 9ffd5495a1
commit 11c985191a

View File

@ -37,7 +37,7 @@ Source1: %pkg.desktop
BuildRequires: ocaml(ocaml_base_version) >= 4.08
BuildRequires: ocaml-rpm-macros >= 20230101
%if "%build_flavor" == "doc"
%if %suse_version > 1500 || 0%?sle_version > 150300
%if 0%?suse_version > 1500 || 0%?sle_version > 150300
BuildRequires: hevea
BuildRequires: lynx
%endif
@ -88,10 +88,11 @@ dune_release_pkgs='unison,unison-gui,unison-fsmonitor'
%endif
%install
> files
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
%else
@ -111,10 +112,7 @@ install -m 644 -D %{SOURCE1} %buildroot/%_datadir/applications/%name.desktop
%files -f files
%defattr(-,root,root,-)
%if "%build_flavor" == "doc"
%_mandir/man1/%pkg.*
%else
%doc src/COPYING
%if "%build_flavor" == ""
%_datadir/applications/*
%_datadir/pixmaps/*
%_bindir/%name