[packages/ocaml-lablgtk2] - adjust exists_if tags in META on archs without native code; release 5

qboosh qboosh at pld-linux.org
Tue Dec 21 17:40:43 CET 2021


commit 2bd708d57dbf1495f004375541e1823e9a978786
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 21 17:40:54 2021 +0100

    - adjust exists_if tags in META on archs without native code; release 5

 ocaml-lablgtk2.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
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" \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ocaml-lablgtk2.git/commitdiff/2bd708d57dbf1495f004375541e1823e9a978786



More information about the pld-cvs-commit mailing list