diff --git a/.cvsignore b/.cvsignore index e69de29..55fbcb0 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +B-Hooks-EndOfScope-0.04.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..b1dad32 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-B-Hooks-EndOfScope-0_04-1_fc9:HEAD:perl-B-Hooks-EndOfScope-0.04-1.fc9.src.rpm:1228173521 diff --git a/perl-B-Hooks-EndOfScope.spec b/perl-B-Hooks-EndOfScope.spec new file mode 100644 index 0000000..1c42aea --- /dev/null +++ b/perl-B-Hooks-EndOfScope.spec @@ -0,0 +1,58 @@ +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) + diff --git a/sources b/sources index e69de29..d68f619 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1705a0643af266ad902f8dda2212dd78 B-Hooks-EndOfScope-0.04.tar.gz