Enable bytecode compilation.

This commit is contained in:
Richard W.M. Jones 2015-07-21 12:13:01 +01:00
parent ddbe09cfb8
commit 04f1f9a5ba

View File

@ -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 <rjones@redhat.com> - 1.0.3-30
- Enable bytecode compilation.
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 1.0.3-29
- ocaml-4.02.2 final rebuild.