File perl-Log-Dispatch-FileRotate.spec of Package perl-Log-Dispatch-FileRotate

# spec file for package perl-Log-Dispatch-FileRotate
# Copyright (c) 2011 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

# norootforbuild

Name:           perl-Log-Dispatch-FileRotate
%define cpan_name Log-Dispatch-FileRotate
Summary:        Log to files that archive/rotate themselves
Version:        1.19
Release:        12
License:        Artistic-1.0
Group:          Development/Libraries/Perl
Source0:        %{cpan_name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(Fcntl)
#BuildRequires:  perl(Module::Build)
# other not perl || perl-base
BuildRequires:  perl(Date::Manip)
BuildRequires:  perl(Log::Log4perl) >= 1.0
BuildRequires:  perl(Log::Dispatch::Output)
BuildRequires:  perl(Params::Validate)
Requires:       perl(File::Spec)
# other not perl || perl-base
Requires:       perl(Date::Manip)
Requires:       perl(Log::Dispatch)
Requires:       perl(Log::Log4perl) >= 1.0
Requires:       perl(Params::Validate)
Provides:       %{cpan_name}

This module provides a simple object for logging to files under the
Log::Dispatch::* system, and automatically rotating them according to
different constraints. This is basically a Log::Dispatch::File wrapper
with additions. To that end the arguments

        name, min_level, filename and  mode

behave the same as Log::Dispatch::File. So see its man page (perldoc

    Mark Pfeiffer, <>
     inspired by Dave Rolsky's, <>, code :-)

    Kevin Goess <> suggested multiple writers should be supported.
     He also conned me into doing the time based stuff. Thanks Kevin! :-)

    Thanks also to Dan Waldheim for helping with some of the locking
     issues in a forked environment.

    And thanks to Stephen Gordon for his more portable code on lockfile naming.

%setup -q -n %{cpan_name}-%{version}


%{__make} test


%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files
%doc Changes README