From 0c177f569d8068996cf93984f2a2fc645449a12a Mon Sep 17 00:00:00 2001 From: Toddr Bot Date: Wed, 15 Apr 2026 11:59:03 +0000 Subject: [PATCH] fix: modernize META resources to CPAN Meta spec v2 Use the structured format for bugtracker and repository resources: - bugtracker: { web => $url } instead of bare string - repository: { type, url, web } instead of bare string - Add meta-spec version 2 declaration This improves how MetaCPAN and other CPAN tooling display the repository information, enabling proper git clone URLs and separate tracker/repository links. Co-Authored-By: Claude Opus 4.6 --- Makefile.PL | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 68aca7a..3673fa6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -164,9 +164,16 @@ WriteMakefile1( LICENSE => 'perl', MIN_PERL_VERSION => '5.008', META_MERGE => { + 'meta-spec' => { version => 2 }, resources => { - bugtracker => 'https://github.com/cpan-authors/XML-Parser/issues', - repository => 'https://github.com/cpan-authors/XML-Parser', + bugtracker => { + web => 'https://github.com/cpan-authors/XML-Parser/issues', + }, + repository => { + type => 'git', + url => 'https://github.com/cpan-authors/XML-Parser.git', + web => 'https://github.com/cpan-authors/XML-Parser', + }, }, prereqs => { runtime => {