[packages/ocaml-curl] package site meta for ocamlfind to work

glen glen at pld-linux.org
Sun Nov 24 00:07:53 CET 2013


commit 4790749d3a5d74a5079fd25ae33214c0b70fb789
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Nov 24 01:07:29 2013 +0200

    package site meta for ocamlfind to work
    
    ocamlfind query -format %d curl

 ocaml-curl.spec | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/ocaml-curl.spec b/ocaml-curl.spec
index b7fbf83..fe5981b 100644
--- a/ocaml-curl.spec
+++ b/ocaml-curl.spec
@@ -57,6 +57,16 @@ install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
 # Install curl.mli
 cp -p curl.mli $OCAMLFIND_DESTDIR/curl
 
+install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/curl
+cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/curl/META <<EOF
+requires = ""
+version = "%{version}"
+directory = "+curl"
+archive(byte) = "curl.cma"
+archive(native) = "curl.cmxa"
+linkopts = ""
+EOF
+
 # Make clean in the examples dir so our docs don't contain binaries.
 %{__make} -C examples clean
 
@@ -87,4 +97,4 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/ocaml/curl/*.cmxa
 %endif
 %{_libdir}/ocaml/curl/*.mli
-
+%{_libdir}/ocaml/site-lib/curl
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ocaml-curl.git/commitdiff/4790749d3a5d74a5079fd25ae33214c0b70fb789



More information about the pld-cvs-commit mailing list