X-Git-Url: http://git.pld-linux.org/?p=packages%2Focaml-zarith.git;a=blobdiff_plain;f=ocaml-zarith.spec;h=b5f7c3580d79047e949e00bcb1a180d8055e202d;hp=2bcbf24703fb88921646a222e5bedef479f90f01;hb=a40b17b7eb754b7d1cb6a2070a680beb2c545fc5;hpb=5c4f80f821fb55ff0f9c03c81ad1276683f4e0b2 diff --git a/ocaml-zarith.spec b/ocaml-zarith.spec index 2bcbf24..b5f7c35 100644 --- a/ocaml-zarith.spec +++ b/ocaml-zarith.spec @@ -1,6 +1,6 @@ # # 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 @@ -12,7 +12,7 @@ Summary: Zarith: arbitrary-precision integers 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 @@ -21,10 +21,12 @@ Source0: https://github.com/ocaml/Zarith/archive/release-%{version}/Zarith-%{ver 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 @@ -75,12 +77,7 @@ install -d $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/site-lib/%{module} -cat <> $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 @@ -97,7 +94,6 @@ rm -rf $RPM_BUILD_ROOT %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)