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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=40
This commit is contained in:
Olaf Hering 2020-04-12 21:10:05 +00:00 committed by Git OBS Bridge
parent b048e2bb58
commit 67a46c7a1d
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}