From: Vincent Pit Date: Mon, 22 Aug 2022 13:24:43 +0000 (+0200) Subject: Update META spec to 2.0 X-Git-Tag: rt144052~2 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=e69849932bcc092b956ccddc73c8fb6c17f052ca;p=perl%2Fmodules%2FVariable-Magic.git Update META spec to 2.0 --- diff --git a/Makefile.PL b/Makefile.PL index 9abd407..c9125d0 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -72,6 +72,14 @@ my $dist = 'Variable-Magic'; (my $file = $dist) =~ s{-}{/}g; $file = "lib/$file.pm"; +my $bug_web = "http://rt.cpan.org/Dist/Display.html?Name=$dist", +my $bug_mailto = 'bug-' . lc($dist) . '@rt.cpan.org'; + +my $repo_host = 'git.vpit.fr'; +my @repo_path = ('perl', 'modules', "$dist.git"); +my $repo_url = join '/', 'http:', '', $repo_host, @repo_path, ''; +my $repo_web = "http://$repo_host/?p=" . join('%2F', @repo_path); + my %PREREQ_PM = ( 'Carp' => 0, 'Exporter' => 0, @@ -94,6 +102,10 @@ my %BUILD_REQUIRES = ( ); my %META = ( + 'meta-spec' => { + version => '2', + url => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec', + }, configure_requires => { 'Config' => 0, 'ExtUtils::MakeMaker' => 0, @@ -103,10 +115,17 @@ my %META = ( }, dynamic_config => 1, resources => { - bugtracker => "http://rt.cpan.org/Dist/Display.html?Name=$dist", + bugtracker => { + web => $bug_web, + mailto => $bug_mailto, + }, homepage => "http://search.cpan.org/dist/$dist/", license => 'http://dev.perl.org/licenses/', - repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git", + repository => { + type => 'git', + url => $repo_url, + web => $repo_web, + }, }, );