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
This commit is contained in:
Paul Howarth 2013-01-22 20:09:01 +00:00
parent 12e02c51fe
commit 2eb099ea57
3 changed files with 40 additions and 22 deletions

View File

@ -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;
-

View File

@ -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@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@city-fan.org> - 0.001006-1
- Update to 0.001006
- Handle ':all' correctly

View File

@ -1 +1 @@
381704c10802bbbf13e8e99d7ddccfbe Sub-Exporter-Progressive-0.001006.tar.gz
d80a27859c13d471019c75494409282e Sub-Exporter-Progressive-0.001008.tar.gz