#
# 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 BigInt-GMP
+%define pdir Math
+%define pnam BigInt-GMP
Summary: Math::BigInt::GMP - use the GMP library for Math::BigInt routines
-Summary(pl): Math::BigInt::GMP - wykorzystanie biblioteki GMP do funkcji Math::BigInt
+Summary(pl.UTF-8): Math::BigInt::GMP - wykorzystanie biblioteki GMP do funkcji Math::BigInt
Name: perl-Math-BigInt-GMP
-Version: 1.11
+Version: 1.18
Release: 1
+# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 0fa2faabdee590efcea79024dfac1190
+# Source0-md5: cd17afa7e9e7e9192457f6968d538f3f
BuildRequires: gmp-devel
-BuildRequires: perl-Math-BigInt >= 1.64
-BuildRequires: perl(Math::BigFloat) >= 1.38
-BuildRequires: perl-devel >= 5.8.0
+BuildRequires: perl-Math-BigInt >= 1.76
+BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
-Requires: perl-Math-BigInt >= 1.64
-Requires: perl(Math::BigFloat) >= 1.38
+Requires: perl-Math-BigInt >= 1.76
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This cuts out another (perl sub routine) layer and also reduces the
memory footprint by not loading Math::GMP and Carp at all.
-%description -l pl
-Math::BigInt::GMP dostarcza obs³ugê obliczeñ na wielkich liczbach
-ca³kowitych z wykorzystaniem funkcjonalno¶ci biblioteki C GMP. Modu³
-ten ju¿ nie u¿ywa Math::GMP, ale dostarcza w³asn± warstwê XS do
-odwo³ywania siê do biblioteki GMP w C. Dziêki temu nie ma kolejnej
-warstwy (podprocedury Perla), a wykorzystanie pamiêci jest mniejsze
-dziêki nie wczytywaniu modu³ów Math::GMP i Carp.
+%description -l pl.UTF-8
+Math::BigInt::GMP dostarcza obsługę obliczeń na wielkich liczbach
+całkowitych z wykorzystaniem funkcjonalności biblioteki C GMP. Moduł
+ten już nie używa Math::GMP, ale dostarcza własną warstwę XS do
+odwoływania się do biblioteki GMP w C. Dzięki temu nie ma kolejnej
+warstwy (podprocedury Perla), a wykorzystanie pamięci jest mniejsze
+dzięki nie wczytywaniu modułów Math::GMP i Carp.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%build
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
-
%{__make} \
OPTIMIZE="%{rpmcflags}"
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT