diff --git a/.gitignore b/.gitignore index 52277df..5b5dfea 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /ocaml-base64-2.0.0.tar.gz +/v2.1.2.tar.gz diff --git a/ocaml-base64.spec b/ocaml-base64.spec index d7f9838..0c4cbf7 100644 --- a/ocaml-base64.spec +++ b/ocaml-base64.spec @@ -4,13 +4,13 @@ %endif Name: ocaml-base64 -Version: 2.0.0 -Release: 5%{?dist} +Version: 2.1.2 +Release: 1%{?dist} Summary: Base64 library for OCaml License: ISC URL: https://github.com/mirage/ocaml-base64 -Source0: https://github.com/mirage/ocaml-base64/archive/v2.0.0/ocaml-base64-2.0.0.tar.gz +Source0: https://github.com/mirage/ocaml-base64/archive/v%{version}.tar.gz BuildRequires: ocaml BuildRequires: ocaml-ocamldoc @@ -37,15 +37,18 @@ Development files for %{name}. %build -./configure -make +# Bizarro build system, so build and install it by hand. +ocamlbuild -use-ocamlfind -classic-display -tag debug src/b64.cma +ocamlbuild -use-ocamlfind -classic-display -tag debug src/b64.cmxa +ocamlbuild -use-ocamlfind -classic-display -tag debug src/b64.cmxs %install export DESTDIR=$RPM_BUILD_ROOT export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml mkdir -p $OCAMLFIND_DESTDIR -make install INSTALLFLAGS=destdir=$DESTDIR +sed 's/^version.*/version = "%{version}"/' < pkg/META > META +ocamlfind install base64 _build/src/* META # Delete a few files we don't really want. pushd $OCAMLFIND_DESTDIR/base64 @@ -77,6 +80,9 @@ popd %changelog +* Mon Nov 07 2016 Richard W.M. Jones - 2.1.2-1 +- New upstream version 2.1.2. + * Wed Oct 19 2016 Dan HorĂ¡k - 2.0.0-5 - disable debuginfo subpackage on interpreted builds diff --git a/sources b/sources index cc561e0..b48269f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -52b9736839c83cf88a9fb1373cf2e35c ocaml-base64-2.0.0.tar.gz +479d28f71f28df483bf34d3a2cffaf04 v2.1.2.tar.gz