%define module Hook-LexWrap Summary: Lexically scoped subroutine wrappers Name: perl-%{module} Version: 0.22 Release: %mkrel 2 License: GPL or Artistic Group: Development/Perl URL: http://search.cpan.org/dist/%{module} Source0: http://www.cpan.org/modules/by-module/Hook/%{module}-%{version}.zip BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %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 %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make make test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README %{perl_vendorlib}/Hook %{_mandir}/*/* %changelog * Mon Sep 14 2009 Thierry Vignaud <tvignaud@mandriva.com> 0.22-2mdv2010.0 + Revision: 440579 - rebuild * Thu Feb 26 2009 Guillaume Rousse <guillomovitch@mandriva.org> 0.22-1mdv2009.1 + Revision: 345119 - update to new version 0.22 * Sun Nov 23 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.21-1mdv2009.1 + Revision: 306009 - new version * Wed Jul 23 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.20-4mdv2009.0 + Revision: 241444 - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Sat Sep 15 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.20-2mdv2008.0 + Revision: 86470 - rebuild * Wed Sep 13 2006 Oden Eriksson <oeriksson@mandriva.com> 0.20-1mdv2007.0 - rebuild * Fri Jul 15 2005 Oden Eriksson <oeriksson@mandriva.com> 0.20-1mdk - initial Mandriva package