From 52f8379e8b25d16326a22fcc0687d60db0a556d8958f10e8ece3d1e3d521e50a Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Wed, 25 May 2016 11:20:47 +0000 Subject: [PATCH] bytecode OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-cppo?expand=0&rev=10 --- ocaml-cppo.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ocaml-cppo.spec b/ocaml-cppo.spec index 8ec5ceb..d124c9e 100644 --- a/ocaml-cppo.spec +++ b/ocaml-cppo.spec @@ -70,7 +70,11 @@ make BEST=opt opt ocamlbuild %install export OCAMLFIND_DESTDIR=%{buildroot}$(ocamlfind printconf destdir) mkdir -p %{buildroot}%{_bindir} $OCAMLFIND_DESTDIR -make install BINDIR="%{buildroot}%{_bindir}" +make BEST=byte install BINDIR="%{buildroot}%{_bindir}" +%if %{ocaml_native_compiler} +find "%{buildroot}" -name META -print -delete +make BEST=opt install BINDIR="%{buildroot}%{_bindir}" +%endif %files %defattr(-,root,root)