From 60ea8ab1cf6db299ce2bfd60b8feaae659c2da6b Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jples...@redhat.com>
Date: Wed, 2 Mar 2016 16:23:55 +0100
Subject: 4.27 bump

---
 .gitignore                                         |   1 +
 ...t-Deep-and-Test-NoWarnings-tests-optional.patch | 150 ---------------------
 CGI-4.27-Make-Test-Deep-tests-optional.patch       | 149 ++++++++++++++++++++
 perl-CGI.spec                                      |  11 +-
 sources                                            |   2 +-
 5 files changed, 158 insertions(+), 155 deletions(-)
 delete mode 100644 
CGI-4.24-Make-Test-Deep-and-Test-NoWarnings-tests-optional.patch
 create mode 100644 CGI-4.27-Make-Test-Deep-tests-optional.patch

diff --git a/.gitignore b/.gitignore
index f490cfa..99c9dd9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@
 /CGI-4.24.tar.gz
 /CGI-4.25.tar.gz
 /CGI-4.26.tar.gz
+/CGI-4.27.tar.gz
diff --git a/CGI-4.24-Make-Test-Deep-and-Test-NoWarnings-tests-optional.patch 
b/CGI-4.24-Make-Test-Deep-and-Test-NoWarnings-tests-optional.patch
deleted file mode 100644
index 97037df..0000000
--- a/CGI-4.24-Make-Test-Deep-and-Test-NoWarnings-tests-optional.patch
+++ /dev/null
@@ -1,150 +0,0 @@
-diff -up CGI-4.15/t/cgi.t.orig CGI-4.15/t/cgi.t
---- CGI-4.15/t/cgi.t.orig      2015-04-20 15:31:49.680912958 +0200
-+++ CGI-4.15/t/cgi.t   2015-04-20 15:33:59.394460113 +0200
-@@ -6,7 +6,6 @@ use strict;
- use warnings;
- 
- use Test::More tests => 25;
--use Test::Deep;
- use Test::Warn;
- 
- use CGI ();
-@@ -28,11 +27,15 @@ is( $q->PrintHeader,$q->header,'PrintHea
- is( $q->HtmlTop,$q->start_html,'HtmlTop' );
- is( $q->HtmlBot,$q->end_html,'HtmlBot' );
- 
--cmp_deeply(
-+SKIP: {
-+    skip 'Test::Deep module is not available', 1 unless
-+        eval 'use Test::Deep 0.11; 1';
-+    cmp_deeply(
-       [ my @params = CGI::SplitParam( "foo\0bar" ) ],
-       [ qw/ foo bar /],
-       'SplitParam'
--);
-+    );
-+}
- 
- ok( $q->MethGet,'MethGet' );
- ok( ! $q->MethPost,'MethPost' );
-@@ -61,13 +64,17 @@ $CGI::CLOSE_UPLOAD_FILES = 0;
- ok( $q->close_upload_files( 1 ),'close_upload_files' );
- is( $CGI::CLOSE_UPLOAD_FILES,1,' ... sets $CGI::CLOSE_UPLOAD_FILES' );
- 
--cmp_deeply(
-+SKIP: {
-+    skip 'Test::Deep module is not available', 1 unless
-+        eval 'use Test::Deep 0.11; 1';
-+    cmp_deeply(
-       $q->default_dtd,
-       [
-               '-//W3C//DTD HTML 4.01 Transitional//EN',
-               'http://www.w3.org/TR/html4/loose.dtd'
-       ],
-       'default_dtd'
--);
-+    );
-+}
- 
- ok( ! $q->private_tempfiles,'private_tempfiles' );
-diff -up CGI-4.15/t/param_list_context.t.orig CGI-4.15/t/param_list_context.t
---- CGI-4.15/t/param_list_context.t.orig       2015-04-16 11:07:47.000000000 
+0200
-+++ CGI-4.15/t/param_list_context.t    2015-04-20 14:55:08.907630027 +0200
-@@ -4,7 +4,7 @@ use strict;
- use warnings;
- 
- use Test::More tests => 8;
--use Test::Deep;
-+
- use Test::Warn;
- 
- use CGI ();
-@@ -36,11 +36,15 @@ warnings_are
-     " ... but we only warn once",
- ;
- 
--cmp_deeply(
-+SKIP: {
-+    skip 'Test::Deep module is not available', 1 unless
-+        eval 'use Test::Deep 0.11; 1';
-+    cmp_deeply(
-       [ sort @params ],
-       [ qw/ checkers chess / ],
-       'CGI::param()',
--);
-+    );
-+}
- 
- warnings_are
-       { @params = $q->multi_param('game') }
-@@ -48,11 +52,15 @@ warnings_are
-       "no warnings calling multi_param"
- ;
- 
--cmp_deeply(
-+SKIP: {
-+    skip 'Test::Deep module is not available', 1 unless
-+        eval 'use Test::Deep 0.11; 1';
-+    cmp_deeply(
-       [ sort @params ],
-       [ qw/ checkers chess / ],
-       'CGI::multi_param'
--);
-+    );
-+}
- 
- $CGI::LIST_CONTEXT_WARN = 0;
- 
-diff -up CGI-4.15/t/request.t.orig CGI-4.15/t/request.t
---- CGI-4.15/t/request.t.orig  2015-04-16 11:07:47.000000000 +0200
-+++ CGI-4.15/t/request.t       2015-04-20 14:55:08.907630027 +0200
-@@ -4,8 +4,6 @@ use strict;
- use warnings;
- 
- use Test::More tests => 45;
--use Test::Deep;
--use Test::NoWarnings;
- 
- use CGI ();
- use Config;
-@@ -118,7 +116,9 @@ $q->_reset_globals;
-     is_deeply [ sort $q->$_( 'keywords' ) ], [ qw/ dragon tiger / ],
-         "$_ keywords" for qw/ param url_param /;
- 
--      {
-+      SKIP: {
-+              skip 'Test::Deep module is not available', 3 unless
-+                  (eval 'use Test::Deep 0.11; 1' && eval 'use 
Test::NoWarnings; 1');
-               $^W++;
- 
-               CGI::_reset_globals;
-diff -up CGI-4.15/t/util.t.orig CGI-4.15/t/util.t
---- CGI-4.15/t/util.t.orig     2015-04-17 15:22:23.000000000 +0200
-+++ CGI-4.15/t/util.t  2015-04-20 14:55:08.908630038 +0200
-@@ -6,7 +6,6 @@
- $| = 1;
- 
- use Test::More tests => 80;
--use Test::Deep;
- use Config;
- use_ok ( 'CGI::Util', qw(
-       escape
-@@ -68,6 +67,10 @@ for ( 1 .. 20 ) {
-               %args,
-       );
- 
-+    SKIP: {
-+      skip 'Test::Deep module is not available', 1 unless
-+          eval 'use Test::Deep 0.11; 1';
-+
-       cmp_deeply(
-               [ @ordered ],
-               [
-@@ -83,6 +86,7 @@ for ( 1 .. 20 ) {
-               ],
-               'rearrange not sensitive to hash key ordering'
-       );
-+    }
- }
- 
- ok( CGI::Util::utf8_chr( "1",1 ),'utf8_chr' );
diff --git a/CGI-4.27-Make-Test-Deep-tests-optional.patch 
b/CGI-4.27-Make-Test-Deep-tests-optional.patch
new file mode 100644
index 0000000..e00375f
--- /dev/null
+++ b/CGI-4.27-Make-Test-Deep-tests-optional.patch
@@ -0,0 +1,149 @@
+diff -up CGI-4.27/t/cgi.t.orig CGI-4.27/t/cgi.t
+--- CGI-4.27/t/cgi.t.orig      2016-03-02 08:43:05.000000000 +0100
++++ CGI-4.27/t/cgi.t   2016-03-02 15:52:50.825729857 +0100
+@@ -6,7 +6,6 @@ use strict;
+ use warnings;
+ 
+ use Test::More tests => 25;
+-use Test::Deep;
+ 
+ use CGI ();
+ 
+@@ -27,11 +26,15 @@ is( $q->PrintHeader,$q->header,'PrintHea
+ is( $q->HtmlTop,$q->start_html,'HtmlTop' );
+ is( $q->HtmlBot,$q->end_html,'HtmlBot' );
+ 
+-cmp_deeply(
++SKIP: {
++    skip 'Test::Deep module is not available', 1 unless
++        eval 'use Test::Deep 0.11; 1';
++    cmp_deeply(
+       [ my @params = CGI::SplitParam( "foo\0bar" ) ],
+       [ qw/ foo bar /],
+       'SplitParam'
+-);
++    );
++}
+ 
+ ok( $q->MethGet,'MethGet' );
+ ok( ! $q->MethPost,'MethPost' );
+@@ -60,13 +63,17 @@ $CGI::CLOSE_UPLOAD_FILES = 0;
+ ok( $q->close_upload_files( 1 ),'close_upload_files' );
+ is( $CGI::CLOSE_UPLOAD_FILES,1,' ... sets $CGI::CLOSE_UPLOAD_FILES' );
+ 
+-cmp_deeply(
++SKIP: {
++    skip 'Test::Deep module is not available', 1 unless
++        eval 'use Test::Deep 0.11; 1';
++    cmp_deeply(
+       $q->default_dtd,
+       [
+               '-//W3C//DTD HTML 4.01 Transitional//EN',
+               'http://www.w3.org/TR/html4/loose.dtd'
+       ],
+       'default_dtd'
+-);
++    );
++}
+ 
+ ok( ! $q->private_tempfiles,'private_tempfiles' );
+diff -up CGI-4.27/t/param_list_context.t.orig CGI-4.27/t/param_list_context.t
+--- CGI-4.27/t/param_list_context.t.orig       2016-03-02 08:48:20.000000000 
+0100
++++ CGI-4.27/t/param_list_context.t    2016-03-02 15:52:50.825729857 +0100
+@@ -4,7 +4,7 @@ use strict;
+ use warnings;
+ 
+ use Test::More;
+-use Test::Deep;
++
+ use Test::Warn;
+ 
+ use CGI ();
+@@ -43,11 +43,15 @@ warnings_are
+     " ... but we only warn once",
+ ;
+ 
+-cmp_deeply(
++SKIP: {
++    skip 'Test::Deep module is not available', 1 unless
++        eval 'use Test::Deep 0.11; 1';
++    cmp_deeply(
+       [ sort @params ],
+       [ qw/ checkers chess / ],
+       'CGI::param()',
+-);
++    );
++}
+ 
+ warnings_are
+       { @params = $q->multi_param('game') }
+@@ -55,11 +59,15 @@ warnings_are
+       "no warnings calling multi_param"
+ ;
+ 
+-cmp_deeply(
++SKIP: {
++    skip 'Test::Deep module is not available', 1 unless
++        eval 'use Test::Deep 0.11; 1';
++    cmp_deeply(
+       [ sort @params ],
+       [ qw/ checkers chess / ],
+       'CGI::multi_param'
+-);
++    );
++}
+ 
+ $CGI::LIST_CONTEXT_WARN = 0;
+ 
+diff -up CGI-4.27/t/request.t.orig CGI-4.27/t/request.t
+--- CGI-4.27/t/request.t.orig  2016-03-02 08:16:46.000000000 +0100
++++ CGI-4.27/t/request.t       2016-03-02 15:52:50.825729857 +0100
+@@ -4,7 +4,6 @@ use strict;
+ use warnings;
+ 
+ use Test::More tests => 44;
+-use Test::Deep;
+ 
+ use CGI ();
+ use Config;
+@@ -117,7 +116,9 @@ $q->_reset_globals;
+     is_deeply [ sort $q->$_( 'keywords' ) ], [ qw/ dragon tiger / ],
+         "$_ keywords" for qw/ param url_param /;
+ 
+-      {
++      SKIP: {
++              skip 'Test::Deep module is not available', 3 unless
++                  (eval 'use Test::Deep 0.11; 1');
+               $^W++;
+ 
+               CGI::_reset_globals;
+diff -up CGI-4.27/t/util.t.orig CGI-4.27/t/util.t
+--- CGI-4.27/t/util.t.orig     2015-12-15 18:12:19.000000000 +0100
++++ CGI-4.27/t/util.t  2016-03-02 15:52:50.825729857 +0100
+@@ -6,7 +6,6 @@
+ $| = 1;
+ 
+ use Test::More tests => 80;
+-use Test::Deep;
+ use Config;
+ use_ok ( 'CGI::Util', qw(
+       escape
+@@ -68,6 +67,10 @@ for ( 1 .. 20 ) {
+               %args,
+       );
+ 
++    SKIP: {
++      skip 'Test::Deep module is not available', 1 unless
++          eval 'use Test::Deep 0.11; 1';
++
+       cmp_deeply(
+               [ @ordered ],
+               [
+@@ -83,6 +86,7 @@ for ( 1 .. 20 ) {
+               ],
+               'rearrange not sensitive to hash key ordering'
+       );
++    }
+ }
+ 
+ ok( CGI::Util::utf8_chr( "1",1 ),'utf8_chr' );
diff --git a/perl-CGI.spec b/perl-CGI.spec
index 7c5d848..198e708 100644
--- a/perl-CGI.spec
+++ b/perl-CGI.spec
@@ -1,16 +1,17 @@
 Name:           perl-CGI
 Summary:        Handle Common Gateway Interface requests and responses
-Version:        4.26
+Version:        4.27
 Release:        1%{?dist}
 License:        (GPL+ or Artistic) and Artistic 2.0
 Group:          Development/Libraries
 Source0:        
http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/CGI-%{version}.tar.gz
-# Make Test::Deep and Test::NoWarnings tests optional as it's not in the core 
in contrast to the CGI
-Patch0:         
CGI-4.24-Make-Test-Deep-and-Test-NoWarnings-tests-optional.patch
+# Make Test::Deep tests optional as it's not in the core in contrast to the CGI
+Patch0:         CGI-4.27-Make-Test-Deep-tests-optional.patch
 URL:            http://search.cpan.org/dist/CGI
 BuildArch:      noarch
 BuildRequires:  coreutils
 BuildRequires:  findutils
+BuildRequires:  glibc-common
 BuildRequires:  make
 BuildRequires:  perl
 BuildRequires:  perl(ExtUtils::MakeMaker)
@@ -51,7 +52,6 @@ BuildRequires:  perl(utf8)
 # Optional tests
 BuildRequires:  perl(Test::CPAN::Changes)
 BuildRequires:  perl(Test::Deep) >= 0.11
-BuildRequires:  perl(Test::NoWarnings)
 %endif
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 %if 0%(perl -e 'print $] >= 5.019')
@@ -106,6 +106,9 @@ make test
 %{_mandir}/man3/*.3*
 
 %changelog
+* Wed Mar 02 2016 Jitka Plesnikova <jples...@redhat.com> - 4.27-1
+- 4.27 bump
+
 * Mon Feb 08 2016 Jitka Plesnikova <jples...@redhat.com> - 4.26-1
 - 4.26 bump
 
diff --git a/sources b/sources
index b6ade97..2892cc3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-bf606eda81c9dc5347c1f3483732b2d2  CGI-4.26.tar.gz
+494f4a891a710adbb6cf75279ef5da4e  CGI-4.27.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-CGI.git/commit/?h=f24&id=60ea8ab1cf6db299ce2bfd60b8feaae659c2da6b
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to