From 48c8d393615d1f9697c85cbefb184a2de931e61638458ab2c0c872fecd7f6a01 Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Mon, 26 Jul 2010 07:38:23 +0000 Subject: [PATCH] fix for 11.1 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Package-DeprecationManager?expand=0&rev=2 --- ...DeprecationManager-remove_done_testing.patch | 17 +++++++++++++++++ perl-Package-DeprecationManager.spec | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 perl-Package-DeprecationManager-remove_done_testing.patch diff --git a/perl-Package-DeprecationManager-remove_done_testing.patch b/perl-Package-DeprecationManager-remove_done_testing.patch new file mode 100644 index 0000000..50ecacc --- /dev/null +++ b/perl-Package-DeprecationManager-remove_done_testing.patch @@ -0,0 +1,17 @@ +--- t/basic.t.orig 2010-07-26 09:35:13.000000000 +0200 ++++ t/basic.t 2010-07-26 09:35:51.000000000 +0200 +@@ -2,7 +2,7 @@ + use warnings; + + use Test::Exception; +-use Test::More; ++use Test::More tests => 20; + use Test::Warn; + + { +@@ -181,4 +181,4 @@ + 'no wanrning when calling My::Bar::foo()'; + } + +-done_testing(); ++ diff --git a/perl-Package-DeprecationManager.spec b/perl-Package-DeprecationManager.spec index d07ee3d..c85d93e 100644 --- a/perl-Package-DeprecationManager.spec +++ b/perl-Package-DeprecationManager.spec @@ -6,6 +6,7 @@ Version: 0.04 Release: 0 Summary: Manage deprecation warnings for your distribution Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Package-DeprecationManager-%{version}.tar.gz +Patch1: perl-Package-DeprecationManager-remove_done_testing.patch URL: http://search.cpan.org/dist/Package-DeprecationManager/ Group: Development/Libraries/Perl License: Perl License @@ -25,6 +26,7 @@ This module allows you to manage a set of deprecations for one or more modules. %prep %setup -q -n "Package-DeprecationManager-%{version}" %__sed -i '/^auto_install/d' Makefile.PL +%patch1 %build %__perl Makefile.PL PREFIX="%{_prefix}"