diff --git a/ocaml-findlib.spec b/ocaml-findlib.spec index 576d8b6..c286da2 100644 --- a/ocaml-findlib.spec +++ b/ocaml-findlib.spec @@ -88,7 +88,7 @@ tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocam -mandir %{_mandir} \ -with-toolbox make all -%if %{defined ocaml_native_compiler} +%if 0%{?ocaml_native_compiler} make opt %endif rm doc/guide-html/TIMESTAMP @@ -130,7 +130,7 @@ rm -rfv $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlbuild # %{_libdir}/ocaml/topfind %dir %{_libdir}/ocaml/findlib -%if %{defined ocaml_native_compiler} +%if 0%{?ocaml_native_compiler} %{_libdir}/ocaml/*/*.cmxs %endif @@ -144,7 +144,7 @@ rm -rfv $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlbuild %dir %{_libdir}/ocaml/num-top %{_libdir}/ocaml/findlib/META %{_libdir}/ocaml/num-top/META -%if %{defined ocaml_native_compiler} +%if 0%{?ocaml_native_compiler} %{_libdir}/ocaml/*/*.a %{_libdir}/ocaml/*/*.cmxa %endif