# # Conditional build: %bcond_without tests # do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Math %define pnam GMP Summary: Math::GMP Perl module - high speed arbitrary size integer math Summary(pl): Moduł Perla Math::GMP - szybka arytmetyka liczb całkowitych o dowolnym rozmiarze Name: perl-Math-GMP Version: 2.03 Release: 2 License: LGPL Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: cf653ffa60607717ff4fc67177ee07b0 BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: gmp-devel BuildRequires: rpm-perlprov >= 4.1-13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Math::GMP gives you access to the fast GMP library for fast big integer math. %description -l pl Math::GMP daje dostęp do szybkiej biblioteki GMP dla szybkich obliczeń na dużych liczbach całkowitych. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} \ OPTIMIZE="%{rpmcflags}" %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes LICENSE README %{perl_vendorarch}/Math/GMP.pm %dir %{perl_vendorarch}/auto/Math/GMP %{perl_vendorarch}/auto/Math/GMP/GMP.bs %attr(755,root,root) %{perl_vendorarch}/auto/Math/GMP/GMP.so %{perl_vendorarch}/auto/Math/GMP/autosplit.ix %{_mandir}/man3/*