From 23f7994b1c13370f38ea8b5896f3f6c6a835248b Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jples...@redhat.com>
Date: Wed, 3 Jun 2015 15:37:48 +0200
Subject: Fixed test scripts for Perl 5.22 (CPAN RT#96113)


diff --git a/Math-BigInt-GMP-1.38-Fix-tests-for-perl-5.22.patch 
b/Math-BigInt-GMP-1.38-Fix-tests-for-perl-5.22.patch
new file mode 100644
index 0000000..a1d2e69
--- /dev/null
+++ b/Math-BigInt-GMP-1.38-Fix-tests-for-perl-5.22.patch
@@ -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
diff --git a/perl-Math-BigInt-GMP.spec b/perl-Math-BigInt-GMP.spec
index dff3f83..1c4497e 100644
--- a/perl-Math-BigInt-GMP.spec
+++ b/perl-Math-BigInt-GMP.spec
@@ -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 <jples...@redhat.com> - 1.38-2
+- Fixed test scripts for Perl 5.22 (CPAN RT#96113)
+
 * Thu Nov 13 2014 Paul Howarth <p...@city-fan.org> - 1.38-1
 - Update to 1.38
   - Updated test files from the Math::BigInt distribution
-- 
cgit v0.10.2


        
http://pkgs.fedoraproject.org/cgit/perl-Math-BigInt-GMP.git/commit/?h=master&id=23f7994b1c13370f38ea8b5896f3f6c6a835248b
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to