]> git.pld-linux.org Git - packages/ocaml-curl.git/commitdiff
package site meta for ocamlfind to work
authorElan Ruusamäe <glen@delfi.ee>
Sat, 23 Nov 2013 23:07:29 +0000 (01:07 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 23 Nov 2013 23:07:29 +0000 (01:07 +0200)
ocamlfind query -format %d curl

ocaml-curl.spec

index b7fbf8359c3ad0639ba3c7e45962043d8c529766..fe5981b9b8a8918bc62abc57e93fcba9c61ca199 100644 (file)
@@ -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
This page took 0.052549 seconds and 4 git commands to generate.