From f881de52fe082009d9243e1ab946c72777df2f1f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 21 Jul 2015 11:59:44 +0100 Subject: [PATCH] Enable bytecode compilation. --- ocaml-augeas.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/ocaml-augeas.spec b/ocaml-augeas.spec index b500ee9..30a1e20 100644 --- a/ocaml-augeas.spec +++ b/ocaml-augeas.spec @@ -2,7 +2,7 @@ Name: ocaml-augeas Version: 0.5 -Release: 16%{?dist} +Release: 17%{?dist} Summary: OCaml bindings for Augeas configuration API License: LGPLv2+ with exceptions @@ -11,8 +11,6 @@ Source0: http://people.redhat.com/~rjones/augeas/files/%{name}-%{version} Patch1: ocaml-augeas-0.5-use-ocamlopt-g.patch -ExcludeArch: sparc64 s390 s390x - BuildRequires: ocaml >= 3.09.0 BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-ocamldoc @@ -43,7 +41,11 @@ developing applications that use %{name}. %build %configure +%if %opt make +%else +make mlaugeas.cma test_augeas +%endif make doc @@ -59,7 +61,11 @@ mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs # The upstream 'make install' rule is missing '*.so' and distributes # '*.cmi' instead of just the augeas.cmi file. Temporary fix: #make install +%if %opt ocamlfind install augeas META *.mli *.cmx *.cma *.cmxa *.a augeas.cmi *.so +%else +ocamlfind install augeas META *.mli *.cma *.a augeas.cmi *.so +%endif chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so @@ -88,6 +94,9 @@ chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so %changelog +* Tue Jul 21 2015 Richard W.M. Jones - 0.5-17 +- Enable bytecode compilation. + * Wed Jun 24 2015 Richard W.M. Jones - 0.5-16 - ocaml-4.02.2 final rebuild.