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 2026-04-09 16:08:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Parse-PMFile (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Parse-PMFile.new.21863 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Parse-PMFile"

Thu Apr  9 16:08:42 2026 rev:8 rq:1345207 version:0.480.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Parse-PMFile/perl-Parse-PMFile.changes      
2024-05-16 17:19:24.849140099 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Parse-PMFile.new.21863/perl-Parse-PMFile.changes
   2026-04-09 16:21:18.606044284 +0200
@@ -1,0 +2,9 @@
+Sun Mar 22 06:18:25 UTC 2026 - Tina Müller <[email protected]>
+
+- updated to 0.480.0 (0.48)
+   see /usr/share/doc/packages/perl-Parse-PMFile/Changes
+
+  0.48 2026/03/21
+    - Improve class detection (GH#16, ehuelsmann++)
+
+-------------------------------------------------------------------

Old:
----
  Parse-PMFile-0.47.tar.gz

New:
----
  Parse-PMFile-0.48.tar.gz
  README.md
  _scmsync.obsinfo
  build.specials.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Parse-PMFile.spec ++++++
--- /var/tmp/diff_new_pack.ARFKJP/_old  2026-04-09 16:21:19.446078752 +0200
+++ /var/tmp/diff_new_pack.ARFKJP/_new  2026-04-09 16:21:19.450078916 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Parse-PMFile
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,19 +18,20 @@
 
 %define cpan_name Parse-PMFile
 Name:           perl-Parse-PMFile
-Version:        0.470.0
+Version:        0.480.0
 Release:        0
-# 0.47 -> normalize -> 0.470.0
-%define cpan_version 0.47
+# 0.48 -> normalize -> 0.480.0
+%define cpan_version 0.48
 License:        Artistic-1.0 OR GPL-1.0-or-later
 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}-%{cpan_version}.tar.gz
 Source1:        cpanspec.yml
+Source100:      README.md
 BuildArch:      noarch
 BuildRequires:  perl
 BuildRequires:  perl-macros
-BuildRequires:  perl(ExtUtils::MakeMaker::CPANfile) >= 0.09
+BuildRequires:  perl(ExtUtils::MakeMaker::CPANfile) >= 0.90
 BuildRequires:  perl(File::Temp) >= 0.19
 BuildRequires:  perl(JSON::PP) >= 2.00
 BuildRequires:  perl(Test::More) >= 0.94
@@ -52,7 +53,7 @@
 meta files intentionally.
 
 %prep
-%autosetup  -n %{cpan_name}-%{cpan_version}
+%autosetup -n %{cpan_name}-%{cpan_version} -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor

++++++ Parse-PMFile-0.47.tar.gz -> Parse-PMFile-0.48.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-PMFile-0.47/Changes 
new/Parse-PMFile-0.48/Changes
--- old/Parse-PMFile-0.47/Changes       2024-04-21 12:42:22.000000000 +0200
+++ new/Parse-PMFile-0.48/Changes       2026-03-21 08:08:58.000000000 +0100
@@ -1,5 +1,8 @@
 Revision history for Parse-PMFile
 
+0.48 2026/03/21
+  - Improve class detection (GH#16, ehuelsmann++)
+
 0.47 2024/04/21
   - Improve class detection
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-PMFile-0.47/META.json 
new/Parse-PMFile-0.48/META.json
--- old/Parse-PMFile-0.47/META.json     2024-04-21 12:42:34.000000000 +0200
+++ new/Parse-PMFile-0.48/META.json     2026-03-21 08:09:14.000000000 +0100
@@ -4,7 +4,7 @@
       "Kenichi Ishigaki <[email protected]>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "ExtUtils::MakeMaker version 7.70, CPAN::Meta::Converter 
version 2.150010",
+   "generated_by" : "ExtUtils::MakeMaker version 7.76, CPAN::Meta::Converter 
version 2.150010",
    "license" : [
       "perl_5"
    ],
@@ -52,6 +52,6 @@
          "url" : "https://github.com/charsbar/Parse-PMFile";
       }
    },
