File perl-Log-Dispatch-Array.spec of Package perl-Log-Dispatch-Array
# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Log-Dispatch-Array
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Log-Dispatch-Array
Version: 1.001
Release: 0
Summary: Log events to an array
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Log::Dispatch::Output)
BuildRequires: perl(Test::Deep)
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}
%changelog