New upstream version 2.1.2.

This commit is contained in:
Richard W.M. Jones 2016-11-07 16:54:48 +00:00
parent 3785237e89
commit 18ab209f36
3 changed files with 14 additions and 7 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/ocaml-base64-2.0.0.tar.gz
/v2.1.2.tar.gz

View File

@ -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 <rjones@redhat.com> - 2.1.2-1
- New upstream version 2.1.2.
* Wed Oct 19 2016 Dan Horák <dan[at]danny.cz> - 2.0.0-5
- disable debuginfo subpackage on interpreted builds

View File

@ -1 +1 @@
52b9736839c83cf88a9fb1373cf2e35c ocaml-base64-2.0.0.tar.gz
479d28f71f28df483bf34d3a2cffaf04 v2.1.2.tar.gz