[perl-Math-BigInt-GMP] Update to 1.38

Paul Howarth pghmcfc at fedoraproject.org
Thu Nov 13 10:53:12 UTC 2014


commit c0410dbf7c7a32645423f89373ec93728c222a42
Author: Paul Howarth <paul at city-fan.org>
Date:   Thu Nov 13 10:52:22 2014 +0000

    Update to 1.38
    
    - New upstream release 1.38
      - Updated test files from the Math::BigInt distribution
      - Updated POD
      - Updated bundled Devel::CheckLib from v0.93 to v1.01
    - Classify buildreqs by usage
    - Use features from recent EU::MM since we need Math::BigInt ≥ 1.9993
    - Always run the test suite
    - Improve %summary and %description
    - Use %license
    - Make %files list more explicit
    - Remove spurious exec permissions from text files
    - Don't need to remove empty directories from the buildroot
    - Use DESTDIR rather than PERL_INSTALL_ROOT
    - Don't use macros for commands

 .gitignore                |    5 +--
 perl-Math-BigInt-GMP.spec |   86 +++++++++++++++++++++++++++++++-------------
 sources                   |    2 +-
 3 files changed, 62 insertions(+), 31 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 32f9a46..53e4f10 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1 @@
-Math-BigInt-GMP-1.24.tar.gz
-/Math-BigInt-GMP-1.32.tar.gz
-/Math-BigInt-GMP-1.36.tar.gz
-/Math-BigInt-GMP-1.37.tar.gz
+/Math-BigInt-GMP-[0-9.]*.tar.gz
diff --git a/perl-Math-BigInt-GMP.spec b/perl-Math-BigInt-GMP.spec
index 86da255..dff3f83 100644
--- a/perl-Math-BigInt-GMP.spec
+++ b/perl-Math-BigInt-GMP.spec
@@ -1,60 +1,94 @@
 Name:           perl-Math-BigInt-GMP
-Version:        1.37
-Release:        8%{?dist}
-Summary:        Math::BigInt::GMP Perl module
+Version:        1.38
+Release:        1%{?dist}
+Summary:        Use the GMP library for Math::BigInt routines
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Math-BigInt-GMP/
 Source0:        http://search.cpan.org/CPAN/authors/id/P/PJ/PJACKLAM/Math-BigInt-GMP-%{version}.tar.gz
+# Module Build
 BuildRequires:  gmp-devel
-BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(Math::BigInt) >= 1.994
+BuildRequires:  perl
+BuildRequires:  perl(Config)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.75
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(File::Temp)
+BuildRequires:  perl(lib)
+BuildRequires:  perl(Text::ParseWords)
+# Module Runtime
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+BuildRequires:  perl(XSLoader) >= 0.02
+# Test Suite
 BuildRequires:  perl(Math::BigFloat) >= 1.994
+BuildRequires:  perl(Math::BigInt) >= 1.9993
 BuildRequires:  perl(Pod::Coverage) >= 0.18
-BuildRequires:  perl(Scalar::Util)
+BuildRequires:  perl(Storable)
+BuildRequires:  perl(Test)
 BuildRequires:  perl(Test::More)
 BuildRequires:  perl(Test::Pod) >= 1.22
 BuildRequires:  perl(Test::Pod::Coverage) >= 1.08
 BuildRequires:  perl(threads)
-BuildRequires:  perl(XSLoader)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires:  perl(warnings)
+# Runtime
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %{?perl_default_filter}
 
 %description
-This package contains a replacement (drop-in) module for Math::BigInt's
-core, Math::BigInt::Calc.pm. It needs the new versions of Math::BigInt and
-Math::BigFloat as they are from Perl 5.7.x onwards.
+Provides support for big integer calculations by means of the GMP library, as
+a replacement (drop-in) module for Math::BigInt's core, Math::BigInt::Calc.pm.
+Math::BigInt::GMP does not use Math::GMP, but provides its own XS layer to
+access the GMP library. This cuts out another (perl subroutine) layer and
+also reduces the memory footprint by not loading Math::GMP and Carp at all.
 
 %prep
 %setup -q -n Math-BigInt-GMP-%{version}
 
+# Get rid of bogus exec permissions
+chmod -c -x CHANGES lib/Math/BigInt/GMP.pm
+
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL \
+  INSTALLDIRS=vendor \
+  OPTIMIZE="%{optflags}" \
+  NO_PACKLIST=1 \
+  NO_PERLLOCAL=1
 make %{?_smp_mflags}
 
 %install
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+make install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
+%{_fixperms} %{buildroot}
 
 %check
-# perl-Math-BigInt 1.87 (delivered with perl-5.10.x) is needed
-%if 0%{?rhel} > 5 || 0%{?fedora} > 8
 make test
-%endif
 
 %files
-%doc BUGS CHANGES CREDITS LICENSE README TODO
-%{perl_vendorarch}/auto/*
-%{perl_vendorarch}/Math*
-%{_mandir}/man3/*
+%license LICENSE
+%doc BUGS CHANGES CREDITS README TODO
+%{perl_vendorarch}/auto/Math/
+%{perl_vendorarch}/Math/
+%{_mandir}/man3/Math::BigInt::GMP.3*
 
 %changelog
+* Thu Nov 13 2014 Paul Howarth <paul at city-fan.org> - 1.38-1
+- Update to 1.38
+  - Updated test files from the Math::BigInt distribution
+  - Updated POD
+  - Updated bundled Devel::CheckLib from v0.93 to v1.01
+- Classify buildreqs by usage
+- Use features from recent EU::MM since we need Math::BigInt ≥ 1.9993
+- Always run the test suite
+- Improve %%summary and %%description
+- Use %%license
+- Make %%files list more explicit
+- Remove spurious exec permissions from text files
+- Don't need to remove empty directories from the buildroot
+- Use DESTDIR rather than PERL_INSTALL_ROOT
+- Don't use macros for commands
+
 * Wed Aug 27 2014 Jitka Plesnikova <jplesnik at redhat.com> - 1.37-8
 - Perl 5.20 rebuild
 
diff --git a/sources b/sources
index 8bbf6a1..193c593 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d11bf69c0471e38191f33144079d0373  Math-BigInt-GMP-1.37.tar.gz
+c7c34657e03f9b0bd5de437adb062e23  Math-BigInt-GMP-1.38.tar.gz



More information about the perl-devel mailing list