3 %bcond_without tests # do not perform "make test"
7 Summary: Math::GMP Perl module - high speed arbitrary size integer math
8 Summary(pl.UTF-8): Moduł Perla Math::GMP - szybka arytmetyka liczb całkowitych o dowolnym rozmiarze
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 817f68db8aa05ca82d0da6a6a5f02f03
16 URL: http://search.cpan.org/dist/Math-GMP/
17 BuildRequires: gmp-devel
18 BuildRequires: perl-Alien-GMP
19 BuildRequires: perl-Devel-CheckLib
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: rpmbuild(macros) >= 1.213
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Math::GMP gives you access to the fast GMP library for fast big
29 %description -l pl.UTF-8
30 Math::GMP daje dostęp do szybkiej biblioteki GMP dla szybkich
31 obliczeń na dużych liczbach całkowitych.
34 %setup -q -n %{pdir}-%{pnam}-%{version}
36 %ifarch %{x8664} alpha ia64 ppc64 s390x sparc64
37 # original reference values expect 32-bit long
38 %{__perl} -pi -e 's/^\+9999999999(9*):[0-9]+$/+9999999999$1:9999999999$1/' t/gmppm.t
42 %{__perl} Makefile.PL \
46 OPTIMIZE="%{rpmcflags}"
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc Changes LICENSE README.md
62 %{perl_vendorarch}/Math/GMP.pm
63 %dir %{perl_vendorarch}/auto/Math/GMP
64 %attr(755,root,root) %{perl_vendorarch}/auto/Math/GMP/GMP.so
65 %{perl_vendorarch}/auto/Math/GMP/autosplit.ix