X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-Math-GMP.spec;h=0519260f81875d699dbc20d9ddb50cf2575370e7;hb=211d6f39a4861a9b82daf9f4d793be362f89bf15;hp=235582e9485eafae191e767d3ffe1981dd882035;hpb=0c76a480e98d85f472dd9d61a2778011f9776460;p=packages%2Fperl-Math-GMP.git diff --git a/perl-Math-GMP.spec b/perl-Math-GMP.spec index 235582e..0519260 100644 --- a/perl-Math-GMP.spec +++ b/perl-Math-GMP.spec @@ -1,20 +1,22 @@ # # 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 +Version: 2.04 +Release: 3 License: LGPL Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz -BuildRequires: perl-devel >= 5.6 +# Source0-md5: 291e5847986c7591cd70c1788c979a98 +BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: gmp-devel +BuildRequires: rpmbuild(macros) >= 1.213 BuildRequires: rpm-perlprov >= 4.1-13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -22,20 +24,26 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) 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