[packages/ocaml-batteries] - support builds without ocaml_opt

qboosh qboosh at pld-linux.org
Sat Jan 1 11:25:10 CET 2022


commit 85ba09da21370b8cc20052985e2e52771a1128f2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jan 1 11:26:02 2022 +0100

    - support builds without ocaml_opt

 ocaml-batteries.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/ocaml-batteries.spec b/ocaml-batteries.spec
index cf60e45..51a4b46 100644
--- a/ocaml-batteries.spec
+++ b/ocaml-batteries.spec
@@ -62,7 +62,8 @@ używających biblioteki batteries.
 %setup -q -n batteries-included-%{version}
 
 %build
-%{__make} -j1 all
+%{__make} -j1 all \
+	%{!?with_ocaml_opt:BATTERIES_NATIVE=no}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -70,6 +71,7 @@ export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
 install -d $OCAMLFIND_DESTDIR
 
 %{__make} install \
+	%{!?with_ocaml_opt:BATTERIES_NATIVE=no} \
 	DESTDIR=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ocaml-batteries.git/commitdiff/85ba09da21370b8cc20052985e2e52771a1128f2



More information about the pld-cvs-commit mailing list