2010-01-21 12:46:20 +00:00
|
|
|
#
|
2011-11-17 14:05:53 +00:00
|
|
|
# spec file for package perl-Log-Dispatch-FileRotate
|
2010-01-21 12:46:20 +00:00
|
|
|
#
|
2011-11-17 14:05:53 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-01-21 12:46:20 +00:00
|
|
|
#
|
|
|
|
# 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-FileRotate
|
2011-11-17 14:05:53 +00:00
|
|
|
%define cpan_name Log-Dispatch-FileRotate
|
2010-01-21 12:46:20 +00:00
|
|
|
Summary: Log to files that archive/rotate themselves
|
|
|
|
Version: 1.19
|
2011-11-17 14:05:53 +00:00
|
|
|
Release: 12
|
2010-01-21 12:46:20 +00:00
|
|
|
License: Artistic
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/Log-Dispatch-FileRotate
|
2011-11-18 09:11:35 +00:00
|
|
|
Source0: %{cpan_name}-%{version}.tar.gz
|
2010-01-21 12:46:20 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-10 16:55:42 +00:00
|
|
|
%{perl_requires}
|
2010-01-21 12:46:20 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(Fcntl)
|
|
|
|
#BuildRequires: perl(Module::Build)
|
2010-04-05 16:48:32 +00:00
|
|
|
# other not perl || perl-base
|
2010-01-21 12:46:20 +00:00
|
|
|
BuildRequires: perl(Date::Manip)
|
|
|
|
BuildRequires: perl(Log::Log4perl) >= 1.0
|
|
|
|
BuildRequires: perl(Log::Dispatch::Output)
|
|
|
|
BuildRequires: perl(Params::Validate)
|
|
|
|
Requires: perl(File::Spec)
|
2010-04-05 16:48:32 +00:00
|
|
|
# other not perl || perl-base
|
2010-01-21 12:46:20 +00:00
|
|
|
Requires: perl(Date::Manip)
|
|
|
|
Requires: perl(Log::Dispatch)
|
2010-04-05 16:48:32 +00:00
|
|
|
Requires: perl(Log::Log4perl) >= 1.0
|
2010-01-21 12:46:20 +00:00
|
|
|
Requires: perl(Params::Validate)
|
|
|
|
Provides: %{cpan_name}
|
|
|
|
|
|
|
|
%description
|
|
|
|
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
|
|
|
|
Log::Dispatch::File)
|
|
|
|
|
2011-08-30 20:24:29 +00:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Mark Pfeiffer, <markpf@mlp-consulting.com.au>
|
|
|
|
inspired by Dave Rolsky's, <autarchi@urth.org>, code :-)
|
2010-01-21 12:46:20 +00:00
|
|
|
|
2011-08-30 20:24:29 +00:00
|
|
|
Kevin Goess <cpan@goess.org> suggested multiple writers should be supported.
|
|
|
|
He also conned me into doing the time based stuff. Thanks Kevin! :-)
|
2010-01-21 12:46:20 +00:00
|
|
|
|
2011-08-30 20:24:29 +00:00
|
|
|
Thanks also to Dan Waldheim for helping with some of the locking
|
|
|
|
issues in a forked environment.
|
2010-01-21 12:46:20 +00:00
|
|
|
|
2011-08-30 20:24:29 +00:00
|
|
|
And thanks to Stephen Gordon for his more portable code on lockfile naming.
|
2010-01-21 12:46:20 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
%{__make}
|
|
|
|
|
|
|
|
%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 README
|
|
|
|
|
|
|
|
%changelog
|