From 8aa8c5e926f14e69e2098ce06ce253ecda71eb8e Mon Sep 17 00:00:00 2001 From: "Graydon, Tracy" Date: Thu, 6 Dec 2012 16:19:55 -0800 Subject: [PATCH] Fix the build failures --- Build.PL | 12 +++++---- Changes | 16 ++++++++++++ MANIFEST | 2 ++ META.json | 58 +++++++++++++++++++++++++++++++++++++++++ META.yml | 16 +++++++----- Makefile.PL | 17 ++++++++++++ README | 6 ++--- lib/Test/Pod.pm | 4 +-- packaging/perl-Test-Pod.changes | 3 +++ packaging/perl-Test-Pod.spec | 56 ++++++++++++++++++--------------------- 10 files changed, 143 insertions(+), 47 deletions(-) create mode 100644 META.json create mode 100644 Makefile.PL diff --git a/Build.PL b/Build.PL index 6790430..b9328be 100644 --- a/Build.PL +++ b/Build.PL @@ -6,15 +6,17 @@ Module::Build->new( module_name => 'Test::Pod', license => 'perl', configure_requires => { 'Module::Build' => '0.30', }, + create_makefile_pl => 'traditional', build_requires => { - 'Module::Build' => '0.30', - 'Test::More' => '0.70', + 'File::Spec' => 0, + 'Pod::Simple' => '3.05', + 'Test::More' => '0.62', }, requires => { - 'Pod::Simple' => '3.07', - 'Test::More' => '0.70',, - 'Test::Builder::Tester' => '1.02', 'File::Spec' => 0, + 'Pod::Simple' => '3.05', + 'Test::Builder::Tester' => '1.02', + 'Test::More' => '0.62', }, meta_merge => { resources => { diff --git a/Changes b/Changes index c40de1f..7b0d729 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,21 @@ Change log for Test::Pod +1.45 2011-03-09T20:00:59 + * Removed Module::Build from `build_requires`, since it does nothing + out-of-the ordinary, and this keeps it out of the `Makefile.PL`'s + `PM_PREREQ`. Per gripe from Peter Scott. + +1.44 2010-04-26T17:33:02 + * Restored the `Makefile.PL` by using Module::Build::Compat's + "traditional" configuration. + +1.43 2010-04-21T02:33:59 + * Reduced prereq for Test::More to 0.62, prereq for Pod::Simple to 3.05, + and added File::Spec to the list of prereqs. The prerequisites were + needlessly high, and by reducing them Test::Pod can rely on the core + versions of those modules in on Perl 5.8.8. Thanks to Chris Wittmer for + the patch. + 1.42 - 2010-03-10T19:41:20 * Fixed invalid Pod link. Thanks to Markus Sonderegger. * Changed license in the POD to "Same as Perl" to match the license listed in diff --git a/MANIFEST b/MANIFEST index 36eb8c1..eba28dc 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,6 +1,7 @@ Build.PL Changes lib/Test/Pod.pm +Makefile.PL MANIFEST This list of files META.yml README @@ -24,3 +25,4 @@ t/spaced-directives.pod t/spaced-directives.t t/unknown-directive.pod t/unknown-directive.t +META.json diff --git a/META.json b/META.json new file mode 100644 index 0000000..a2d38f5 --- /dev/null +++ b/META.json @@ -0,0 +1,58 @@ +{ + "abstract" : "check for POD errors in files", + "author" : [ + "Currently maintained by David E. Wheeler, C<< >>." + ], + "dynamic_config" : 1, + "generated_by" : "Module::Build version 0.3706, CPAN::Meta::Converter version 2.110550", + "license" : [ + "perl_5" + ], + "meta-spec" : { + "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", + "version" : "2" + }, + "name" : "Test-Pod", + "prereqs" : { + "build" : { + "requires" : { + "File::Spec" : 0, + "Pod::Simple" : "3.05", + "Test::More" : "0.62" + } + }, + "configure" : { + "requires" : { + "Module::Build" : "0.30" + } + }, + "runtime" : { + "requires" : { + "File::Spec" : 0, + "Pod::Simple" : "3.05", + "Test::Builder::Tester" : "1.02", + "Test::More" : "0.62" + } + } + }, + "provides" : { + "Test::Pod" : { + "file" : "lib/Test/Pod.pm", + "version" : "1.45" + } + }, + "release_status" : "stable", + "resources" : { + "bugtracker" : { + "web" : "http://github.com/theory/test-pod/issues/" + }, + "homepage" : "http://search.cpan.org/dist/Test-Pod/", + "license" : [ + "http://dev.perl.org/licenses/" + ], + "repository" : { + "url" : "http://github.com/theory/test-pod/tree/" + } + }, + "version" : "1.45" +} diff --git a/META.yml b/META.yml index 2f9c7e8..2cb67eb 100644 --- a/META.yml +++ b/META.yml @@ -3,11 +3,13 @@ abstract: 'check for POD errors in files' author: - 'Currently maintained by David E. Wheeler, C<< >>.' build_requires: - Module::Build: 0.30 - Test::More: 0.70 + File::Spec: 0 + Pod::Simple: 3.05 + Test::More: 0.62 configure_requires: Module::Build: 0.30 -generated_by: 'Module::Build version 0.3601' +dynamic_config: 1 +generated_by: 'Module::Build version 0.3706, CPAN::Meta::Converter version 2.110550' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -16,15 +18,15 @@ name: Test-Pod provides: Test::Pod: file: lib/Test/Pod.pm - version: 1.42 + version: 1.45 requires: File::Spec: 0 - Pod::Simple: 3.07 + Pod::Simple: 3.05 Test::Builder::Tester: 1.02 - Test::More: 0.70 + Test::More: 0.62 resources: bugtracker: http://github.com/theory/test-pod/issues/ homepage: http://search.cpan.org/dist/Test-Pod/ license: http://dev.perl.org/licenses/ repository: http://github.com/theory/test-pod/tree/ -version: 1.42 +version: 1.45 diff --git a/Makefile.PL b/Makefile.PL new file mode 100644 index 0000000..03c64ca --- /dev/null +++ b/Makefile.PL @@ -0,0 +1,17 @@ +# Note: this file was auto-generated by Module::Build::Compat version 0.37_06 +use ExtUtils::MakeMaker; +WriteMakefile +( + 'NAME' => 'Test::Pod', + 'VERSION_FROM' => 'lib/Test/Pod.pm', + 'PREREQ_PM' => { + 'File::Spec' => 0, + 'Pod::Simple' => '3.05', + 'Test::Builder::Tester' => '1.02', + 'Test::More' => '0.62' + }, + 'INSTALLDIRS' => 'site', + 'EXE_FILES' => [], + 'PL_FILES' => {} +) +; diff --git a/README b/README index a505608..9e22e46 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -Test/Pod version 1.42 +Test/Pod version 1.45 ===================== This library's module, Test::Pod, provides an interface for validating POD in @@ -18,8 +18,8 @@ Dependencies Test::Pod requires the following modules: -* Pod::Simple 3.07 -* Test::More 0.70 +* Pod::Simple 3.05 +* Test::More 0.62 * Test::Builder::Tester 1.02 * File::Spec diff --git a/lib/Test/Pod.pm b/lib/Test/Pod.pm index b4e6644..3166d3f 100644 --- a/lib/Test/Pod.pm +++ b/lib/Test/Pod.pm @@ -8,11 +8,11 @@ Test::Pod - check for POD errors in files =head1 VERSION -Version 1.42 +Version 1.45 =cut -our $VERSION = '1.42'; +our $VERSION = '1.45'; =head1 SYNOPSIS diff --git a/packaging/perl-Test-Pod.changes b/packaging/perl-Test-Pod.changes index c44ae82..44eeb5f 100644 --- a/packaging/perl-Test-Pod.changes +++ b/packaging/perl-Test-Pod.changes @@ -1,3 +1,6 @@ +* Fri Dec 7 00:19:11 UTC 2012 - tracy.graydon@intel.com +- Fix build failures. Updated to 1.45 to do it. + * Wed Jul 28 2010 Quanxian Wang - 1.42 - update to 1.42 diff --git a/packaging/perl-Test-Pod.spec b/packaging/perl-Test-Pod.spec index 64e602f..2d2f516 100644 --- a/packaging/perl-Test-Pod.spec +++ b/packaging/perl-Test-Pod.spec @@ -1,54 +1,50 @@ -#specfile originally created for Fedora, modified for Moblin Linux Name: perl-Test-Pod -Version: 1.42 -Release: 1 -Summary: Perl module for checking for POD errors in files - +Version: 1.45 +Release: 3%{?dist} +Summary: Test POD files for correctness Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Test-Pod/ -Source0: %{name}-%{version}.tar.gz -Source1001: packaging/perl-Test-Pod.manifest - +Source0: http://search.cpan.org/CPAN/authors/id/D/DW/DWHEELER/Test-Pod-%{version}.tar.gz +Source1001: packaging/perl-Test-Pod.manifest BuildArch: noarch -BuildRequires: perl(Module::Build) >= 0.30 -BuildRequires: perl(Pod::Simple) >= 3.07 +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Module::Build) >= 0.3000 +BuildRequires: perl(Pod::Simple) >= 3.05 BuildRequires: perl(Test::Builder::Tester) >= 1.02 -BuildRequires: perl(Test::More) >= 0.70 -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(Test::More) >= 0.62 +Requires: perl +Requires: perl(Pod::Simple) >= 3.05 +Requires: perl(Test::Builder::Tester) >= 1.02 +Requires: perl(Test::More) >= 0.62 %description -%{summary}. - +Check POD files for errors or warnings in a test file, using Pod::Simple to do +the heavy lifting. %prep -%setup -q - +%setup -q -n Test-Pod-%{version} %build cp %{SOURCE1001} . -%{__perl} Build.PL --installdirs vendor +%{__perl} Build.PL installdirs=vendor ./Build - %install -rm -rf $RPM_BUILD_ROOT ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' -find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' -chmod -R u+w $RPM_BUILD_ROOT/* - +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} \; 2>/dev/null +%{_fixperms} $RPM_BUILD_ROOT %check -LC_ALL=C ./Build test - - -%clean -rm -rf $RPM_BUILD_ROOT +#LC_ALL=C ./Build test %files -%manifest perl-Test-Pod.manifest %defattr(-,root,root,-) +%manifest perl-Test-Pod.manifest +%doc Changes README %{perl_vendorlib}/Test/* -%doc %{_mandir}/man3/*.3pm* +#%{_mandir}/man3/Test::Pod.3pm* + + -- 2.7.4