9d69cb5
# Run extra test
60a4dd1
%if 0%{?perl_bootstrap:1} || ( 0%{?rhel} )
9d69cb5
%bcond_with perl_B_Hooks_EndOfScope_enables_extra_test
60a4dd1
%else
60a4dd1
%bcond_without perl_B_Hooks_EndOfScope_enables_extra_test
9d69cb5
%endif
9d69cb5
# Run optional test
9d69cb5
%bcond_without perl_B_Hooks_EndOfScope_enables_optional_test
9d69cb5
38a976e
Name:		perl-B-Hooks-EndOfScope
0f5109e
Version:	0.24
40e7dfe
Release:	12%{?dist}
38a976e
License:	GPL+ or Artistic
38a976e
Summary:	Execute code after scope compilation finishes
e2eee95
URL:		https://metacpan.org/release/B-Hooks-EndOfScope
e2eee95
Source0:	https://cpan.metacpan.org/authors/id/E/ET/ETHER/B-Hooks-EndOfScope-%{version}.tar.gz
0f0255b
Patch0:		B-Hooks-EndOfScope-0.13-shellbangs.patch
38a976e
BuildArch:	noarch
38a976e
# Build
e68b2f6
BuildRequires:	coreutils
e68b2f6
BuildRequires:	findutils
e68b2f6
BuildRequires:	make
65559c4
BuildRequires:	perl-generators
0f5109e
BuildRequires:	perl-interpreter
6ca03da
BuildRequires:	perl(ExtUtils::MakeMaker)
e68b2f6
BuildRequires:	perl(lib)
e68b2f6
BuildRequires:	perl(Text::ParseWords)
0f5109e
# Dependencies of bundled ExtUtils::HasCompiler
0f5109e
BuildRequires:	perl(base)
0f5109e
BuildRequires:	perl(Config)
0f5109e
BuildRequires:	perl(DynaLoader)
0f5109e
BuildRequires:	perl(Exporter)
0f5109e
BuildRequires:	perl(File::Basename)
0f5109e
BuildRequires:	perl(File::Spec::Functions)
0f5109e
BuildRequires:	perl(File::Temp)
4969698
# Common Module Requirements
4969698
BuildRequires:	perl(Module::Implementation) >= 0.05
4969698
BuildRequires:	perl(Sub::Exporter::Progressive) >= 0.001006
4969698
BuildRequires:	perl(strict)
4969698
BuildRequires:	perl(warnings)
4969698
# PP Implementation Only
4969698
BuildRequires:	perl(Carp)
6ca03da
BuildRequires:	perl(constant)
6ca03da
BuildRequires:	perl(Hash::Util::FieldHash)
6ca03da
BuildRequires:	perl(Scalar::Util)
4969698
BuildRequires:	perl(Tie::Hash)
4969698
BuildRequires:	perl(Tie::StdHash)
4969698
# XS Implementation Only
36afc53
BuildRequires:	perl(Variable::Magic) >= 0.48
38a976e
# Test suite
4969698
BuildRequires:	perl(Config)
6ca03da
BuildRequires:	perl(Devel::Hide) >= 0.0007
4969698
BuildRequires:	perl(File::Glob)
4969698
BuildRequires:	perl(File::Spec)
4969698
BuildRequires:	perl(IPC::Open2)
0f5109e
BuildRequires:	perl(Test::More) >= 0.88
4969698
# Optional Tests
0f5109e
%if %{with perl_B_Hooks_EndOfScope_enables_optional_test}
4969698
BuildRequires:	perl(CPAN::Meta) >= 2.120900
4969698
BuildRequires:	perl(CPAN::Meta::Prereqs)
9d69cb5
%endif
e68b2f6
# Author/Release tests
0f5109e
# Note:
0f5109e
# * Test::Pod::No404s intentionally omitted as it would fail due to
0f5109e
#   missing connectivity in the koji build environment
0f5109e
# * ExtUtils::HasCompiler is bundled, so we don't need to BuildRequire it
60a4dd1
%if %{with perl_B_Hooks_EndOfScope_enables_extra_test}
e68b2f6
BuildRequires:	perl(blib)
0f5109e
BuildRequires:	perl(Encode)
4969698
BuildRequires:	perl(IO::Handle)
4969698
BuildRequires:	perl(IPC::Open3)
0f5109e
BuildRequires:	perl(Path::Tiny) >= 0.062
38a976e
BuildRequires:	perl(Pod::Coverage::TrustPod)
4969698
BuildRequires:	perl(Pod::Wordlist)
0f0255b
BuildRequires:	perl(Test::CPAN::Changes)
0f0255b
BuildRequires:	perl(Test::CPAN::Meta)
0f5109e
BuildRequires:	perl(Test::Deep)
054a1f8
BuildRequires:	perl(Test::EOL)
4969698
BuildRequires:	perl(Test::Kwalitee) >= 1.21
0f0255b
BuildRequires:	perl(Test::MinimumVersion)
0f0255b
BuildRequires:	perl(Test::Mojibake)
e68b2f6
BuildRequires:	perl(Test::More) >= 0.96
054a1f8
BuildRequires:	perl(Test::NoTabs)
6ca03da
BuildRequires:	perl(Test::Pod) >= 1.41
38a976e
BuildRequires:	perl(Test::Pod::Coverage) >= 1.08
0f0255b
BuildRequires:	perl(Test::Portability::Files)
0f0255b
BuildRequires:	perl(Test::Spelling), hunspell-en
0f0255b
%endif
38a976e
# Runtime
38a976e
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Chris Weyl f0c3bd2
Chris Weyl f0c3bd2
%description
Chris Weyl f0c3bd2
This module allows you to execute code when Perl has finished compiling the
Chris Weyl f0c3bd2
surrounding scope.
Chris Weyl f0c3bd2
Chris Weyl f0c3bd2
%prep
Chris Weyl f0c3bd2
%setup -q -n B-Hooks-EndOfScope-%{version}
Chris Weyl f0c3bd2
054a1f8
# Remove shellbangs from tests to placate rpmlint
0f0255b
%patch0
054a1f8
e68b2f6
# British-English spelling LICENCE upsets US spell checker
e68b2f6
echo LICENCE >> xt/author/pod-spell.t
e68b2f6
Chris Weyl f0c3bd2
%build
38a976e
perl Makefile.PL INSTALLDIRS=vendor
Chris Weyl f0c3bd2
make %{?_smp_mflags}
Chris Weyl f0c3bd2
Chris Weyl f0c3bd2
%install
38a976e
make pure_install DESTDIR=%{buildroot}
e68b2f6
find %{buildroot} -type f -name .packlist -delete
0f5109e
%{_fixperms} -c %{buildroot}
Chris Weyl f0c3bd2
Chris Weyl f0c3bd2
%check
60a4dd1
%if %{with perl_B_Hooks_EndOfScope_enables_extra_test}
0f0255b
export AUTHOR_TESTING=1
60a4dd1
%endif
0f0255b
make test
9d69cb5
%if %{with perl_B_Hooks_EndOfScope_enables_extra_test}
0f0255b
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
0f0255b
%endif
Chris Weyl f0c3bd2
Chris Weyl f0c3bd2
%files
e68b2f6
%license LICENCE
4969698
%doc Changes CONTRIBUTING README t/
38a976e
%{perl_vendorlib}/B/
4969698
%{_mandir}/man3/B::Hooks::EndOfScope.3*
4969698
%{_mandir}/man3/B::Hooks::EndOfScope::PP.3*
4969698
%{_mandir}/man3/B::Hooks::EndOfScope::XS.3*
Chris Weyl f0c3bd2
Chris Weyl f0c3bd2
%changelog
40e7dfe
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-12
40e7dfe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
40e7dfe
9cbc5f6
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-11
9cbc5f6
- Perl 5.32 re-rebuild of bootstrapped packages
9cbc5f6
e40241c
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-10
e40241c
- Perl 5.32 rebuild
e40241c
cc3dd51
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-9
cc3dd51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cc3dd51
d9b5d90
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-8
d9b5d90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d9b5d90
a981546
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-7
a981546
- Perl 5.30 re-rebuild of bootstrapped packages
a981546
60c5824
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-6
60c5824
- Perl 5.30 rebuild
60c5824
5ed6fe2
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-5
5ed6fe2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5ed6fe2
25f0452
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24-4
25f0452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
25f0452
ee008e3
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-3
ee008e3
- Perl 5.28 re-rebuild of bootstrapped packages
ee008e3
a099713
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.24-2
a099713
- Perl 5.28 rebuild
a099713
0f5109e
* Tue Apr 24 2018 Paul Howarth <paul@city-fan.org> - 0.24-1
0f5109e
- Update to 0.24
0f5109e
  - Fix memory corruption on perls 5.8.0 - 5.8.3
