commit 903c1aa322759f35d568eb3315bce133c4e94747 Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Thu Feb 21 11:48:30 2013 +0000 Update to 0.985 - New upstream release 0.985 (documentation fixes) - Add patch to support building with Test::More < 0.88 - Run the extra tests too - BR: perl(File::Find) and perl(File::Temp) for test suite - BR: perl(Test::Pod) for the extra tests Sub-Exporter-0.985-old-Test::More.patch | 58 +++++++++++++++++++++++++++++++ perl-Sub-Exporter.spec | 25 ++++++++++++- sources | 2 +- 3 files changed, 82 insertions(+), 3 deletions(-) --- diff --git a/Sub-Exporter-0.985-old-Test::More.patch b/Sub-Exporter-0.985-old-Test::More.patch new file mode 100644 index 0000000..1e62204 --- /dev/null +++ b/Sub-Exporter-0.985-old-Test::More.patch @@ -0,0 +1,58 @@ +--- t/000-report-versions-tiny.t ++++ t/000-report-versions-tiny.t +@@ -1,12 +1,6 @@ + use strict; + use warnings; +-use Test::More 0.88; +-# This is a relatively nice way to avoid Test::NoWarnings breaking our +-# expectations by adding extra tests, without using no_plan. It also helps +-# avoid any other test module that feels introducing random tests, or even +-# test plans, is a nice idea. +-our $success = 0; +-END { $success && done_testing; } ++use Test::More 0.47 tests => 1; + + # List our own version used to generate this + my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.08\n"; +@@ -56,13 +50,12 @@ + eval { $v .= pmver('File::Temp','any version') }; + eval { $v .= pmver('Params::Util','0.14') }; + eval { $v .= pmver('Sub::Install','0.92') }; +-eval { $v .= pmver('Test::More','0.96') }; ++eval { $v .= pmver('Test::More','0.47') }; + eval { $v .= pmver('Test::Pod','1.41') }; + eval { $v .= pmver('base','any version') }; + eval { $v .= pmver('overload','any version') }; + eval { $v .= pmver('strict','any version') }; + eval { $v .= pmver('subs','any version') }; +-eval { $v .= pmver('version','0.9901') }; + eval { $v .= pmver('warnings','any version') }; + + +@@ -77,7 +70,6 @@ + + diag($v); + ok(1, "we really didn't test anything, just reporting data"); +-$success = 1; + + # Work around another nasty module on CPAN. :/ + no warnings 'once'; +--- xt/release/changes_has_content.t ++++ xt/release/changes_has_content.t +@@ -2,7 +2,6 @@ + + use Test::More tests => 2; + +-note 'Checking Changes'; + my $changes_file = 'Changes'; + my $newver = '0.985'; + my $trial_token = '-TRIAL'; +@@ -14,8 +13,6 @@ + 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 diff --git a/perl-Sub-Exporter.spec b/perl-Sub-Exporter.spec index 5e26026..ca20a3a 100644 --- a/perl-Sub-Exporter.spec +++ b/perl-Sub-Exporter.spec @@ -1,11 +1,15 @@ +# We need to patch the test suite if we have an old version of Test::More +%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 -Version: 0.984 -Release: 5%{?dist} +Version: 0.985 +Release: 1%{?dist} Summary: Sophisticated exporter for custom-built routines License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Sub-Exporter/ Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Sub-Exporter-%{version}.tar.gz +Patch1: Sub-Exporter-0.985-old-Test::More.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch # Build @@ -19,9 +23,13 @@ BuildRequires: perl(Sub::Install) >= 0.92 # Test suite BuildRequires: perl(base) BuildRequires: perl(Exporter) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Temp) BuildRequires: perl(lib) BuildRequires: perl(subs) BuildRequires: perl(Test::More) +# Extra tests +BuildRequires: perl(Test::Pod) # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Package::Generator) @@ -40,6 +48,11 @@ Sub::Exporter::Tutorial first! %prep %setup -q -n Sub-Exporter-%{version} +# We need to patch the test suite if we have an old version of Test::More +%if %{old_test_more} +%patch1 +%endif + # Fix shellbangs find t/ -type f -exec sed -i -e 's|^#!perl|#!/usr/bin/perl|' {} \; @@ -61,6 +74,7 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \; %check make test +make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" %clean rm -rf %{buildroot} @@ -79,6 +93,13 @@ rm -rf %{buildroot} %{_mandir}/man3/Sub::Exporter::Util.3pm* %changelog +* Thu Feb 21 2013 Paul Howarth <paul@xxxxxxxxxxxx> - 0.985-1 +- Update to 0.985 (documentation fixes) +- Add patch to support building with Test::More < 0.88 +- Run the extra tests too +- BR: perl(File::Find) and perl(File::Temp) for test suite +- BR: perl(Test::Pod) for the extra tests + * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.984-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild diff --git a/sources b/sources index 4014992..c997250 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cfa19c5f09bc08f49174856c0bfd7849 Sub-Exporter-0.984.tar.gz +233b9a1d86a4395de7e1afe5b60632b7 Sub-Exporter-0.985.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel