3 # _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 BuildRequires: perl-devel >= 5.6
17 BuildRequires: gmp-devel
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Math::GMP gives you access to the fast GMP library for fast big
26 Math::GMP daje dostêp do szybkiej biblioteki GMP dla szybkich
27 obliczeñ na du¿ych liczbach ca³kowitych.
30 %setup -q -n %{pdir}-%{pnam}-%{version}
33 %{__perl} Makefile.PL \
36 %{__make} OPTIMIZE="%{rpmcflags}"
38 %{!?_without_tests:%{__make} test}
41 rm -rf $RPM_BUILD_ROOT
44 DESTDIR=$RPM_BUILD_ROOT
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
51 %doc Changes LICENSE README
52 %{perl_vendorarch}/Math/GMP.pm
53 %dir %{perl_vendorarch}/auto/Math/GMP
54 %{perl_vendorarch}/auto/Math/GMP/GMP.bs
55 %attr(755,root,root) %{perl_vendorarch}/auto/Math/GMP/GMP.so
56 %{perl_vendorarch}/auto/Math/GMP/autosplit.ix