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.UTF-8): 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/Math/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 0ead0cd7d7ec1076c6d5a5fbe81b91a3
17 URL: http://search.cpan.org/dist/Math-GMP/
18 BuildRequires: gmp-devel
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: rpmbuild(macros) >= 1.213
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Math::GMP gives you access to the fast GMP library for fast big
28 %description -l pl.UTF-8
29 Math::GMP daje dostęp do szybkiej biblioteki GMP dla szybkich
30 obliczeń na dużych liczbach całkowitych.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
35 %ifarch %{x8664} alpha ia64 ppc64 s390x sparc64
36 # original reference values expect 32-bit long
37 %{__perl} -pi -e 's/^\+9999999999(9*):[0-9]+$/+9999999999$1:9999999999$1/' t/gmppm.t
41 %{__perl} Makefile.PL \
45 OPTIMIZE="%{rpmcflags}"
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc Changes LICENSE README
61 %{perl_vendorarch}/Math/GMP.pm
62 %dir %{perl_vendorarch}/auto/Math/GMP
63 %{perl_vendorarch}/auto/Math/GMP/GMP.bs
64 %attr(755,root,root) %{perl_vendorarch}/auto/Math/GMP/GMP.so
65 %{perl_vendorarch}/auto/Math/GMP/autosplit.ix