From fa692c85892af0f70f8b248d55610f23eb8c317e8476ff72c0296e25c72142e4 Mon Sep 17 00:00:00 2001 From: Mike Latimer Date: Tue, 9 Dec 2014 21:41:08 +0000 Subject: [PATCH] Accepting request 264591 from home:mlatimer:td Minor spec file cleanup for bytecode OBS-URL: https://build.opensuse.org/request/show/264591 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-curses?expand=0&rev=3 --- ocaml-curses.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ocaml-curses.spec b/ocaml-curses.spec index 38b1c66..d392648 100644 --- a/ocaml-curses.spec +++ b/ocaml-curses.spec @@ -34,6 +34,7 @@ BuildRequires: ncurses-devel BuildRequires: ocaml >= 4.00.1 BuildRequires: ocaml-rpm-macros >= 4.02.1 BuildRequires: ocaml-findlib-devel >= 1.3.3-3 +BuildRequires: ocaml(ocaml.opt) BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -60,8 +61,9 @@ autoreconf %build +# Parallel builds don't work (with bytecode) %configure --enable-widec -make %{?_smp_mflags} all opt +make all opt %install @@ -69,7 +71,11 @@ make %{?_smp_mflags} all opt export DESTDIR=%{buildroot} export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs -ocamlfind install curses META *.cmi *.cmx *.cma *.cmxa *.a *.so *.mli +export OCAMLFILES="curses META *.cmi *.cma *.so *.mli" +%if %{ocaml_native_compiler} +export OCAMLFILES="$OCAMLFILES *.cmx *.cmxa *.a" +%endif +ocamlfind install $OCAMLFILES