[perl-Test-Unit] Specify all dependencies, create perl5.16.patch

Petr Pisar ppisar at fedoraproject.org
Tue Jun 12 14:57:27 UTC 2012


commit c8ec65eb06f4f7059f9e4a32b5c521a26eef746b
Author: Jitka Plesnikova <jplesnik at redhat.com>
Date:   Tue Jun 12 16:48:38 2012 +0200

    Specify all dependencies, create perl5.16.patch

 perl-Test-Unit.spec |   15 +++++++++++++++
 perl5.16.patch      |   12 ++++++++++++
 2 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/perl-Test-Unit.spec b/perl-Test-Unit.spec
index 9f44c89..d81b2c6 100644
--- a/perl-Test-Unit.spec
+++ b/perl-Test-Unit.spec
@@ -9,12 +9,24 @@ URL:            http://perlunit.sourceforge.net/
 Source0:        http://search.cpan.org/CPAN/authors/id/M/MC/MCAST/Test-Unit-%{version}.tar.gz
 # https://rt.cpan.org/Public/Bug/Display.html?id=69025
 Patch0:         tests5.14.patch
+# https://rt.cpan.org/Public/Bug/Display.html?id=77779
+Patch1:         perl5.16.patch
 
 BuildArch:      noarch
 BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Carp)
 BuildRequires:  perl(Class::Inner)
+BuildRequires:  perl(Data::Dumper)
 BuildRequires:  perl(Devel::Symdump)
 BuildRequires:  perl(Error)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(Test)
+BuildRequires:  perl(Tk)
+BuildRequires:  perl(Tk::Canvas)
+BuildRequires:  perl(Tk::Derived)
+BuildRequires:  perl(Tk::DialogBox)
+BuildRequires:  perl(Tk::ROText)
+
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
@@ -30,6 +42,7 @@ Gamma.
 %prep
 %setup -q -n Test-Unit-%{version}
 %patch0 -p1
+%patch1 -p1
 sed -i 's/\r//' examples/Experimental/Sample.pm
 chmod a+x TkTestRunner.pl TestRunner.pl
 
@@ -58,6 +71,8 @@ make test
 %changelog
 * Mon Jun 11 2012 Petr Pisar <ppisar at redhat.com> - 0.25-13
 - Perl 5.16 rebuild
+- Specify all dependencies
+- apply patch to for Test::Unit::TestBase RT#77779
 
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.25-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
diff --git a/perl5.16.patch b/perl5.16.patch
new file mode 100644
index 0000000..25a9ff8
--- /dev/null
+++ b/perl5.16.patch
@@ -0,0 +1,12 @@
+diff -up Test-Unit-0.25/lib/Test/Unit/TestCase.pm.orig Test-Unit-0.25/lib/Test/Unit/TestCase.pm
+--- Test-Unit-0.25/lib/Test/Unit/TestCase.pm.orig	2012-06-12 15:38:32.058355073 +0200
++++ Test-Unit-0.25/lib/Test/Unit/TestCase.pm	2012-06-12 15:38:58.340484917 +0200
+@@ -103,7 +103,7 @@ sub list_tests {
+     my $class = ref($_[0]) || $_[0];
+     my @tests = ();
+     no strict 'refs';
+-    if (defined(@{"$class\::TESTS"})) {
++    if (@{"$class\::TESTS"}) {
+         push @tests, @{"$class\::TESTS"};
+     }
+     else {


More information about the scm-commits mailing list