From 0f0255be61eb8475ac7dfbbceddfa908db5247c3 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Jan 08 2014 16:38:31 +0000 Subject: Update to 0.13 - New upstream release 0.13: - Variable::Magic added as a runtime recommendation for greater visibility (CPAN RT#89245) - Fixed broken logic in compiler detection on older perls - Fixed inaccurate repository metadata - This release by ETHER -> update source URL - Drop Pod Coverage patch, no longer needed - Update shellbang patch - Don't run the release tests when bootstrapping --- diff --git a/B-Hooks-EndOfScope-0.10-shellbangs.patch b/B-Hooks-EndOfScope-0.10-shellbangs.patch deleted file mode 100644 index bc0d33d..0000000 --- a/B-Hooks-EndOfScope-0.10-shellbangs.patch +++ /dev/null @@ -1,18 +0,0 @@ -Remove shellbangs from tests to placate rpmlint - ---- B-Hooks-EndOfScope/t/release-pod-coverage.t -+++ B-Hooks-EndOfScope/t/release-pod-coverage.t -@@ -1,5 +1,3 @@ --#!perl -- - BEGIN { - unless ($ENV{RELEASE_TESTING}) { - require Test::More; ---- B-Hooks-EndOfScope/t/release-pod-syntax.t -+++ B-Hooks-EndOfScope/t/release-pod-syntax.t -@@ -1,5 +1,3 @@ --#!perl -- - BEGIN { - unless ($ENV{RELEASE_TESTING}) { - require Test::More; diff --git a/B-Hooks-EndOfScope-0.12-podcoverage.patch b/B-Hooks-EndOfScope-0.12-podcoverage.patch deleted file mode 100644 index 17f7f0e..0000000 --- a/B-Hooks-EndOfScope-0.12-podcoverage.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- lib/B/Hooks/EndOfScope/PP/FieldHash.pm -+++ lib/B/Hooks/EndOfScope/PP/FieldHash.pm -@@ -75,5 +75,7 @@ This software is copyright (c) 2012 by F - This is free software; you can redistribute it and/or modify it under - the same terms as the Perl 5 programming language system itself. - -+=for Pod::Coverage on_scope_end -+ - =cut - ---- lib/B/Hooks/EndOfScope/PP/HintHash.pm -+++ lib/B/Hooks/EndOfScope/PP/HintHash.pm -@@ -68,5 +68,7 @@ This software is copyright (c) 2012 by F - This is free software; you can redistribute it and/or modify it under - the same terms as the Perl 5 programming language system itself. - -+=for Pod::Coverage on_scope_end -+ - =cut - diff --git a/B-Hooks-EndOfScope-0.13-shellbangs.patch b/B-Hooks-EndOfScope-0.13-shellbangs.patch new file mode 100644 index 0000000..9520976 --- /dev/null +++ b/B-Hooks-EndOfScope-0.13-shellbangs.patch @@ -0,0 +1,8 @@ +--- t/00-report-prereqs.t ++++ t/00-report-prereqs.t +@@ -1,4 +1,4 @@ +-#!perl ++#!/usr/bin/perl + + use strict; + use warnings; diff --git a/perl-B-Hooks-EndOfScope.spec b/perl-B-Hooks-EndOfScope.spec index 0c8e1b1..522f370 100644 --- a/perl-B-Hooks-EndOfScope.spec +++ b/perl-B-Hooks-EndOfScope.spec @@ -1,13 +1,12 @@ Name: perl-B-Hooks-EndOfScope -Version: 0.12 -Release: 4%{?dist} +Version: 0.13 +Release: 1%{?dist} License: GPL+ or Artistic Group: Development/Libraries Summary: Execute code after scope compilation finishes URL: http://search.cpan.org/dist/B-Hooks-EndOfScope/ -Source0: http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/B-Hooks-EndOfScope-%{version}.tar.gz -Patch0: B-Hooks-EndOfScope-0.12-podcoverage.patch -Patch2: B-Hooks-EndOfScope-0.10-shellbangs.patch +Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/B-Hooks-EndOfScope-%{version}.tar.gz +Patch0: B-Hooks-EndOfScope-0.13-shellbangs.patch BuildArch: noarch # Build BuildRequires: perl(ExtUtils::CBuilder) @@ -24,14 +23,28 @@ BuildRequires: perl(Scalar::Util) BuildRequires: perl(Sub::Exporter::Progressive) >= 0.001006 BuildRequires: perl(Variable::Magic) >= 0.48 # Test suite +BuildRequires: perl(CPAN::Meta) +BuildRequires: perl(CPAN::Meta::Requirements) BuildRequires: perl(Devel::Hide) >= 0.0007 BuildRequires: perl(Test::More) >= 0.89 # Release tests +%if 0%{!?perl_bootstrap:1} BuildRequires: perl(Pod::Coverage::TrustPod) +BuildRequires: perl(Test::CPAN::Changes) +BuildRequires: perl(Test::CPAN::Meta) BuildRequires: perl(Test::EOL) +BuildRequires: perl(Test::Kwalitee) +BuildRequires: perl(Test::MinimumVersion) +BuildRequires: perl(Test::Mojibake) BuildRequires: perl(Test::NoTabs) BuildRequires: perl(Test::Pod) >= 1.41 BuildRequires: perl(Test::Pod::Coverage) >= 1.08 +BuildRequires: perl(Test::Pod::No404s) +BuildRequires: perl(Test::Portability::Files) +BuildRequires: perl(Test::Spelling), hunspell-en +BuildRequires: perl(Test::Vars) +BuildRequires: perl(Test::Version) +%endif # Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Module::Implementation) >= 0.05 @@ -45,11 +58,8 @@ surrounding scope. %prep %setup -q -n B-Hooks-EndOfScope-%{version} -# Fix POD coverage -%patch0 - # Remove shellbangs from tests to placate rpmlint -%patch2 -p1 +%patch0 %build perl Makefile.PL INSTALLDIRS=vendor @@ -61,18 +71,31 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} ';' %{_fixperms} %{buildroot} %check -make test RELEASE_TESTING=1 +export AUTHOR_TESTING=1 +make test +%if 0%{!?perl_bootstrap:1} +make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" +%endif %files -%doc Changes LICENSE README t/ +%doc Changes CONTRIBUTING LICENSE README README.md t/ %{perl_vendorlib}/B/ %{_mandir}/man3/B::Hooks::EndOfScope.3pm* %{_mandir}/man3/B::Hooks::EndOfScope::PP.3pm* -%{_mandir}/man3/B::Hooks::EndOfScope::PP::FieldHash.3pm* -%{_mandir}/man3/B::Hooks::EndOfScope::PP::HintHash.3pm* %{_mandir}/man3/B::Hooks::EndOfScope::XS.3pm* %changelog +* Wed Jan 8 2014 Paul Howarth - 0.13-1 +- Update to 0.13 + - Variable::Magic added as a runtime recommendation for greater visibility + (CPAN RT#89245) + - Fixed broken logic in compiler detection on older perls + - Fixed inaccurate repository metadata +- This release by ETHER -> update source URL +- Drop Pod Coverage patch, no longer needed +- Update shellbang patch +- Don't run the release tests when bootstrapping + * Sat Aug 03 2013 Fedora Release Engineering - 0.12-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild diff --git a/sources b/sources index 1766a2f..003be91 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1a536388be36b658ff50a621e0ee03a5 B-Hooks-EndOfScope-0.12.tar.gz +6cdaaa88a39054cd13aacad7bd2171da B-Hooks-EndOfScope-0.13.tar.gz