Hello community,
here is the log from the commit of package perl-Module-Starter for
openSUSE:Factory checked in at 2017-04-06 11:00:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Module-Starter (Old)
and /work/SRC/openSUSE:Factory/.perl-Module-Starter.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Module-Starter"
Thu Apr 6 11:00:58 2017 rev:13 rq:482702 version:1.72
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Module-Starter/perl-Module-Starter.changes
2015-04-22 01:17:52.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Module-Starter.new/perl-Module-Starter.changes
2017-04-06 11:00:59.649387018 +0200
@@ -1,0 +2,21 @@
+Sun Mar 26 06:08:50 UTC 2017 - [email protected]
+
+- updated to 1.72
+ see /usr/share/doc/packages/perl-Module-Starter/Changes
+
+ 1.72 Sat Mar 25 21:20:41 EDT 2017
+ * Stable release containing previous fixes
+
+ 1.71_01 Thu Mar 23 23:04:11 EDT 2017
+ * GH#51: drop use of Module::Build::Compat in Build.PL (Karen
+ Etheridge)
+ * GH#56: Fix generated syntax errors when using --fatalize (Dan Book)
+ * GH#57: Fix strange scoping issue in test on 5.8 (Dan Book)
+ * GH#58: Typo and doc fixes (Tordek)
+ * GH#59: Quote versions in generated Makefile.PL/Build.PL (Dan Book)
+ * GH#61: Fix version comparison in test (Dan Book)
+ * GH#63: Remove unneeded dependency Module::Install::AuthorTests (Dan
+ Book)
+ * GH#64: Replace usage of Path::Class with File::Spec (Dan Book)
+
+-------------------------------------------------------------------
Old:
----
Module-Starter-1.71.tar.gz
New:
----
Module-Starter-1.72.tar.gz
cpanspec.yml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Module-Starter.spec ++++++
--- /var/tmp/diff_new_pack.T4M1D0/_old 2017-04-06 11:01:00.597253051 +0200
+++ /var/tmp/diff_new_pack.T4M1D0/_new 2017-04-06 11:01:00.597253051 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Module-Starter
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,30 +17,29 @@
Name: perl-Module-Starter
-Version: 1.71
+Version: 1.72
Release: 0
%define cpan_name Module-Starter
-Summary: a simple starter kit for any module
+Summary: Simple Starter Kit for Any Module
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Module-Starter/
-Source:
http://www.cpan.org/authors/id/X/XS/XSAWYERX/%{cpan_name}-%{version}.tar.gz
+Source0:
https://cpan.metacpan.org/authors/id/D/DB/DBOOK/%{cpan_name}-%{version}.tar.gz
+Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(Module::Install::AuthorTests)
-BuildRequires: perl(Path::Class)
BuildRequires: perl(parent)
-Requires: perl(Module::Install::AuthorTests)
-Requires: perl(Path::Class)
+BuildRequires: perl(version)
Requires: perl(parent)
+Requires: perl(version)
%{perl_requires}
%description
This is the core module for Module::Starter. If you're not looking to
extend or alter the behavior of this module, you probably want to look at
-the module-starter manpage instead.
+module-starter instead.
Module::Starter is used to create a skeletal CPAN distribution, including
basic builder scripts, tests, documentation, and module code. This is done
++++++ Module-Starter-1.71.tar.gz -> Module-Starter-1.72.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Starter-1.71/Changes
new/Module-Starter-1.72/Changes
--- old/Module-Starter-1.71/Changes 2015-01-30 13:29:24.000000000 +0100
+++ new/Module-Starter-1.72/Changes 2017-03-26 03:21:09.000000000 +0200
@@ -1,5 +1,20 @@
Revision history for Perl extension Module::Starter
+1.72 Sat Mar 25 21:20:41 EDT 2017
+ * Stable release containing previous fixes
+
+1.71_01 Thu Mar 23 23:04:11 EDT 2017
+ * GH#51: drop use of Module::Build::Compat in Build.PL (Karen
+ Etheridge)
+ * GH#56: Fix generated syntax errors when using --fatalize (Dan Book)
+ * GH#57: Fix strange scoping issue in test on 5.8 (Dan Book)
+ * GH#58: Typo and doc fixes (Tordek)
+ * GH#59: Quote versions in generated Makefile.PL/Build.PL (Dan Book)
+ * GH#61: Fix version comparison in test (Dan Book)
+ * GH#63: Remove unneeded dependency Module::Install::AuthorTests (Dan
+ Book)
+ * GH#64: Replace usage of Path::Class with File::Spec (Dan Book)
+
1.71 Fri Jan 30 13:28:31 2015
* GH #47: create_t breaks plugins. (David Pottage)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Starter-1.71/META.json
new/Module-Starter-1.72/META.json
--- old/Module-Starter-1.71/META.json 2015-01-30 13:31:44.000000000 +0100
+++ new/Module-Starter-1.72/META.json 2017-03-26 03:22:13.000000000 +0200
@@ -3,8 +3,8 @@
"author" : [
"Andy Lester <[email protected]>"
],
- "dynamic_config" : 1,
- "generated_by" : "ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter
version 2.142690",
+ "dynamic_config" : 0,
+ "generated_by" : "ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter
version 2.150005",
"license" : [
"perl_5"
],
@@ -35,13 +35,12 @@
"ExtUtils::Command" : "0",
"File::Spec" : "0",
"Getopt::Long" : "0",
- "Module::Install::AuthorTests" : "0",
- "Path::Class" : "0",
"Pod::Usage" : "1.21",
"Test::Harness" : "0.21",
"Test::More" : "0",
"parent" : "0",
- "perl" : "5.006001"
+ "perl" : "5.006001",
+ "version" : "0"
}
}
},
@@ -52,8 +51,12 @@
},
"homepage" : "https://github.com/xsawyerx/module-starter",
"repository" : {
- "url" : "https://github.com/xsawyerx/module-starter.git"
- }
+ "type" : "git",
+ "url" : "https://github.com/xsawyerx/module-starter.git",
+ "web" : "https://github.com/xsawyerx/module-starter"
+ },
+ "x_IRC" : "irc://irc.perl.org/#toolchain"
},
- "version" : "1.71"
+ "version" : "1.72",
+ "x_serialization_backend" : "JSON::PP version 2.27300"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Starter-1.71/META.yml
new/Module-Starter-1.72/META.yml
--- old/Module-Starter-1.71/META.yml 2015-01-30 13:31:44.000000000 +0100
+++ new/Module-Starter-1.72/META.yml 2017-03-26 03:22:13.000000000 +0200
@@ -6,8 +6,8 @@
ExtUtils::MakeMaker: '0'
configure_requires:
ExtUtils::MakeMaker: '0'
-dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version
2.142690'
+dynamic_config: 0
+generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version
2.150005'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -21,15 +21,16 @@
ExtUtils::Command: '0'
File::Spec: '0'
Getopt::Long: '0'
- Module::Install::AuthorTests: '0'
- Path::Class: '0'
Pod::Usage: '1.21'
Test::Harness: '0.21'
Test::More: '0'
parent: '0'
perl: '5.006001'
+ version: '0'
resources:
+ IRC: irc://irc.perl.org/#toolchain
bugtracker: https://github.com/xsawyerx/module-starter/issues
homepage: https://github.com/xsawyerx/module-starter
repository: https://github.com/xsawyerx/module-starter.git
-version: '1.71'
+version: '1.72'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Starter-1.71/Makefile.PL
new/Module-Starter-1.72/Makefile.PL
--- old/Module-Starter-1.71/Makefile.PL 2015-01-30 13:15:55.000000000 +0100
+++ new/Module-Starter-1.72/Makefile.PL 2017-03-24 04:14:26.000000000 +0100
@@ -8,27 +8,33 @@
NAME => 'Module::Starter',
AUTHOR => 'Andy Lester <[email protected]>',
VERSION_FROM => 'lib/Module/Starter.pm',
- (eval { ExtUtils::MakeMaker->VERSION(6.21) } ? (LICENSE => 'perl') : ()),
- (eval { ExtUtils::MakeMaker->VERSION(6.48) } ? (MIN_PERL_VERSION =>
'5.6.1') : ()),
+ (eval { ExtUtils::MakeMaker->VERSION('6.21') } ? (LICENSE => 'perl') : ()),
+ (eval { ExtUtils::MakeMaker->VERSION('6.48') } ? (MIN_PERL_VERSION =>
'5.6.1') : ()),
ABSTRACT_FROM => 'lib/Module/Starter.pm',
EXE_FILES => [ 'bin/module-starter' ],
PREREQ_PM => {
- 'Test::More' => 0,
- 'Test::Harness' => 0.21,
- 'ExtUtils::Command' => 0,
- 'File::Spec' => 0,
- 'Path::Class' => 0,
- 'Getopt::Long' => 0,
- 'Pod::Usage' => 1.21,
- 'parent' => 0,
- 'Module::Install::AuthorTests' => 0,
+ 'Test::More' => '0',
+ 'Test::Harness' => '0.21',
+ 'ExtUtils::Command' => '0',
+ 'File::Spec' => '0',
+ 'Getopt::Long' => '0',
+ 'Pod::Usage' => '1.21',
+ 'parent' => '0',
+ 'version' => '0',
},
- (! eval { ExtUtils::MakeMaker->VERSION(6.46) } ? () :
- (META_ADD => {
- resources => {
+ (! eval { ExtUtils::MakeMaker->VERSION('6.46') } ? () :
+ (META_MERGE => {
+ dynamic_config => 0,
+ 'meta-spec' => { version => 2 },
+ resources => {
homepage => 'https://github.com/xsawyerx/module-starter',
- repository => 'https://github.com/xsawyerx/module-starter.git',
- bugtracker =>
'https://github.com/xsawyerx/module-starter/issues',
+ repository => {
+ type => 'git',
+ url => 'https://github.com/xsawyerx/module-starter.git',
+ web => 'https://github.com/xsawyerx/module-starter',
+ },
+ bugtracker => { web =>
'https://github.com/xsawyerx/module-starter/issues' },
+ x_IRC => 'irc://irc.perl.org/#toolchain',
},
})
),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Starter-1.71/lib/Module/Starter/App.pm
new/Module-Starter-1.72/lib/Module/Starter/App.pm
--- old/Module-Starter-1.71/lib/Module/Starter/App.pm 2015-01-30
13:30:03.000000000 +0100
+++ new/Module-Starter-1.72/lib/Module/Starter/App.pm 2017-03-26
03:19:45.000000000 +0200
@@ -9,9 +9,9 @@
use warnings;
use strict;
-our $VERSION = '1.71';
+our $VERSION = '1.72';
-use Path::Class;
+use File::Spec;
use Getopt::Long;
use Pod::Usage;
use Carp qw( croak );
@@ -21,10 +21,10 @@
my $configdir = $ENV{'MODULE_STARTER_DIR'} || '';
if ( !$configdir && $ENV{'HOME'} ) {
- $configdir = dir( $ENV{'HOME'}, '.module-starter' );
+ $configdir = File::Spec->catdir( $ENV{'HOME'}, '.module-starter' );
}
- return file( $configdir, 'config' );
+ return File::Spec->catfile( $configdir, 'config' );
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Starter-1.71/lib/Module/Starter/BuilderSet.pm
new/Module-Starter-1.72/lib/Module/Starter/BuilderSet.pm
--- old/Module-Starter-1.71/lib/Module/Starter/BuilderSet.pm 2015-01-30
13:30:12.000000000 +0100
+++ new/Module-Starter-1.72/lib/Module/Starter/BuilderSet.pm 2017-03-26
03:20:08.000000000 +0200
@@ -11,11 +11,11 @@
=head1 VERSION
-Version 1.71
+Version 1.72
=cut
-our $VERSION = '1.71';
+our $VERSION = '1.72';
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Module-Starter-1.71/lib/Module/Starter/Plugin/Template.pm
new/Module-Starter-1.72/lib/Module/Starter/Plugin/Template.pm
--- old/Module-Starter-1.71/lib/Module/Starter/Plugin/Template.pm
2015-01-30 13:31:03.000000000 +0100
+++ new/Module-Starter-1.72/lib/Module/Starter/Plugin/Template.pm
2017-03-26 03:20:27.000000000 +0200
@@ -10,11 +10,11 @@
=head1 VERSION
-Version 1.71
+Version 1.72
=cut
-our $VERSION = '1.71';
+our $VERSION = '1.72';
=head1 SYNOPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Starter-1.71/lib/Module/Starter/Simple.pm
new/Module-Starter-1.72/lib/Module/Starter/Simple.pm
--- old/Module-Starter-1.71/lib/Module/Starter/Simple.pm 2015-01-30
13:31:23.000000000 +0100
+++ new/Module-Starter-1.72/lib/Module/Starter/Simple.pm 2017-03-26
03:20:17.000000000 +0200
@@ -17,11 +17,11 @@
=head1 VERSION
-Version 1.71
+Version 1.72
=cut
-our $VERSION = '1.71';
+our $VERSION = '1.72';
=head1 SYNOPSIS
@@ -106,7 +106,7 @@
($self->{email_obfuscated} = $self->{email}) =~ s/@/ at /;
$self->{license} ||= 'artistic2';
- $self->{minperl} ||= 5.006;
+ $self->{minperl} ||= '5.006';
$self->{ignores_type} ||= ['generic'];
$self->{manifest_skip} = !! grep { /manifest/ } @{ $self->{ignores_type} };
@@ -753,7 +753,7 @@
my $slname = $self->{license_record} ? $self->{license_record}->{slname} :
$self->{license};
- my $warnings = sprintf 'warnings%s;', ($self->{fatalize} ? " FATAL =>
'all" : '');
+ my $warnings = sprintf 'warnings%s;', ($self->{fatalize} ? " FATAL =>
'all'" : '');
return <<"HERE";
use $self->{minperl};
@@ -768,16 +768,16 @@
ABSTRACT_FROM => '$main_pm_file',
LICENSE => '$slname',
PL_FILES => {},
- MIN_PERL_VERSION => $self->{minperl},
+ MIN_PERL_VERSION => '$self->{minperl}',
CONFIGURE_REQUIRES => {
- 'ExtUtils::MakeMaker' => 0,
+ 'ExtUtils::MakeMaker' => '0',
},
BUILD_REQUIRES => {
- 'Test::More' => 0,
+ 'Test::More' => '0',
},
PREREQ_PM => {
- #'ABC' => 1.6,
- #'Foo::Bar::Module' => 5.0401,
+ #'ABC' => '1.6',
+ #'Foo::Bar::Module' => '5.0401',
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => '$self->{distro}-*' },
@@ -804,7 +804,7 @@
my $license_url = $self->{license_record} ? $self->{license_record}->{url}
: '';
- my $warnings = sprintf 'warnings%s;', ($self->{fatalize} ? " FATAL =>
'all" : '');
+ my $warnings = sprintf 'warnings%s;', ($self->{fatalize} ? " FATAL =>
'all'" : '');
return <<"HERE";
use $self->{minperl};
@@ -817,7 +817,7 @@
author q{$author};
license '$self->{license}';
-perl_version $self->{minperl};
+perl_version '$self->{minperl}';
tests_recursive('t');
@@ -831,16 +831,16 @@
);
configure_requires (
- 'Module::Install' => 0,
+ 'Module::Install' => '0',
);
build_requires (
- 'Test::More' => 0,
+ 'Test::More' => '0',
);
requires (
- #'ABC' => 1.6,
- #'Foo::Bar::Module' => 5.0401,
+ #'ABC' => '1.6',
+ #'Foo::Bar::Module' => '5.0401',
);
install_as_cpan;
@@ -895,7 +895,7 @@
my $slname = $self->{license_record} ? $self->{license_record}->{slname} :
$self->{license};
- my $warnings = sprintf 'warnings%s;', ($self->{fatalize} ? " FATAL =>
'all" : '');
+ my $warnings = sprintf 'warnings%s;', ($self->{fatalize} ? " FATAL =>
'all'" : '');
return <<"HERE";
use $self->{minperl};
@@ -910,17 +910,16 @@
dist_version_from => '$main_pm_file',
release_status => 'stable',
configure_requires => {
- 'Module::Build' => 0,
+ 'Module::Build' => '0',
},
build_requires => {
- 'Test::More' => 0,
+ 'Test::More' => '0',
},
requires => {
- #'ABC' => 1.6,
- #'Foo::Bar::Module' => 5.0401,
+ #'ABC' => '1.6',
+ #'Foo::Bar::Module' => '5.0401',
},
add_to_cleanup => [ '$self->{distro}-*' ],
- create_makefile_pl => 'traditional',
);
\$builder->create_build_script();
@@ -1106,7 +1105,7 @@
my %t_files;
my $minperl = $self->{minperl};
- my $warnings = sprintf 'warnings%s;', ($self->{fatalize} ? " FATAL =>
'all" : '');
+ my $warnings = sprintf 'warnings%s;', ($self->{fatalize} ? " FATAL =>
'all'" : '');
my $header = <<"EOH";
#!perl -T
@@ -1198,7 +1197,7 @@
my %xt_files;
my $minperl = $self->{minperl};
- my $warnings = sprintf 'warnings%s;', ($self->{fatalize} ? " FATAL =>
'all" : '');
+ my $warnings = sprintf 'warnings%s;', ($self->{fatalize} ? " FATAL =>
'all'" : '');
my $header = <<"EOH";
#!perl -T
@@ -1664,7 +1663,7 @@
my $self = shift;
my $module = shift;
my $rtname = shift;
- my $warnings = sprintf 'warnings%s;', ($self->{fatalize} ? " FATAL =>
'all" : '');
+ my $warnings = sprintf 'warnings%s;', ($self->{fatalize} ? " FATAL =>
'all'" : '');
my $content = <<"HERE";
package $module;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Starter-1.71/lib/Module/Starter.pm
new/Module-Starter-1.72/lib/Module/Starter.pm
--- old/Module-Starter-1.71/lib/Module/Starter.pm 2015-01-30
13:29:52.000000000 +0100
+++ new/Module-Starter-1.72/lib/Module/Starter.pm 2017-03-26
03:20:01.000000000 +0200
@@ -10,11 +10,11 @@
=head1 VERSION
-Version 1.71
+Version 1.72
=cut
-our $VERSION = '1.71';
+our $VERSION = '1.72';
=head1 SYNOPSIS
@@ -53,7 +53,7 @@
# or specify more than one builder in an
# arrayref
- license => $license, # type of license; defaults to 'perl'
+ license => $license, # type of license; defaults to 'artistic2'
author => $author, # author's full name (taken from C<getpwuid> if
not provided)
email => $email, # author's email address (taken from C<EMAIL>
if not provided)
ignores_type => $type, # ignores file type ('generic', 'cvs', 'git',
'hg', 'manifest' )
@@ -141,15 +141,15 @@
=item * CPAN Ratings
-L<http://cpanratings.perl.org/d/Module-Starter>
+L<http://cpanratings.perl.org/dist/Module-Starter>
-=item * RT: CPAN's request tracker
+=item * GitHub issue tracker
-L<https://github.com/xsawyerx/module-starter/issuesr>
+L<https://github.com/xsawyerx/module-starter/issues>
-=item * Search CPAN
+=item * Metacpan
-L<http://search.cpan.org/dist/Module-Starter>
+L<https://metacpan.org/release/Module-Starter>
=back
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Starter-1.71/t/data/templates/Makefile.PL
new/Module-Starter-1.72/t/data/templates/Makefile.PL
--- old/Module-Starter-1.71/t/data/templates/Makefile.PL 2014-05-13
17:06:02.000000000 +0200
+++ new/Module-Starter-1.72/t/data/templates/Makefile.PL 2017-03-23
03:54:52.000000000 +0100
@@ -9,7 +9,7 @@
ABSTRACT_FROM => 'lib/Foo/Bar.pm',
PL_FILES => {},
PREREQ_PM => {
- 'Test::More' => 0,
+ 'Test::More' => '0',
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Foo-Bar-*' },
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Module-Starter-1.71/t/lib/Module/Starter/TestPlugin.pm
new/Module-Starter-1.72/t/lib/Module/Starter/TestPlugin.pm
--- old/Module-Starter-1.71/t/lib/Module/Starter/TestPlugin.pm 2014-05-13
17:06:02.000000000 +0200
+++ new/Module-Starter-1.72/t/lib/Module/Starter/TestPlugin.pm 2017-03-23
02:40:51.000000000 +0100
@@ -321,7 +321,7 @@
=head1 INTERFACE
-Thsi module simply acts as a plugin for Module::Starter. So it uses the same
+This module simply acts as a plugin for Module::Starter. So it uses the same
command-line interface as that module.
The template files it is to use are specified in your Module::Starter
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Starter-1.71/t/test-dist.t
new/Module-Starter-1.72/t/test-dist.t
--- old/Module-Starter-1.71/t/test-dist.t 2015-01-20 20:50:49.000000000
+0100
+++ new/Module-Starter-1.72/t/test-dist.t 2017-03-23 17:42:37.000000000
+0100
@@ -9,6 +9,7 @@
use File::Spec;
use File::Path;
use Carp;
+use version;
package TestParseFile;
@@ -541,7 +542,7 @@
my $distro = $self->{distro};
my $mainmod = $self->{modules}[0];
- my $minperl = $self->{minperl} || 5.006;
+ my $minperl = $self->{minperl} || '5.006';
my $slname = $LICENSES->{ $self->{license} }->{slname};
my $license_url = $LICENSES->{ $self->{license} }->{url};
@@ -593,7 +594,7 @@
);
}
elsif ($basefn eq 'Build.PL' && $self->{builder} eq 'Module::Build') {
- plan tests => 11;
+ plan tests => 10;
$self->parse($mswb_re,
"Min/Strict/Warning/Builder"
);
@@ -619,17 +620,17 @@
);
$self->parse(
- qr/\A\s*configure_requires => \{\n *\Q'$self->{builder}' =>
0\E,\n\s*\},\n/ms,
+ qr/\A\s*configure_requires => \{\n *\Q'$self->{builder}' =>
'0'\E,\n\s*\},\n/ms,
"Configure Requires",
);
$self->parse(
- qr/\A\s*build_requires => \{\n *\Q'Test::More' =>
0\E,\n\s*\},\n/ms,
+ qr/\A\s*build_requires => \{\n *\Q'Test::More' =>
'0'\E,\n\s*\},\n/ms,
"Build Requires",
);
$self->parse(
- qr/\A\s*requires => \{\n *#'ABC' *=> 1.6,\n *#'Foo::Bar::Module'
=> 5.0401,\n\s*\},\n/ms,
+ qr/\A\s*requires => \{\n *#'ABC' *=> '1.6',\n *#'Foo::Bar::Module'
=> '5.0401',\n\s*\},\n/ms,
"Requires",
);
@@ -637,11 +638,6 @@
qr/\A\s*add_to_cleanup *=> \Q[ '$distro-*' ],\E\n/ms,
"add_to_cleanup",
);
-
- $self->parse(
- qr/\A\s*create_makefile_pl *=> \Q'traditional',\E\n/ms,
- "create_makefile_pl",
- );
}
elsif ($basefn eq 'Makefile.PL' && $self->{builder} eq
'ExtUtils::MakeMaker') {
plan tests => 11;
@@ -673,22 +669,22 @@
"PL_FILES",
);
- $self->parse(qr{\A\s*MIN_PERL_VERSION *=> *\Q$minperl,\E\n}ms,
+ $self->parse(qr{\A\s*MIN_PERL_VERSION *=> *\Q'$minperl',\E\n}ms,
"MIN_PERL_VERSION",
);
$self->parse(
- qr/\A\s*CONFIGURE_REQUIRES => \{\n *\Q'$self->{builder}' =>
0\E,\n\s*\},\n/ms,
+ qr/\A\s*CONFIGURE_REQUIRES => \{\n *\Q'$self->{builder}' =>
'0'\E,\n\s*\},\n/ms,
"CONFIGURE_REQUIRES",
);
$self->parse(
- qr/\A\s*BUILD_REQUIRES => \{\n *\Q'Test::More' =>
0\E,\n\s*\},\n/ms,
+ qr/\A\s*BUILD_REQUIRES => \{\n *\Q'Test::More' =>
'0'\E,\n\s*\},\n/ms,
"BUILD_REQUIRES",
);
$self->parse(
- qr/\A\s*PREREQ_PM => \{\n *#'ABC' *=> 1.6,\n *#'Foo::Bar::Module'
=> 5.0401,\n\s*\},\n/ms,
+ qr/\A\s*PREREQ_PM => \{\n *#'ABC' *=> '1.6',\n
*#'Foo::Bar::Module' => '5.0401',\n\s*\},\n/ms,
"PREREQ_PM",
);
}
@@ -714,7 +710,7 @@
"license",
);
- $self->parse(qr{\Aperl_version\s+\Q$minperl;\E\n\n}ms,
+ $self->parse(qr{\Aperl_version\s+\Q'$minperl';\E\n\n}ms,
"perl_version",
);
@@ -735,17 +731,17 @@
EOT
$self->parse(
- qr/\A\s*configure_requires \(\n *\Q'$self->{builder}' =>
0\E,\n\s*\);\n/ms,
+ qr/\A\s*configure_requires \(\n *\Q'$self->{builder}' =>
'0'\E,\n\s*\);\n/ms,
"configure_requires",
);
$self->parse(
- qr/\A\s*build_requires \(\n *\Q'Test::More' => 0\E,\n\s*\);\n/ms,
+ qr/\A\s*build_requires \(\n *\Q'Test::More' => '0'\E,\n\s*\);\n/ms,
"build_requires",
);
$self->parse(
- qr/\A\s*requires \(\n *#'ABC' *=> 1.6,\n *#'Foo::Bar::Module' =>
5.0401,\n\s*\);\n/ms,
+ qr/\A\s*requires \(\n *#'ABC' *=> '1.6',\n *#'Foo::Bar::Module' =>
'5.0401',\n\s*\);\n/ms,
"requires",
);
@@ -1376,6 +1372,7 @@
foreach my $builder (qw(ExtUtils::MakeMaker Module::Build Module::Install)) {
subtest "builder = $builder" => sub {
+ $builder = $builder; # 5.8 scoping issue (GH#57)
undef $@;
eval "require $builder"; # require hates string class names; must use
eval string instead of block
plan ($@ ?
@@ -1385,12 +1382,13 @@
foreach my $license (@licenses) {
subtest "license = $license" => sub {
+ $license = $license; # 5.8 scoping issue (GH#57)
plan tests => 5;
- foreach my $minperl (5.006, 5.008001, v5.10.0, 'v5.10.1', $^V) {
+ foreach my $minperl (5.006, 5.008001, v5.10.0, 'v5.10.1', $]) {
subtest "minperl = $minperl" => sub {
- plan ($minperl > $^V ?
- (skip_all => $minperl.' is actually newer than Perl version
($^V)') :
+ plan (version->parse($minperl) > version->parse($]) ?
+ (skip_all => "$minperl is actually newer than Perl version
($])") :
(tests => 16)
);
++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module