Accepting request 793517 from devel:languages:ocaml

- run OCaml rpm dependency generator only if both path and magic matches (rpm#1173)

OBS-URL: https://build.opensuse.org/request/show/793517
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ocaml-rpm-macros?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2020-04-15 17:52:47 +00:00 committed by Git OBS Bridge
commit 6e347e4e59
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Apr 12 12:12:12 UTC 2020 - ohering@suse.de
- run OCaml rpm dependency generator only if both path and magic matches (rpm#1173)
-------------------------------------------------------------------
Sat Mar 21 12:34:56 UTC 2020 - ohering@suse.de

View File

@ -16,7 +16,7 @@
#
Name: ocaml-rpm-macros
Version: 20200321
Version: 20200412
Release: 0
Summary: RPM macros for building OCaml source packages
License: GPL-2.0-only
@ -70,6 +70,7 @@ tee %{buildroot}%{_rpmconfigdir}/fileattrs/z${tag}.attr <<_EOF_
%__${tag}_requires %%{_rpmconfigdir}/${tag}.sh --requires
%__${tag}_magic ^(ELF|Objective caml|OCaml) .*$
%__${tag}_path .(cma|cmi|cmo|cmx|cmxa|cmxs)$
%__${tag}_flags magic_and_path
_EOF_
#
tee %{buildroot}%{_rpmconfigdir}/${tag}.sh < %{SOURCE0}