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}"