X-Git-Url: http://git.pld-linux.org/?p=packages%2Focaml-curl.git;a=blobdiff_plain;f=ocaml-curl.spec;h=952853e58789cb57e039b65ea980eb9704bee417;hp=6db2014c8de8dada4b5c6eb092755621df3c6f8d;hb=6131789c0e0244b4e9395fbd8134765f6821feca;hpb=a82d6b2f5d3bc2c023d2d09013995c30fcf82653 diff --git a/ocaml-curl.spec b/ocaml-curl.spec index 6db2014..952853e 100644 --- a/ocaml-curl.spec +++ b/ocaml-curl.spec @@ -1,31 +1,37 @@ # # Conditional build: -%bcond_without ocaml_opt # skip building native optimized binaries (bytecode is always built) +%bcond_without ocaml_opt # native optimized binaries (bytecode is always built) -# not yet available on x32 (ocaml 4.02.1), remove when upstream will support it -%ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9 +# not yet available on x32 (ocaml 4.02.1), update when upstream will support it +%ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9 %undefine with_ocaml_opt %endif %define debug_package %{nil} -%define pkgname curl + Summary: OCaml Curl library (ocurl) -Name: ocaml-%{pkgname} -Version: 0.7.1 -Release: 3 +Summary(pl.UTF-8): Biblioteka Curl dla OCamla (ocurl) +Name: ocaml-curl +Version: 0.9.1 +Release: 4 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 +Patch1: %{name}-sh.patch URL: http://ocurl.forge.ocamlcore.org/ -BuildRequires: curl-devel >= 7.12.0 +BuildRequires: autoconf >= 2.50 +BuildRequires: curl-devel >= 7.28.0 BuildRequires: gawk BuildRequires: ocaml >= 3.10.0-7 BuildRequires: ocaml-findlib-devel +BuildRequires: ocaml-lwt-devel +BuildRequires: ocaml-lwt-ppx-devel +BuildRequires: pkgconfig # Explicitly require Curl (fixes RHBZ#711261). Since ocaml-curl uses # -custom rather than ocamlmklib, automatic detection is infeasible. -Requires: curl-devel >= 7.12.0 +Requires: curl-devel >= 7.28.0 %requires_eq ocaml-runtime ExcludeArch: sparc64 s390 s390x BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -34,25 +40,37 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) The Ocaml Curl Library (Ocurl) is an interface library for the programming language Ocaml to the networking library libcurl. +%description -l pl.UTF-8 +Biblioteka Ocaml Curl (Ocurl) to biblioteka interfejsu języka +programowania Ocaml do biblioteki sieciowe libcurl. + %package devel -Summary: Development files for %{name} +Summary: OCaml Curl library (ocurl) - development part +Summary(pl.UTF-8): Biblioteka Curl dla OCamla (ocurl) - część programistyczna Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel -The %{name}-devel package contains libraries and signature files for -developing applications that use %{name}. +This package contains libraries and signature files for developing +applications that use OCaml Curl library. + +%description devel -l pl.UTF-8 +Ten pakiet zawiera biblioteki i pliki sygnatur do tworzenia aplikacji +z użyciem biblioteki OCamla Curl. %prep %setup -q -n ocurl-%{version} %patch0 -p1 +%patch1 -p1 %build +%{__autoconf} %configure %{__make} -j1 all %install rm -rf $RPM_BUILD_ROOT + export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs @@ -62,8 +80,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 < $RPM_BUILD_ROOT%{_libdir}/ocaml/curl/META <