[perl-Module-CPANTS-Analyse] Patch to use Test::CPAN::Meta::YAML instead of Test::YAML::Meta

Daniel P. Berrange berrange at fedoraproject.org
Mon Nov 14 13:58:08 UTC 2011


commit f99427c6ea9501ac92a2fd340358189108b27163
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Mon Nov 14 13:58:00 2011 +0000

    Patch to use Test::CPAN::Meta::YAML instead of Test::YAML::Meta

 Module-CPANTS-Analyse-0.85-Meta-YAML.patch |   66 ++++++++++++++++++++++++++++
 perl-Module-CPANTS-Analyse.spec            |    9 +++-
 2 files changed, 73 insertions(+), 2 deletions(-)
---
diff --git a/Module-CPANTS-Analyse-0.85-Meta-YAML.patch b/Module-CPANTS-Analyse-0.85-Meta-YAML.patch
new file mode 100644
index 0000000..d99548b
--- /dev/null
+++ b/Module-CPANTS-Analyse-0.85-Meta-YAML.patch
@@ -0,0 +1,66 @@
+diff -rup Module-CPANTS-Analyse-0.85.old/Build.PL Module-CPANTS-Analyse-0.85.new/Build.PL
+--- Module-CPANTS-Analyse-0.85.old/Build.PL	2009-07-06 22:29:45.000000000 +0100
++++ Module-CPANTS-Analyse-0.85.new/Build.PL	2011-11-14 13:34:58.886789045 +0000
+@@ -15,7 +15,7 @@ my $build = Module::Build->new(
+         'Module::Pluggable'         => '2.96',
+         'IO::Capture'               => '0.05',
+         'Array::Diff'               => '0.04',
+-        'Test::YAML::Meta::Version' => '0.11',
++        'Test::CPAN::Meta::YAML::Version' => '0.11',
+         'version'                   => '0.73',
+         'List::MoreUtils'           => '0',
+         'File::Find::Rule'          => '0',
+diff -rup Module-CPANTS-Analyse-0.85.old/lib/Module/CPANTS/Kwalitee/MetaYML.pm Module-CPANTS-Analyse-0.85.new/lib/Module/CPANTS/Kwalitee/MetaYML.pm
+--- Module-CPANTS-Analyse-0.85.old/lib/Module/CPANTS/Kwalitee/MetaYML.pm	2009-07-06 22:29:45.000000000 +0100
++++ Module-CPANTS-Analyse-0.85.new/lib/Module/CPANTS/Kwalitee/MetaYML.pm	2011-11-14 13:35:24.408627222 +0000
+@@ -3,7 +3,7 @@ use warnings;
+ use strict;
+ use File::Spec::Functions qw(catfile);
+ use YAML::Syck qw(Load LoadFile);
+-use Test::YAML::Meta::Version;
++use Test::CPAN::Meta::YAML::Version;
+ 
+ sub order { 20 }
+ 
+@@ -149,7 +149,7 @@ sub check_spec_conformance {
+         }
+     }
+     $hash{spec} = $version;
+-    my $spec = Test::YAML::Meta::Version->new(%hash);
++    my $spec = Test::CPAN::Meta::YAML::Version->new(%hash);
+     if ($spec->parse()) {
+         my $report_version= $version || 'known';
+         my @errors;
+@@ -219,7 +219,7 @@ Returns the Kwalitee Indicators datastru
+ 
+     check_spec_conformance($d,$version);
+ 
+-Validates META.yml using Test::YAML::Meta.
++Validates META.yml using Test::CPAN::Meta::YAML.
+ 
+ =head1 SEE ALSO
+ 
+diff -rup Module-CPANTS-Analyse-0.85.old/Makefile.PL Module-CPANTS-Analyse-0.85.new/Makefile.PL
+--- Module-CPANTS-Analyse-0.85.old/Makefile.PL	2009-07-11 22:58:36.000000000 +0100
++++ Module-CPANTS-Analyse-0.85.new/Makefile.PL	2011-11-14 13:34:42.538892701 +0000
+@@ -25,7 +25,7 @@ WriteMakefile
+                            'Test::More' => '0',
+                            'Test::NoWarnings' => '0',
+                            'Test::Warn' => '0.11',
+-                           'Test::YAML::Meta::Version' => '0.11',
++                           'Test::CPAN::Meta::YAML::Version' => '0.11',
+                            'Text::CSV_XS' => '0.45',
+                            'YAML::Syck' => '0.95',
+                            'version' => '0.73'
+diff -rup Module-CPANTS-Analyse-0.85.old/META.yml Module-CPANTS-Analyse-0.85.new/META.yml
+--- Module-CPANTS-Analyse-0.85.old/META.yml	2009-07-11 22:58:37.000000000 +0100
++++ Module-CPANTS-Analyse-0.85.new/META.yml	2011-11-14 13:34:28.151983925 +0000
+@@ -27,7 +27,7 @@ requires:
+   Pod::Simple::Checker: 2.02
+   Readonly: 0
+   Software::License: 0.003
+-  Test::YAML::Meta::Version: 0.11
++  Test::Meta::YAML::Version: 0.11
+   Text::CSV_XS: 0.45
+   YAML::Syck: 0.95
+   perl: 5.006
diff --git a/perl-Module-CPANTS-Analyse.spec b/perl-Module-CPANTS-Analyse.spec
index e25ca23..1a2ab46 100644
--- a/perl-Module-CPANTS-Analyse.spec
+++ b/perl-Module-CPANTS-Analyse.spec
@@ -6,6 +6,7 @@ License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Module-CPANTS-Analyse/
 Source0:        http://www.cpan.org/authors/id/C/CH/CHORNY/Module-CPANTS-Analyse-%{version}.tar.gz
+Patch1:         Module-CPANTS-Analyse-%{version}-Meta-YAML.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  perl(Archive::Any) >= 0.06
@@ -18,7 +19,7 @@ BuildRequires:  perl(Module::Build)
 BuildRequires:  perl(Module::ExtractUse) >= 0.18
 BuildRequires:  perl(Module::Pluggable) >= 2.96
 BuildRequires:  perl(Pod::Simple::Checker) >= 2.02
-BuildRequires:  perl(Test::YAML::Meta::Version) >= 0.11
+BuildRequires:  perl(Test::CPAN::Meta::YAML) >= 0.11
 BuildRequires:  perl(version) >= 0.73
 BuildRequires:  perl(YAML::Syck) >= 0.95
 BuildRequires:  perl(Test::More)
@@ -43,7 +44,7 @@ Requires:       perl(IO::Capture) >= 0.05
 Requires:       perl(Module::ExtractUse) >= 0.18
 Requires:       perl(Module::Pluggable) >= 2.96
 Requires:       perl(Pod::Simple::Checker) >= 2.02
-Requires:       perl(Test::YAML::Meta::Version) >= 0.11
+Requires:       perl(Test::CPAN::Meta::YAML::Version) >= 0.11
 Requires:       perl(version) >= 0.73
 Requires:       perl(YAML::Syck) >= 0.95
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@@ -56,6 +57,7 @@ distributions on CPAN.
 
 %prep
 %setup -q -n Module-CPANTS-Analyse-%{version}
+%patch1 -p1
 
 %build
 %{__perl} Build.PL installdirs=vendor
@@ -89,6 +91,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/cpants_lint.pl
 
 %changelog
+* Mon Nov 14 2011 Daniel P. Berrange <berrange at redhat.com> - 0.85-9
+- Patch to use Test::CPAN::Meta::YAML instead of Test::YAML::Meta
+
 * Thu Jul 21 2011 Petr Sabata <contyk at redhat.com> - 0.85-9
 - Perl mass rebuild
 


More information about the scm-commits mailing list