parent
b9d15e8f4b
commit
3508fe9500
@ -0,0 +1 @@
|
||||
Hook-LexWrap-0.20.tar.gz
|
@ -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 <jpo at di.uminho.pt> - 0.20-1
|
||||
- First build.
|
Loading…
Reference in new issue