From 6aa8938158eb8379b86f869b75f5df77ab3d274f Mon Sep 17 00:00:00 2001
From: Paul Howarth <paul(a)city-fan.org>
Date: Sun, 29 Nov 2015 16:02:02 +0000
Subject: Fix broken previous fix for CPAN RT#99880, RHBZ#1158379
---
Crypt-Random-1.25-test-fix.patch | 17 ++++++++++++-----
perl-Crypt-Random.spec | 8 +++++++-
2 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/Crypt-Random-1.25-test-fix.patch b/Crypt-Random-1.25-test-fix.patch
index 7c2a822..88cf7d3 100644
--- a/Crypt-Random-1.25-test-fix.patch
+++ b/Crypt-Random-1.25-test-fix.patch
@@ -1,13 +1,20 @@
--- t/generator.t
+++ t/generator.t
-@@ -23,7 +23,10 @@
+@@ -10,7 +10,7 @@
+
+ use Test;
+ use Crypt::Random::Generator;
+-BEGIN { plan tests => 18 };
++BEGIN { plan tests => 18, todo => [3,9,15] };
+
+ tests( new Crypt::Random::Generator Strength => 1 );
+ tests( new Crypt::Random::Generator Strength => 0 );
+@@ -23,7 +23,7 @@ sub tests {
my $y = $gen->integer (Size => 10);
ok($x < 1025, 1);
ok($y < 1025, 1);
-+ TODO: {
-+ local $TODO = "There's about a 0.1% chance that this test will fail
normally";
- ok($x != $y, 1);
-+ }
+- ok($x != $y, 1);
++ ok($x != $y, 1); # About 0.1% chance of this test failing, so it's TODO
ok($gen->integer (Upper => 500) < 501, 1);
ok($gen->integer (Size => 128));
ok(length($gen->string (Length => 30)), 30);
diff --git a/perl-Crypt-Random.spec b/perl-Crypt-Random.spec
index 96ffae0..6913ed2 100644
--- a/perl-Crypt-Random.spec
+++ b/perl-Crypt-Random.spec
@@ -1,7 +1,7 @@
Summary: Cryptographically Secure, True Random Number Generator
Name: perl-Crypt-Random
Version: 1.25
-Release: 23%{?dist}
+Release: 24%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Url:
http://search.cpan.org/dist/Crypt-Random/
@@ -10,6 +10,9 @@ Patch0: Crypt-Random-1.25-test-fix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
# Module Build
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime
@@ -69,6 +72,9 @@ rm -rf %{buildroot}
%{_mandir}/man3/Crypt::Random.3*
%changelog
+* Sun Nov 29 2015 Paul Howarth <paul(a)city-fan.org> - 1.25-24
+- Fix broken previous fix for CPAN RT#99880, RHBZ#1158379
+
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.25-23
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
--
cgit v0.11.2
http://pkgs.fedoraproject.org/cgit/perl-Crypt-Random.git/commit/?h=perl-C...