2010-11-05 11:38:33 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: perl-Log-Dispatch-Array
|
|
|
|
Version: 1.001
|
|
|
|
Release: 0
|
|
|
|
Summary: Log events to an array
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Log-Dispatch-Array-%{version}.tar.gz
|
|
|
|
URL: http://search.cpan.org/dist/Log-Dispatch-Array
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Perl License
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
2010-12-01 13:48:25 +00:00
|
|
|
%{perl_requires}
|
2010-11-05 11:38:33 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: perl(Test::Deep)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(Log::Dispatch::Output)
|
|
|
|
Requires: perl(Log::Dispatch::Output)
|
|
|
|
|
|
|
|
%description
|
|
|
|
This provides a Log::Dispatch log output system that appends logged events
|
|
|
|
to an array reference. This is probably only useful for testing the
|
|
|
|
logging of your code.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "Log-Dispatch-Array-%{version}"
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
|
|
|
|
%build
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%check
|
|
|
|
%__make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes README
|
|
|
|
%dir %{perl_vendorlib}/Log
|
|
|
|
%dir %{perl_vendorlib}/Log/Dispatch
|
|
|
|
%{perl_vendorlib}/Log/Dispatch/Array.pm
|
|
|
|
%dir %{perl_vendorarch}/auto/Log
|
|
|
|
%dir %{perl_vendorarch}/auto/Log/Dispatch
|
|
|
|
%{perl_vendorarch}/auto/Log/Dispatch/Array
|
|
|
|
%doc %{perl_man3dir}/Log::Dispatch::Array.%{perl_man3ext}%{ext_man}
|
|
|
|
|