- 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
This commit is contained in:
Ruediger Oertel 2012-02-29 17:14:02 +00:00 committed by Git OBS Bridge
parent 4c110569d5
commit 1f6c662f21
3 changed files with 39 additions and 0 deletions

28
old_test_more.patch Normal file
View File

@ -0,0 +1,28 @@
--- Makefile.PL
+++ Makefile.PL
@@ -12,7 +12,7 @@
"ABSTRACT" => "Execute code after a scope finished compilation",
"AUTHOR" => "Florian Ragwitz <rafl\@debian.org>",
"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;

View File

@ -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

View File

@ -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