3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Math::GMP Perl module - high speed arbitrary size integer math
9 Summary(pl): Modu³ Perla Math::GMP - szybka arytmetyka liczb ca³kowitych o dowolnym rozmiarze
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: cf653ffa60607717ff4fc67177ee07b0
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: gmp-devel
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Math::GMP gives you access to the fast GMP library for fast big
27 Math::GMP daje dostêp do szybkiej biblioteki GMP dla szybkich
28 obliczeñ na du¿ych liczbach ca³kowitych.
31 %setup -q -n %{pdir}-%{pnam}-%{version}
33 %ifarch alpha amd64 ia64 ppc64 sparc64
34 # original reference values expect 32-bit long
35 %{__perl} -pi -e 's/^\+9999999999(9*):[0-9]+$/+9999999999$1:9999999999$1/' t/gmppm.t
39 %{__perl} Makefile.PL \
42 OPTIMIZE="%{rpmcflags}"
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc Changes LICENSE README
58 %{perl_vendorarch}/Math/GMP.pm
59 %dir %{perl_vendorarch}/auto/Math/GMP
60 %{perl_vendorarch}/auto/Math/GMP/GMP.bs
61 %attr(755,root,root) %{perl_vendorarch}/auto/Math/GMP/GMP.so
62 %{perl_vendorarch}/auto/Math/GMP/autosplit.ix