From 94d3001e29ef369a50240c74118ba0f292c58efcd1348a2d2c028dd091e63fe2 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Thu, 26 May 2016 11:28:08 +0000 Subject: [PATCH] ldconfig OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-curses?expand=0&rev=8 --- ocaml-curses.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) 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