Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package cpanspec for openSUSE:Factory checked in at 2023-01-24 19:42:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cpanspec (Old) and /work/SRC/openSUSE:Factory/.cpanspec.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cpanspec" Tue Jan 24 19:42:54 2023 rev:46 rq:1060487 version:1.83.00.1674496263.ba76ec9 Changes: -------- --- /work/SRC/openSUSE:Factory/cpanspec/cpanspec.changes 2022-05-06 19:00:42.229446025 +0200 +++ /work/SRC/openSUSE:Factory/.cpanspec.new.32243/cpanspec.changes 2023-01-24 20:18:37.459960375 +0100 @@ -1,0 +2,13 @@ +Mon Jan 23 17:54:28 UTC 2023 - Tina Müller <[email protected]> + +- Update to version 1.83.00.1674496263.ba76ec9: + * v1.83.00 + * Add blank line after %autosetup (#42) + * Ensure non-interactive mode (#41) + * Add github workflow (#40) + * Switch to faster CPAN mirror + * Strip pod from summary (#38) + * fix --debug option by adding 'use Data::Dumper' (#31) + * Fix reading META.yml (#37) + +------------------------------------------------------------------- Old: ---- cpanspec-1.82.02.1651742438.5f389d1.obscpio New: ---- cpanspec-1.83.00.1674496263.ba76ec9.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cpanspec.spec ++++++ --- /var/tmp/diff_new_pack.UUhO05/_old 2023-01-24 20:18:41.087979094 +0100 +++ /var/tmp/diff_new_pack.UUhO05/_new 2023-01-24 20:18:41.095979135 +0100 @@ -1,7 +1,7 @@ # # spec file for package cpanspec # -# Copyright (c) 2022 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 @@ -18,7 +18,7 @@ %define cpan_name cpanspec Name: cpanspec -Version: 1.82.02.1651742438.5f389d1 +Version: 1.83.00.1674496263.ba76ec9 Release: 0 Summary: Generate a SUSE spec file for a CPAN module License: Artistic-1.0 OR GPL-1.0-or-later ++++++ _service ++++++ --- /var/tmp/diff_new_pack.UUhO05/_old 2023-01-24 20:18:41.127979300 +0100 +++ /var/tmp/diff_new_pack.UUhO05/_new 2023-01-24 20:18:41.131979321 +0100 @@ -1,6 +1,6 @@ <services> <service name="obs_scm" mode="manual"> - <param name="versionprefix">1.82.02</param> + <param name="versionprefix">1.83.00</param> <param name="url">https://github.com/openSUSE/cpanspec</param> <param name="scm">git</param> <param name="changesgenerate">enable</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.UUhO05/_old 2023-01-24 20:18:41.151979424 +0100 +++ /var/tmp/diff_new_pack.UUhO05/_new 2023-01-24 20:18:41.155979445 +0100 @@ -1,7 +1,8 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/openSUSE/cpanspec</param> - <param name="changesrevision">5f389d1772eea9e8bf093dfafca149fd090adb16</param> + <param name="changesrevision">ba76ec9b434d40cd09d17927766ab9de40cacf56</param> </service> </servicedata> +(No newline at EOF) ++++++ cpanspec-1.82.02.1651742438.5f389d1.obscpio -> cpanspec-1.83.00.1674496263.ba76ec9.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cpanspec-1.82.02.1651742438.5f389d1/.github/workflows/test.yaml new/cpanspec-1.83.00.1674496263.ba76ec9/.github/workflows/test.yaml --- old/cpanspec-1.82.02.1651742438.5f389d1/.github/workflows/test.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/cpanspec-1.83.00.1674496263.ba76ec9/.github/workflows/test.yaml 2023-01-23 18:51:03.000000000 +0100 @@ -0,0 +1,37 @@ +name: Test + +on: + push: + pull_request: + branches: [ master ] + +jobs: + suse: + runs-on: ubuntu-latest + container: + image: registry.opensuse.org/opensuse/leap:15.4 + steps: + - run: | + zypper -n install tar gzip + - uses: actions/checkout@v3 + - run: > + zypper -n install perl-App-cpanminus make gcc + + cpanm -n Archive::Zip Pod::POM Parse::CPAN::Packages + Text::Autoformat YAML::XS LWP::UserAgent Perl::PrereqScanner + Algorithm::Diff + - name: test + run: perl -c cpanspec + + ubuntu: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: > + sudo apt-get install cpanminus + + sudo cpanm -n Archive::Zip Pod::POM Parse::CPAN::Packages + Text::Autoformat YAML::XS LWP::UserAgent Perl::PrereqScanner + Algorithm::Diff + - name: test + run: perl -c cpanspec diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cpanspec-1.82.02.1651742438.5f389d1/.gitignore new/cpanspec-1.83.00.1674496263.ba76ec9/.gitignore --- old/cpanspec-1.82.02.1651742438.5f389d1/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/cpanspec-1.83.00.1674496263.ba76ec9/.gitignore 2023-01-23 18:51:03.000000000 +0100 @@ -0,0 +1,4 @@ +Makefile +blib +pm_to_blib +obs_cache diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cpanspec-1.82.02.1651742438.5f389d1/README new/cpanspec-1.83.00.1674496263.ba76ec9/README --- old/cpanspec-1.82.02.1651742438.5f389d1/README 2022-05-05 11:20:38.000000000 +0200 +++ new/cpanspec-1.83.00.1674496263.ba76ec9/README 2023-01-23 18:51:03.000000000 +0100 @@ -6,12 +6,18 @@ Requires: * perl(Algorithm::Diff) +* perl(Archive::Zip) * perl(Class::Accessor::Chained) +* perl(File::ShareDir::Install) +* perl(LWP::UserAgent) +* perl(Module::Build) +* perl(Module::Build::Tiny) * perl(Parse::CPAN::Packages) * perl(Perl::PrereqScanner) +* perl(Pod::POM) * perl(Text::Autoformat) -* perl(File::ShareDir::Install) -* perl(Module::Build::Tiny) +* perl(YAML::XS) +* obs-service-format_spec_file EXAMPLE USE: ------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cpanspec-1.82.02.1651742438.5f389d1/bin/update-perl new/cpanspec-1.83.00.1674496263.ba76ec9/bin/update-perl --- old/cpanspec-1.82.02.1651742438.5f389d1/bin/update-perl 2022-05-05 11:20:38.000000000 +0200 +++ new/cpanspec-1.83.00.1674496263.ba76ec9/bin/update-perl 2023-01-23 18:51:03.000000000 +0100 @@ -26,7 +26,7 @@ my $cpan2obs = CPAN2OBS->new({ data => $data, - cpanmirror => 'http://cpan.noris.de', + cpanmirror => 'http://cpan.metacpan.org', apiurl => 'https://api.opensuse.org', cpanspec => "$Bin/../cpanspec", project_prefix => $project, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cpanspec-1.82.02.1651742438.5f389d1/cpanspec new/cpanspec-1.83.00.1674496263.ba76ec9/cpanspec --- old/cpanspec-1.82.02.1651742438.5f389d1/cpanspec 2022-05-05 11:20:38.000000000 +0200 +++ new/cpanspec-1.83.00.1674496263.ba76ec9/cpanspec 2023-01-23 18:51:03.000000000 +0100 @@ -190,7 +190,7 @@ use 5.010; our $NAME = "cpanspec"; -our $VERSION = '1.82.02'; +our $VERSION = '1.83.00'; my $script = __FILE__; use Cwd; @@ -209,7 +209,6 @@ use POSIX; use locale; use Text::Autoformat; -use YAML::Any qw(Dump Load LoadFile); use YAML::XS (); use Getopt::Long; use Pod::POM; @@ -224,6 +223,8 @@ use Encode qw/ decode_utf8 /; use Encode::Guess; use JSON::PP (); +use Data::Dumper; +use Algorithm::Diff; require Carp; @@ -710,7 +711,6 @@ my @changes = split qr/\n/, shift; #print $old_changes, $changes; - use Algorithm::Diff qw/sdiff/; my $diff = Algorithm::Diff->new(\@old_changes, \@changes); # ignore common prefix @@ -1020,7 +1020,6 @@ if (-e "$basedir/$path/META.yml") { my $results = read_meta_yaml("$path/META.yml", \%stats); - $got_prereqs = $results->{got_prereqs}; $dynamic = $results->{dynamic}; $summary //= $results->{abstract}; if (not $got_prereqs and $results->{build}) { @@ -1031,6 +1030,7 @@ if (not keys %provides and my $prov = $results->{provides}) { @provides{ keys %$prov } = values %$prov; } + $got_prereqs = $results->{got_prereqs}; $scripts = $results->{scripts}; $license = $results->{license}; } @@ -1052,6 +1052,7 @@ $build_requires{'ExtUtils::MakeMaker'} ||= 0; } + $ENV{PERL_MM_USE_DEFAULT} = 1; if ($got_prereqs and not $dynamic) { $debug and warn "Got prereqs, no need to run Makefile.PL/Build.PL"; } @@ -1099,6 +1100,7 @@ $license = "CHECK($perllicense)" unless $license; $stats{license}->{spec} = $license; + $summary =~ s/[CL]<([^>]+)>/$1/g if defined $summary; $summary //= get_summary($summary, $content, $module); $description //= $summary; $stats{summary} = $summary; @@ -1344,6 +1346,7 @@ my $autosetup_arg = (!$config->{patches} || $all_patch_args_same) ? (defined($common_patch_args) ? " $common_patch_args" : "") : " -N"; print $spec <<END; \%autosetup @{[($noprefix ? "" : " -n $buildpath")]}$autosetup_arg + END if ($execs) { @@ -1736,7 +1739,7 @@ $debug and warn __PACKAGE__.':'.__LINE__.": =============== read_meta_yaml\n"; my ($file, $stats) = @_; my $yml = readfile($file); - my $meta = eval { Load($yml); }; + my $meta = eval { YAML::XS::Load($yml); }; if ($@) { warn "Error parsing $file: $@"; $stats->{metayaml} = 'error'; ++++++ cpanspec.obsinfo ++++++ --- /var/tmp/diff_new_pack.UUhO05/_old 2023-01-24 20:18:41.315980271 +0100 +++ /var/tmp/diff_new_pack.UUhO05/_new 2023-01-24 20:18:41.315980271 +0100 @@ -1,6 +1,5 @@ name: cpanspec -version: 1.82.02.1651742438.5f389d1 -mtime: 1651742438 -commit: 5f389d1772eea9e8bf093dfafca149fd090adb16 - +version: 1.83.00.1674496263.ba76ec9 +mtime: 1674496263 +commit: ba76ec9b434d40cd09d17927766ab9de40cacf56
