- updated opt patch auto/th/ocaml-curl-0.9.1-1
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 24 Mar 2021 20:53:03 +0000 (21:53 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 24 Mar 2021 20:53:03 +0000 (21:53 +0100)
- install META where dune expects it

ocaml-curl.spec
ocaml_opt.patch

index ffa199a53121fcf4610b489f4bf2121b4ec4b5b4..355d4eff29d36ac0891aa8b1d27d4f67ee07889a 100644 (file)
@@ -45,7 +45,7 @@ developing applications that use %{name}.
 
 %prep
 %setup -q -n ocurl-%{version}
-#%patch0 -p1
+%patch0 -p1
 
 %build
 %configure
@@ -62,8 +62,7 @@ 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
+cat > $RPM_BUILD_ROOT%{_libdir}/ocaml/curl/META <<EOF
 requires = ""
 version = "%{version}"
 directory = "+curl"
@@ -72,6 +71,9 @@ archive(native) = "curl.cmxa"
 linkopts = ""
 EOF
 
+install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/curl
+ln -sr $RPM_BUILD_ROOT%{_libdir}/ocaml/{curl,site-lib/curl}/META
+
 # Make clean in the examples dir so our docs don't contain binaries.
 %{__make} -C examples clean
 
index 26c071a0085aae3d8ec8564f8124e64a91226d2c..1c4c67534185691ab057a125ba339bc13711e40a 100644 (file)
@@ -1,30 +1,27 @@
 --- ocurl-0.7.1/Makefile.in~   2014-05-12 22:10:26.000000000 +0200
 +++ ocurl-0.7.1/Makefile.in    2015-07-25 14:46:23.107163100 +0200
-@@ -32,10 +32,13 @@
+@@ -32,7 +32,10 @@
  endif
  endif
  
--INSTALL_TARGETS = curl.a curl.cmi curl.mli $(TARGETS)
+-INSTALL_TARGETS = curl$(EXT_LIB) curl.cmi curl.mli $(TARGETS)
 +INSTALL_TARGETS = curl.cmi curl.mli $(TARGETS)
- ifneq (@OCAML_PKG_lwt@,no)
- INSTALL_TARGETS += curl_lwt.cmi curl_lwt.mli curl_lwt.o
- endif
 +ifeq (@OCAMLBEST@,opt)
 +INSTALL_TARGETS += curl.a
 +endif
- all:
-               @$(MAKE) depend
+ ifeq (@OCAML_HAS_BIN_ANNOT@,yes)
+ INSTALL_TARGETS += curl.cmt curl.cmti
+ endif
 @@ -97,10 +97,10 @@
                mkdir -p $(INSTALLDIR)
                $(INSTALLDATA) curl.cma $(INSTALLDIR)
  ifeq (@OCAMLBEST@,opt)
 -              $(INSTALLDATA) curl.cmxa $(INSTALLDIR)
-+              $(INSTALLDATA) curl.cmxa curl.a $(INSTALLDIR)
++              $(INSTALLDATA) curl.cmxa curl$(EXT_LIB) $(INSTALLDIR)
  endif
                $(INSTALLDATA) curl.mli curl.cmi $(INSTALLDIR)
--              $(INSTALLDATA) curl.a libcurl-helper.a $(INSTALLDIR)
-+              $(INSTALLDATA) libcurl-helper.a $(INSTALLDIR)
+-              $(INSTALLDATA) curl$(EXT_LIB) libcurl-helper$(EXT_LIB) $(INSTALLDIR)
++              $(INSTALLDATA) libcurl-helper$(EXT_LIB) $(INSTALLDIR)
  endif
  
  uninstall:
This page took 0.117889 seconds and 4 git commands to generate.