Olaf Hering 2016-05-25 11:56:53 +00:00 committed by Git OBS Bridge
parent 928bdef339
commit 3c71d95c45

View File

@ -69,7 +69,10 @@ autoreconf
%build %build
# Parallel builds don't work (with bytecode) # Parallel builds don't work (with bytecode)
%configure --enable-widec %configure --enable-widec
make all opt make all
%if %{ocaml_native_compiler}
make opt
%endif
%install %install
@ -88,24 +91,24 @@ ocamlfind install $OCAMLFILES
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING %doc COPYING
%{_libdir}/ocaml/curses %dir %{_libdir}/ocaml
%if %{ocaml_native_compiler} %dir %{_libdir}/ocaml/*
%exclude %{_libdir}/ocaml/curses/*.a %{_libdir}/ocaml/*/*.so
%exclude %{_libdir}/ocaml/curses/*.cmxa %{_libdir}/ocaml/*/*.so.owner
%exclude %{_libdir}/ocaml/curses/*.cmx
%endif
%exclude %{_libdir}/ocaml/curses/*.mli
%{_libdir}/ocaml/stublibs/*.so
%{_libdir}/ocaml/stublibs/*.so.owner
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING %doc COPYING
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/*
%{_libdir}/ocaml/*/*.a
%if %{ocaml_native_compiler} %if %{ocaml_native_compiler}
%{_libdir}/ocaml/curses/*.a %{_libdir}/ocaml/*/*.cmx
%{_libdir}/ocaml/curses/*.cmxa %{_libdir}/ocaml/*/*.cmxa
%{_libdir}/ocaml/curses/*.cmx
%endif %endif
%{_libdir}/ocaml/curses/*.mli %{_libdir}/ocaml/*/*.cma
%{_libdir}/ocaml/*/*.cmi
%{_libdir}/ocaml/*/*.mli
%{_libdir}/ocaml/*/META
%changelog %changelog