From 04f1f9a5ba7e4efefa1ff15b63bf7975d8d0a52c Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 21 Jul 2015 12:13:01 +0100 Subject: [PATCH] Enable bytecode compilation. --- ocaml-curses.spec | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/ocaml-curses.spec b/ocaml-curses.spec index 7c71f1f..40f40a6 100644 --- a/ocaml-curses.spec +++ b/ocaml-curses.spec @@ -2,15 +2,13 @@ Name: ocaml-curses Version: 1.0.3 -Release: 29%{?dist} +Release: 30%{?dist} Summary: OCaml bindings for ncurses License: LGPLv2+ URL: http://savannah.nongnu.org/projects/ocaml-tmk/ Source0: http://download.savannah.gnu.org/releases/ocaml-tmk/%{name}-%{version}.tar.gz -ExcludeArch: sparc64 s390 s390x - BuildRequires: ocaml >= 4.00.1 BuildRequires: ocaml-findlib-devel >= 1.3.3-3 BuildRequires: ncurses-devel @@ -48,14 +46,21 @@ autoreconf %build %configure --enable-widec -make all opt +make all +%if %opt +make opt +%endif %install export DESTDIR=$RPM_BUILD_ROOT export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs +%if %opt ocamlfind install curses META *.cmi *.cmx *.cma *.cmxa *.a *.so *.mli +%else +ocamlfind install curses META *.cmi *.cma *.a *.so *.mli +%endif %files @@ -82,6 +87,9 @@ ocamlfind install curses META *.cmi *.cmx *.cma *.cmxa *.a *.so *.mli %changelog +* Tue Jul 21 2015 Richard W.M. Jones - 1.0.3-30 +- Enable bytecode compilation. + * Wed Jun 24 2015 Richard W.M. Jones - 1.0.3-29 - ocaml-4.02.2 final rebuild.