-   "version" : "0.47",
-   "x_serialization_backend" : "JSON::PP version 4.16"
+   "version" : "0.48",
+   "x_serialization_backend" : "JSON::PP version 4.18"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-PMFile-0.47/META.yml 
new/Parse-PMFile-0.48/META.yml
--- old/Parse-PMFile-0.47/META.yml      2024-04-21 12:42:34.000000000 +0200
+++ new/Parse-PMFile-0.48/META.yml      2026-03-21 08:09:14.000000000 +0100
@@ -9,7 +9,7 @@
 configure_requires:
   ExtUtils::MakeMaker::CPANfile: '0.09'
 dynamic_config: 0
-generated_by: 'ExtUtils::MakeMaker version 7.70, CPAN::Meta::Converter version 
2.150010'
+generated_by: 'ExtUtils::MakeMaker version 7.76, 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.47'
-x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
+version: '0.48'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.020'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-PMFile-0.47/lib/Parse/PMFile.pm 
new/Parse-PMFile-0.48/lib/Parse/PMFile.pm
--- old/Parse-PMFile-0.47/lib/Parse/PMFile.pm   2024-04-21 12:42:03.000000000 
+0200
+++ new/Parse-PMFile-0.48/lib/Parse/PMFile.pm   2026-03-21 08:09:03.000000000 
+0100
@@ -10,7 +10,7 @@
 use version ();
 use File::Spec ();
 
-our $VERSION = '0.47';
+our $VERSION = '0.48';
 our $VERBOSE = 0;
 our $ALLOW_DEV_VERSION = 0;
 our $FORK = 0;
@@ -396,7 +396,6 @@
         }
 
         # some modules also enables class and role
