[perl-Sub-Exporter-Progressive] Update to 0.001008

Paul Howarth pghmcfc at fedoraproject.org
Tue Jan 22 20:22:57 UTC 2013


commit 2eb099ea57647e423d21840f96e70a3d1d35f90a
Author: Paul Howarth <paul at city-fan.org>
Date:   Tue Jan 22 20:09:01 2013 +0000

    Update to 0.001008
    
    - New upstream release 0.001008
      - Rewrite -tag to :tag for Exporter.pm
      - Fix prereqs
    - Update old Test::More patch, and apply if we have Test::More < 0.96
    - Bump perl(Exporter) version requirement to 5.58

 ...orter-Progressive-0.001008-old-Test::More.patch |   42 ++++++++++++-------
 perl-Sub-Exporter-Progressive.spec                 |   18 ++++++--
 sources                                            |    2 +-
 3 files changed, 40 insertions(+), 22 deletions(-)
---
diff --git a/Sub-Exporter-Progressive-0.001006-old-Test::More.patch b/Sub-Exporter-Progressive-0.001008-old-Test::More.patch
similarity index 69%
rename from Sub-Exporter-Progressive-0.001006-old-Test::More.patch
rename to Sub-Exporter-Progressive-0.001008-old-Test::More.patch
index 1b88196..5692b7e 100644
--- a/Sub-Exporter-Progressive-0.001006-old-Test::More.patch
+++ b/Sub-Exporter-Progressive-0.001008-old-Test::More.patch
@@ -1,13 +1,14 @@
 --- Makefile.PL
 +++ Makefile.PL
-@@ -10,6 +10,6 @@ WriteMakefile(
-   NAME => 'Sub-Exporter-Progressive',
-   VERSION_FROM => 'lib/Sub/Exporter/Progressive.pm',
-   $key => {
--	'Test::More' => 0.89,
-+	'Test::More' => 0.47,
-   }
+@@ -10,7 +10,7 @@ my %deps = (
+ 	},
  );
+ my $key = eval { ExtUtils::MakeMaker->VERSION(6.56) } ? 'BUILD_REQUIRES' : 'PREREQ_PM' ;
+-$deps{$key}{'Test::More'} = '0.96';
++$deps{$key}{'Test::More'} = '0.47';
+ 
+ WriteMakefile(
+   NAME => 'Sub-Exporter-Progressive',
 --- t/all.t
 +++ t/all.t
 @@ -2,7 +2,7 @@
@@ -19,7 +20,7 @@
  use List::Util 'first';
  use lib 't/lib';
  use A::JunkAll;
-@@ -10,5 +10,3 @@ use A::JunkAll;
+@@ -18,5 +18,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');
@@ -80,15 +81,24 @@
  use strict;
  use warnings;
  
--use Test::More 0.89;
-+use Test::More tests => 4;
+-use Test::More 0.96;
++use Test::More tests => 44;
  use List::Util 'first';
+ use Carp;
  use lib 't/lib';
- use A::Junk ':other';
-@@ -10,6 +10,3 @@ ok(!main->can('junk1'), 'junk1 not expor
- ok(!main->can('junk2'), 'junk2 not exported');
- ok(main->can('junk3'), 'junk3 exported');
- ok(! $INC{'Sub/Exporter.pm'}, 'Sub::Exporter not loaded');
--
+@@ -38,9 +38,7 @@ sub check_tag
+ {
+ 	my ($tag, $should, $shouldnt) = @_;
+ 	my $pkg = 'Local::Importer' . ++$i;
+-	subtest "test the '$tag' tag" => sub
+ 	{
+-		plan tests => 1 + @$should + @$shouldnt;
+ 		local $@ = undef;
+ 		
+ 		ok(eval qq{
+@@ -65,5 +63,3 @@ check_tag('-bb', [qw/bar baz/], [qw/foo/
+ check_tag(':all', [qw/foo bar baz/], []);
+ check_tag('-all', [qw/foo bar baz/], []);
+ 
 -done_testing;
 -
diff --git a/perl-Sub-Exporter-Progressive.spec b/perl-Sub-Exporter-Progressive.spec
index 6ea2d03..7119740 100644
--- a/perl-Sub-Exporter-Progressive.spec
+++ b/perl-Sub-Exporter-Progressive.spec
@@ -1,21 +1,22 @@
 # We need to patch the test suite if we have old versions of Test::More
-%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
+%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.96) ? 1 : 0);' 2>/dev/null || echo 0)
 
 Name:		perl-Sub-Exporter-Progressive
-Version:	0.001006
+Version:	0.001008
 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/L/LE/LEONT/Sub-Exporter-Progressive-%{version}.tar.gz
-Patch1:		Sub-Exporter-Progressive-0.001006-old-Test::More.patch
+Patch1:		Sub-Exporter-Progressive-0.001008-old-Test::More.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildArch:	noarch
 # =============== Module Build ======================
 BuildRequires:	perl(ExtUtils::MakeMaker)
 # =============== Module Runtime ====================
-BuildRequires:	perl(Exporter)
+BuildRequires:	perl(Carp)
+BuildRequires:	perl(Exporter) >= 5.58
 BuildRequires:	perl(List::Util)
 BuildRequires:	perl(Sub::Exporter)
 # =============== Test Suite ========================
@@ -23,7 +24,7 @@ BuildRequires:	perl(lib)
 BuildRequires:	perl(Test::More)
 # =============== Module Runtime ====================
 Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
-Requires:	perl(Exporter)
+Requires:	perl(Exporter) >= 5.58
 Requires:	perl(Sub::Exporter)
 
 %description
@@ -69,6 +70,13 @@ rm -rf %{buildroot}
 %{_mandir}/man3/Sub::Exporter::Progressive.3pm*
 
 %changelog
+* Tue Jan 22 2013 Paul Howarth <paul at city-fan.org> - 0.001008-1
+- Update to 0.001008
+  - Rewrite -tag to :tag for Exporter.pm
+  - Fix prereqs
+- Update old Test::More patch, and apply if we have Test::More < 0.96
+- Bump perl(Exporter) version requirement to 5.58
+
 * Mon Aug 27 2012 Paul Howarth <paul at city-fan.org> - 0.001006-1
 - Update to 0.001006
   - Handle ':all' correctly
diff --git a/sources b/sources
index f5152e2..3c40eb9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-381704c10802bbbf13e8e99d7ddccfbe  Sub-Exporter-Progressive-0.001006.tar.gz
+d80a27859c13d471019c75494409282e  Sub-Exporter-Progressive-0.001008.tar.gz


More information about the scm-commits mailing list