Fixes for EPEL compatibility

- Update patches for old Test::More and no Test::Requires
- perl(Pod::Coverage::TrustPod) now available everywhere except EPEL-4
epel9
Paul Howarth 14 years ago
parent 1e9a324267
commit f845ed1163

1
.gitignore vendored

@ -1,2 +1 @@
/Package-DeprecationManager-0.09.tar.gz
/Package-DeprecationManager-0.10.tar.gz /Package-DeprecationManager-0.10.tar.gz

@ -1,8 +1,8 @@
--- Package-DeprecationManager-0.08/t/basic.t 2010-10-15 21:09:58.000000000 +0100 --- Package-DeprecationManager-0.10/t/basic.t 2010-10-27 09:27:42.000000000 +0100
+++ Package-DeprecationManager-0.08/t/basic.t 2010-10-15 21:10:50.632225765 +0100 +++ Package-DeprecationManager-0.10/t/basic.t 2010-10-27 09:28:07.699161151 +0100
@@ -4,9 +4,10 @@ use warnings; @@ -4,9 +4,10 @@ use warnings;
use Test::Exception;
use Test::More; use Test::More;
use Test::Fatal;
-use Test::Requires { -use Test::Requires {
- 'Test::Output' => '0.16', - 'Test::Output' => '0.16',

@ -1,5 +1,5 @@
--- Package-DeprecationManager-0.09/t/basic.t 2010-10-17 21:08:57.000000000 +0100 --- Package-DeprecationManager-0.10/t/basic.t 2010-10-26 18:35:07.000000000 +0100
+++ Package-DeprecationManager-0.09/t/basic.t 2010-10-18 11:06:20.627170768 +0100 +++ Package-DeprecationManager-0.10/t/basic.t 2010-10-27 09:25:24.244144715 +0100
@@ -8,6 +8,8 @@ use Test::Requires { @@ -8,6 +8,8 @@ use Test::Requires {
'Test::Output' => '0.16', 'Test::Output' => '0.16',
}; };
@ -7,16 +7,16 @@
+plan tests => 25; +plan tests => 25;
+ +
{ {
throws_ok { like(
eval 'package Foo; use Package::DeprecationManager;'; exception {
@@ -216,5 +218,3 @@ use Test::Requires { @@ -218,5 +220,3 @@ use Test::Requires {
q{}, q{},
'no deprecation warning for second call to My::Package1::foo()'; 'no deprecation warning for second call to My::Package1::foo()';
} }
- -
-done_testing(); -done_testing();
--- Package-DeprecationManager-0.09/t/compile.t 2010-10-17 21:08:57.000000000 +0100 --- Package-DeprecationManager-0.10/t/compile.t 2010-10-26 18:35:07.000000000 +0100
+++ Package-DeprecationManager-0.09/t/compile.t 2010-10-18 11:07:01.795223136 +0100 +++ Package-DeprecationManager-0.10/t/compile.t 2010-10-27 09:24:47.312183595 +0100
@@ -1,9 +1,7 @@ @@ -1,9 +1,7 @@
use strict; use strict;
use warnings; use warnings;

@ -9,15 +9,15 @@
Name: perl-Package-DeprecationManager Name: perl-Package-DeprecationManager
Version: 0.10 Version: 0.10
Release: 1%{?dist} Release: 2%{?dist}
Summary: Manage deprecation warnings for your distribution Summary: Manage deprecation warnings for your distribution
Group: Development/Libraries Group: Development/Libraries
License: Artistic 2.0 License: Artistic 2.0
URL: http://search.cpan.org/dist/Package-DeprecationManager/ URL: http://search.cpan.org/dist/Package-DeprecationManager/
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Package-DeprecationManager-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Package-DeprecationManager-%{version}.tar.gz
Patch0: Package-DeprecationManager-0.08-old-EU::MM.patch Patch0: Package-DeprecationManager-0.08-old-EU::MM.patch
Patch1: Package-DeprecationManager-0.09-old-Test::More.patch Patch1: Package-DeprecationManager-0.10-old-Test::More.patch
Patch2: Package-DeprecationManager-0.08-no-Test::Requires.patch Patch2: Package-DeprecationManager-0.10-no-Test::Requires.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
@ -31,8 +31,8 @@ BuildRequires: perl(Test::NoTabs)
BuildRequires: perl(Test::Output) BuildRequires: perl(Test::Output)
BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl(Test::Pod::Coverage)
# Pod::Coverage::TrustPod not yet in EPEL # Pod::Coverage::TrustPod not yet in EPEL-4
%if 0%{?fedora} %if 0%{?rhel} > 4
BuildRequires: perl(Pod::Coverage::TrustPod) BuildRequires: perl(Pod::Coverage::TrustPod)
%endif %endif
%if %{extra_tests_available} %if %{extra_tests_available}
@ -90,7 +90,11 @@ rm -rf %{buildroot}
%{_mandir}/man3/Package::DeprecationManager.3pm* %{_mandir}/man3/Package::DeprecationManager.3pm*
%changelog %changelog
* Sat Jan 08 2011 Iain Arnell <iarnell@gmail.com> 0.10-1 * Sat Jan 08 2011 Paul Howarth <paul@city-fan.org> - 0.10-2
- Update patches for old Test::More and no Test::Requires
- perl(Pod::Coverage::TrustPod) now available everywhere except EPEL-4
* Sat Jan 08 2011 Iain Arnell <iarnell@gmail.com> - 0.10-1
- Update to 0.10: - Update to 0.10:
- Test suite uses Test::Fatal instead of Test::Exception - Test suite uses Test::Fatal instead of Test::Exception

Loading…
Cancel
Save