From 3508fe95003fa14faba5164f52f23e2ff54063c1 Mon Sep 17 00:00:00 2001 From: Jose Pedro Oliveira Date: Fri, 2 Sep 2005 22:50:32 +0000 Subject: [PATCH] auto-import perl-Hook-LexWrap-0.20-1 on branch devel from perl-Hook-LexWrap-0.20-1.src.rpm --- .cvsignore | 1 + perl-Hook-LexWrap.spec | 58 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 60 insertions(+) create mode 100644 perl-Hook-LexWrap.spec diff --git a/.cvsignore b/.cvsignore index e69de29..dde92e0 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Hook-LexWrap-0.20.tar.gz diff --git a/perl-Hook-LexWrap.spec b/perl-Hook-LexWrap.spec new file mode 100644 index 0000000..bc9a00c --- /dev/null +++ b/perl-Hook-LexWrap.spec @@ -0,0 +1,58 @@ +Name: perl-Hook-LexWrap +Version: 0.20 +Release: 1%{?dist} +Summary: Lexically scoped subroutine wrappers + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/Hook-LexWrap/ +Source0: http://www.cpan.org/authors/id/D/DC/DCONWAY/Hook-LexWrap-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Hook::LexWrap allows you to install a pre- or post-wrapper (or both) +around an existing subroutine. Unlike other modules that provide this +capacity (e.g. Hook::PreAndPost and Hook::WrapSub), Hook::LexWrap +implements wrappers in such a way that the standard `caller' function +works correctly within the wrapped subroutine. + + +%prep +%setup -q -n Hook-LexWrap-%{version} +chmod a-x Changes README lib/Hook/*.pm + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/Hook/ +%{_mandir}/man3/*.3* + + +%changelog +* Fri Aug 26 2005 Jose Pedro Oliveira - 0.20-1 +- First build. diff --git a/sources b/sources index e69de29..e10ef6e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e3aaeb59a3adddc80ed3867e4d16654e Hook-LexWrap-0.20.tar.gz