File perl-Log-Dispatch.spec of Package perl-Log-Dispatch
#
# spec file for package perl-Log-Dispatch (Version 2.26)
#
# Copyright (c) 2010 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/
#
# norootforbuild
Name: perl-Log-Dispatch
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Dispatches messages to one or more outputs
Version: 2.26
Release: 3
License: Artistic ; GPLv2+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Log-Dispatch
Source: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Test::More)
BuildRequires: perl(File::Temp)
# other not perl || perl-base
BuildRequires: perl(Params::Validate) >= 0.15
BuildRequires: perl(Sys::Syslog) >= 0.16
Requires: perl = %{perl_version}
Requires: perl(Params::Validate) >= 0.15
Requires: perl(Sys::Syslog) >= 0.16
Provides: %{cpan_name}
%description
Log::Dispatch is a suite of OO modules for logging messages to
multiple outputs, each of which can have a minimum and maximum log
level. It is designed to be easily subclassed, both for creating a
new dispatcher object and particularly for creating new outputs.
It also allows both global (dispatcher level) and local (logging
object) message formatting callbacks which allows greater flexibility
and should reduce the need for subclassing.
Subclassing is only needed to send a message to a different output,
not to change the message format.
Please see the Log::Dispatch documentation for more details.
Authors:
--------
Dave Rolsky <autarch@urth.org >
%prep
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes LICENSE README SIGNATURE
%changelog