From 11c985191a87cc45521e261fd69e0a8ee8c073fb5238ac7c8f7804dc4e32f8ef Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Fri, 7 Jul 2023 16:25:06 +0000 Subject: [PATCH] files OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/unison?expand=0&rev=38 --- unison.spec | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/unison.spec b/unison.spec index f743ab7..19c9b7e 100644 --- a/unison.spec +++ b/unison.spec @@ -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