diff --git a/ocaml-ocplib-simplex.spec b/ocaml-ocplib-simplex.spec index 245fe9b..2abbfaf 100644 --- a/ocaml-ocplib-simplex.spec +++ b/ocaml-ocplib-simplex.spec @@ -19,6 +19,7 @@ Patch0: %{name}-tests.patch Patch1: %{name}-destdir.patch BuildRequires: autoconf +BuildRequires: make BuildRequires: ocaml BuildRequires: ocaml-findlib BuildRequires: ocaml-num-devel @@ -46,16 +47,15 @@ sed -i '/OCAMLFIND_DESTDIR/d' Makefile.in %build %configure %ifarch %{ocaml_native_compiler} -make %{?_smp_mflags} opt +%make_build opt %else -make %{?_smp_mflags} byte +%make_build byte %endif %install -export DESTDIR=%{buildroot} export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR -make install +%make_install %check make local-tests