#
# 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
Summary(pl.UTF-8): Zarith - liczby caĆkowite dowolnej precyzji
Name: ocaml-zarith
Version: 1.12
-Release: 2
+Release: 5
License: LGPL v2 with linking exception
Group: Applications/Math
#Source0Download: https://github.com/ocaml/Zarith/releases
URL: http://github.com/ocaml/Zarith
BuildRequires: bash
BuildRequires: gmp-devel
-BuildRequires: ocaml >= 3.12.1
+BuildRequires: ocaml >= 1:4.04
BuildRequires: ocaml-findlib
BuildRequires: perl-base
%requires_eq ocaml-runtime
+# does not work on x32 because sizeof(intnat) != sizeof(mp_limb_t) (4 != 8)
+ExclusiveArch: %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{module}
-cat <<EOF >> $OCAMLFIND_DESTDIR/%{module}/META
-directory="+%{module}"
-EOF
-ln -sr $OCAMLFIND_DESTDIR/%{module}/META \
- $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{module}
+install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/
# not required with system package manager
%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/*.so.owner
%if %{with ocaml_opt}
%attr(755,root,root) %{_libdir}/ocaml/%{module}/zarith.cmxs
%endif
-%{_libdir}/ocaml/site-lib/%{module}
%files devel
%defattr(644,root,root,755)