[perl-B-Hooks-EndOfScope] Update to 0.12
Paul Howarth
pghmcfc at fedoraproject.org
Wed Dec 5 16:45:22 UTC 2012
commit 6ca03da37af6152985b7e292edb16ecd04ba89d0
Author: Paul Howarth <paul at city-fan.org>
Date: Wed Dec 5 16:43:38 2012 +0000
Update to 0.12
- New upstream release 0.12:
- Complete pure-perl implementation in addition to the one based on
Variable::Magic; you can specify the implementation explicitly by use-ing
B::Hooks::EndOfScope::PP or B::Hooks::EndOfScope::XS, or by setting
$ENV{B_HOOKS_ENDOFSCOPE_IMPLEMENTATION} to either 'XS' or 'PP'
- Switch from using Sub::Exporter to the more conservative
Sub::Exporter::Progressive
- Add patch to fix POD coverage issues in new pure-perl implementation
- This release by BOBTFISH -> update source URL
- BR: perl(ExtUtils::CBuilder) ≥ 0.26, perl(Devel::Hide) ≥ 0.0007,
perl(Module::Implementation) ≥ 0.05 and perl(Module::Runtime) ≥ 0.012
- BR: perl(Sub::Exporter::Progressive) rather than perl(Sub::Exporter)
- BR: perl(base), perl(constant), perl(Hash::Util::FieldHash) and
perl(Scalar::Util) for the pure-perl implementation
B-Hooks-EndOfScope-0.12-podcoverage.patch | 20 ++++++++++
perl-B-Hooks-EndOfScope.spec | 55 ++++++++++++++++++++++++-----
sources | 2 +-
3 files changed, 67 insertions(+), 10 deletions(-)
---
diff --git a/B-Hooks-EndOfScope-0.12-podcoverage.patch b/B-Hooks-EndOfScope-0.12-podcoverage.patch
new file mode 100644
index 0000000..17f7f0e
--- /dev/null
+++ b/B-Hooks-EndOfScope-0.12-podcoverage.patch
@@ -0,0 +1,20 @@
+--- 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/perl-B-Hooks-EndOfScope.spec b/perl-B-Hooks-EndOfScope.spec
index 1cd09e4..298d42a 100644
--- a/perl-B-Hooks-EndOfScope.spec
+++ b/perl-B-Hooks-EndOfScope.spec
@@ -1,28 +1,42 @@
Name: perl-B-Hooks-EndOfScope
-Version: 0.11
-Release: 3%{?dist}
+Version: 0.12
+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/F/FL/FLORA/B-Hooks-EndOfScope-%{version}.tar.gz
-Patch0: B-Hooks-EndOfScope-0.10-shellbangs.patch
+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
BuildArch: noarch
# Build
-BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
+BuildRequires: perl(ExtUtils::CBuilder)
+BuildRequires: perl(ExtUtils::MakeMaker)
# Module
-BuildRequires: perl(Sub::Exporter)
+# note: Variable::Magic only needed (version ≥ 0.48) by XS version
+# base, constant, Hash::Util::FieldHash and Scalar::Util only needed by PP version
+BuildRequires: perl(base)
+BuildRequires: perl(constant)
+BuildRequires: perl(Hash::Util::FieldHash)
+BuildRequires: perl(Module::Implementation) >= 0.05
+BuildRequires: perl(Module::Runtime) >= 0.012
+BuildRequires: perl(Scalar::Util)
+BuildRequires: perl(Sub::Exporter::Progressive) >= 0.001006
BuildRequires: perl(Variable::Magic) >= 0.48
# Test suite
+BuildRequires: perl(Devel::Hide) >= 0.0007
BuildRequires: perl(Test::More) >= 0.89
# Release tests
BuildRequires: perl(Pod::Coverage::TrustPod)
BuildRequires: perl(Test::EOL)
BuildRequires: perl(Test::NoTabs)
-BuildRequires: perl(Test::Pod)
+BuildRequires: perl(Test::Pod) >= 1.41
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires: perl(Module::Implementation) >= 0.05
+Requires: perl(Module::Runtime) >= 0.012
+Requires: perl(Variable::Magic) >= 0.48
%description
This module allows you to execute code when Perl has finished compiling the
@@ -31,8 +45,11 @@ surrounding scope.
%prep
%setup -q -n B-Hooks-EndOfScope-%{version}
+# Fix POD coverage
+%patch0
+
# Remove shellbangs from tests to placate rpmlint
-%patch0 -p1
+%patch2 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
@@ -50,8 +67,28 @@ make test RELEASE_TESTING=1
%doc Changes LICENSE README 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 Dec 5 2012 Paul Howarth <paul at city-fan.org> - 0.12-1
+- Update to 0.12
+ - Complete pure-perl implementation in addition to the one based on
+ Variable::Magic; you can specify the implementation explicitly by use-ing
+ B::Hooks::EndOfScope::PP or B::Hooks::EndOfScope::XS, or by setting
+ $ENV{B_HOOKS_ENDOFSCOPE_IMPLEMENTATION} to either 'XS' or 'PP'
+ - Switch from using Sub::Exporter to the more conservative
+ Sub::Exporter::Progressive
+- Add patch to fix POD coverage issues in new pure-perl implementation
+- This release by BOBTFISH -> update source URL
+- BR: perl(ExtUtils::CBuilder) ≥ 0.26, perl(Devel::Hide) ≥ 0.0007,
+ perl(Module::Implementation) ≥ 0.05 and perl(Module::Runtime) ≥ 0.012
+- BR: perl(Sub::Exporter::Progressive) rather than perl(Sub::Exporter)
+- BR: perl(base), perl(constant), perl(Hash::Util::FieldHash) and
+ perl(Scalar::Util) for the pure-perl implementation
+
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.11-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
diff --git a/sources b/sources
index f02ac21..1766a2f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-34aaf65de7886689fdbd398dbf6bc5a3 B-Hooks-EndOfScope-0.11.tar.gz
+1a536388be36b658ff50a621e0ee03a5 B-Hooks-EndOfScope-0.12.tar.gz
More information about the scm-commits
mailing list