package created by autospec [release 0.22-1mamba;Fri Feb 18 2011]
This commit is contained in:
parent
ec9827a4e9
commit
d3a87f3dee
@ -1,2 +1,8 @@
|
|||||||
# perl-Hook-LexWrap
|
# perl-Hook-LexWrap
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
57
perl-Hook-LexWrap.spec
Normal file
57
perl-Hook-LexWrap.spec
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
||||||
|
|
||||||
|
Name: perl-Hook-LexWrap
|
||||||
|
Version: 0.22
|
||||||
|
Release: 1mamba
|
||||||
|
Summary: Hook::LexWrap - Lexically scoped subroutine wrappers
|
||||||
|
Group: System/Libraries/Perl
|
||||||
|
Vendor: openmamba
|
||||||
|
Distribution: openmamba
|
||||||
|
Packager: gil <puntogil@libero.it>
|
||||||
|
URL: http://www.cpan.org
|
||||||
|
Source: http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Hook-LexWrap-%{version}.zip
|
||||||
|
License: GPL, Artistic
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
BuildRequires: perl(Test::Pod)
|
||||||
|
BuildRequires: perl-devel
|
||||||
|
Requires: perl >= %perl_major_ver
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
|
%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}
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
||||||
|
%make
|
||||||
|
%make test
|
||||||
|
|
||||||
|
%install
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
%makeinstall_perl
|
||||||
|
|
||||||
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||||
|
find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
|
||||||
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||||||
|
chmod -R u+w %{buildroot}/*
|
||||||
|
|
||||||
|
%clean
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{perl_vendorlib}/Hook/
|
||||||
|
%{_mandir}/man3/*.3pm.gz
|
||||||
|
%doc Changes README
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Feb 18 2011 gil <puntogil@libero.it> 0.22-1mamba
|
||||||
|
- package created by autospec
|
Loading…
x
Reference in New Issue
Block a user