diff --git a/ocaml-fileutils.spec b/ocaml-fileutils.spec index e2b09ae..a0f44e6 100644 --- a/ocaml-fileutils.spec +++ b/ocaml-fileutils.spec @@ -2,7 +2,7 @@ Name: ocaml-fileutils Version: 0.4.5 -Release: 3%{?dist} +Release: 4%{?dist} Summary: OCaml library for common file and filename operations License: LGPLv2 with exceptions @@ -50,10 +50,13 @@ mv setup.ml setup.ml.old sed '/oUnit/d' < setup.ml.old > setup.ml %endif -ocaml setup.ml -configure --prefix %{_prefix} --destdir $RPM_BUILD_ROOT - %build +%ifarch %{arm} +# Workaround for ARM code gen bug (RHBZ#1119049). +export OCAMLFIND_COMMANDS='ocamlopt=ocamlopt' +%endif +ocaml setup.ml -configure --prefix %{_prefix} --destdir $RPM_BUILD_ROOT make @@ -95,8 +98,9 @@ make test %changelog -* Sat Jul 12 2014 Richard W.M. Jones - 0.4.5-3 +* Mon Jul 14 2014 Richard W.M. Jones - 0.4.5-4 - Rebuild for OCaml 4.02.0. +- Add workaround for OCaml ARM code gen bug (RHBZ#1119049). * Sat Jun 07 2014 Fedora Release Engineering - 0.4.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild