ldconfig
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-pcre?expand=0&rev=31
This commit is contained in:
parent
dbf735c397
commit
1edf6dea48
@ -75,10 +75,21 @@ make all
|
|||||||
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
||||||
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
||||||
make NATIVE=true install
|
make NATIVE=true install
|
||||||
|
#
|
||||||
|
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
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING.txt README.md
|
%doc COPYING.txt README.md
|
||||||
|
/etc/ld.so.conf.d/*.conf
|
||||||
%dir %{_libdir}/ocaml
|
%dir %{_libdir}/ocaml
|
||||||
%dir %{_libdir}/ocaml/*
|
%dir %{_libdir}/ocaml/*
|
||||||
%if %{ocaml_native_compiler}
|
%if %{ocaml_native_compiler}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user