diff --git a/.gitignore b/.gitignore index 5ef7ea7..2f02d13 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /bignum-0.49.tar.gz /bignum-0.50.tar.gz /bignum-0.51.tar.gz +/bignum-0.52.tar.gz diff --git a/perl-bignum.spec b/perl-bignum.spec index 226cf0d..7f9aa6e 100644 --- a/perl-bignum.spec +++ b/perl-bignum.spec @@ -1,14 +1,16 @@ Name: perl-bignum -Version: 0.51 -Release: 477%{?dist} +Version: 0.52 +Release: 1%{?dist} Summary: Transparent big number support for Perl License: GPL+ or Artistic URL: https://metacpan.org/release/bignum Source0: https://cpan.metacpan.org/authors/id/P/PJ/PJACKLAM/bignum-%{version}.tar.gz BuildArch: noarch +BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter +BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) @@ -18,27 +20,20 @@ BuildRequires: perl(Carp) BuildRequires: perl(constant) BuildRequires: perl(Exporter) BuildRequires: perl(Math::BigFloat) -BuildRequires: perl(Math::BigInt) >= 1.999812 -BuildRequires: perl(Math::BigRat) >= 0.12 +BuildRequires: perl(Math::BigInt) >= 1.999718 +BuildRequires: perl(Math::BigRat) >= 0.14 BuildRequires: perl(overload) # Optional run-time: # Math::BigInt::Lite not packaged # Tests: -# Algorithm::Combinatorics not used BuildRequires: perl(Test::More) >= 0.88 -# Test::Version not used # Optional tests: # Module::Signature not used and not helpful -# Pod::Coverage 0.18 not used # Socket not used -# Test::CPAN::Changes not used -# Test::Pod 1.22 not used -# Test::Pod::Coverage 1.08 not used -# Test::Portability::Files not used Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Carp) -Requires: perl(Math::BigInt) >= 1.999812 -Requires: perl(Math::BigRat) >= 0.12 +Requires: perl(Math::BigInt) >= 1.999718 +Requires: perl(Math::BigRat) >= 0.14 Conflicts: perl < 4:5.22.0-348 # Remove under-specified dependencies @@ -51,16 +46,21 @@ BigFloats in a transparent way. %prep %setup -q -n bignum-%{version} +# Correct shebangs +for F in lib/Math/BigInt/Trace.pm lib/Math/BigFloat/Trace.pm; do + perl -MConfig -pi -e 's{\A#!.*perl\b}{$Config{startperl}}' "$F" +done + %build -perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=$RPM_BUILD_ROOT -%{_fixperms} $RPM_BUILD_ROOT/* +%{make_install} +%{_fixperms} %{buildroot}/* %check -unset RELEASE_TESTING +unset TEST_SIGNATURE make test %files @@ -70,6 +70,9 @@ make test %{_mandir}/man3/* %changelog +* Mon Jul 12 2021 Jitka Plesnikova - 0.52-1 +- 0.52 bump + * Fri May 21 2021 Jitka Plesnikova - 0.51-477 - Increase release to favour standalone package diff --git a/sources b/sources index dd39ddf..ae2bfe5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (bignum-0.51.tar.gz) = 1db18f9ef8c603295b2d5741e5875045bbd43a8c71fb7b25a33927bb6855e407cf78712fee9ffef756daea0567dcc4f1a39a8be7c26863ba78a2dd5ccdaf2608 +SHA512 (bignum-0.52.tar.gz) = e1c3cdf5242a7fa7f362ed55a57cc73854afca2fa5ebf2ec348197edf1fb1c5cd98258ea6cf346220e1051141ae848dd90ed07ab290c4c83dc4e5c24bf0a4ec2