Name: perl-B-Hooks-EndOfScope Version: 0.04 Release: 1%{?dist} # see lib/B/Hooks/EndOfScope.pm License: GPL+ or Artistic Group: Development/Libraries Summary: Execute code after scope compilation finishes Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/B-Hooks-EndOfScope-%{version}.tar.gz Url: http://search.cpan.org/dist/B-Hooks-EndOfScope BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Scope::Guard) BuildRequires: perl(Sub::Exporter) BuildRequires: perl(Test::More) %description This module allows you to execute code when Perl has finished compiling the surrounding scope. %prep %setup -q -n B-Hooks-EndOfScope-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes README t/ %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Sat Nov 08 2008 Chris Weyl 0.04-1 - update for submission * Sat Nov 08 2008 Chris Weyl 0.04-0.1 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.5)