-        # XXX: what to do with MooseX::Declare and a few minor experiments)
         if ($pline =~ /^[\s\{;]*use\s+(?:Feature::Compat::Class)[^;]*;/) {
             $package_or_class = 'package|class';
         }
@@ -408,6 +407,7 @@
         my $strict_version;
 
         if (
+            # If you change *anything* here, it needs changing in 
'_parse_version_safely' too
             $pline =~ m{
                       # (.*) # takes too much time if $pline is long
                       #(?<![*\$\\@%&]) # no sigils
@@ -415,7 +415,7 @@
                       \b(?:$package_or_class)\s+
                       ([\w\:\']+)
                       \s*
-                      (?: $ | [\}\;] | \{ | \s+($version::STRICT) )
+                      (?: $ | [\}\;\:] | \{ | \s+($version::STRICT) )
                     }x) {
             $pkg = $1;
             $strict_version = $2;
@@ -512,13 +512,29 @@
         local $/ = "\n";
         open(FH,$parsefile) or die "Could not open '$parsefile': $!";
         my $inpod = 0;
+        my $package_or_class = 'package';
         while (<FH>) {
             $inpod = /^=(?!cut)/ ? 1 : /^=cut/ ? 0 : $inpod;
             next if $inpod || /^\s*#/;
             last if /^__(?:END|DATA)__\b/; # fails on quoted __END__ but this 
is rare -> __END__ in the middle of a line is rarer
             chop;
 
-            if (my ($ver) = /package \s+ \S+ \s+ (\S+) \s* [;{]/x) {
+            # use feature 'class'; enabels class (and role, though not 
implemented yet)
+            if 
(/^[\s\{;]*use\s+(?:feature|experimental)\s+[^;]+\b(?:class|all)[^;]*;/) {
+                $package_or_class = 'package|class';
+            }
+
+            # some modules also enables class and role
+            # XXX: what to do with MooseX::Declare and a few minor experiments)
+            if (/^[\s\{;]*use\s+(?:Feature::Compat::Class)[^;]*;/) {
+                $package_or_class = 'package|class';
+            }
+            if (/^[\s\{;]*use\s+(?:Object::Pad)[^;]*;/) {
+                $package_or_class = 'package|class|role';
+            }
+
+            # If you change *anything* here, it needs changing in 
'_packages_per_pmfile' too
+            if (my ($ver) = /$package_or_class \s+ \S+ \s+ (\S+) \s* [:;{]/x) {
               # XXX: should handle this better if version is bogus -- rjbs,
               # 2014-03-16
               return $ver if version::is_lax($ver);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-PMFile-0.47/t/40_package_versions.t 
new/Parse-PMFile-0.48/t/40_package_versions.t
--- old/Parse-PMFile-0.47/t/40_package_versions.t       2024-01-21 
12:05:11.000000000 +0100
+++ new/Parse-PMFile-0.48/t/40_package_versions.t       2026-03-21 
07:55:55.000000000 +0100
@@ -49,6 +49,7 @@
     my $info = $parser->parse($pmfile);
 
     is $info->{'Parse::PMFile::Test'}{version} => '0.01';
+    is $parser->{VERSION} => '0.01';
     # note explain $info;
   }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-PMFile-0.47/t/42_class_versions.t 
new/Parse-PMFile-0.48/t/42_class_versions.t
--- old/Parse-PMFile-0.47/t/42_class_versions.t 2024-04-21 12:41:53.000000000 
+0200
+++ new/Parse-PMFile-0.48/t/42_class_versions.t 2026-03-21 07:55:55.000000000 
+0100
@@ -7,38 +7,46 @@
 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');
+test('undef', 'class '.'Parse::PMFile::Test;');
+
+test('undef', 'class '.'Parse::PMFile::Test { }');
+
+test('undef', 'class '.'Parse::PMFile::Test :isa(Foo);');
+
+test('undef', 'class '.'Parse::PMFile::Test :isa(Foo) { }');
+
+test('0.01', 'class '.'Parse::PMFile::Test', <<'TEST');
 {
   $Parse::PMFile::Test::VERSION = "0.01";
 }
 TEST
 
-test('class '.'Parse::PMFile::Test', <<'TEST');
+test('0.01', 'class '.'Parse::PMFile::Test', <<'TEST');
 {
   $VERSION = "0.01";
 }
 TEST
 
-test('class '.'Parse::PMFile::Test {', <<'TEST');
+test('0.01', 'class '.'Parse::PMFile::Test {', <<'TEST');
   $Parse::PMFile::Test::VERSION = "0.01";
 };
 TEST
 
-test('class '.'Parse::PMFile::Test {', <<'TEST');
+test('0.01', 'class '.'Parse::PMFile::Test {', <<'TEST');
   $VERSION = "0.01";
 };
 TEST
 
-test('class '.'Parse::PMFile::Test 0.01 {', <<'TEST');
+test('0.01', 'class '.'Parse::PMFile::Test 0.01 {', <<'TEST');
 };
 TEST
 
-test('class '.'Parse::PMFile::Test 0.01 :isa(Foo) :does(Bar) {', <<'TEST');
+test('0.01', 'class '.'Parse::PMFile::Test 0.01 :isa(Foo) :does(Bar) {', 
<<'TEST');
 };
 TEST
 
 sub test {
-  my @lines = @_;
+  my ($version, @lines) = @_;
 
   my $pmfile = "$tmpdir/Test.pm";
 
@@ -52,7 +60,10 @@
     my $parser = Parse::PMFile->new;
     my $info = $parser->parse($pmfile);
 
-    is $info->{'Parse::PMFile::Test'}{version} => '0.01';
+    is( $info->{'Parse::PMFile::Test'}{version} => $version )
+        or diag join("\n", @lines);
+    is( $parser->{VERSION} => $version )
+        or diag 'VERSION ' . join("\n", @lines);
     # note explain $info;
   }
 }

++++++ README.md ++++++

## Build Results

Current state of perl in openSUSE:Factory is

![Factory build 
results](https://br.opensuse.org/status/openSUSE:Factory/perl-Parse-PMFile/standard)

The current state of perl in the devel project build (devel:languages:perl)

![Devel project build 
results](https://br.opensuse.org/status/devel:languages:perl/perl-Parse-PMFile)



++++++ _scmsync.obsinfo ++++++
mtime: 1774160305
commit: 6f96ec806ab2a18c1fb49b492c6b626c3df8ec432b7e4d697d896013b25333e7
url: https://src.opensuse.org/perl/perl-Parse-PMFile.git
revision: 6f96ec806ab2a18c1fb49b492c6b626c3df8ec432b7e4d697d896013b25333e7
projectscmsync: https://src.opensuse.org/perl/_ObsPrj

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-04-07 14:29:52.000000000 +0200
@@ -0,0 +1 @@
+.osc

Reply via email to