0f5109e
  - Improve use of constants in compile-time perl version checks
0f5109e
- BR: perl-generators unconditionally
0f5109e
- Drop legacy Group: tag
0f5109e
8a06801
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-6
8a06801
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8a06801
77ab9d3
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-5
77ab9d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
77ab9d3
a26e1c6
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.21-4
a26e1c6
- Perl 5.26 re-rebuild of bootstrapped packages
a26e1c6
361eb5e
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.21-3
361eb5e
- Perl 5.26 rebuild
361eb5e
b3cc7a9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-2
b3cc7a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b3cc7a9
65559c4
* Thu May 26 2016 Paul Howarth <paul@city-fan.org> - 0.21-1
65559c4
- Update to 0.21
65559c4
  - Work with Object::Remote by removing require() call on Tie::StdHash in PP
65559c4
d9ed151
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.20-3
d9ed151
- Perl 5.24 re-rebuild of bootstrapped packages
d9ed151
327822d
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.20-2
327822d
- Perl 5.24 rebuild
327822d
0039fca
* Sat May  7 2016 Paul Howarth <paul@city-fan.org> - 0.20-1
0039fca
- Update to 0.20
0039fca
  - Remove unnecessary and erroneous extra crud in inc/
0039fca
e68b2f6
* Tue May  3 2016 Paul Howarth <paul@city-fan.org> - 0.19-1
e68b2f6
- Update to 0.19
e68b2f6
  - More Makefile.PL updates
