%define pkgname curl
Summary: OCaml Curl library (ocurl)
Name: ocaml-%{pkgname}
-Version: 0.7.1
-Release: 3
+Version: 0.9.1
+Release: 1
License: MIT
Group: Libraries
-Source0: https://forge.ocamlcore.org/frs/download.php/1400/ocurl-%{version}.tar.gz
-# Source0-md5: d138fd78538ae3bd008d6e9c2993d240
+Source0: https://github.com/ygrek/ocurl/releases/download/%{version}/ocurl-%{version}.tar.gz
+# Source0-md5: 1ff6b12803fa0c6e9a4358dd29b83910
Patch0: ocaml_opt.patch
URL: http://ocurl.forge.ocamlcore.org/
BuildRequires: curl-devel >= 7.12.0
# 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"
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