--- /dev/null
+--- Zarith-release-1.9.1/configure.orig 2019-08-28 16:17:04.000000000 +0200
++++ Zarith-release-1.9.1/configure 2019-12-28 15:42:01.220520989 +0100
+@@ -323,7 +323,11 @@
+ arch='x86_64'
+ fi
+ ;;
+- i486-*linux-gnu|i686-*linux-gnu|i486-kfreebsd-gnu)
++ x86_64-*linux-gnux32)
++ ccdef="-DZ_ELF -DZ_DOT_LABEL_PREFIX $ccdef"
++ arch='x86_64'
++ ;;
++ i[456]86-*linux-gnu|iathlon-*linux-gnu|i486-kfreebsd-gnu)
+ ccdef="-DZ_ELF -DZ_DOT_LABEL_PREFIX $ccdef"
+ arch='i686';;
+ i686-*cygwin)
Summary(pl.UTF-8): Zarith - liczby całkowite dowolnej precyzji
Name: ocaml-zarith
Version: 1.9.1
-Release: 1
+Release: 2
License: LGPL v2 with linking exception
Group: Applications/Math
#Source0Download: https://github.com/ocaml/Zarith/releases
Source0: https://github.com/ocaml/Zarith/archive/release-%{version}/Zarith-%{version}.tar.gz
# Source0-md5: af41b7534a4c91a8f774f04e307c1c66
+Patch0: %{name}-x32.patch
URL: http://github.com/ocaml/Zarith
BuildRequires: bash
BuildRequires: gmp-devel
%prep
%setup -q -n Zarith-release-%{version}
+%patch0 -p1
%build
+CC="%{__cc}" \
CFLAGS="%{rpmcflags}" \
./configure \
+ -host %{_target_platform} \
-installdir $RPM_BUILD_ROOT%{_libdir}/ocaml \
-gmp