Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-Parse-PMFile for openSUSE:Factory checked in at 2023-05-04 17:10:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Parse-PMFile (Old) and /work/SRC/openSUSE:Factory/.perl-Parse-PMFile.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Parse-PMFile" Thu May 4 17:10:31 2023 rev:4 rq:1084428 version:0.44 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Parse-PMFile/perl-Parse-PMFile.changes 2020-12-16 11:00:44.283584661 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Parse-PMFile.new.1533/perl-Parse-PMFile.changes 2023-05-04 17:10:51.044461989 +0200 @@ -1,0 +2,9 @@ +Fri Apr 28 03:07:24 UTC 2023 - Tina Müller <timueller+p...@suse.de> + +- updated to 0.44 + see /usr/share/doc/packages/perl-Parse-PMFile/Changes + + 0.44 2023/04/27 + - Allow to parse class|role NAME VERSION + +------------------------------------------------------------------- Old: ---- Parse-PMFile-0.43.tar.gz New: ---- Parse-PMFile-0.44.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Parse-PMFile.spec ++++++ --- /var/tmp/diff_new_pack.yWZSVo/_old 2023-05-04 17:10:51.940467234 +0200 +++ /var/tmp/diff_new_pack.yWZSVo/_new 2023-05-04 17:10:51.940467234 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Parse-PMFile # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,21 +16,19 @@ # +%define cpan_name Parse-PMFile Name: perl-Parse-PMFile -Version: 0.43 +Version: 0.44 Release: 0 -%define cpan_name Parse-PMFile -Summary: Parses .pm file as PAUSE does License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl +Summary: Parses .pm file as PAUSE does URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(ExtUtils::MakeMaker::CPANfile) >= 0.08 +BuildRequires: perl(ExtUtils::MakeMaker::CPANfile) >= 0.09 BuildRequires: perl(File::Temp) >= 0.19 BuildRequires: perl(JSON::PP) >= 2.00 BuildRequires: perl(Test::More) >= 0.88 @@ -50,11 +48,11 @@ meta files intentionally. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -65,7 +63,6 @@ %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes README %changelog ++++++ Parse-PMFile-0.43.tar.gz -> Parse-PMFile-0.44.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Parse-PMFile-0.43/Changes new/Parse-PMFile-0.44/Changes --- old/Parse-PMFile-0.43/Changes 2020-12-12 00:34:03.000000000 +0100 +++ new/Parse-PMFile-0.44/Changes 2023-04-27 13:53:02.000000000 +0200 @@ -1,5 +1,8 @@ Revision history for Parse-PMFile +0.44 2023/04/27 + - Allow to parse class|role NAME VERSION + 0.43 2020/12/12 - Avoid instantiating `Safe` compartment if operating in "unsafe" mode. (GH#12; bleargh45++) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Parse-PMFile-0.43/MANIFEST new/Parse-PMFile-0.44/MANIFEST --- old/Parse-PMFile-0.43/MANIFEST 2020-12-12 00:34:32.000000000 +0100 +++ new/Parse-PMFile-0.44/MANIFEST 2023-04-27 13:54:18.000000000 +0200 @@ -14,6 +14,9 @@ t/35_scoped_our_version.t t/36_long_version.t t/40_package_versions.t +t/41_multiple_packages.t +t/42_class_versions.t +t/43_role_versions.t t/50_no_index.t t/60_permissions.t t/70_vpp.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Parse-PMFile-0.43/META.json new/Parse-PMFile-0.44/META.json --- old/Parse-PMFile-0.43/META.json 2020-12-12 00:34:32.000000000 +0100 +++ new/Parse-PMFile-0.44/META.json 2023-04-27 13:54:18.000000000 +0200 @@ -4,7 +4,7 @@ "Kenichi Ishigaki <ishig...@cpan.org>" ], "dynamic_config" : 0, - "generated_by" : "ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.150010", + "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], @@ -27,7 +27,7 @@ }, "configure" : { "requires" : { - "ExtUtils::MakeMaker::CPANfile" : "0.08" + "ExtUtils::MakeMaker::CPANfile" : "0.09" } }, "runtime" : { @@ -52,6 +52,6 @@ "url" : "https://github.com/charsbar/Parse-PMFile" } }, - "version" : "0.43", - "x_serialization_backend" : "JSON::PP version 4.00" + "version" : "0.44", + "x_serialization_backend" : "JSON::PP version 4.12" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Parse-PMFile-0.43/META.yml new/Parse-PMFile-0.44/META.yml --- old/Parse-PMFile-0.43/META.yml 2020-12-12 00:34:32.000000000 +0100 +++ new/Parse-PMFile-0.44/META.yml 2023-04-27 13:54:18.000000000 +0200 @@ -7,9 +7,9 @@ File::Temp: '0.19' Test::More: '0.88' configure_requires: - ExtUtils::MakeMaker::CPANfile: '0.08' + ExtUtils::MakeMaker::CPANfile: '0.09' dynamic_config: 0 -generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.150010' +generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -27,5 +27,5 @@ version: '0.83' resources: repository: https://github.com/charsbar/Parse-PMFile -version: '0.43' -x_serialization_backend: 'CPAN::Meta::YAML version 0.012' +version: '0.44' +x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Parse-PMFile-0.43/lib/Parse/PMFile.pm new/Parse-PMFile-0.44/lib/Parse/PMFile.pm --- old/Parse-PMFile-0.43/lib/Parse/PMFile.pm 2020-12-12 00:33:08.000000000 +0100 +++ new/Parse-PMFile-0.44/lib/Parse/PMFile.pm 2023-04-27 13:52:12.000000000 +0200 @@ -10,7 +10,7 @@ use version (); use File::Spec (); -our $VERSION = '0.43'; +our $VERSION = '0.44'; our $VERBOSE = 0; our $ALLOW_DEV_VERSION = 0; our $FORK = 0; @@ -382,7 +382,7 @@ # (.*) # takes too much time if $pline is long #(?<![*\$\\@%&]) # no sigils ^[\s\{;]* - \bpackage\s+ + \b(?:package|class|role)\s+ ([\w\:\']+) \s* (?: $ | [\}\;] | \{ | \s+($version::STRICT) ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Parse-PMFile-0.43/t/41_multiple_packages.t new/Parse-PMFile-0.44/t/41_multiple_packages.t --- old/Parse-PMFile-0.43/t/41_multiple_packages.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Parse-PMFile-0.44/t/41_multiple_packages.t 2021-01-17 19:32:45.000000000 +0100 @@ -0,0 +1,52 @@ +use strict; +use warnings; +use Test::More; +use Parse::PMFile; +use File::Temp; + +my $tmpdir = File::Temp->newdir(CLEANUP => 1); +plan skip_all => "tmpdir is not ready" unless -e $tmpdir && -w $tmpdir; + +my $pmfile = "$tmpdir/Test.pm"; +my @package = (qw/Parse PMFile Test/); +my @subpackages = (qw/Location Blah Thing/); + +my $parser = Parse::PMFile->new; +subtest 'arisdottle' => sub { + _generate_package(q{::}); + my $info = $parser->parse($pmfile); + _check_packages($info); +}; + +subtest 'quote' => sub { + _generate_package(q{'}); + my $info = $parser->parse($pmfile); + _check_packages($info); +}; + +done_testing; + +sub _generate_package { + my ($sep) = @_; + my $version = 1; + + open my $fh, '>', $pmfile or plan skip_all => "Failed to create a pmfile"; + print $fh 'package ' . join($sep, @package) . ";\n"; + print $fh q{our $VERSION = '1.0} . $version++ . "';\n1;\n"; + for my $subpackage (@subpackages) { + print $fh 'package ' . join($sep, @package, $subpackage) . ";\n"; + print $fh q{our $VERSION = '1.0} . $version++ . "';\n1;\n"; + } + close $fh; +} + +sub _check_packages { + my ($info) = @_; + + my $package = join(q{::}, @package); + ok exists $info->{$package}, q{found base package}; + + for my $subpackage (@subpackages) { + ok exists $info->{$package . q{::} . $subpackage}, qq{found sub package $subpackage}; + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Parse-PMFile-0.43/t/42_class_versions.t new/Parse-PMFile-0.44/t/42_class_versions.t --- old/Parse-PMFile-0.43/t/42_class_versions.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Parse-PMFile-0.44/t/42_class_versions.t 2023-04-27 06:27:25.000000000 +0200 @@ -0,0 +1,61 @@ +use strict; +use warnings; +use Test::More; +use Parse::PMFile; +use File::Temp; + +my $tmpdir = File::Temp->newdir(CLEANUP => 1); +plan skip_all => "tmpdir is not ready" unless -e $tmpdir && -w $tmpdir; + +test('class '.'Parse::PMFile::Test', <<'TEST'); +{ + $Parse::PMFile::Test::VERSION = "0.01"; +} +TEST + +test('class '.'Parse::PMFile::Test', <<'TEST'); +{ + $VERSION = "0.01"; +} +TEST + +test('class '.'Parse::PMFile::Test {', <<'TEST'); + $Parse::PMFile::Test::VERSION = "0.01"; +}; +TEST + +test('class '.'Parse::PMFile::Test {', <<'TEST'); + $VERSION = "0.01"; +}; +TEST + +test('class '.'Parse::PMFile::Test 0.01 {', <<'TEST'); +}; +TEST + +test('class '.'Parse::PMFile::Test 0.01 :isa(Foo) :does(Bar) {', <<'TEST'); +}; +TEST + +sub test { + my @lines = @_; + + my $pmfile = "$tmpdir/Test.pm"; + + open my $fh, '>', $pmfile or plan skip_all => "Failed to create a pmfile"; + print $fh join "\n", @lines, ""; + close $fh; + + for (0..1) { + no warnings 'once'; + local $Parse::PMFile::FORK = $_; + my $parser = Parse::PMFile->new; + my $info = $parser->parse($pmfile); + + is $info->{'Parse::PMFile::Test'}{version} => '0.01'; + # note explain $info; + } +} + +done_testing; + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Parse-PMFile-0.43/t/43_role_versions.t new/Parse-PMFile-0.44/t/43_role_versions.t --- old/Parse-PMFile-0.43/t/43_role_versions.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Parse-PMFile-0.44/t/43_role_versions.t 2023-04-27 13:50:09.000000000 +0200 @@ -0,0 +1,61 @@ +use strict; +use warnings; +use Test::More; +use Parse::PMFile; +use File::Temp; + +my $tmpdir = File::Temp->newdir(CLEANUP => 1); +plan skip_all => "tmpdir is not ready" unless -e $tmpdir && -w $tmpdir; + +test('role '.'Parse::PMFile::Test', <<'TEST'); +{ + $Parse::PMFile::Test::VERSION = "0.01"; +} +TEST + +test('role '.'Parse::PMFile::Test', <<'TEST'); +{ + $VERSION = "0.01"; +} +TEST + +test('role '.'Parse::PMFile::Test {', <<'TEST'); + $Parse::PMFile::Test::VERSION = "0.01"; +}; +TEST + +test('role '.'Parse::PMFile::Test {', <<'TEST'); + $VERSION = "0.01"; +}; +TEST + +test('role '.'Parse::PMFile::Test 0.01 {', <<'TEST'); +}; +TEST + +test('role '.'Parse::PMFile::Test 0.01 :does(Bar) {', <<'TEST'); +}; +TEST + +sub test { + my @lines = @_; + + my $pmfile = "$tmpdir/Test.pm"; + + open my $fh, '>', $pmfile or plan skip_all => "Failed to create a pmfile"; + print $fh join "\n", @lines, ""; + close $fh; + + for (0..1) { + no warnings 'once'; + local $Parse::PMFile::FORK = $_; + my $parser = Parse::PMFile->new; + my $info = $parser->parse($pmfile); + + is $info->{'Parse::PMFile::Test'}{version} => '0.01'; + # note explain $info; + } +} + +done_testing; +