Enable bytecode compilation.
This commit is contained in:
parent
2445c92c9c
commit
f881de52fe
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: ocaml-augeas
|
Name: ocaml-augeas
|
||||||
Version: 0.5
|
Version: 0.5
|
||||||
Release: 16%{?dist}
|
Release: 17%{?dist}
|
||||||
Summary: OCaml bindings for Augeas configuration API
|
Summary: OCaml bindings for Augeas configuration API
|
||||||
License: LGPLv2+ with exceptions
|
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
|
Patch1: ocaml-augeas-0.5-use-ocamlopt-g.patch
|
||||||
|
|
||||||
ExcludeArch: sparc64 s390 s390x
|
|
||||||
|
|
||||||
BuildRequires: ocaml >= 3.09.0
|
BuildRequires: ocaml >= 3.09.0
|
||||||
BuildRequires: ocaml-findlib-devel
|
BuildRequires: ocaml-findlib-devel
|
||||||
BuildRequires: ocaml-ocamldoc
|
BuildRequires: ocaml-ocamldoc
|
||||||
@ -43,7 +41,11 @@ developing applications that use %{name}.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
|
%if %opt
|
||||||
make
|
make
|
||||||
|
%else
|
||||||
|
make mlaugeas.cma test_augeas
|
||||||
|
%endif
|
||||||
make doc
|
make doc
|
||||||
|
|
||||||
|
|
||||||
@ -59,7 +61,11 @@ mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
|||||||
# The upstream 'make install' rule is missing '*.so' and distributes
|
# The upstream 'make install' rule is missing '*.so' and distributes
|
||||||
# '*.cmi' instead of just the augeas.cmi file. Temporary fix:
|
# '*.cmi' instead of just the augeas.cmi file. Temporary fix:
|
||||||
#make install
|
#make install
|
||||||
|
%if %opt
|
||||||
ocamlfind install augeas META *.mli *.cmx *.cma *.cmxa *.a augeas.cmi *.so
|
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
|
chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
||||||
|
|
||||||
@ -88,6 +94,9 @@ chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 21 2015 Richard W.M. Jones <rjones@redhat.com> - 0.5-17
|
||||||
|
- Enable bytecode compilation.
|
||||||
|
|
||||||
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 0.5-16
|
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 0.5-16
|
||||||
- ocaml-4.02.2 final rebuild.
|
- ocaml-4.02.2 final rebuild.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user