- SLE_12 has still no license macro, package as doc instead

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=28
This commit is contained in:
Olaf Hering 2019-11-01 23:56:52 +00:00 committed by Git OBS Bridge
parent 8fc5a9e55c
commit 6acae0361b
2 changed files with 7 additions and 1 deletions

View File

@ -11,6 +11,7 @@ Fri Nov 1 12:34:56 UTC 2019 - ohering@suse.de
- Pass --for-release-of-packages to dune via dune_release_pkgs=
- Print potential BuildRequires during build
- Package sml for camlp5
- SLE_12 has still no license macro, package as doc instead
-------------------------------------------------------------------
Wed Oct 9 05:48:16 UTC 2019 - ohering@suse.de

View File

@ -115,7 +115,12 @@ tee %{buildroot}%{_rpmmacrodir}/macros.%{name} <<'_EOF_'
LICENSE.txt \\\
;\
do\
test -f "${license}" && echo "%%%%license ${license}" >> '%%{name}.files.license' ;\
%if 0%{?suse_version} > 1315
license_macro='license' ;\
%else
license_macro='doc' ;\
%endif
test -f "${license}" && echo "%%%%${license_macro} ${license}" >> '%%{name}.files.license' ;\
done ;\
find %%{buildroot}$(ocamlc -where) | sed -ne '\
s@^%%{buildroot}@@\