Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-Parse-MIME for openSUSE:Factory 
checked in at 2022-08-16 17:08:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Parse-MIME (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Parse-MIME.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Parse-MIME"

Tue Aug 16 17:08:36 2022 rev:2 rq:997357 version:1.006

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Parse-MIME/perl-Parse-MIME.changes  
2021-02-03 19:55:05.593629103 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Parse-MIME.new.1521/perl-Parse-MIME.changes    
    2022-08-16 17:08:42.464051070 +0200
@@ -1,0 +2,6 @@
+Thu Aug 11 03:09:23 UTC 2022 - Tina M??ller <[email protected]>
+
+- updated to 1.006
+   see /usr/share/doc/packages/perl-Parse-MIME/Changes
+
+-------------------------------------------------------------------

Old:
----
  Parse-MIME-1.005.tar.gz

New:
----
  Parse-MIME-1.006.tar.gz
  cpanspec.yml

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

Other differences:
------------------
++++++ perl-Parse-MIME.spec ++++++
--- /var/tmp/diff_new_pack.DDUVt4/_old  2022-08-16 17:08:44.088055926 +0200
+++ /var/tmp/diff_new_pack.DDUVt4/_new  2022-08-16 17:08:44.092055938 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Parse-MIME
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,17 +16,16 @@
 #
 
 
+%define cpan_name Parse-MIME
 Name:           perl-Parse-MIME
-Version:        1.005
+Version:        1.006
 Release:        0
-%define cpan_name Parse-MIME
-Summary:        Parse mime-types, match against media ranges
 License:        Artistic-1.0 OR GPL-1.0-or-later
-Group:          Development/Libraries/Perl
+Summary:        Parse mime-types, match against media ranges
 URL:            https://metacpan.org/release/%{cpan_name}
 Source0:        
https://cpan.metacpan.org/authors/id/A/AR/ARISTOTLE/%{cpan_name}-%{version}.tar.gz
+Source1:        cpanspec.yml
 BuildArch:      noarch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
 BuildRequires:  perl(JSON::PP)
@@ -39,11 +38,11 @@
 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1
 
 %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
@@ -54,7 +53,6 @@
 %perl_gen_filelist
 
 %files -f %{name}.files
-%defattr(-,root,root,755)
 %doc Changes README
 %license LICENSE
 

++++++ Parse-MIME-1.005.tar.gz -> Parse-MIME-1.006.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-MIME-1.005/Changes new/Parse-MIME-1.006/Changes
--- old/Parse-MIME-1.005/Changes        2018-08-20 07:15:23.000000000 +0200
+++ new/Parse-MIME-1.006/Changes        2022-08-10 00:55:45.000000000 +0200
@@ -1,4 +1,9 @@
-Revision history for Parse-MIME
+Release history for Parse-MIME
+
+1.006 Wed 10 Aug 2022
+       - No more subclassing of Exporter
+       - Packaging fix to stop installing boilerplate.pl
+       - Updated package metadata
 
 1.005 Mon 20 Aug 2018
        - No functional changes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-MIME-1.005/LICENSE new/Parse-MIME-1.006/LICENSE
--- old/Parse-MIME-1.005/LICENSE        2018-08-20 07:17:44.000000000 +0200
+++ new/Parse-MIME-1.006/LICENSE        2022-08-10 00:57:09.000000000 +0200
@@ -376,4 +376,3 @@
 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 
 The End
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-MIME-1.005/MANIFEST 
new/Parse-MIME-1.006/MANIFEST
--- old/Parse-MIME-1.005/MANIFEST       2018-08-20 07:17:44.000000000 +0200
+++ new/Parse-MIME-1.006/MANIFEST       2022-08-10 00:57:09.000000000 +0200
@@ -1,11 +1,11 @@
 Changes
-LICENSE
-MANIFEST
-META.json                                Module JSON meta-data (added by 
MakeMaker)
-META.yml                                 Module YAML meta-data (added by 
MakeMaker)
 Makefile.PL
-README
-boilerplate.pl
+inc/boilerplate.pl
 lib/Parse/MIME.pm
 t/fixtures.json
 t/parse-mime.t
+MANIFEST
+META.yml                                 Module YAML meta-data (added by 
MakeMaker)
+META.json                                Module JSON meta-data (added by 
MakeMaker)
+LICENSE
+README
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-MIME-1.005/META.json 
new/Parse-MIME-1.006/META.json
--- old/Parse-MIME-1.005/META.json      2018-08-20 07:17:43.000000000 +0200
+++ new/Parse-MIME-1.006/META.json      2022-08-10 00:57:09.000000000 +0200
@@ -10,7 +10,7 @@
    ],
    "meta-spec" : {
       "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec";,
-      "version" : "2"
+      "version" : 2
    },
    "name" : "Parse-MIME",
    "no_index" : {
@@ -21,11 +21,7 @@
    },
    "prereqs" : {
       "build" : {},
-      "configure" : {
-         "requires" : {
-            "ExtUtils::MakeMaker" : "0"
-         }
-      },
+      "configure" : {},
       "runtime" : {
          "requires" : {
             "Exporter" : "0",
@@ -42,18 +38,21 @@
    "release_status" : "stable",
    "resources" : {
       "bugtracker" : {
-         "web" : "https://github.com/ap/Parse-MIME/issues";
+         "web" : "https://rt.cpan.org/Public/Dist/Display.html?Name=Parse-MIME";
       },
+      "license" : [
+         "http://dev.perl.org/licenses/";
+      ],
       "repository" : {
          "type" : "git",
-         "url" : "git://github.com/ap/Parse-MIME.git",
+         "url" : "https://github.com/ap/Parse-MIME.git";,
          "web" : "https://github.com/ap/Parse-MIME";
       }
    },
-   "version" : "1.005",
+   "version" : "1.006",
    "x_copyright" : {
       "holder" : "Aristotle Pagaltzis",
       "year" : 2018
    },
-   "x_serialization_backend" : "JSON::PP version 2.27300_01"
+   "x_serialization_backend" : "JSON::PP version 4.02"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-MIME-1.005/META.yml 
new/Parse-MIME-1.006/META.yml
--- old/Parse-MIME-1.005/META.yml       2018-08-20 07:17:43.000000000 +0200
+++ new/Parse-MIME-1.006/META.yml       2022-08-10 00:57:09.000000000 +0200
@@ -5,8 +5,6 @@
 build_requires:
   JSON::PP: '0'
   Test::More: '0'
-configure_requires:
-  ExtUtils::MakeMaker: '0'
 dynamic_config: 0
 generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 
2.150010'
 license: perl
@@ -22,9 +20,10 @@
   Exporter: '0'
   perl: '5.006'
 resources:
-  bugtracker: https://github.com/ap/Parse-MIME/issues
-  repository: git://github.com/ap/Parse-MIME.git
-version: '1.005'
+  bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Parse-MIME
+  license: http://dev.perl.org/licenses/
+  repository: https://github.com/ap/Parse-MIME.git
+version: '1.006'
 x_copyright:
   holder: 'Aristotle Pagaltzis'
   year: 2018
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-MIME-1.005/Makefile.PL 
new/Parse-MIME-1.006/Makefile.PL
--- old/Parse-MIME-1.005/Makefile.PL    2018-08-19 04:35:15.000000000 +0200
+++ new/Parse-MIME-1.006/Makefile.PL    2022-08-10 00:49:25.000000000 +0200
@@ -1,40 +1,44 @@
 use 5.006; use strict; use warnings;
 
-my $u = 'github.com/ap/Parse-MIME';
+my $sc = q<https://github.com/ap/Parse-MIME>;
+my $bt = q<https://rt.cpan.org/Public/Dist/Display.html?Name=Parse-MIME>;
 
 my %META = (
        name        => 'Parse-MIME',
        author      => 'Aristotle Pagaltzis <[email protected]>',
-       license     => 'perl_5',
        x_copyright => { holder => 'Aristotle Pagaltzis', year => 2018 },
-       prereqs     => {
-               configure => { requires => {qw(
-                       ExtUtils::MakeMaker 0
-               )} },
-               runtime => { requires => {qw(
-                       perl                5.006
-                       Exporter            0
-               )} },
-               test => { requires => {qw(
-                       JSON::PP            0
-                       Test::More          0
-               )} },
+       license     => 'perl_5',
+       resources   => {
+               license    => [ 'http://dev.perl.org/licenses/' ],
+               repository => { type => 'git', url => "$sc.git", web => $sc },
+               bugtracker => { web => $bt },
        },
        dynamic_config => 0,
-       resources      => {
-               repository => { type => 'git', url => "git://$u.git", web => 
"https://$u"; },
-               bugtracker => { web => "https://$u/issues"; },
+       prereqs => {
+               runtime => {
+                       requires => {qw(
+                               perl 5.006
+                               Exporter 0
+                       )},
+               },
+               test => {
+                       requires => {qw(
+                               JSON::PP 0
+                               Test::More 0
+                       )},
+               },
        },
 );
 
-sub MY::postamble { <<'' }
+sub MY::postamble { -f 'META.yml' ? return : <<'' }
 create_distdir : MANIFEST
+distdir        : MANIFEST
 MANIFEST :
-       ( git ls-files ':!README.pod' . ; echo MANIFEST ) > MANIFEST
+       ( git ls-files ':!README.pod' ; echo MANIFEST ) > MANIFEST
 distdir : boilerplate
 .PHONY  : boilerplate
 boilerplate : distmeta
-       $(PERL) boilerplate.pl $(DISTVNAME)
+       $(PERL) -Ilib inc/boilerplate.pl $(DISTVNAME)
 
 ## BOILERPLATE ###############################################################
 require ExtUtils::MakeMaker;
@@ -46,9 +50,11 @@
 my $mymeta        = $eumm_version >= 6.57_02;
 my $mymeta_broken = $mymeta && $eumm_version < 6.57_07;
 
+(my $basepath = (-d 'lib' && 'lib/') . $META{name}) =~ s{-}{/}g;
+
 ($MM_ARGS{NAME} = $META{name}) =~ s/-/::/g;
-($MM_ARGS{VERSION_FROM} = "lib/$MM_ARGS{NAME}.pm") =~ s{::}{/}g;
-$MM_ARGS{ABSTRACT_FROM} = $MM_ARGS{VERSION_FROM};
+$MM_ARGS{VERSION_FROM} = "$basepath.pm";
+$MM_ARGS{ABSTRACT_FROM} = -f "$basepath.pod" ? "$basepath.pod" : 
"$basepath.pm";
 $META{license} = [ $META{license} ]
        if $META{license} && !ref $META{license};
 $MM_ARGS{LICENSE} = $META{license}[0]
@@ -70,7 +76,7 @@
        defined $r->{$_} or delete $r->{$_} for keys %$r;
 }
 
-$MM_ARGS{MIN_PERL_VERSION} = delete $MM_ARGS{PREREQ_PM}{perl} || 0;
+$MM_ARGS{MIN_PERL_VERSION} = eval delete $MM_ARGS{PREREQ_PM}{perl} || 0;
 
 delete $MM_ARGS{MIN_PERL_VERSION}
        if $eumm_version < 6.47_01;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-MIME-1.005/README new/Parse-MIME-1.006/README
--- old/Parse-MIME-1.005/README 2018-08-20 07:17:44.000000000 +0200
+++ new/Parse-MIME-1.006/README 2022-08-10 00:57:09.000000000 +0200
@@ -7,15 +7,16 @@
 
 INSTALLATION
 
-This is a Perl module distribution. It should be installed with whichever
-tool you use to manage your installation of Perl, e.g. any of
+This is a Perl module distribution. It should be installed with
+whichever tool you use to manage your installation of Perl, e.g. any of
 
   cpanm .
   cpan  .
   cpanp -i .
 
-Consult http://www.cpan.org/modules/INSTALL.html for further instruction.
-Should you wish to install this module manually, the procedure is
+Consult http://www.cpan.org/modules/INSTALL.html for further
+instruction. Should you wish to install this module manually, the
+procedure is
 
   perl Makefile.PL
   make
@@ -26,5 +27,5 @@
 
 This software is copyright (c) 2018 by Aristotle Pagaltzis.
 
-This is free software; you can redistribute it and/or modify it under the
-same terms as the Perl 5 programming language system itself.
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-MIME-1.005/boilerplate.pl 
new/Parse-MIME-1.006/boilerplate.pl
--- old/Parse-MIME-1.005/boilerplate.pl 2018-08-19 04:26:34.000000000 +0200
+++ new/Parse-MIME-1.006/boilerplate.pl 1970-01-01 01:00:00.000000000 +0100
@@ -1,41 +0,0 @@
-use strict; use warnings;
-
-use CPAN::Meta;
-use Software::LicenseUtils;
-use Pod::Readme::Brief;
-
-sub slurp { open my $fh, '<', $_[0] or die "Couldn't open $_[0] to read: 
$!\n"; readline $fh }
-
-chdir $ARGV[0] or die "Cannot chdir to $ARGV[0]: $!\n";
-
-my %file;
-
-my $meta = CPAN::Meta->load_file( 'META.json' );
-
-my $license = do {
-       my @key = ( $meta->license, $meta->meta_spec_version );
-       my ( $class, @ambiguous ) = 
Software::LicenseUtils->guess_license_from_meta_key( @key );
-       die if @ambiguous;
-       $class->new( $meta->custom( 'x_copyright' ) );
-};
-
-$file{'LICENSE'} = $license->fulltext;
-
-my @source = slurp 'lib/Parse/MIME.pm';
-splice @source, -2, 0, map "$_\n", '', '=head1 AUTHOR', '', $meta->authors;
-splice @source, -2, 0, split /(?<=\n)/, "\n=head1 COPYRIGHT AND LICENSE\n\n" . 
$license->notice;
-$file{'lib/Parse/MIME.pm'} = join '', @source;
-
-die unless -e 'Makefile.PL';
-$file{'README'} = Pod::Readme::Brief->new( @source )->render( installer => 
'eumm' );
-
-my @manifest = slurp 'MANIFEST';
-my %manifest = map /\A([^\s#]+)()/, @manifest;
-$file{'MANIFEST'} = join '', sort @manifest, map "$_\n", grep !exists 
$manifest{ $_ }, keys %file;
-
-for my $fn ( sort keys %file ) {
-       unlink $fn if -e $fn;
-       open my $fh, '>', $fn or die "Couldn't open $fn to write: $!\n";
-       print $fh $file{ $fn };
-       close $fh or die "Couldn't close $fn after writing: $!\n";
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-MIME-1.005/inc/boilerplate.pl 
new/Parse-MIME-1.006/inc/boilerplate.pl
--- old/Parse-MIME-1.005/inc/boilerplate.pl     1970-01-01 01:00:00.000000000 
+0100
+++ new/Parse-MIME-1.006/inc/boilerplate.pl     2022-08-07 22:14:34.000000000 
+0200
@@ -0,0 +1,50 @@
+use strict; use warnings;
+
+use CPAN::Meta;
+use Software::LicenseUtils 0.103011;
+use Pod::Readme::Brief 1.001;
+
+sub slurp { open my $fh, '<', $_[0] or die "Couldn't open $_[0] to read: 
$!\n"; local $/; readline $fh }
+sub trimnl { s/\A\s*\n//, s/\s*\z/\n/ for @_; wantarray ? @_ : $_[-1] }
+sub mkparentdirs {
+       my @dir = do { my %seen; sort grep s!/[^/]+\z!! && !$seen{ $_ }++, my 
@copy = @_ };
+       if ( @dir ) { mkparentdirs( @dir ); mkdir for @dir }
+}
+
+chdir $ARGV[0] or die "Cannot chdir to $ARGV[0]: $!\n";
+
+my %file;
+
+my $meta = CPAN::Meta->load_file( 'META.json' );
+
+my $license = do {
+       my @key = ( $meta->license, $meta->meta_spec_version );
+       my ( $class, @ambiguous ) = 
Software::LicenseUtils->guess_license_from_meta_key( @key );
+       die if @ambiguous or not $class;
+       $class->new( $meta->custom( 'x_copyright' ) );
+};
+
+$file{'LICENSE'} = trimnl $license->fulltext;
+
+my ( $main_module ) = map { s!-!/!g; s!^!lib/! if -d 'lib'; -f "$_.pod" ? 
"$_.pod" : "$_.pm" } $meta->name;
+
+( $file{ $main_module } = slurp $main_module ) =~ s{(^=cut\s*\z)}{ join "\n", (
+       "=head1 AUTHOR\n", trimnl( $meta->authors ),
+       "=head1 COPYRIGHT AND LICENSE\n", trimnl( $license->notice ),
+       "=cut\n",
+) }me;
+
+die unless -e 'Makefile.PL';
+$file{'README'} = Pod::Readme::Brief->new( $file{ $main_module } )->render( 
installer => 'eumm' );
+
+my @manifest = split /\n/, slurp 'MANIFEST';
+my %manifest = map /\A([^\s#]+)()/, @manifest;
+$file{'MANIFEST'} = join "\n", @manifest, ( sort grep !exists $manifest{ $_ }, 
keys %file ), '';
+
+mkparentdirs sort keys %file;
+for my $fn ( sort keys %file ) {
+       unlink $fn if -e $fn;
+       open my $fh, '>', $fn or die "Couldn't open $fn to write: $!\n";
+       print $fh $file{ $fn };
+       close $fh or die "Couldn't close $fn after writing: $!\n";
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Parse-MIME-1.005/lib/Parse/MIME.pm 
new/Parse-MIME-1.006/lib/Parse/MIME.pm
--- old/Parse-MIME-1.005/lib/Parse/MIME.pm      2018-08-20 07:17:44.000000000 
+0200
+++ new/Parse-MIME-1.006/lib/Parse/MIME.pm      2022-08-10 00:57:09.000000000 
+0200
@@ -1,11 +1,9 @@
 use 5.006; use strict; use warnings;
 
 package Parse::MIME;
+our $VERSION = '1.006';
 
-our $VERSION = '1.005';
-
-use Exporter ();
-our @ISA = 'Exporter';
+BEGIN { require Exporter; *import = \&Exporter::import }
 our @EXPORT_OK = qw(
        &parse_mime_type &parse_media_range &parse_media_range_list 
        &fitness_and_quality_parsed &quality_parsed &quality

++++++ 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:
#  baz.patch: PATCH-FIX-OPENSUSE
#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
#skip_doc: regexp_to_skip_for_doc.*
#add_doc: files to add to docs
#misc: |-
#anything else to be added to spec file
#follows directly after %files section, so it can contain new blocks or also
#changes to %files section

Reply via email to