Fix bytecode compilation.
This commit is contained in:
parent
a91c15fc91
commit
8e7c7adae1
|
@ -4,7 +4,7 @@
|
|||
|
||||
Name: ocaml-ancient
|
||||
Version: 0.9.0
|
||||
Release: 23%{?dist}
|
||||
Release: 24%{?dist}
|
||||
Summary: OCaml library for large memory structures and sharing
|
||||
License: LGPLv2+ with exceptions
|
||||
|
||||
|
@ -20,7 +20,6 @@ BuildRequires: ocaml >= 3.10.0
|
|||
BuildRequires: ocaml-findlib-devel
|
||||
BuildRequires: ocaml-ocamldoc
|
||||
BuildRequires: chrpath
|
||||
ExcludeArch: sparc64 s390 s390x
|
||||
|
||||
|
||||
%description
|
||||
|
@ -65,7 +64,13 @@ pushd mmalloc
|
|||
make
|
||||
popd
|
||||
|
||||
make CFLAGS='-g -fPIC -Wall -Werror -I%{ocamllibdir} -DOCAML_VERSION_MAJOR=$(OCAML_VERSION_MAJOR) -DOCAML_VERSION_MINOR=$(OCAML_VERSION_MINOR) %{optflags}'
|
||||
CFLAGS='-g -fPIC -Wall -Werror -I%{ocamllibdir} -DOCAML_VERSION_MAJOR=$(OCAML_VERSION_MAJOR) -DOCAML_VERSION_MINOR=$(OCAML_VERSION_MINOR) %{optflags}' \
|
||||
make \
|
||||
%if %opt
|
||||
all
|
||||
%else
|
||||
ancient.cma META
|
||||
%endif
|
||||
|
||||
make doc ||:
|
||||
|
||||
|
@ -75,8 +80,13 @@ export DESTDIR=$RPM_BUILD_ROOT
|
|||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
||||
%if %opt
|
||||
ocamlfind install ancient ancient.cmi *.mli *.cma ancient.cmx *.cmxa *.a *.so \
|
||||
mmalloc/*.a META
|
||||
%else
|
||||
ocamlfind install ancient ancient.cmi *.mli *.cma *.a *.so \
|
||||
mmalloc/*.a META
|
||||
%endif
|
||||
|
||||
chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
||||
|
||||
|
@ -105,6 +115,9 @@ chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
|||
|
||||
|
||||
%changelog
|
||||
* Tue Jul 21 2015 Richard W.M. Jones <rjones@redhat.com> - 0.9.0-24
|
||||
- Fix bytecode compilation.
|
||||
|
||||
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 0.9.0-23
|
||||
- ocaml-4.02.2 final rebuild.
|
||||
|
||||
|
|
Loading…
Reference in New Issue