ppisar pushed to perl-Log-Dispatch-Config (f21). "Adjust tests to changes in Log-Dispatch-2.47"
by notifications@fedoraproject.org
From 4711ecc024f2e90f6fcc6413acb5c70977a63df3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar(a)redhat.com>
Date: Wed, 2 Sep 2015 13:57:22 +0200
Subject: Adjust tests to changes in Log-Dispatch-2.47
diff --git a/Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch b/Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
new file mode 100644
index 0000000..4e3d1f5
--- /dev/null
+++ b/Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
@@ -0,0 +1,173 @@
+From e6b25b4fcacd10f6832a8fa6686817f905d0deec Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar(a)redhat.com>
+Date: Wed, 2 Sep 2015 13:52:04 +0200
+Subject: [PATCH] Adjust tests to Log-Dispatch-2.47
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Since Log-Dispatch-2.47, Log::Dispatch::Screen logs into file
+handle associated with STDERR. This overloading STDERR's I/O methods
+by tying to IO::Scalar does not work anymore.
+
+This patch replaces the IO::Scalar capturing by regular forked process
+using IPC::Run3.
+
+CPAN RT#106746
+
+Signed-off-by: Petr Písař <ppisar(a)redhat.com>
+---
+ Makefile.PL | 2 +-
+ t/02_log.t | 21 ++++++++++++---------
+ t/03_reload.t | 1 -
+ t/04_nolog.t | 1 -
+ t/08_datetime.t | 16 +++++++++++-----
+ t/11_no_watch.t | 1 -
+ t/13_do_reload.t | 1 -
+ 7 files changed, 24 insertions(+), 19 deletions(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 3074d07..1044eb7 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -20,7 +20,7 @@ WriteMakefile(
+ Test::More => 0.32,
+ Log::Dispatch => 2.00,
+ AppConfig => 1.52,
+- IO::Scalar => 0,
++ IPC::Run3 => 0,
+ File::Temp => 0.12,
+ },
+ );
+diff --git a/t/02_log.t b/t/02_log.t
+index 857bb31..0e1bd6c 100644
+--- a/t/02_log.t
++++ b/t/02_log.t
+@@ -1,9 +1,8 @@
+ use strict;
+-use Test::More tests => 4;
++use Test::More tests => 5;
+
+-use Log::Dispatch::Config;
+ use FileHandle;
+-use IO::Scalar;
++use IPC::Run3 ();
+ use File::Spec;
+
+ sub slurp {
+@@ -16,18 +15,22 @@ my $log;
+ BEGIN { $log = 't/log.out'; unlink $log if -e $log }
+ END { unlink $log if -e $log }
+
++my $code =<<'CODE';
++use Log::Dispatch::Config;
+ Log::Dispatch::Config->configure('t/log.cfg');
+
++my $disp = Log::Dispatch::Config->instance;
++$disp->debug('debug');
++$disp->alert('alert');
++CODE
++
+ my $err;
+ {
+- tie *STDERR, 'IO::Scalar', \$err;
+-
+- my $disp = Log::Dispatch::Config->instance;
+- $disp->debug('debug');
+- $disp->alert('alert');
++ my $retval = IPC::Run3::run3([$^X, '-e' , $code], \undef, \undef, \$err);
++ ok (($retval and $? == 0), 'Code executed successfully');
+ }
+
+-my $filename = __FILE__;
++my $filename = '-e line ';
+ my $file = slurp $log;
+ like $file, qr(debug at \Q$filename\E), 'debug';
+ like $file, qr(alert at \Q$filename\E), 'alert';
+diff --git a/t/03_reload.t b/t/03_reload.t
+index 62fc906..60b778d 100644
+--- a/t/03_reload.t
++++ b/t/03_reload.t
+@@ -5,7 +5,6 @@ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Copy;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ if( $^O eq 'MSWin32' ) {
+ plan skip_all => 'These tests fail in Win32 for silly reasons';
+diff --git a/t/04_nolog.t b/t/04_nolog.t
+index 4cf7f20..5162618 100644
+--- a/t/04_nolog.t
++++ b/t/04_nolog.t
+@@ -4,7 +4,6 @@ use Test::More tests => 1;
+ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ sub writefile {
+ my $fh = FileHandle->new(">" . shift) or die $!;
+diff --git a/t/08_datetime.t b/t/08_datetime.t
+index 21e1165..98f64d9 100644
+--- a/t/08_datetime.t
++++ b/t/08_datetime.t
+@@ -1,20 +1,26 @@
+ use strict;
+-use Test::More tests => 3;
++use Test::More tests => 4;
+
+-use IO::Scalar;
++use IPC::Run3 ();
+
++my $code=<<'CODE';
+ use Log::Dispatch::Config;
+ Log::Dispatch::Config->configure('t/date.cfg');
+
+ my $disp = Log::Dispatch::Config->instance;
+-isa_ok $disp->{outputs}->{screen}, 'Log::Dispatch::Screen';
++print $disp->{outputs}->{screen}->isa('Log::Dispatch::Screen');
++
++$disp->debug('debug');
++CODE
+
+ {
+ my($mday, $mon, $year) = (localtime(time))[3..5];
+ my $today = sprintf '%04s%02d%02d', $year + 1900, $mon + 1, $mday;
+
+- tie *STDERR, 'IO::Scalar', \my $err;
+- $disp->debug('debug');
++ my ($out, $err);
++ my $retval = IPC::Run3::run3([$^X, '-e' , $code], \undef, \$out, \$err);
++ ok (($retval and $? == 0), 'Code executed successfully');
++ is ($out, '1', q{dispatcher's class matched});
+
+ like $err, qr/$today/, $err;
+ like $err, qr/debug/, $err;
+diff --git a/t/11_no_watch.t b/t/11_no_watch.t
+index 041378d..b3f2009 100644
+--- a/t/11_no_watch.t
++++ b/t/11_no_watch.t
+@@ -5,7 +5,6 @@ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Copy;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ my($fh, $file) = tempfile;
+ copy("t/foo.cfg", $file);
+diff --git a/t/13_do_reload.t b/t/13_do_reload.t
+index 340e193..62125ee 100644
+--- a/t/13_do_reload.t
++++ b/t/13_do_reload.t
+@@ -5,7 +5,6 @@ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Copy;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ my($fh, $file) = tempfile;
+ copy("t/foo.cfg", $file);
+--
+2.4.3
+
diff --git a/perl-Log-Dispatch-Config.spec b/perl-Log-Dispatch-Config.spec
index 418d558..7deec87 100644
--- a/perl-Log-Dispatch-Config.spec
+++ b/perl-Log-Dispatch-Config.spec
@@ -1,11 +1,13 @@
Name: perl-Log-Dispatch-Config
Summary: Log4j for Perl
Version: 1.04
-Release: 7%{?dist}
+Release: 8%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Log-Dispatch-Config
Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Log-Dispatch-Config-...
+# Adjust tests to changes in Log-Dispatch-2.47, bug #1258920, CPAN RT#106746
+Patch0: Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time
@@ -19,7 +21,7 @@ BuildRequires: perl(POSIX)
BuildRequires: perl(FileHandle)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Temp) >= 0.12
-BuildRequires: perl(IO::Scalar)
+BuildRequires: perl(IPC::Run3)
BuildRequires: perl(Test::More) >= 0.32
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(AppConfig) >= 1.52
@@ -35,6 +37,7 @@ format).
%prep
%setup -q -n Log-Dispatch-Config-%{version}
+%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
@@ -57,6 +60,9 @@ make test
%changelog
+* Wed Sep 02 2015 Petr Pisar <ppisar(a)redhat.com> - 1.04-8
+- Adjust tests to changes in Log-Dispatch-2.47 (bug #1258920)
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 1.04-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Log-Dispatch-Config.git/commit/?h...
8 years, 8 months
ppisar pushed to perl-Log-Dispatch-Config (f21). "Specify all dependencies"
by notifications@fedoraproject.org
From 437f53621db65e558c7e875503cf47c409581773 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar(a)redhat.com>
Date: Wed, 2 Sep 2015 14:08:17 +0200
Subject: Specify all dependencies
diff --git a/perl-Log-Dispatch-Config.spec b/perl-Log-Dispatch-Config.spec
index 7deec87..54eeb38 100644
--- a/perl-Log-Dispatch-Config.spec
+++ b/perl-Log-Dispatch-Config.spec
@@ -9,22 +9,30 @@ Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Log-Dispatc
# Adjust tests to changes in Log-Dispatch-2.47, bug #1258920, CPAN RT#106746
Patch0: Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
BuildArch: noarch
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
+BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
-# Run-time
+# Run-time:
BuildRequires: perl(AppConfig) >= 1.52
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(Log::Dispatch) >= 2
# Time::Piece is optional. POSIX is fall-back
BuildRequires: perl(POSIX)
-# Tests
-BuildRequires: perl(FileHandle)
+BuildRequires: perl(strict)
+BuildRequires: perl(vars)
+# Tests:
BuildRequires: perl(File::Copy)
+BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp) >= 0.12
+BuildRequires: perl(FileHandle)
BuildRequires: perl(IPC::Run3)
BuildRequires: perl(Test::More) >= 0.32
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(AppConfig) >= 1.52
+Requires: perl(Carp)
Requires: perl(POSIX)
# Remove under-specified dependencies
@@ -40,14 +48,13 @@ format).
%patch0 -p1
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*
%check
@@ -62,6 +69,7 @@ make test
%changelog
* Wed Sep 02 2015 Petr Pisar <ppisar(a)redhat.com> - 1.04-8
- Adjust tests to changes in Log-Dispatch-2.47 (bug #1258920)
+- Specify all dependencies
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 1.04-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Log-Dispatch-Config.git/commit/?h...
8 years, 8 months
ppisar pushed to perl-Log-Dispatch-Config (f22). "Specify all dependencies"
by notifications@fedoraproject.org
From 19d25a27391572132bedbcd7d39c759ff76ef2cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar(a)redhat.com>
Date: Wed, 2 Sep 2015 14:08:17 +0200
Subject: Specify all dependencies
diff --git a/perl-Log-Dispatch-Config.spec b/perl-Log-Dispatch-Config.spec
index 392c11e..2d95242 100644
--- a/perl-Log-Dispatch-Config.spec
+++ b/perl-Log-Dispatch-Config.spec
@@ -9,22 +9,30 @@ Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Log-Dispatc
# Adjust tests to changes in Log-Dispatch-2.47, bug #1258920, CPAN RT#106746
Patch0: Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
BuildArch: noarch
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
+BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
-# Run-time
+# Run-time:
BuildRequires: perl(AppConfig) >= 1.52
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(Log::Dispatch) >= 2
# Time::Piece is optional. POSIX is fall-back
BuildRequires: perl(POSIX)
-# Tests
-BuildRequires: perl(FileHandle)
+BuildRequires: perl(strict)
+BuildRequires: perl(vars)
+# Tests:
BuildRequires: perl(File::Copy)
+BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp) >= 0.12
+BuildRequires: perl(FileHandle)
BuildRequires: perl(IPC::Run3)
BuildRequires: perl(Test::More) >= 0.32
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(AppConfig) >= 1.52
+Requires: perl(Carp)
Requires: perl(POSIX)
# Remove under-specified dependencies
@@ -40,14 +48,13 @@ format).
%patch0 -p1
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*
%check
@@ -62,6 +69,7 @@ make test
%changelog
* Wed Sep 02 2015 Petr Pisar <ppisar(a)redhat.com> - 1.04-11
- Adjust tests to changes in Log-Dispatch-2.47 (bug #1258920)
+- Specify all dependencies
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik(a)redhat.com> - 1.04-8
- Perl 5.20 rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Log-Dispatch-Config.git/commit/?h...
8 years, 8 months
ppisar pushed to perl-Log-Dispatch-Config (f22). "Adjust tests to changes in Log-Dispatch-2.47"
by notifications@fedoraproject.org
From e24238168bd5c82e5c688870ecd9bcb31e83a378 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar(a)redhat.com>
Date: Wed, 2 Sep 2015 13:57:22 +0200
Subject: Adjust tests to changes in Log-Dispatch-2.47
diff --git a/Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch b/Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
new file mode 100644
index 0000000..4e3d1f5
--- /dev/null
+++ b/Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
@@ -0,0 +1,173 @@
+From e6b25b4fcacd10f6832a8fa6686817f905d0deec Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar(a)redhat.com>
+Date: Wed, 2 Sep 2015 13:52:04 +0200
+Subject: [PATCH] Adjust tests to Log-Dispatch-2.47
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Since Log-Dispatch-2.47, Log::Dispatch::Screen logs into file
+handle associated with STDERR. This overloading STDERR's I/O methods
+by tying to IO::Scalar does not work anymore.
+
+This patch replaces the IO::Scalar capturing by regular forked process
+using IPC::Run3.
+
+CPAN RT#106746
+
+Signed-off-by: Petr Písař <ppisar(a)redhat.com>
+---
+ Makefile.PL | 2 +-
+ t/02_log.t | 21 ++++++++++++---------
+ t/03_reload.t | 1 -
+ t/04_nolog.t | 1 -
+ t/08_datetime.t | 16 +++++++++++-----
+ t/11_no_watch.t | 1 -
+ t/13_do_reload.t | 1 -
+ 7 files changed, 24 insertions(+), 19 deletions(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 3074d07..1044eb7 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -20,7 +20,7 @@ WriteMakefile(
+ Test::More => 0.32,
+ Log::Dispatch => 2.00,
+ AppConfig => 1.52,
+- IO::Scalar => 0,
++ IPC::Run3 => 0,
+ File::Temp => 0.12,
+ },
+ );
+diff --git a/t/02_log.t b/t/02_log.t
+index 857bb31..0e1bd6c 100644
+--- a/t/02_log.t
++++ b/t/02_log.t
+@@ -1,9 +1,8 @@
+ use strict;
+-use Test::More tests => 4;
++use Test::More tests => 5;
+
+-use Log::Dispatch::Config;
+ use FileHandle;
+-use IO::Scalar;
++use IPC::Run3 ();
+ use File::Spec;
+
+ sub slurp {
+@@ -16,18 +15,22 @@ my $log;
+ BEGIN { $log = 't/log.out'; unlink $log if -e $log }
+ END { unlink $log if -e $log }
+
++my $code =<<'CODE';
++use Log::Dispatch::Config;
+ Log::Dispatch::Config->configure('t/log.cfg');
+
++my $disp = Log::Dispatch::Config->instance;
++$disp->debug('debug');
++$disp->alert('alert');
++CODE
++
+ my $err;
+ {
+- tie *STDERR, 'IO::Scalar', \$err;
+-
+- my $disp = Log::Dispatch::Config->instance;
+- $disp->debug('debug');
+- $disp->alert('alert');
++ my $retval = IPC::Run3::run3([$^X, '-e' , $code], \undef, \undef, \$err);
++ ok (($retval and $? == 0), 'Code executed successfully');
+ }
+
+-my $filename = __FILE__;
++my $filename = '-e line ';
+ my $file = slurp $log;
+ like $file, qr(debug at \Q$filename\E), 'debug';
+ like $file, qr(alert at \Q$filename\E), 'alert';
+diff --git a/t/03_reload.t b/t/03_reload.t
+index 62fc906..60b778d 100644
+--- a/t/03_reload.t
++++ b/t/03_reload.t
+@@ -5,7 +5,6 @@ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Copy;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ if( $^O eq 'MSWin32' ) {
+ plan skip_all => 'These tests fail in Win32 for silly reasons';
+diff --git a/t/04_nolog.t b/t/04_nolog.t
+index 4cf7f20..5162618 100644
+--- a/t/04_nolog.t
++++ b/t/04_nolog.t
+@@ -4,7 +4,6 @@ use Test::More tests => 1;
+ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ sub writefile {
+ my $fh = FileHandle->new(">" . shift) or die $!;
+diff --git a/t/08_datetime.t b/t/08_datetime.t
+index 21e1165..98f64d9 100644
+--- a/t/08_datetime.t
++++ b/t/08_datetime.t
+@@ -1,20 +1,26 @@
+ use strict;
+-use Test::More tests => 3;
++use Test::More tests => 4;
+
+-use IO::Scalar;
++use IPC::Run3 ();
+
++my $code=<<'CODE';
+ use Log::Dispatch::Config;
+ Log::Dispatch::Config->configure('t/date.cfg');
+
+ my $disp = Log::Dispatch::Config->instance;
+-isa_ok $disp->{outputs}->{screen}, 'Log::Dispatch::Screen';
++print $disp->{outputs}->{screen}->isa('Log::Dispatch::Screen');
++
++$disp->debug('debug');
++CODE
+
+ {
+ my($mday, $mon, $year) = (localtime(time))[3..5];
+ my $today = sprintf '%04s%02d%02d', $year + 1900, $mon + 1, $mday;
+
+- tie *STDERR, 'IO::Scalar', \my $err;
+- $disp->debug('debug');
++ my ($out, $err);
++ my $retval = IPC::Run3::run3([$^X, '-e' , $code], \undef, \$out, \$err);
++ ok (($retval and $? == 0), 'Code executed successfully');
++ is ($out, '1', q{dispatcher's class matched});
+
+ like $err, qr/$today/, $err;
+ like $err, qr/debug/, $err;
+diff --git a/t/11_no_watch.t b/t/11_no_watch.t
+index 041378d..b3f2009 100644
+--- a/t/11_no_watch.t
++++ b/t/11_no_watch.t
+@@ -5,7 +5,6 @@ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Copy;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ my($fh, $file) = tempfile;
+ copy("t/foo.cfg", $file);
+diff --git a/t/13_do_reload.t b/t/13_do_reload.t
+index 340e193..62125ee 100644
+--- a/t/13_do_reload.t
++++ b/t/13_do_reload.t
+@@ -5,7 +5,6 @@ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Copy;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ my($fh, $file) = tempfile;
+ copy("t/foo.cfg", $file);
+--
+2.4.3
+
diff --git a/perl-Log-Dispatch-Config.spec b/perl-Log-Dispatch-Config.spec
index a061125..392c11e 100644
--- a/perl-Log-Dispatch-Config.spec
+++ b/perl-Log-Dispatch-Config.spec
@@ -1,11 +1,13 @@
Name: perl-Log-Dispatch-Config
Summary: Log4j for Perl
Version: 1.04
-Release: 8%{?dist}
+Release: 9%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Log-Dispatch-Config
Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Log-Dispatch-Config-...
+# Adjust tests to changes in Log-Dispatch-2.47, bug #1258920, CPAN RT#106746
+Patch0: Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time
@@ -19,7 +21,7 @@ BuildRequires: perl(POSIX)
BuildRequires: perl(FileHandle)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Temp) >= 0.12
-BuildRequires: perl(IO::Scalar)
+BuildRequires: perl(IPC::Run3)
BuildRequires: perl(Test::More) >= 0.32
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(AppConfig) >= 1.52
@@ -35,6 +37,7 @@ format).
%prep
%setup -q -n Log-Dispatch-Config-%{version}
+%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
@@ -57,6 +60,9 @@ make test
%changelog
+* Wed Sep 02 2015 Petr Pisar <ppisar(a)redhat.com> - 1.04-11
+- Adjust tests to changes in Log-Dispatch-2.47 (bug #1258920)
+
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik(a)redhat.com> - 1.04-8
- Perl 5.20 rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Log-Dispatch-Config.git/commit/?h...
8 years, 8 months
ppisar pushed to perl-Log-Dispatch-Config (f23). "Specify all dependencies"
by notifications@fedoraproject.org
From 449869ff1b87c040bbbb20ad8719024d50fa8c5a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar(a)redhat.com>
Date: Wed, 2 Sep 2015 14:08:17 +0200
Subject: Specify all dependencies
diff --git a/perl-Log-Dispatch-Config.spec b/perl-Log-Dispatch-Config.spec
index 3be333a..415f694 100644
--- a/perl-Log-Dispatch-Config.spec
+++ b/perl-Log-Dispatch-Config.spec
@@ -9,22 +9,30 @@ Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Log-Dispatc
# Adjust tests to changes in Log-Dispatch-2.47, bug #1258920, CPAN RT#106746
Patch0: Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
BuildArch: noarch
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
+BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
-# Run-time
+# Run-time:
BuildRequires: perl(AppConfig) >= 1.52
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(Log::Dispatch) >= 2
# Time::Piece is optional. POSIX is fall-back
BuildRequires: perl(POSIX)
-# Tests
-BuildRequires: perl(FileHandle)
+BuildRequires: perl(strict)
+BuildRequires: perl(vars)
+# Tests:
BuildRequires: perl(File::Copy)
+BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp) >= 0.12
+BuildRequires: perl(FileHandle)
BuildRequires: perl(IPC::Run3)
BuildRequires: perl(Test::More) >= 0.32
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(AppConfig) >= 1.52
+Requires: perl(Carp)
Requires: perl(POSIX)
# Remove under-specified dependencies
@@ -40,14 +48,13 @@ format).
%patch0 -p1
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*
%check
@@ -62,6 +69,7 @@ make test
%changelog
* Wed Sep 02 2015 Petr Pisar <ppisar(a)redhat.com> - 1.04-11
- Adjust tests to changes in Log-Dispatch-2.47 (bug #1258920)
+- Specify all dependencies
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 1.04-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Log-Dispatch-Config.git/commit/?h...
8 years, 8 months
ppisar pushed to perl-Log-Dispatch-Config (f23). "Adjust tests to changes in Log-Dispatch-2.47"
by notifications@fedoraproject.org
From 4c4d1848b255996195da579ec2f10b11dfbfb6ca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar(a)redhat.com>
Date: Wed, 2 Sep 2015 13:57:22 +0200
Subject: Adjust tests to changes in Log-Dispatch-2.47
diff --git a/Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch b/Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
new file mode 100644
index 0000000..4e3d1f5
--- /dev/null
+++ b/Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
@@ -0,0 +1,173 @@
+From e6b25b4fcacd10f6832a8fa6686817f905d0deec Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar(a)redhat.com>
+Date: Wed, 2 Sep 2015 13:52:04 +0200
+Subject: [PATCH] Adjust tests to Log-Dispatch-2.47
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Since Log-Dispatch-2.47, Log::Dispatch::Screen logs into file
+handle associated with STDERR. This overloading STDERR's I/O methods
+by tying to IO::Scalar does not work anymore.
+
+This patch replaces the IO::Scalar capturing by regular forked process
+using IPC::Run3.
+
+CPAN RT#106746
+
+Signed-off-by: Petr Písař <ppisar(a)redhat.com>
+---
+ Makefile.PL | 2 +-
+ t/02_log.t | 21 ++++++++++++---------
+ t/03_reload.t | 1 -
+ t/04_nolog.t | 1 -
+ t/08_datetime.t | 16 +++++++++++-----
+ t/11_no_watch.t | 1 -
+ t/13_do_reload.t | 1 -
+ 7 files changed, 24 insertions(+), 19 deletions(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 3074d07..1044eb7 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -20,7 +20,7 @@ WriteMakefile(
+ Test::More => 0.32,
+ Log::Dispatch => 2.00,
+ AppConfig => 1.52,
+- IO::Scalar => 0,
++ IPC::Run3 => 0,
+ File::Temp => 0.12,
+ },
+ );
+diff --git a/t/02_log.t b/t/02_log.t
+index 857bb31..0e1bd6c 100644
+--- a/t/02_log.t
++++ b/t/02_log.t
+@@ -1,9 +1,8 @@
+ use strict;
+-use Test::More tests => 4;
++use Test::More tests => 5;
+
+-use Log::Dispatch::Config;
+ use FileHandle;
+-use IO::Scalar;
++use IPC::Run3 ();
+ use File::Spec;
+
+ sub slurp {
+@@ -16,18 +15,22 @@ my $log;
+ BEGIN { $log = 't/log.out'; unlink $log if -e $log }
+ END { unlink $log if -e $log }
+
++my $code =<<'CODE';
++use Log::Dispatch::Config;
+ Log::Dispatch::Config->configure('t/log.cfg');
+
++my $disp = Log::Dispatch::Config->instance;
++$disp->debug('debug');
++$disp->alert('alert');
++CODE
++
+ my $err;
+ {
+- tie *STDERR, 'IO::Scalar', \$err;
+-
+- my $disp = Log::Dispatch::Config->instance;
+- $disp->debug('debug');
+- $disp->alert('alert');
++ my $retval = IPC::Run3::run3([$^X, '-e' , $code], \undef, \undef, \$err);
++ ok (($retval and $? == 0), 'Code executed successfully');
+ }
+
+-my $filename = __FILE__;
++my $filename = '-e line ';
+ my $file = slurp $log;
+ like $file, qr(debug at \Q$filename\E), 'debug';
+ like $file, qr(alert at \Q$filename\E), 'alert';
+diff --git a/t/03_reload.t b/t/03_reload.t
+index 62fc906..60b778d 100644
+--- a/t/03_reload.t
++++ b/t/03_reload.t
+@@ -5,7 +5,6 @@ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Copy;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ if( $^O eq 'MSWin32' ) {
+ plan skip_all => 'These tests fail in Win32 for silly reasons';
+diff --git a/t/04_nolog.t b/t/04_nolog.t
+index 4cf7f20..5162618 100644
+--- a/t/04_nolog.t
++++ b/t/04_nolog.t
+@@ -4,7 +4,6 @@ use Test::More tests => 1;
+ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ sub writefile {
+ my $fh = FileHandle->new(">" . shift) or die $!;
+diff --git a/t/08_datetime.t b/t/08_datetime.t
+index 21e1165..98f64d9 100644
+--- a/t/08_datetime.t
++++ b/t/08_datetime.t
+@@ -1,20 +1,26 @@
+ use strict;
+-use Test::More tests => 3;
++use Test::More tests => 4;
+
+-use IO::Scalar;
++use IPC::Run3 ();
+
++my $code=<<'CODE';
+ use Log::Dispatch::Config;
+ Log::Dispatch::Config->configure('t/date.cfg');
+
+ my $disp = Log::Dispatch::Config->instance;
+-isa_ok $disp->{outputs}->{screen}, 'Log::Dispatch::Screen';
++print $disp->{outputs}->{screen}->isa('Log::Dispatch::Screen');
++
++$disp->debug('debug');
++CODE
+
+ {
+ my($mday, $mon, $year) = (localtime(time))[3..5];
+ my $today = sprintf '%04s%02d%02d', $year + 1900, $mon + 1, $mday;
+
+- tie *STDERR, 'IO::Scalar', \my $err;
+- $disp->debug('debug');
++ my ($out, $err);
++ my $retval = IPC::Run3::run3([$^X, '-e' , $code], \undef, \$out, \$err);
++ ok (($retval and $? == 0), 'Code executed successfully');
++ is ($out, '1', q{dispatcher's class matched});
+
+ like $err, qr/$today/, $err;
+ like $err, qr/debug/, $err;
+diff --git a/t/11_no_watch.t b/t/11_no_watch.t
+index 041378d..b3f2009 100644
+--- a/t/11_no_watch.t
++++ b/t/11_no_watch.t
+@@ -5,7 +5,6 @@ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Copy;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ my($fh, $file) = tempfile;
+ copy("t/foo.cfg", $file);
+diff --git a/t/13_do_reload.t b/t/13_do_reload.t
+index 340e193..62125ee 100644
+--- a/t/13_do_reload.t
++++ b/t/13_do_reload.t
+@@ -5,7 +5,6 @@ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Copy;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ my($fh, $file) = tempfile;
+ copy("t/foo.cfg", $file);
+--
+2.4.3
+
diff --git a/perl-Log-Dispatch-Config.spec b/perl-Log-Dispatch-Config.spec
index 69f8777..3be333a 100644
--- a/perl-Log-Dispatch-Config.spec
+++ b/perl-Log-Dispatch-Config.spec
@@ -1,11 +1,13 @@
Name: perl-Log-Dispatch-Config
Summary: Log4j for Perl
Version: 1.04
-Release: 10%{?dist}
+Release: 11%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Log-Dispatch-Config
Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Log-Dispatch-Config-...
+# Adjust tests to changes in Log-Dispatch-2.47, bug #1258920, CPAN RT#106746
+Patch0: Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time
@@ -19,7 +21,7 @@ BuildRequires: perl(POSIX)
BuildRequires: perl(FileHandle)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Temp) >= 0.12
-BuildRequires: perl(IO::Scalar)
+BuildRequires: perl(IPC::Run3)
BuildRequires: perl(Test::More) >= 0.32
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(AppConfig) >= 1.52
@@ -35,6 +37,7 @@ format).
%prep
%setup -q -n Log-Dispatch-Config-%{version}
+%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
@@ -57,6 +60,9 @@ make test
%changelog
+* Wed Sep 02 2015 Petr Pisar <ppisar(a)redhat.com> - 1.04-11
+- Adjust tests to changes in Log-Dispatch-2.47 (bug #1258920)
+
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 1.04-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Log-Dispatch-Config.git/commit/?h...
8 years, 8 months
ppisar pushed to perl-Log-Dispatch-Config (master). "Specify all dependencies"
by notifications@fedoraproject.org
From 449869ff1b87c040bbbb20ad8719024d50fa8c5a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar(a)redhat.com>
Date: Wed, 2 Sep 2015 14:08:17 +0200
Subject: Specify all dependencies
diff --git a/perl-Log-Dispatch-Config.spec b/perl-Log-Dispatch-Config.spec
index 3be333a..415f694 100644
--- a/perl-Log-Dispatch-Config.spec
+++ b/perl-Log-Dispatch-Config.spec
@@ -9,22 +9,30 @@ Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Log-Dispatc
# Adjust tests to changes in Log-Dispatch-2.47, bug #1258920, CPAN RT#106746
Patch0: Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
BuildArch: noarch
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
+BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
-# Run-time
+# Run-time:
BuildRequires: perl(AppConfig) >= 1.52
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(Log::Dispatch) >= 2
# Time::Piece is optional. POSIX is fall-back
BuildRequires: perl(POSIX)
-# Tests
-BuildRequires: perl(FileHandle)
+BuildRequires: perl(strict)
+BuildRequires: perl(vars)
+# Tests:
BuildRequires: perl(File::Copy)
+BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp) >= 0.12
+BuildRequires: perl(FileHandle)
BuildRequires: perl(IPC::Run3)
BuildRequires: perl(Test::More) >= 0.32
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(AppConfig) >= 1.52
+Requires: perl(Carp)
Requires: perl(POSIX)
# Remove under-specified dependencies
@@ -40,14 +48,13 @@ format).
%patch0 -p1
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*
%check
@@ -62,6 +69,7 @@ make test
%changelog
* Wed Sep 02 2015 Petr Pisar <ppisar(a)redhat.com> - 1.04-11
- Adjust tests to changes in Log-Dispatch-2.47 (bug #1258920)
+- Specify all dependencies
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 1.04-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Log-Dispatch-Config.git/commit/?h...
8 years, 8 months
ppisar pushed to perl-Log-Dispatch-Config (master). "Adjust tests to changes in Log-Dispatch-2.47"
by notifications@fedoraproject.org
From 4c4d1848b255996195da579ec2f10b11dfbfb6ca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar(a)redhat.com>
Date: Wed, 2 Sep 2015 13:57:22 +0200
Subject: Adjust tests to changes in Log-Dispatch-2.47
diff --git a/Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch b/Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
new file mode 100644
index 0000000..4e3d1f5
--- /dev/null
+++ b/Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
@@ -0,0 +1,173 @@
+From e6b25b4fcacd10f6832a8fa6686817f905d0deec Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar(a)redhat.com>
+Date: Wed, 2 Sep 2015 13:52:04 +0200
+Subject: [PATCH] Adjust tests to Log-Dispatch-2.47
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Since Log-Dispatch-2.47, Log::Dispatch::Screen logs into file
+handle associated with STDERR. This overloading STDERR's I/O methods
+by tying to IO::Scalar does not work anymore.
+
+This patch replaces the IO::Scalar capturing by regular forked process
+using IPC::Run3.
+
+CPAN RT#106746
+
+Signed-off-by: Petr Písař <ppisar(a)redhat.com>
+---
+ Makefile.PL | 2 +-
+ t/02_log.t | 21 ++++++++++++---------
+ t/03_reload.t | 1 -
+ t/04_nolog.t | 1 -
+ t/08_datetime.t | 16 +++++++++++-----
+ t/11_no_watch.t | 1 -
+ t/13_do_reload.t | 1 -
+ 7 files changed, 24 insertions(+), 19 deletions(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 3074d07..1044eb7 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -20,7 +20,7 @@ WriteMakefile(
+ Test::More => 0.32,
+ Log::Dispatch => 2.00,
+ AppConfig => 1.52,
+- IO::Scalar => 0,
++ IPC::Run3 => 0,
+ File::Temp => 0.12,
+ },
+ );
+diff --git a/t/02_log.t b/t/02_log.t
+index 857bb31..0e1bd6c 100644
+--- a/t/02_log.t
++++ b/t/02_log.t
+@@ -1,9 +1,8 @@
+ use strict;
+-use Test::More tests => 4;
++use Test::More tests => 5;
+
+-use Log::Dispatch::Config;
+ use FileHandle;
+-use IO::Scalar;
++use IPC::Run3 ();
+ use File::Spec;
+
+ sub slurp {
+@@ -16,18 +15,22 @@ my $log;
+ BEGIN { $log = 't/log.out'; unlink $log if -e $log }
+ END { unlink $log if -e $log }
+
++my $code =<<'CODE';
++use Log::Dispatch::Config;
+ Log::Dispatch::Config->configure('t/log.cfg');
+
++my $disp = Log::Dispatch::Config->instance;
++$disp->debug('debug');
++$disp->alert('alert');
++CODE
++
+ my $err;
+ {
+- tie *STDERR, 'IO::Scalar', \$err;
+-
+- my $disp = Log::Dispatch::Config->instance;
+- $disp->debug('debug');
+- $disp->alert('alert');
++ my $retval = IPC::Run3::run3([$^X, '-e' , $code], \undef, \undef, \$err);
++ ok (($retval and $? == 0), 'Code executed successfully');
+ }
+
+-my $filename = __FILE__;
++my $filename = '-e line ';
+ my $file = slurp $log;
+ like $file, qr(debug at \Q$filename\E), 'debug';
+ like $file, qr(alert at \Q$filename\E), 'alert';
+diff --git a/t/03_reload.t b/t/03_reload.t
+index 62fc906..60b778d 100644
+--- a/t/03_reload.t
++++ b/t/03_reload.t
+@@ -5,7 +5,6 @@ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Copy;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ if( $^O eq 'MSWin32' ) {
+ plan skip_all => 'These tests fail in Win32 for silly reasons';
+diff --git a/t/04_nolog.t b/t/04_nolog.t
+index 4cf7f20..5162618 100644
+--- a/t/04_nolog.t
++++ b/t/04_nolog.t
+@@ -4,7 +4,6 @@ use Test::More tests => 1;
+ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ sub writefile {
+ my $fh = FileHandle->new(">" . shift) or die $!;
+diff --git a/t/08_datetime.t b/t/08_datetime.t
+index 21e1165..98f64d9 100644
+--- a/t/08_datetime.t
++++ b/t/08_datetime.t
+@@ -1,20 +1,26 @@
+ use strict;
+-use Test::More tests => 3;
++use Test::More tests => 4;
+
+-use IO::Scalar;
++use IPC::Run3 ();
+
++my $code=<<'CODE';
+ use Log::Dispatch::Config;
+ Log::Dispatch::Config->configure('t/date.cfg');
+
+ my $disp = Log::Dispatch::Config->instance;
+-isa_ok $disp->{outputs}->{screen}, 'Log::Dispatch::Screen';
++print $disp->{outputs}->{screen}->isa('Log::Dispatch::Screen');
++
++$disp->debug('debug');
++CODE
+
+ {
+ my($mday, $mon, $year) = (localtime(time))[3..5];
+ my $today = sprintf '%04s%02d%02d', $year + 1900, $mon + 1, $mday;
+
+- tie *STDERR, 'IO::Scalar', \my $err;
+- $disp->debug('debug');
++ my ($out, $err);
++ my $retval = IPC::Run3::run3([$^X, '-e' , $code], \undef, \$out, \$err);
++ ok (($retval and $? == 0), 'Code executed successfully');
++ is ($out, '1', q{dispatcher's class matched});
+
+ like $err, qr/$today/, $err;
+ like $err, qr/debug/, $err;
+diff --git a/t/11_no_watch.t b/t/11_no_watch.t
+index 041378d..b3f2009 100644
+--- a/t/11_no_watch.t
++++ b/t/11_no_watch.t
+@@ -5,7 +5,6 @@ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Copy;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ my($fh, $file) = tempfile;
+ copy("t/foo.cfg", $file);
+diff --git a/t/13_do_reload.t b/t/13_do_reload.t
+index 340e193..62125ee 100644
+--- a/t/13_do_reload.t
++++ b/t/13_do_reload.t
+@@ -5,7 +5,6 @@ use Log::Dispatch::Config;
+ use FileHandle;
+ use File::Copy;
+ use File::Temp qw(tempfile);
+-use IO::Scalar;
+
+ my($fh, $file) = tempfile;
+ copy("t/foo.cfg", $file);
+--
+2.4.3
+
diff --git a/perl-Log-Dispatch-Config.spec b/perl-Log-Dispatch-Config.spec
index 69f8777..3be333a 100644
--- a/perl-Log-Dispatch-Config.spec
+++ b/perl-Log-Dispatch-Config.spec
@@ -1,11 +1,13 @@
Name: perl-Log-Dispatch-Config
Summary: Log4j for Perl
Version: 1.04
-Release: 10%{?dist}
+Release: 11%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Log-Dispatch-Config
Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Log-Dispatch-Config-...
+# Adjust tests to changes in Log-Dispatch-2.47, bug #1258920, CPAN RT#106746
+Patch0: Log-Dispatch-Config-1.04-Adjust-tests-to-Log-Dispatch-2.47.patch
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time
@@ -19,7 +21,7 @@ BuildRequires: perl(POSIX)
BuildRequires: perl(FileHandle)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Temp) >= 0.12
-BuildRequires: perl(IO::Scalar)
+BuildRequires: perl(IPC::Run3)
BuildRequires: perl(Test::More) >= 0.32
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(AppConfig) >= 1.52
@@ -35,6 +37,7 @@ format).
%prep
%setup -q -n Log-Dispatch-Config-%{version}
+%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
@@ -57,6 +60,9 @@ make test
%changelog
+* Wed Sep 02 2015 Petr Pisar <ppisar(a)redhat.com> - 1.04-11
+- Adjust tests to changes in Log-Dispatch-2.47 (bug #1258920)
+
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 1.04-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Log-Dispatch-Config.git/commit/?h...
8 years, 8 months
psabata pushed to perl-Date-Manip (f21). "6.51 bump, bugfixes and tzdata updates (..more)"
by notifications@fedoraproject.org
From 4a67febb46d0bbd3c5a66ff4dd2b90efe8b0f28e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk(a)redhat.com>
Date: Wed, 2 Sep 2015 14:07:45 +0200
Subject: 6.51 bump, bugfixes and tzdata updates
- This release changes the behavior of Date::Manip::Delta::value which
now returns an empty string rather than undef, where applicable
diff --git a/.gitignore b/.gitignore
index 11c9673..e0d3c82 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,3 +28,4 @@ Date-Manip-6.07.tar.gz
/Date-Manip-6.48.tar.gz
/Date-Manip-6.49.tar.gz
/Date-Manip-6.50.tar.gz
+/Date-Manip-6.51.tar.gz
diff --git a/perl-Date-Manip.spec b/perl-Date-Manip.spec
index a91ae3b..ce8c0c3 100644
--- a/perl-Date-Manip.spec
+++ b/perl-Date-Manip.spec
@@ -1,6 +1,6 @@
Name: perl-Date-Manip
-Version: 6.50
-Release: 3%{?dist}
+Version: 6.51
+Release: 1%{?dist}
Summary: Date manipulation routines
Group: Development/Libraries
License: GPL+ or Artistic
@@ -14,9 +14,12 @@ BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Runtime
BuildRequires: perl(Carp)
+# XXX: BuildRequires: perl(Cwd)
# XXX: BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Encode)
BuildRequires: perl(Exporter)
+# XXX: BuildRequires: perl(File::Find)
+# XXX: BuildRequires: perl(File::Spec)
BuildRequires: perl(integer)
BuildRequires: perl(IO::File)
BuildRequires: perl(Storable)
@@ -25,6 +28,9 @@ BuildRequires: perl(utf8)
BuildRequires: perl(Test::Inter)
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
+Requires: perl(Cwd)
+Requires: perl(File::Find)
+Requires: perl(File::Spec)
# This package was formerly known as perl-DateManip
Provides: perl-DateManip = %{version}-%{release}
@@ -62,6 +68,11 @@ perl Build.PL installdirs=vendor
%{_bindir}/dm_*
%changelog
+* Wed Sep 02 2015 Petr Šabata <contyk(a)redhat.com> - 6.51-1
+- 6.51 bump, bugfixes and tzdata updates
+- This release changes the behavior of Date::Manip::Delta::value which
+ now returns an empty string rather than undef, where applicable
+
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 6.50-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
diff --git a/sources b/sources
index 7bacad2..77f98b8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-62c86841f9c57ebe663178195c1df272 Date-Manip-6.50.tar.gz
+da85d48de8de695d67d0107a477fd501 Date-Manip-6.51.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-Date-Manip.git/commit/?h=f21&id=4...
8 years, 8 months