X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=perl-Math-GMP.spec;h=f11adb4ca1beb33c6c6e25a98572aa9a147b57c8;hb=1a60e6776813e3722e482b934fac3aeb39192dea;hp=e32285487d75044716126b1ccba792e05474462f;hpb=6de0c63891878f7651399ddd8aa7287b4780e8bb;p=packages%2Fperl-Math-GMP.git diff --git a/perl-Math-GMP.spec b/perl-Math-GMP.spec index e322854..f11adb4 100644 --- a/perl-Math-GMP.spec +++ b/perl-Math-GMP.spec @@ -1,42 +1,51 @@ # # Conditional build: -# _without_tests - do not perform "make test" +%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 +Summary: Math::GMP Perl module - high speed arbitrary size integer math +Summary(pl.UTF-8): Moduł Perla Math::GMP - szybka arytmetyka liczb całkowitych o dowolnym rozmiarze Name: perl-Math-GMP -Version: 2.03 -Release: 2 -License: LGPL +Version: 2.20 +Release: 4 +License: LGPL v2+ Group: Development/Languages/Perl -Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz -# Source0-md5: cf653ffa60607717ff4fc67177ee07b0 -BuildRequires: perl-devel >= 5.6 +Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 817f68db8aa05ca82d0da6a6a5f02f03 +URL: http://search.cpan.org/dist/Math-GMP/ BuildRequires: gmp-devel +BuildRequires: perl-Alien-GMP +BuildRequires: perl-Devel-CheckLib +BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 +BuildRequires: rpmbuild(macros) >= 1.213 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. +%description -l pl.UTF-8 +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} +%ifarch %{x8664} alpha ia64 ppc64 s390x sparc64 +# original reference values expect 32-bit long +%{__perl} -pi -e 's/^\+9999999999(9*):[0-9]+$/+9999999999$1:9999999999$1/' t/gmppm.t +%endif + %build %{__perl} Makefile.PL \ - INSTALLDIRS=vendor - -%{__make} OPTIMIZE="%{rpmcflags}" + INSTALLDIRS=vendor +%{__make} \ + CC="%{__cc}" \ + OPTIMIZE="%{rpmcflags}" -%{!?_without_tests:%{__make} test} +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT @@ -49,10 +58,9 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc Changes LICENSE README +%doc Changes LICENSE README.md %{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/*