diff --git a/ocaml-curses.spec b/ocaml-curses.spec index 970c1c2..d2a39ce 100644 --- a/ocaml-curses.spec +++ b/ocaml-curses.spec @@ -78,12 +78,22 @@ export OCAMLFILES="curses META *.cmi *.cma *.so *.mli" export OCAMLFILES="$OCAMLFILES *.cmx *.cmxa *.a" %endif ocamlfind install $OCAMLFILES +# +mkdir -vp %{buildroot}/etc/ld.so.conf.d/ +tee %{buildroot}/etc/ld.so.conf.d/%{name}-stub.conf <<_EOF_ +%{_libdir}/ocaml/stublibs +_EOF_ +# +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc COPYING +/etc/ld.so.conf.d/*.conf %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* %{_libdir}/ocaml/*/*.so