From 1f6c662f21c9fa0cc231a9308662275c889e3614d0bc600a90ca7a624431490d Mon Sep 17 00:00:00 2001 From: Ruediger Oertel Date: Wed, 29 Feb 2012 17:14:02 +0000 Subject: [PATCH] - add old_test_more patch to fix build on sle11 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-B-Hooks-EndOfScope?expand=0&rev=13 --- old_test_more.patch | 28 ++++++++++++++++++++++++++++ perl-B-Hooks-EndOfScope.changes | 5 +++++ perl-B-Hooks-EndOfScope.spec | 6 ++++++ 3 files changed, 39 insertions(+) create mode 100644 old_test_more.patch diff --git a/old_test_more.patch b/old_test_more.patch new file mode 100644 index 0000000..e8d84dc --- /dev/null +++ b/old_test_more.patch @@ -0,0 +1,28 @@ +--- Makefile.PL ++++ Makefile.PL +@@ -12,7 +12,7 @@ + "ABSTRACT" => "Execute code after a scope finished compilation", + "AUTHOR" => "Florian Ragwitz ", + "BUILD_REQUIRES" => { +- "Test::More" => "0.89" ++ "Test::More" => "0.01" + }, + "CONFIGURE_REQUIRES" => { + "ExtUtils::MakeMaker" => "6.30" +--- t/localise.t ++++ t/localise.t +@@ -1,7 +1,7 @@ + use strict; + use warnings; + +-use Test::More 0.89; ++use Test::More qw(no_plan); + + use B::Hooks::EndOfScope; + +@@ -47,4 +47,4 @@ + BEGIN { ok($fired) } + } + +-done_testing; ++#done_testing; diff --git a/perl-B-Hooks-EndOfScope.changes b/perl-B-Hooks-EndOfScope.changes index 24c25b7..3b9579d 100644 --- a/perl-B-Hooks-EndOfScope.changes +++ b/perl-B-Hooks-EndOfScope.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 29 18:13:24 CET 2012 - ro@suse.de + +- add old_test_more patch to fix build on sle11 + ------------------------------------------------------------------- Fri Feb 24 08:25:56 UTC 2012 - coolo@suse.com diff --git a/perl-B-Hooks-EndOfScope.spec b/perl-B-Hooks-EndOfScope.spec index bda76f2..33399aa 100644 --- a/perl-B-Hooks-EndOfScope.spec +++ b/perl-B-Hooks-EndOfScope.spec @@ -25,6 +25,9 @@ License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/B-Hooks-EndOfScope/ Source: http://www.cpan.org/authors/id/F/FL/FLORA/%{cpan_name}-%{version}.tar.gz +%if 0%{?suse_version} <= 1110 +Patch0: old_test_more.patch +%endif BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl @@ -47,6 +50,9 @@ surrounding scope. %if 0%{?sles_version} == 10 %{__perl} -p -i -e 's|6.31|6.30|' Makefile.PL %endif +%if 0%{?suse_version} <= 1110 +%patch0 +%endif # MANUAL END %build