From 45146df50c979cfbe1be281a4c7812db08060ed5 Mon Sep 17 00:00:00 2001 From: Paul Howarth <p...@city-fan.org> Date: Sat, 22 Oct 2016 14:15:15 +0100 Subject: Update to 0.001013
- New upstream release 0.001013 - Avoid possible warnings about special variables only being used once - Update old Test::More patch --- ...orter-Progressive-0.001012-old-Test::More.patch | 137 --------------------- ...orter-Progressive-0.001013-old-Test::More.patch | 137 +++++++++++++++++++++ perl-Sub-Exporter-Progressive.spec | 11 +- sources | 2 +- 4 files changed, 146 insertions(+), 141 deletions(-) delete mode 100644 Sub-Exporter-Progressive-0.001012-old-Test::More.patch create mode 100644 Sub-Exporter-Progressive-0.001013-old-Test::More.patch diff --git a/Sub-Exporter-Progressive-0.001012-old-Test::More.patch b/Sub-Exporter-Progressive-0.001012-old-Test::More.patch deleted file mode 100644 index 766cd45..0000000 --- a/Sub-Exporter-Progressive-0.001012-old-Test::More.patch +++ /dev/null @@ -1,137 +0,0 @@ ---- Makefile.PL -+++ Makefile.PL -@@ -17,7 +17,7 @@ my %WriteMakefileArgs = ( - "NAME" => "Sub::Exporter::Progressive", - "PREREQ_PM" => {}, - "TEST_REQUIRES" => { -- "Test::More" => "0.88" -+ "Test::More" => "0.47" - }, - "VERSION" => "0.001012", - "test" => { -@@ -27,7 +27,7 @@ my %WriteMakefileArgs = ( - - - my %FallbackPrereqs = ( -- "Test::More" => "0.88" -+ "Test::More" => "0.47" - ); - - ---- t/all.t -+++ t/all.t -@@ -2,7 +2,7 @@ - use strict; - use warnings; - --use Test::More; -+use Test::More tests => 6; - use lib 't/lib'; - use A::JunkAll; - -@@ -17,5 +17,3 @@ use A::JunkAll ':all'; - ok(main->can('junk1'), 'sub exported'); - ok(main->can('junk2'), 'sub exported'); - ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded'); -- --done_testing; ---- t/basic.t -+++ t/basic.t -@@ -2,11 +2,9 @@ - use strict; - use warnings; - --use Test::More; -+use Test::More tests => 2; - use lib 't/lib'; - use A::Junk 'junk1'; - - ok(main->can('junk1'), 'requested sub exported'); - ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded'); -- --done_testing; ---- t/default.t -+++ t/default.t -@@ -2,11 +2,9 @@ - use strict; - use warnings; - --use Test::More; -+use Test::More tests => 2; - use lib 't/lib'; - use A::Junk; - - ok(main->can('junk2'), 'sub exported'); - ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded'); -- --done_testing; ---- t/release-changes_has_content.t -+++ t/release-changes_has_content.t -@@ -10,7 +10,6 @@ BEGIN { - - use Test::More tests => 2; - --note 'Checking Changes'; - my $changes_file = 'Changes'; - my $newver = '0.001012'; - my $trial_token = '-TRIAL'; -@@ -22,8 +21,6 @@ SKIP: { - ok(_get_changes($newver), "$changes_file has content for $newver"); - } - --done_testing; -- - # _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit - # by Jerome Quelin - sub _get_changes ---- t/sex.t -+++ t/sex.t -@@ -2,7 +2,7 @@ - use strict; - use warnings; - --use Test::More; -+use Test::More tests => 2; - BEGIN { - plan skip_all => 'Sub::Exporter not installed' - unless eval { require Sub::Exporter }; -@@ -13,5 +13,3 @@ use A::Junk 'junk1' => { -as => 'junk' } - - ok(main->can('junk'), 'sub renamed with Sub::Exporter'); - ok($INC{'Sub/Exporter.pm'}, 'Sub::Exporter loaded'); -- --done_testing; ---- t/tags.t -+++ t/tags.t -@@ -1,7 +1,7 @@ - use strict; - use warnings; - --use Test::More; -+use Test::More tests => 44; - use Carp; - use lib 't/lib'; - use A::Junk ':other'; -@@ -64,5 +64,3 @@ SKIP: { - check_tag('bar -default', [qw/foo bar/], [qw/baz/]); - } - --done_testing; -- ---- t/version-check.t -+++ t/version-check.t -@@ -1,7 +1,7 @@ - - use strict; - use warnings; --use Test::More; -+use Test::More tests => 5; - - BEGIN { - package AAA; -@@ -38,5 +38,3 @@ ok(eval('use AAA 1; 1'), 'perl built-in - ); - } - --done_testing; -- diff --git a/Sub-Exporter-Progressive-0.001013-old-Test::More.patch b/Sub-Exporter-Progressive-0.001013-old-Test::More.patch new file mode 100644 index 0000000..f083a9f --- /dev/null +++ b/Sub-Exporter-Progressive-0.001013-old-Test::More.patch @@ -0,0 +1,137 @@ +--- Makefile.PL ++++ Makefile.PL +@@ -17,7 +17,7 @@ my %WriteMakefileArgs = ( + "NAME" => "Sub::Exporter::Progressive", + "PREREQ_PM" => {}, + "TEST_REQUIRES" => { +- "Test::More" => "0.88" ++ "Test::More" => "0.47" + }, + "VERSION" => "0.001013", + "test" => { +@@ -27,7 +27,7 @@ my %WriteMakefileArgs = ( + + + my %FallbackPrereqs = ( +- "Test::More" => "0.88" ++ "Test::More" => "0.47" + ); + + +--- t/all.t ++++ t/all.t +@@ -2,7 +2,7 @@ + use strict; + use warnings; + +-use Test::More; ++use Test::More tests => 6; + use lib 't/lib'; + use A::JunkAll; + +@@ -17,5 +17,3 @@ use A::JunkAll ':all'; + ok(main->can('junk1'), 'sub exported'); + ok(main->can('junk2'), 'sub exported'); + ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded'); +- +-done_testing; +--- t/basic.t ++++ t/basic.t +@@ -2,11 +2,9 @@ + use strict; + use warnings; + +-use Test::More; ++use Test::More tests => 2; + use lib 't/lib'; + use A::Junk 'junk1'; + + ok(main->can('junk1'), 'requested sub exported'); + ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded'); +- +-done_testing; +--- t/default.t ++++ t/default.t +@@ -2,11 +2,9 @@ + use strict; + use warnings; + +-use Test::More; ++use Test::More tests => 2; + use lib 't/lib'; + use A::Junk; + + ok(main->can('junk2'), 'sub exported'); + ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded'); +- +-done_testing; +--- t/release-changes_has_content.t ++++ t/release-changes_has_content.t +@@ -10,7 +10,6 @@ BEGIN { + + use Test::More tests => 2; + +-note 'Checking Changes'; + my $changes_file = 'Changes'; + my $newver = '0.001013'; + my $trial_token = '-TRIAL'; +@@ -22,8 +21,6 @@ SKIP: { + ok(_get_changes($newver), "$changes_file has content for $newver"); + } + +-done_testing; +- + # _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit + # by Jerome Quelin + sub _get_changes +--- t/sex.t ++++ t/sex.t +@@ -2,7 +2,7 @@ + use strict; + use warnings; + +-use Test::More; ++use Test::More tests => 2; + BEGIN { + plan skip_all => 'Sub::Exporter not installed' + unless eval { require Sub::Exporter }; +@@ -13,5 +13,3 @@ use A::Junk 'junk1' => { -as => 'junk' } + + ok(main->can('junk'), 'sub renamed with Sub::Exporter'); + ok($INC{'Sub/Exporter.pm'}, 'Sub::Exporter loaded'); +- +-done_testing; +--- t/tags.t ++++ t/tags.t +@@ -1,7 +1,7 @@ + use strict; + use warnings; + +-use Test::More; ++use Test::More tests => 44; + use Carp; + use lib 't/lib'; + use A::Junk ':other'; +@@ -64,5 +64,3 @@ SKIP: { + check_tag('bar -default', [qw/foo bar/], [qw/baz/]); + } + +-done_testing; +- +--- t/version-check.t ++++ t/version-check.t +@@ -1,7 +1,7 @@ + + use strict; + use warnings; +-use Test::More; ++use Test::More tests => 5; + + BEGIN { + package AAA; +@@ -38,5 +38,3 @@ ok(eval('use AAA 1; 1'), 'perl built-in + ); + } + +-done_testing; +- diff --git a/perl-Sub-Exporter-Progressive.spec b/perl-Sub-Exporter-Progressive.spec index 990d7aa..3ab5e87 100644 --- a/perl-Sub-Exporter-Progressive.spec +++ b/perl-Sub-Exporter-Progressive.spec @@ -2,14 +2,14 @@ %global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0) Name: perl-Sub-Exporter-Progressive -Version: 0.001012 +Version: 0.001013 Release: 1%{?dist} Summary: Only use Sub::Exporter if you need it Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Sub-Exporter-Progressive/ Source0: http://search.cpan.org/CPAN/authors/id/F/FR/FREW/Sub-Exporter-Progressive-%{version}.tar.gz -Patch1: Sub-Exporter-Progressive-0.001012-old-Test::More.patch +Patch1: Sub-Exporter-Progressive-0.001013-old-Test::More.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch # =============== Module Build ====================== @@ -64,7 +64,7 @@ make %{?_smp_mflags} rm -rf %{buildroot} make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete -%{_fixperms} %{buildroot} +%{_fixperms} -c %{buildroot} %check make test @@ -83,6 +83,11 @@ rm -rf %{buildroot} %{_mandir}/man3/Sub::Exporter::Progressive.3* %changelog +* Sat Oct 22 2016 Paul Howarth <p...@city-fan.org> - 0.001013-1 +- Update to 0.001013 + - Avoid possible warnings about special variables only being used once +- Update old Test::More patch + * Wed Aug 24 2016 Paul Howarth <p...@city-fan.org> - 0.001012-1 - Update to 0.001012 - Many small performance improvements diff --git a/sources b/sources index 6b39159..eccaafa 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a6be2bcef9a9f5c5f2709060dae521a2 Sub-Exporter-Progressive-0.001012.tar.gz +72cf6acdd2a0a8b105821a4db98e4ebe Sub-Exporter-Progressive-0.001013.tar.gz -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Sub-Exporter-Progressive.git/commit/?h=perl-Sub-Exporter-Progressive-0.001013-1.fc25&id=45146df50c979cfbe1be281a4c7812db08060ed5 _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org