File perl-Log-Log4perl.spec of Package perl-Log-Log4perl

# spec file for package perl-Log-Log4perl (Version 1.18)
# Copyright (c) 2008 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-Log4perl
Summary:        Log4j implementation for Perl
License:        Artistic License
Group:          Development/Libraries/Perl
AutoReqProv:    on
Version:        1.18
Release:        2
# for running all tests:
BuildRequires:  perl-DBD-CSV perl-Log-Dispatch perl-XML-DOM
Requires:       perl = %{perl_version}
Source:         Log-Log4perl-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Log::Log4perl lets you remote-control and fine-tune the logging
behaviour of your system from the outside. It implements the widely
popular (Java-based) Log4j logging package in pure Perl.

    Mike Schilli <>
    Kevin Goess <>

%setup q- -n Log-Log4perl-%{version}
# ---------------------------------------------------------------------------

perl Makefile.PL
make %{?jobs:-j%jobs}
# ---------------------------------------------------------------------------

make test

for file in eg/newsyslog-test eg/benchmarks/simple; do
	sed -i "s|/usr/local/bin/perl|%_bindir/perl|g" $file

%doc %{_mandir}/man3/*
%dir %{perl_vendorlib}/Log
%dir %{perl_vendorarch}/auto/Log
%dir %{perl_vendorarch}/auto/Log/Log4perl

* Tue Sep 16 2008
- fix rpmlint errors
* Fri Sep 05 2008
  * Added explanation that categories and loggers are the same
  thing (thanks to Rabbit).
  * Fixed t/053Resurrect to work with 5.005_03
  * Added preinit_callback function for init_and_watch()
  * Applied patch by Andy Grundman which speeds up is_LEVEL()
  calls by skipping unnecessary string concatenations
  * Applied patch by Jae Gangemi addding a no_warning option to the
  socket appender
  * Fixed test suite to run on Strawberry Perl on Win32.
  * Added 'l4p' as a valid prefix in configuration files (equal
  to 'log4j' and 'log4perl' now).
  * Changed appender destruction during cleanup to show warning
  messages thrown by destructors. Previously L4p ignored these
  messages which caused failed DB flushes to go unnoticed with
  the DB appender.
  * Added explanation for Log4perl messages during global
  destruction to FAQ.
  * Corrected 'Trapper' listing in FAQ, thanks to Christian Reiber.
  * Applied patch by Mitchell Perilstein for 5.005it and the
  two-argument binmode() that 5.005 doesn't support.
  * Applied patch by Emmanuel Rodriguez (POTYL) doing away with
  hard-coded line numbers in 024WarnDieCarp.t to make it work
  cpan2rpm for building RPM packages
  * Fixed recreate_check_interval = 0 bug reported by
  Bill Moseley.
  * Added 'header_text' parameter to the file appender to
  have it write a header every time it opens (or re-opens)
  a new log file (suggested by Steven Lembark).
  * version 1.18
* Fri Apr 04 2008
- version update from 1.12 to 1.15
- appender_thresholds_adjust() with a parameter of 0 now
  does nothing (requested by Oliver Koch).
- Added 'defer_connection' to Socket appender so it's more useful
  under Apache.
- [ #32738] fixed caller_depth for error_warn()
  (reported by Felix Antonius Wilhelm Ostmann)
- [ #32942] fixed get_logger() for subclassed Log4perl
  (reported by Felix Antonius Wilhelm Ostmann)
- Fixed test suite bug which surfaced in Darwin because temporary
  files contain '++' which freaked out the sloppy regex match.
- Better handling of empty config files (reported by Robert Raisch)
- Rewrote the Synchronized appender to use semaphores exclusivly
  (got rid of IPC::Shareable).
- Added Log::Log4perl::Util::Semaphore for easy semop handling
  Fixed t/026FileApp.t to work on MSWin32.
- Another doc fix by Craig
- Applied Fedora 7 patches
- Added create_at_logtime option to file appender
- Added trace level color (yellow) in ScreenColoredLevels
  appender as suggested by Arvind Jayaprakash in
* Mon Jul 16 2007
- version update from 1.07 to 1.12
- Added Log::Log4perl::Resurrector to resurrect commented-out
  Log4perl statements in all subsequently loaded modules (allows
  for deploying L4p-enabled CPAN modules without requiring L4p).
- Added ALWAYS easy mode macro (level=OFF)
- Fixed logconfess() frame level bug reported by Ali Mesdaq.
  Added test case.
- Added PatternLayout::Multiline code by Cory Bennett to
  render multiline messages.
- Added log level TRACE (lets through even more messages
  than DEBUG) (suggested by Craig).
- Added 'syswrite' flag to file appender to have it use
  'syswrite' instead of 'print', avoiding buffered or
  interleaving messages originating from different processes
  (thanks to Evan Miller).
- Nikita Dedik pointed out that Saturday is missing from
- Scott Cline noticed a potential problem with the DBI
  appender reconnection logic in 'buffered' mode. Applied
  a patch.
- Changed DBI reconnect logic to perform even if the DB
  is pingable again.
- Applied code by Valerio Valdez Paolini with modifications
  to to allow pulling values from
  the property configurator by path.
- Added $^S check to FAQ, as suggested by J. David Blackstone.
- Applied Robert Jacobson's patch for the "DDD" formatter
  in L4p::DateFormats, which now formats the day-of-year values
  numerically and precedes them with zeroes if necessary.
- Added %%M{x} PatternLayout notation as requested by
  Ankur Gupta.
- Another Win32 test suite fix, no longer deleting an open
  file but moving it aside (rt.cpan:23520).
- Applied test suite patch by Lars Thegler for
  ancient perl 5.005_03.
- Applied patch by Jeremy Bopp to fix test suite running
  under Cygwin.
- Fixed documentation bug in L4p:Appender::File,
  s/recreate_signal/recreate_check_signal. Thanks to
  Todd Chapman and Robert Jacobson for reporting this.
- Fixed init(), which now deletes any config file watchers
  left over from previous init_and_watch() calls. Reported
  by Andreas Koenig who saw sporadic errors in the test suite,
* Wed Oct 25 2006
- version update from 1.02 to 1.07
- minor bugfixes
- documentation enhanced
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Tue Jan 03 2006
- version update from 1.01 to 1.02
* Mon Dec 12 2005
- version update from 0.52 to 1.01
* Thu Sep 29 2005
- add norootforbuild
* Wed Jul 13 2005
- version update from 0.51 to 0.52
- fix for 3-letter month abbreviations
- shortcut to simulate Apache's log format
- better error message when a logger is defined
  twice in a config.
* Fri Jan 21 2005
- version update from 0.47 to 0.51
- Added umask option to file appender
- Added remove_appender() and eradicate_appender() method
- Added a generic buffered composite appender, L4p::Appender::Buffer
- Added ':resurrect' source filter
- Added 'appender_by_name()
- Added convenience function appender_thresholds_adjust()
- Added ScreenANSIColor appender to colorize messages
- New interface for custom config parsers.
- tons of fixes
* Fri Aug 20 2004
- version update from 0.42 to 0.47
- added filename() method to L4P::Appender::File
- added RRDs appender Log::Log4perl::Appender::RRDs
- Added a cleanup() function to
- make the socket appender more forgiving. New option
  "silent_recovery" will silently ignore errors
- added Log::Log4perl::infiltrate_lwp() to make LWP::UserAgent
  play in the L4p framework upon request
- tons of fixes
* Fri Feb 27 2004
- version update from 0.36 to 0.42
* Mon Aug 25 2003
- remove man3 dir from filelist (already in filesystem.rpm)
* Mon Aug 25 2003
- removed noarch: perl modules always have arch in the path
* Mon Aug 25 2003
- initial package