# 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.UTF-8): Moduł Perla Math::GMP - szybka arytmetyka liczb całkowitych o dowolnym rozmiarze
Name: perl-Math-GMP
-Version: 2.04
-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: 291e5847986c7591cd70c1788c979a98
-BuildRequires: perl-devel >= 1:5.8.0
+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: rpmbuild(macros) >= 1.213
+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
%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/*