From dc601d1f9b4831ca29393ace0564dc2131fd19374e0a97a8ac966777d53b477d Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Tue, 31 May 2011 11:38:18 +0000 Subject: [PATCH 1/2] Updating link to change in openSUSE:Factory/perl-Eval-Closure revision 4.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Eval-Closure?expand=0&rev=b6c730f4e2817f4cbcc092f36aec1e4c From 1b0e0c33d936ad3aac1e22de6d9e4e2c1200c7f7208a1cd9aa54b04925653cc7 Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Sat, 4 Jun 2011 18:58:04 +0000 Subject: [PATCH 2/2] - fix build on distributions with old Test::More module ( perl-Eval-Closure-old_Test-More.patch ) OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Eval-Closure?expand=0&rev=4 --- perl-Eval-Closure-old_Test-More.patch | 133 ++++++++++++++++++++++++++ perl-Eval-Closure.changes | 6 ++ perl-Eval-Closure.spec | 6 +- 3 files changed, 144 insertions(+), 1 deletion(-) create mode 100644 perl-Eval-Closure-old_Test-More.patch diff --git a/perl-Eval-Closure-old_Test-More.patch b/perl-Eval-Closure-old_Test-More.patch new file mode 100644 index 0000000..bb4ffb8 --- /dev/null +++ b/perl-Eval-Closure-old_Test-More.patch @@ -0,0 +1,133 @@ +Index: Eval-Closure-0.05/t/01-basic.t +=================================================================== +--- Eval-Closure-0.05.orig/t/01-basic.t ++++ Eval-Closure-0.05/t/01-basic.t +@@ -1,7 +1,7 @@ + #!/usr/bin/env perl + use strict; + use warnings; +-use Test::More; ++use Test::More qw(no_plan); + use Test::Fatal; + + use Eval::Closure; +@@ -45,4 +45,4 @@ use Eval::Closure; + ok(!$code->(), "environment is clean"); + } + +-done_testing; ++#done_testing; +Index: Eval-Closure-0.05/t/02-close-over.t +=================================================================== +--- Eval-Closure-0.05.orig/t/02-close-over.t ++++ Eval-Closure-0.05/t/02-close-over.t +@@ -1,7 +1,7 @@ + #!/usr/bin/env perl + use strict; + use warnings; +-use Test::More; ++use Test::More qw(no_plan); + use Test::Fatal; + + use Eval::Closure; +@@ -52,4 +52,4 @@ use Test::Requires 'PadWalker'; + # it'd be nice if we could test that closing over other things wasn't possible, + # but perl's optimizer gets in the way of that + +-done_testing; ++#done_testing; +Index: Eval-Closure-0.05/t/03-description.t +=================================================================== +--- Eval-Closure-0.05.orig/t/03-description.t ++++ Eval-Closure-0.05/t/03-description.t +@@ -1,7 +1,7 @@ + #!/usr/bin/env perl + use strict; + use warnings; +-use Test::More; ++use Test::More qw(no_plan); + use Test::Fatal; + + use Eval::Closure; +@@ -50,4 +50,4 @@ SOURCE + "description is set" + ); + } +-done_testing; ++#done_testing; +Index: Eval-Closure-0.05/t/04-canonicalize-source.t +=================================================================== +--- Eval-Closure-0.05.orig/t/04-canonicalize-source.t ++++ Eval-Closure-0.05/t/04-canonicalize-source.t +@@ -1,7 +1,7 @@ + #!/usr/bin/env perl + use strict; + use warnings; +-use Test::More; ++use Test::More qw(no_plan); + + use Eval::Closure; + +@@ -28,4 +28,4 @@ use Eval::Closure; + is($code->(), "foo", "got the right code"); + } + +-done_testing; ++#done_testing; +Index: Eval-Closure-0.05/t/05-memoize.t +=================================================================== +--- Eval-Closure-0.05.orig/t/05-memoize.t ++++ Eval-Closure-0.05/t/05-memoize.t +@@ -1,7 +1,7 @@ + #!/usr/bin/env perl + use strict; + use warnings; +-use Test::More; ++use Test::More qw(no_plan); + use Test::Fatal; + use Test::Requires 'Test::Output'; + +@@ -99,4 +99,4 @@ use Eval::Closure; + "got the right description"); + } + +-done_testing; ++#done_testing; +Index: Eval-Closure-0.05/t/10-errors.t +=================================================================== +--- Eval-Closure-0.05.orig/t/10-errors.t ++++ Eval-Closure-0.05/t/10-errors.t +@@ -1,7 +1,7 @@ + #!/usr/bin/env perl + use strict; + use warnings; +-use Test::More; ++use Test::More qw(no_plan); + use Test::Fatal; + + use Eval::Closure; +@@ -64,4 +64,4 @@ unlike( + "with terse_error, does not include the source code" + ); + +-done_testing; ++#done_testing; +Index: Eval-Closure-0.05/t/11-debugger.t +=================================================================== +--- Eval-Closure-0.05.orig/t/11-debugger.t ++++ Eval-Closure-0.05/t/11-debugger.t +@@ -1,7 +1,7 @@ + #!/usr/bin/env perl + use strict; + use warnings; +-use Test::More; ++use Test::More qw(no_plan); + use Test::Fatal; + + BEGIN { $^P |= 0x210 } # PERLDBf_SUBLINE +@@ -20,4 +20,4 @@ unlike( + ); + + +-done_testing; ++#done_testing; diff --git a/perl-Eval-Closure.changes b/perl-Eval-Closure.changes index b34f234..9398ae0 100644 --- a/perl-Eval-Closure.changes +++ b/perl-Eval-Closure.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Jun 4 18:30:04 UTC 2011 - lars@linux-schulserver.de + +- fix build on distributions with old Test::More module + ( perl-Eval-Closure-old_Test-More.patch ) + ------------------------------------------------------------------- Wed May 4 10:55:03 UTC 2011 - coolo@opensuse.org diff --git a/perl-Eval-Closure.spec b/perl-Eval-Closure.spec index c102de7..c643167 100644 --- a/perl-Eval-Closure.spec +++ b/perl-Eval-Closure.spec @@ -22,10 +22,11 @@ Version: 0.05 Release: 1 License: GPL+ or Artistic %define cpan_name Eval-Closure -Summary: safely and cleanly create closures via string eval +Summary: Safely and cleanly create closures via string eval Url: http://search.cpan.org/dist/Eval-Closure/ Group: Development/Libraries/Perl Source: http://www.cpan.org/authors/id/D/DO/DOY/%{cpan_name}-%{version}.tar.gz +Patch1: perl-Eval-Closure-old_Test-More.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl @@ -59,6 +60,9 @@ non-existent) if caching is to work properly). %prep %setup -q -n %{cpan_name}-%{version} +%if 0%{?suse_version} >= 1110 +%patch1 -p1 +%endif %build %{__perl} Makefile.PL INSTALLDIRS=vendor