Version 4.1.0. Drop upstreamed -32bit patch.

This commit is contained in:
Jerry James 2020-07-13 16:09:25 -06:00
parent a9e0e4477a
commit ebecaa2818
3 changed files with 9 additions and 18 deletions

View File

@ -1,11 +0,0 @@
--- src/mlmpfr_stubs.c.orig 2019-11-03 01:49:34.000000000 -0700
+++ src/mlmpfr_stubs.c 2020-03-25 10:57:18.279258620 -0600
@@ -39,7 +39,7 @@ precision_in_range (value prec)
int p = Int_val (prec);
if (p <= Int_val (caml_mpfr_prec_min ())
- || p >= Int_val (caml_mpfr_prec_max ()))
+ || p >= Unsigned_int_val (caml_mpfr_prec_max ()))
caml_raise_with_arg (*caml_named_value ("precision range exception"),
Val_int (p));
}

View File

@ -1,15 +1,13 @@
%global srcname mlmpfr
Name: ocaml-%{srcname}
Version: 4.0.2
Release: 4%{?dist}
Version: 4.1.0
Release: 1%{?dist}
Summary: OCaml bindings for MPFR
License: LGPLv3
URL: https://github.com/thvnx/%{srcname}
Source0: %{url}/archive/%{srcname}.%{version}-dune.tar.gz
# Fix integer overflow on 32-bit architectures
Patch0: %{name}-32bit.patch
Source0: %{url}/archive/%{srcname}.%{version}.tar.gz
BuildRequires: ocaml >= 4.04
BuildRequires: ocaml-dune >= 1.11.0
@ -36,7 +34,7 @@ BuildArch: noarch
Documentation for %{name}.
%prep
%autosetup -n %{srcname}-%{srcname}.%{version}-dune -p0
%autosetup -n %{srcname}-%{srcname}.%{version}
%build
dune build %{?_smp_mflags}
@ -100,6 +98,10 @@ dune runtest
%license LICENSE
%changelog
* Mon Jul 13 2020 Jerry James <loganjerry@gmail.com> - 4.1.0-1
- Version 4.1.0
- Drop upstreamed -32bit patch
* Tue May 05 2020 Richard W.M. Jones <rjones@redhat.com> - 4.0.2-4
- OCaml 4.11.0+dev2-2020-04-22 rebuild

View File

@ -1 +1 @@
SHA512 (mlmpfr.4.0.2-dune.tar.gz) = ac11e67975a16c43d9f9b753bc0988c838a11aa2de6d9c3ebe2d2c30ef76867023835dcf24b572368d437c6dc734b57a2dff00f915dc437696289e1315292ed3
SHA512 (mlmpfr.4.1.0.tar.gz) = f454a4787651eff6d30df97f6d69da2d57141aedcb347f037e4eb82e923dbc791a27ff3914918b51245cfc3fcce2b1b0f3246a76b0ad7f9a461a674b762d12b3