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

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