diff --git a/ocaml-curses.changes b/ocaml-curses.changes index 211de05..7f5c43b 100644 --- a/ocaml-curses.changes +++ b/ocaml-curses.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 17 20:24:18 UTC 2017 - ohering@suse.de + +- Since oasis 0.4.7 bytecode has no stublibs anymore + ------------------------------------------------------------------- Mon Jul 17 12:48:58 UTC 2017 - ohering@suse.de diff --git a/ocaml-curses.spec b/ocaml-curses.spec index 2274023..84f3c4d 100644 --- a/ocaml-curses.spec +++ b/ocaml-curses.spec @@ -81,7 +81,7 @@ Library curses Install: true Modules: Curses CSources: ml_curses.c, config.h - CCOpt: -Wall -O2 -g -I$PWD -Werror -D_GNU_SOURCE -DHAVE_CONFIG_H + CCOpt: %{optflags} -fPIC -I$PWD -Werror -D_GNU_SOURCE -DHAVE_CONFIG_H CCLib: -lncursesw Document curses @@ -101,8 +101,9 @@ _EOF_ %install %ocaml_oasis_findlib_install # +%if 0%{?ocaml_native_compiler} mkdir -vp %{buildroot}/etc/ld.so.conf.d/ -tee %{buildroot}/etc/ld.so.conf.d/%{name}-stub.conf <<_EOF_ +tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_ %{_libdir}/ocaml/curses _EOF_ # @@ -110,16 +111,17 @@ _EOF_ %post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%endif %files %defattr(-,root,root,-) %doc COPYING -/etc/ld.so.conf.d/*.conf %dir %{_libdir}/ocaml/* %if 0%{?ocaml_native_compiler} %{_libdir}/ocaml/*/*.cmxs -%endif %{_libdir}/ocaml/*/*.so +/etc/ld.so.conf.d/*.conf +%endif %files devel %defattr(-,root,root,-)