fix incorrect ocaml_native_compiler macro change

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-menhir?expand=0&rev=12
This commit is contained in:
Olaf Hering 2017-07-17 14:58:07 +00:00 committed by Git OBS Bridge
parent 870d5a2a64
commit a4ff098d77

View File

@ -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