- remove Package-DeprecationManager-0.10-Build_n_Test.patch as it

did not apply to newest version any more - use inline sed instead

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Package-DeprecationManager?expand=0&rev=19
This commit is contained in:
Lars Vogdt 2013-03-20 19:10:11 +00:00 committed by Git OBS Bridge
parent 7b43604f80
commit 3725a94517
3 changed files with 9 additions and 28 deletions

View File

@ -1,24 +0,0 @@
diff -ruN Package-DeprecationManager-0.10-orig/t/basic.t Package-DeprecationManager-0.10/t/basic.t
--- Package-DeprecationManager-0.10-orig/t/basic.t 2010-10-26 19:35:07.000000000 +0200
+++ Package-DeprecationManager-0.10/t/basic.t 2010-11-11 20:37:51.000000000 +0100
@@ -219,4 +219,4 @@
'no deprecation warning for second call to My::Package1::foo()';
}
-done_testing();
+#done_testing();
diff -ruN Package-DeprecationManager-0.10-orig/t/compile.t Package-DeprecationManager-0.10/t/compile.t
--- Package-DeprecationManager-0.10-orig/t/compile.t 2010-10-26 19:35:07.000000000 +0200
+++ Package-DeprecationManager-0.10/t/compile.t 2010-11-11 20:22:44.000000000 +0100
@@ -1,9 +1,9 @@
use strict;
use warnings;
-use Test::More;
+use Test::More qw(no_plan);
eval "require Package::DeprecationManager";
ok( ! $@, 'no errors loading require Package::DeprecationManager' );
-done_testing();
+#done_testing();

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 20 19:09:01 UTC 2013 - lars@linux-schulserver.de
- remove Package-DeprecationManager-0.10-Build_n_Test.patch as it
did not apply to newest version any more - use inline sed instead
------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 29 13:46:21 UTC 2012 - coolo@suse.com Tue May 29 13:46:21 UTC 2012 - coolo@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package perl-Package-DeprecationManager # spec file for package perl-Package-DeprecationManager
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -25,7 +25,6 @@ Version: 0.13
Release: 0 Release: 0
Url: http://search.cpan.org/dist/Package-DeprecationManager/ Url: http://search.cpan.org/dist/Package-DeprecationManager/
Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Package-DeprecationManager-%{version}.tar.gz Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Package-DeprecationManager-%{version}.tar.gz
Patch: %{cpan_name}-0.10-Build_n_Test.patch
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires} %{perl_requires}
@ -37,7 +36,7 @@ BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Output) => 0.16 BuildRequires: perl(Test::Output) => 0.16
%else %else
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More) >= 0.88
%endif %endif
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
# #
@ -57,7 +56,7 @@ more modules.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} < 1130 %if 0%{?suse_version} < 1130
%patch -p1 sed -i "s|use Test::More;|use Test::More qw(no_plan);|g" t/*.t
%endif %endif
%build %build