From 5e6af570387ce592a1f2bdff540ba55f78af3054c0b6f65d77dd66066e37374f Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Thu, 26 May 2016 11:58:52 +0000 Subject: [PATCH] ldconfig OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-parmap?expand=0&rev=6 --- ...press:tar_scm:ocaml-parmap-20160512.7598fb9.tar.xz | 4 ++-- _service:set_version:ocaml-parmap.spec | 11 +++++++++++ ocaml-parmap.spec | 11 +++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/_service:recompress:tar_scm:ocaml-parmap-20160512.7598fb9.tar.xz b/_service:recompress:tar_scm:ocaml-parmap-20160512.7598fb9.tar.xz index d374f33..24d9a32 100644 --- a/_service:recompress:tar_scm:ocaml-parmap-20160512.7598fb9.tar.xz +++ b/_service:recompress:tar_scm:ocaml-parmap-20160512.7598fb9.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d72190494977d3ece30612cb48ed8dd4199bc714b71899bc3422b0b2cc94585c -size 62356 +oid sha256:4c5a8dc279be621ba2709684822fba25fc182f68cfbbe957b0445070b8204bc8 +size 62368 diff --git a/_service:set_version:ocaml-parmap.spec b/_service:set_version:ocaml-parmap.spec index a2b8b60..c394647 100644 --- a/_service:set_version:ocaml-parmap.spec +++ b/_service:set_version:ocaml-parmap.spec @@ -81,10 +81,21 @@ make \ MANDIR=${o}%{_mandir}/man3 \ DESTDIR=%{buildroot} \ %{?_smp_mflags} +# +mkdir -vp %{buildroot}/etc/ld.so.conf.d/ +tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_ +%{_libdir}/ocaml/stublibs +_EOF_ +# + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc README.md LICENSE +/etc/ld.so.conf.d/*.conf %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* %{_libdir}/ocaml/*/*.so diff --git a/ocaml-parmap.spec b/ocaml-parmap.spec index 28b72ad..f4a7613 100644 --- a/ocaml-parmap.spec +++ b/ocaml-parmap.spec @@ -81,10 +81,21 @@ make \ MANDIR=${o}%{_mandir}/man3 \ DESTDIR=%{buildroot} \ %{?_smp_mflags} +# +mkdir -vp %{buildroot}/etc/ld.so.conf.d/ +tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_ +%{_libdir}/ocaml/stublibs +_EOF_ +# + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc README.md LICENSE +/etc/ld.so.conf.d/*.conf %dir %{_libdir}/ocaml %dir %{_libdir}/ocaml/* %{_libdir}/ocaml/*/*.so