diff --git a/ocaml-menhir.spec b/ocaml-menhir.spec index a5ec70b..ddfc296 100644 --- a/ocaml-menhir.spec +++ b/ocaml-menhir.spec @@ -52,7 +52,7 @@ developing applications that use %{name}. %build o= make \ -%if %{defined ocaml_native_compiler} +%if 0%{?ocaml_native_compiler} TARGET=native \ %else TARGET=byte \ @@ -67,7 +67,7 @@ OCAMLFIND_DESTDIR=%{buildroot}`ocamlc -where` mkdir -vp ${OCAMLFIND_DESTDIR} make \ install \ -%if %{defined ocaml_native_compiler} +%if 0%{?ocaml_native_compiler} TARGET=native \ %else TARGET=byte \ @@ -86,7 +86,7 @@ rm -rfv %{buildroot}/usr/share/doc %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* %{_libdir}/ocaml/*/META -%if %{defined ocaml_native_compiler} +%if 0%{?ocaml_native_compiler} %{_libdir}/ocaml/*/*.o %endif %{_libdir}/ocaml/*/*.cmi @@ -98,7 +98,7 @@ rm -rfv %{buildroot}/usr/share/doc %{_mandir}/*/* %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* -%if %{defined ocaml_native_compiler} +%if 0%{?ocaml_native_compiler} %{_libdir}/ocaml/*/*.cmx %endif %{_libdir}/ocaml/*/*.mli