From: Jakub Bogusz Date: Wed, 22 Jul 2015 18:31:16 +0000 (+0200) Subject: - really disable ocamlopt if not supported (configure sets OCAMLOPT=no while Makefile... X-Git-Tag: auto/th/ocaml-SDL-0.9.1-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Focaml-SDL.git;a=commitdiff_plain;h=6382d7bbff9fb8844f9dd469519661ff29534ca0;ds=inline - really disable ocamlopt if not supported (configure sets OCAMLOPT=no while Makefiles check with ifdef) --- diff --git a/ocaml-SDL.spec b/ocaml-SDL.spec index e595621..ac1f70f 100644 --- a/ocaml-SDL.spec +++ b/ocaml-SDL.spec @@ -72,14 +72,16 @@ cp -f /usr/share/automake/config.* support %{__aclocal} -I support %{__autoconf} %configure -%{__make} +%{__make} \ + %{!?with_ocaml_opt:OCAMLOPT=} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs %{__make} install \ - OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml + OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \ + %{!?with_ocaml_opt:OCAMLOPT=} # ocamlfind-specific, useless in rpm %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/*.owner