CC: | GBARR [...] CPAN.ORG, LGODDARD [...] cpan.org |
TimeDate does not make use of PREREQ_PM nor BUILD_REQUIRES in Makefile.PL, making it more difficult to automatically package for distribution (as, e.g., an RPM).
IIUC, the following addresses:
diff -up TimeDate-2.30/Makefile.PL.orig TimeDate-2.30/Makefile.PL
--- TimeDate-2.30/Makefile.PL.orig 2013-02-18 13:29:49.000000000 -0600
+++ TimeDate-2.30/Makefile.PL 2013-05-03 14:50:15.295050548 -0500
@@ -11,6 +11,7 @@ WriteMakefile(
DISTNAME => 'TimeDate',
AUTHOR => 'Graham Barr <gbarr@pobox.com>',
VERSION_FROM => 'lib/Date/Parse.pm',
+ PREREQ_PM => { 'Carp' => 0 },
(eval { ExtUtils::MakeMaker->VERSION(6.21) } ? (LICENSE => 'perl') : ()),
( eval { ExtUtils::MakeMaker->VERSION(6.46) } ? (
META_MERGE => {
@@ -21,4 +22,10 @@ WriteMakefile(
)
: ()
),
+ ( eval { ExtUtils::MakeMaker->VERSION(6.5501) } ? (
+ BUILD_REQUIRES => { 'ExtUtils::MakeMaker' => 0,
+ 'Test::More' => 0 },
+ )
+ : ()
+ ),
);