e68b2f6
  - Makefile.PL now checks for a working compiler using ExtUtils::HasCompiler
e68b2f6
    (inlined into the build) rather than ExtUtils::CBuilder (CPAN RT#113685)
e68b2f6
- Simplify find command using -delete
e68b2f6
- Fix EPEL conditional - only currently buildable for EPEL 7 onwards
e68b2f6
- Drop BR: for Test::Pod::No404s, which breaks koji builds
e68b2f6
6788c35
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-5
6788c35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6788c35
4d6c0ba
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-4
4d6c0ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4d6c0ba
f2f155a
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-3
f2f155a
- Perl 5.22 re-rebuild of bootstrapped packages
f2f155a
c266bfa
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-2
c266bfa
- Perl 5.22 rebuild
c266bfa
ca8011d
* Fri May 15 2015 Paul Howarth <paul@city-fan.org> - 0.15-1
ca8011d
- Update to 0.15
ca8011d
  - Updated the tooling for generating Makefile.PL
ca8011d
  - Removed Tie::StdHash from prereqs, which is not require()able as a module
ca8011d
    on its own, despite being indexed (GH #3)
ca8011d
  - Fixed the addition in release 0.14 of Hash::Util::FieldHash as a
ca8011d
    prerequisite (which is not available prior to perl 5.010) for pure-perl
ca8011d
    installations (CPAN RT#104435)
ca8011d
4969698
* Sun Feb  1 2015 Paul Howarth <paul@city-fan.org> - 0.14-1
4969698
- Update to 0.14
4969698
  - Line numbers in shipped code are now the same as the repository source, for
4969698
    easier debugging
4969698
  - More accurate dynamic prereq declarations
4969698
- Use %%license
4969698
f36fa02
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-5
f36fa02
- Perl 5.20 re-rebuild of bootstrapped packages
f36fa02
04965f7
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.13-4
04965f7
- Perl 5.20 rebuild
04965f7
b35a419
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.13-3
b35a419
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b35a419
1912447
* Wed Jan 15 2014 Paul Howarth <paul@city-fan.org> - 0.13-2
1912447
- Bootstrap EPEL-7 build
1912447
0f0255b
* Wed Jan  8 2014 Paul Howarth <paul@city-fan.org> - 0.13-1
0f0255b
- Update to 0.13
0f0255b
  - Variable::Magic added as a runtime recommendation for greater visibility
0f0255b
    (CPAN RT#89245)
0f0255b
  - Fixed broken logic in compiler detection on older perls
0f0255b
  - Fixed inaccurate repository metadata
0f0255b
- This release by ETHER -> update source URL
0f0255b
- Drop Pod Coverage patch, no longer needed
0f0255b
- Update shellbang patch
0f0255b
- Don't run the release tests when bootstrapping
0f0255b
e750d1e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-4
e750d1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e750d1e
319658d
* Wed Jul 24 2013 Petr Pisar <ppisar@redhat.com> - 0.12-3
319658d
- Perl 5.18 rebuild
319658d
5cd8d12
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
5cd8d12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5cd8d12
6ca03da
* Wed Dec  5 2012 Paul Howarth <paul@city-fan.org> - 0.12-1
6ca03da
- Update to 0.12
6ca03da
  - Complete pure-perl implementation in addition to the one based on
6ca03da
    Variable::Magic; you can specify the implementation explicitly by use-ing
6ca03da
    B::Hooks::EndOfScope::PP or B::Hooks::EndOfScope::XS, or by setting
6ca03da
    $ENV{B_HOOKS_ENDOFSCOPE_IMPLEMENTATION} to either 'XS' or 'PP'
6ca03da
  - Switch from using Sub::Exporter to the more conservative
6ca03da
    Sub::Exporter::Progressive
6ca03da
- Add patch to fix POD coverage issues in new pure-perl implementation
6ca03da
- This release by BOBTFISH -> update source URL
6ca03da
- BR: perl(ExtUtils::CBuilder) ≥ 0.26, perl(Devel::Hide) ≥ 0.0007,
6ca03da
  perl(Module::Implementation) ≥ 0.05 and perl(Module::Runtime) ≥ 0.012
6ca03da
- BR: perl(Sub::Exporter::Progressive) rather than perl(Sub::Exporter)
6ca03da
- BR: perl(base), perl(constant), perl(Hash::Util::FieldHash) and
6ca03da
  perl(Scalar::Util) for the pure-perl implementation
6ca03da
300f77b
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
300f77b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
300f77b
507271d
* Fri Jun 15 2012 Petr Pisar <ppisar@redhat.com> - 0.11-2
507271d
- Perl 5.16 rebuild
507271d
36afc53
* Thu Feb 23 2012 Paul Howarth <paul@city-fan.org> - 0.11-1
36afc53
- Update to 0.11 (a minor efficiency improvement)
36afc53
- Bump perl(Variable::Magic) version requirement to 0.48
36afc53
054a1f8
* Thu Feb 16 2012 Paul Howarth <paul@city-fan.org> - 0.10-1
054a1f8
- Update to 0.10 (stop propagating our magic through localisation)
054a1f8
- Package LICENSE file
054a1f8
- Downgrade ExtUtils::MakeMaker version requirement to 6.30
054a1f8
- Upgrade Test::More version requirement to 0.89
054a1f8
- Drop Test::Pod version requirement for EPEL-6 spec compatibility
054a1f8
- BR: perl(Test::EOL) and perl(Test::NoTabs) for additional test coverage
054a1f8
- Clean up for modern rpmbuild since we have no branches prior to EPEL-6
054a1f8
  - Don't specify BuildRoot:
054a1f8
  - Skip cleaning of buildroot in %%install
054a1f8
  - Remove %%clean section
054a1f8
  - Drop redundant %%defattr
054a1f8
- Remove shellbangs from tests to placate rpmlint
054a1f8
38a976e
* Tue Jan 17 2012 Paul Howarth <paul@city-fan.org> - 0.09-1
38a976e
- Update to 0.09 (improve distribution metadata)
38a976e
- Run release tests too
38a976e
- BR: perl(Pod::Coverage::TrustPod), perl(Test::Pod) and
38a976e
  perl(Test::Pod::Coverage) for release tests
38a976e
- Spec clean-up:
38a976e
  - Make %%files list more explicit
38a976e
  - Use DESTDIR rather than PERL_INSTALL_ROOT
38a976e
  - Use tabs
38a976e
  - Split buildreqs by Build/Module/Tests/Release tests
38a976e
be8af1c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-8
be8af1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
be8af1c
Petr Sabata 757f21b
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.08-7
Petr Sabata 757f21b
- Perl mass rebuild
Petr Sabata 757f21b
54b492b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-6
54b492b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
54b492b
Marcela Mašláňová a6cde41
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.08-5
38a976e
- Rebuild to fix problems with vendorarch/lib (#661697)
Marcela Mašláňová a6cde41
2564358
* Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.08-4
2564358
- Mass rebuild with perl-5.12.0
2564358
2f2f236
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.08-3
2f2f236
- rebuild against perl 5.10.1
2f2f236
bd8b95c
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-2
bd8b95c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bd8b95c
Chris Weyl ed8ff0a
* Sun May 17 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.08-1
Chris Weyl ed8ff0a
- auto-update to 0.08 (by cpan-spec-update 0.01)
Chris Weyl ed8ff0a
- altered br on perl(ExtUtils::MakeMaker) (0 => 6.42)
Chris Weyl ed8ff0a
- altered br on perl(Variable::Magic) (0.31 => 0.34)
Chris Weyl ed8ff0a
Chris Weyl d1a84ab
* Sun Mar 08 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.07-1
Chris Weyl d1a84ab
- update to 0.07
Chris Weyl d1a84ab
9c62cbe
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-2
9c62cbe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9c62cbe
Chris Weyl f0c3bd2
* Sat Nov 08 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.04-1
Chris Weyl f0c3bd2
- update for submission
Chris Weyl f0c3bd2
Chris Weyl f0c3bd2
* Sat Nov 08 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.04-0.1
Chris Weyl f0c3bd2
- initial RPM packaging
Chris Weyl f0c3bd2
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.5)