Olaf Hering 2016-05-26 11:28:08 +00:00 committed by Git OBS Bridge
parent 0d83a0583a
commit 94d3001e29

View File

@ -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