From a4ff098d7767b44464f6d6511b9850c78150dede55f3f5bb195da3026ff72338 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Mon, 17 Jul 2017 14:58:07 +0000 Subject: [PATCH] fix incorrect ocaml_native_compiler macro change OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-menhir?expand=0&rev=12 --- ocaml-menhir.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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