8b91e79
Name:		perl-B-Hooks-EndOfScope
3094cdb
Version:	0.10
8b91e79
Release:	1%{?dist}
8b91e79
License:	GPL+ or Artistic
8b91e79
Group:		Development/Libraries
8b91e79
Summary:	Execute code after scope compilation finishes
8b91e79
Url:		http://search.cpan.org/dist/B-Hooks-EndOfScope
3094cdb
Source0:	http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/B-Hooks-EndOfScope-%{version}.tar.gz
3094cdb
Patch0:		B-Hooks-EndOfScope-0.10-shellbangs.patch
8b91e79
BuildArch:	noarch
8b91e79
# Build
3094cdb
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.30
8b91e79
# Module
8b91e79
BuildRequires:	perl(Sub::Exporter)
8b91e79
BuildRequires:	perl(Variable::Magic) >= 0.34
8b91e79
# Test suite
3094cdb
BuildRequires:	perl(Test::More) >= 0.89
8b91e79
# Release tests
8b91e79
BuildRequires:	perl(Pod::Coverage::TrustPod)
3094cdb
BuildRequires:	perl(Test::EOL)
3094cdb
BuildRequires:	perl(Test::NoTabs)
8b91e79
BuildRequires:	perl(Test::Pod)
8b91e79
BuildRequires:	perl(Test::Pod::Coverage)
8b91e79
# Runtime
8b91e79
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
3094cdb
# Remove shellbangs from tests to placate rpmlint
3094cdb
%patch0 -p1
3094cdb
Chris Weyl f0c3bd2
%build
8b91e79
perl Makefile.PL INSTALLDIRS=vendor
Chris Weyl f0c3bd2
make %{?_smp_mflags}
Chris Weyl f0c3bd2
Chris Weyl f0c3bd2
%install
8b91e79
make pure_install DESTDIR=%{buildroot}
Chris Weyl f0c3bd2
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
8b91e79
%{_fixperms} %{buildroot}
Chris Weyl f0c3bd2
Chris Weyl f0c3bd2
%check
8b91e79
make test RELEASE_TESTING=1
Chris Weyl f0c3bd2
Chris Weyl f0c3bd2
%files
3094cdb
%doc Changes LICENSE README t/
8b91e79
%{perl_vendorlib}/B/
8b91e79
%{_mandir}/man3/B::Hooks::EndOfScope.3pm*
Chris Weyl f0c3bd2
Chris Weyl f0c3bd2
%changelog
3094cdb
* Thu Feb 16 2012 Paul Howarth <paul@city-fan.org> - 0.10-1
3094cdb
- Update to 0.10 (stop propagating our magic through localisation)
3094cdb
- Package LICENSE file
3094cdb
- Downgrade ExtUtils::MakeMaker version requirement to 6.30
3094cdb
- Upgrade Test::More version requirement to 0.89
3094cdb
- Drop Test::Pod version requirement for EPEL-6 spec compatibility
3094cdb
- BR: perl(Test::EOL) and perl(Test::NoTabs) for additional test coverage
3094cdb
- Clean up for modern rpmbuild since we have no branches prior to EPEL-6
3094cdb
  - Don't specify BuildRoot:
3094cdb
  - Skip cleaning of buildroot in %%install
3094cdb
  - Remove %%clean section
3094cdb
  - Drop redundant %%defattr
3094cdb
- Remove shellbangs from tests to placate rpmlint
3094cdb
8b91e79
* Tue Jan 17 2012 Paul Howarth <paul@city-fan.org> - 0.09-1
8b91e79
- Update to 0.09 (improve distribution metadata)
8b91e79
- Run release tests too
8b91e79
- BR: perl(Pod::Coverage::TrustPod), perl(Test::Pod) and
8b91e79
  perl(Test::Pod::Coverage) for release tests
8b91e79
- Spec clean-up:
8b91e79
  - Make %%files list more explicit
8b91e79
  - Use DESTDIR rather than PERL_INSTALL_ROOT
8b91e79
  - Use tabs
8b91e79
  - Split buildreqs by Build/Module/Tests/Release tests
8b91e79
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)