Hello community,
here is the log from the commit of package perl-Log-Dispatch-FileRotate for
openSUSE:Factory checked in at 2017-01-22 00:21:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Log-Dispatch-FileRotate (Old)
and /work/SRC/openSUSE:Factory/.perl-Log-Dispatch-FileRotate.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Log-Dispatch-FileRotate"
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Log-Dispatch-FileRotate/perl-Log-Dispatch-FileRotate.changes
2011-11-21 12:42:26.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Log-Dispatch-FileRotate.new/perl-Log-Dispatch-FileRotate.changes
2017-01-22 00:21:17.153843092 +0100
@@ -1,0 +2,17 @@
+Fri Oct 7 05:57:27 UTC 2016 - [email protected]
+
+- updated to 1.22
+ see /usr/share/doc/packages/perl-Log-Dispatch-FileRotate/Changes
+
+-------------------------------------------------------------------
+Sun Oct 2 05:37:18 UTC 2016 - [email protected]
+
+- updated to 1.20
+ see /usr/share/doc/packages/perl-Log-Dispatch-FileRotate/Changes
+
+
+ 1.20 Sat Oct 01 2016
+ - Fix Date::Manip warnings about deprecated TZ config variable. If
+ Date::Manip 6.x or later is installed we now use SetDate instead.
+
+-------------------------------------------------------------------
Old:
----
Log-Dispatch-FileRotate-1.19.tar.gz
New:
----
Log-Dispatch-FileRotate-1.22.tar.gz
cpanspec.yml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Log-Dispatch-FileRotate.spec ++++++
--- /var/tmp/diff_new_pack.6Lsu7h/_old 2017-01-22 00:21:18.061714591 +0100
+++ /var/tmp/diff_new_pack.6Lsu7h/_new 2017-01-22 00:21:18.061714591 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-Log-Dispatch-FileRotate
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,68 +15,91 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
-# norootforbuild
-
Name: perl-Log-Dispatch-FileRotate
+Version: 1.22
+Release: 0
%define cpan_name Log-Dispatch-FileRotate
-Summary: Log to files that archive/rotate themselves
-Version: 1.19
-Release: 12
-License: Artistic-1.0
+Summary: Log to Files that Archive/Rotate Themselves
+License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
-Url: http://search.cpan.org/dist/Log-Dispatch-FileRotate
-Source0: %{cpan_name}-%{version}.tar.gz
+Url: http://search.cpan.org/dist/Log-Dispatch-FileRotate/
+Source0:
http://www.cpan.org/authors/id/M/MS/MSCHOUT/%{cpan_name}-%{version}.tar.gz
+Source1: cpanspec.yml
+BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%{perl_requires}
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::File)
BuildRequires: perl(Log::Dispatch::Output)
BuildRequires: perl(Params::Validate)
-Requires: perl(File::Spec)
-# other not perl || perl-base
+BuildRequires: perl(Path::Tiny) >= 0.018
+BuildRequires: perl(Test::More) >= 0.88
+BuildRequires: perl(version)
Requires: perl(Date::Manip)
-Requires: perl(Log::Dispatch)
-Requires: perl(Log::Log4perl) >= 1.0
+Requires: perl(Log::Dispatch::File)
+Requires: perl(Log::Dispatch::Output)
Requires: perl(Params::Validate)
-Provides: %{cpan_name}
+Requires: perl(version)
+%{perl_requires}
%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
+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)
-Authors:
---------
- Mark Pfeiffer, <[email protected]>
- inspired by Dave Rolsky's, <[email protected]>, code :-)
+The arguments size and max specify the maximum size and maximum number of
+log files created. The size defaults to 10M and the max number of files
+defaults to 1. If DatePattern is not defined then we default to working in
+size mode. That is, use size values for deciding when to rotate.
+
+Once DatePattern is defined FileRotate will move into time mode. Once this
+happens file rotation ignores size constraints and uses the defined date
+pattern constraints.
+
+If you setup a config file using Log::Log4perl::init_and_watch() or the
+like, you can switch between modes just by commenting out the DatePattern
+line.
+
+When using DatePattern make sure TZ is defined correctly and that the TZ
+you use is understood by Date::Manip. We use Date::Manip to generate our
+recurrences. Bad TZ equals bad recurrences equals surprises! Read the
+Date::Manip man page for more details on TZ.
+
+DatePattern will default to a daily rotate if your entered pattern is
+incorrect. You will also get a warning message.
+
+If you have multiple writers that were started at different times you will
+find each writer will try to rotate the log file at a recurrence calculated
+from its start time. To sync all the writers just use a config file and
+update it after starting your last writer. This will cause
+Log::Dispatch::FileRotate->new() to be called by each of the writers close
+to the same time, and if your recurrences aren't too close together all
+should sync up just nicely.
+
+I initially aasumed a long runinng process but it seems people are using
+this module as part of short running CGI programs. So, now we look at the
+last modified time stamp of the log file and compare it to a previous
+occurance of a DatePattern, on startup only. If the file stat shows the
+mtime to be earlier than the previous recurrance then I rotate the log
+file.
- Kevin Goess <[email protected]> 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.
+We handle multiple writers using flock().
%prep
%setup -q -n %{cpan_name}-%{version}
+find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%build
-perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS"
-%{__make}
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__make} %{?_smp_mflags}
%check
%{__make} test
@@ -86,11 +109,8 @@
%perl_process_packlist
%perl_gen_filelist
-%clean
-%{__rm} -rf $RPM_BUILD_ROOT
-
%files -f %{name}.files
-%defattr(-,root,root)
-%doc Changes README
+%defattr(-,root,root,755)
+%doc Changes LICENSE README
%changelog
++++++ Log-Dispatch-FileRotate-1.19.tar.gz ->
Log-Dispatch-FileRotate-1.22.tar.gz ++++++
++++ 3498 lines of diff (skipped)
++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module