3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam BigInteger
8 Summary: Math::BigInteger - arbitrary length integer extension module for Perl
9 Summary(pl.UTF-8): Math::BigInteger - moduł rozszerzenia liczb całkowitych dowolnej długości
10 Name: perl-Math-BigInteger
13 # if used in a product, Systemics should be given attribution
14 License: free use, distributable
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: a4aa79e070f3f5f8e7f01443fdc03b8e
18 Patch0: %{name}-Fputc_to_fputc.patch
19 URL: http://search.cpan.org/dist/Math-BigInteger/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Math::BigInteger module gives access to Eric Young's bignum library.
26 This provides a faster alternative to the Math::BigInt library.
28 %description -l pl.UTF-8
29 Moduł Math::BigInteger umożliwia dostęp do biblioteki bignum Erica
30 Younga. Jest to szybsza alternatywa dla biblioteki Math::BigInt.
33 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 OPTIMIZE="%{rpmcflags}"
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %{perl_vendorarch}/Math/BigInteger.pm
58 %dir %{perl_vendorarch}/auto/Math/BigInteger
59 %attr(755,root,root) %{perl_vendorarch}/auto/Math/BigInteger/BigInteger.so