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 %build
o= o=
make \ make \
%if %{defined ocaml_native_compiler} %if 0%{?ocaml_native_compiler}
TARGET=native \ TARGET=native \
%else %else
TARGET=byte \ TARGET=byte \
@ -67,7 +67,7 @@ OCAMLFIND_DESTDIR=%{buildroot}`ocamlc -where`
mkdir -vp ${OCAMLFIND_DESTDIR} mkdir -vp ${OCAMLFIND_DESTDIR}
make \ make \
install \ install \
%if %{defined ocaml_native_compiler} %if 0%{?ocaml_native_compiler}
TARGET=native \ TARGET=native \
%else %else
TARGET=byte \ TARGET=byte \
@ -86,7 +86,7 @@ rm -rfv %{buildroot}/usr/share/doc
%dir %{_libdir}/ocaml %dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/* %dir %{_libdir}/ocaml/*
%{_libdir}/ocaml/*/META %{_libdir}/ocaml/*/META
%if %{defined ocaml_native_compiler} %if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/*/*.o %{_libdir}/ocaml/*/*.o
%endif %endif
%{_libdir}/ocaml/*/*.cmi %{_libdir}/ocaml/*/*.cmi
@ -98,7 +98,7 @@ rm -rfv %{buildroot}/usr/share/doc
%{_mandir}/*/* %{_mandir}/*/*
%dir %{_libdir}/ocaml %dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/* %dir %{_libdir}/ocaml/*
%if %{defined ocaml_native_compiler} %if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/*/*.cmx %{_libdir}/ocaml/*/*.cmx
%endif %endif
%{_libdir}/ocaml/*/*.mli %{_libdir}/ocaml/*/*.mli