Blame SPECS/perl-B-Hooks-EndOfScope.spec

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