From: Jakub Bogusz Date: Tue, 21 Dec 2021 16:40:54 +0000 (+0100) Subject: - adjust exists_if tags in META on archs without native code; release 5 X-Git-Tag: auto/th/ocaml-lablgtk2-2.18.11-5 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=2bd708d57dbf1495f004375541e1823e9a978786;p=packages%2Focaml-lablgtk2.git - adjust exists_if tags in META on archs without native code; release 5 --- diff --git a/ocaml-lablgtk2.spec b/ocaml-lablgtk2.spec index e04bdb6..2477d97 100644 --- a/ocaml-lablgtk2.spec +++ b/ocaml-lablgtk2.spec @@ -15,7 +15,7 @@ Summary: GTK+ binding for OCaml Summary(pl.UTF-8): Wiązania GTK+ dla OCamla Name: ocaml-lablgtk2 Version: 2.18.11 -Release: 4 +Release: 5 License: LGPL with linking exceptions Group: Libraries #Source0Download: https://github.com/garrigue/lablgtk/releases @@ -35,6 +35,7 @@ BuildRequires: libgnomeui-devel BuildRequires: librsvg-devel >= 2.0 BuildRequires: ocaml-camlp4 >= %{ocaml_ver} %{?with_opengl:BuildRequires: ocaml-lablgl-devel >= 1.04} +BuildRequires: sed >= 4.0 %requires_eq ocaml-runtime BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -299,6 +300,10 @@ lablgtk. %prep %setup -q -n lablgtk-%{version} +%if %{without ocaml_opt} +%{__sed} -i -e '/exists_if/ s/,[^,]*cmx[as]\?//g' META +%endif + %build %configure \ CC="%{__cc} %{rpmcflags} -fPIC" \