Fixed test scripts for Perl 5.22 (CPAN RT#96113)
This commit is contained in:
parent
c0410dbf7c
commit
23f7994b1c
15
Math-BigInt-GMP-1.38-Fix-tests-for-perl-5.22.patch
Normal file
15
Math-BigInt-GMP-1.38-Fix-tests-for-perl-5.22.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff --git i/t/bigfltpm.inc w/t/bigfltpm.inc
|
||||
index 0911627..1528e48 100644
|
||||
--- i/t/bigfltpm.inc
|
||||
+++ w/t/bigfltpm.inc
|
||||
@@ -1406,8 +1406,8 @@ NaNmul:-inf:NaN
|
||||
&fdiv-list
|
||||
0:0:NaN,NaN
|
||||
0:1:0,0
|
||||
-9:4:2.25,1
|
||||
-9:5:1.8,4
|
||||
+9:4:2,1
|
||||
+9:5:1,4
|
||||
# bug in v1.74 with bdiv in list context, when $y is 1 or -1
|
||||
2.1:-1:-2.1,0
|
||||
2.1:1:2.1,0
|
||||
@ -6,6 +6,8 @@ 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
|
||||
# Fix only for test script running with Perl 5.22 (CPAN RT#96113)
|
||||
Patch0: Math-BigInt-GMP-1.38-Fix-tests-for-perl-5.22.patch
|
||||
# Module Build
|
||||
BuildRequires: gmp-devel
|
||||
BuildRequires: perl
|
||||
@ -45,6 +47,9 @@ also reduces the memory footprint by not loading Math::GMP and Carp at all.
|
||||
|
||||
%prep
|
||||
%setup -q -n Math-BigInt-GMP-%{version}
|
||||
%if 0%(perl -e 'print $] >= 5.022')
|
||||
%patch0 -p1
|
||||
%endif
|
||||
|
||||
# Get rid of bogus exec permissions
|
||||
chmod -c -x CHANGES lib/Math/BigInt/GMP.pm
|
||||
@ -73,6 +78,9 @@ make test
|
||||
%{_mandir}/man3/Math::BigInt::GMP.3*
|
||||
|
||||
%changelog
|
||||
* Tue Jun 02 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.38-2
|
||||
- Fixed test scripts for Perl 5.22 (CPAN RT#96113)
|
||||
|
||||
* Thu Nov 13 2014 Paul Howarth <paul@city-fan.org> - 1.38-1
|
||||
- Update to 1.38
|
||||
- Updated test files from the Math::BigInt distribution
|
||||
|
||||
Loading…
Reference in New Issue
Block a user