From 428cb026550ec32069832c922c847ee12d7a3e049fa8d0457217c368cb32ea5f Mon Sep 17 00:00:00 2001 From: Ruediger Oertel Date: Wed, 29 Feb 2012 17:56:19 +0000 Subject: [PATCH] - fix build with old Test::More for sle11 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Implementation?expand=0&rev=4 --- old_test_more.patch | 136 +++++++++++++++++++++++++++++ perl-Module-Implementation.changes | 5 ++ perl-Module-Implementation.spec | 9 +- 3 files changed, 148 insertions(+), 2 deletions(-) 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..1b27b14 --- /dev/null +++ b/old_test_more.patch @@ -0,0 +1,136 @@ +--- t/basic.t ++++ t/basic.t +@@ -1,7 +1,7 @@ + use strict; + use warnings; + +-use Test::More 0.88; ++use Test::More qw(no_plan); + + { + package T; +@@ -34,4 +34,4 @@ + ); + } + +-done_testing(); ++#done_testing(); +--- t/both-fail.t ++++ t/both-fail.t +@@ -1,7 +1,7 @@ + use strict; + use warnings; + +-use Test::More 0.88; ++use Test::More qw(no_plan); + use Test::Fatal; + + { +@@ -25,4 +25,4 @@ + ); + } + +-done_testing(); ++#done_testing(); +--- t/env-value.t ++++ t/env-value.t +@@ -1,7 +1,7 @@ + use strict; + use warnings; + +-use Test::More 0.88; ++use Test::More qw(no_plan); + + { + package T; +@@ -36,4 +36,4 @@ + ); + } + +-done_testing(); ++#done_testing(); +--- t/more-symbols.t ++++ t/more-symbols.t +@@ -1,7 +1,7 @@ + use strict; + use warnings; + +-use Test::More 0.88; ++use Test::More qw(no_plan); + + { + package T; +@@ -44,4 +44,4 @@ + ); + } + +-done_testing(); ++#done_testing(); +--- t/one-impl-fails1.t ++++ t/one-impl-fails1.t +@@ -1,7 +1,7 @@ + use strict; + use warnings; + +-use Test::More 0.88; ++use Test::More qw(no_plan); + + { + package T; +@@ -25,4 +25,4 @@ + ok( !T->can('return_package'), 'T package has a return_package sub' ); + } + +-done_testing(); ++#done_testing(); +--- t/one-impl-fails2.t ++++ t/one-impl-fails2.t +@@ -1,7 +1,7 @@ + use strict; + use warnings; + +-use Test::More 0.88; ++use Test::More qw(no_plan); + + { + package T; +@@ -25,4 +25,4 @@ + ok( !T->can('return_package'), 'T package has a return_package sub' ); + } + +-done_testing(); ++#done_testing(); +--- t/requested-fails.t ++++ t/requested-fails.t +@@ -1,7 +1,7 @@ + use strict; + use warnings; + +-use Test::More 0.88; ++use Test::More qw(no_plan); + use Test::Fatal; + + { +@@ -27,4 +27,4 @@ + ); + } + +-done_testing(); ++#done_testing(); +--- t/taint.t ++++ t/taint.t +@@ -7,7 +7,7 @@ + 'Test::Taint' => '0', + }; + +-use Test::More 0.88; ++use Test::More qw(no_plan); + use Test::Fatal; + + taint_checking_ok(); +@@ -43,4 +43,4 @@ + ); + } + +-done_testing(); ++#done_testing(); diff --git a/perl-Module-Implementation.changes b/perl-Module-Implementation.changes index 2754784..15fbc91 100644 --- a/perl-Module-Implementation.changes +++ b/perl-Module-Implementation.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 29 18:55:38 CET 2012 - ro@suse.de + +- fix build with old Test::More for sle11 + ------------------------------------------------------------------- Fri Feb 10 12:58:44 UTC 2012 - vcizek@suse.com diff --git a/perl-Module-Implementation.spec b/perl-Module-Implementation.spec index 72ec097..529a9a3 100644 --- a/perl-Module-Implementation.spec +++ b/perl-Module-Implementation.spec @@ -16,7 +16,6 @@ # - Name: perl-Module-Implementation Version: 0.05 Release: 0 @@ -26,6 +25,9 @@ License: Artistic-2.0 Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Module-Implementation/ Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{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 @@ -33,8 +35,8 @@ BuildRequires: perl-macros BuildRequires: perl(Module::Runtime) >= 0.011 BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::More) >= 0.88 -BuildRequires: perl(Test::Taint) BuildRequires: perl(Test::Requires) +BuildRequires: perl(Test::Taint) BuildRequires: perl(Try::Tiny) #BuildRequires: perl(Module::Implementation) #BuildRequires: perl(Test::Spelling) @@ -55,6 +57,9 @@ something like a plugin system, not this module. %prep %setup -q -n %{cpan_name}-%{version} +%if 0%{?suse_version} <= 1110 +%patch0 +%endif %build %{__perl} Makefile.PL INSTALLDIRS=vendor