# # spec file for package perl-Log-Log4perl (Version 1.20) # # Copyright (c) 2009 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 Url: http://search.cpan.org/perldoc?Log::Log4perl Name: perl-Log-Log4perl Summary: Log4j implementation for Perl License: Artistic License Group: Development/Libraries/Perl AutoReqProv: on Version: 1.20 Release: 1 # 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 %description 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. Authors: -------- Mike Schilli Kevin Goess %prep %setup q- -n Log-Log4perl-%{version} # --------------------------------------------------------------------------- %build perl Makefile.PL make %{?jobs:-j%jobs} # --------------------------------------------------------------------------- %check make test %install %perl_make_install %perl_process_packlist for file in eg/newsyslog-test eg/benchmarks/simple; do sed -i "s|/usr/local/bin/perl|%_bindir/perl|g" $file done %files %defattr(644,root,root,755) %doc Changes LICENSE MANIFEST README eg xml %doc %{_mandir}/man3/* %dir %{perl_vendorlib}/Log %{perl_vendorlib}/Log/* %dir %{perl_vendorarch}/auto/Log %dir %{perl_vendorarch}/auto/Log/Log4perl %{perl_vendorarch}/auto/Log/Log4perl/.packlist /var/adm/perl-modules/%{name} %changelog * Thu Feb 12 2009 ro@suse.de - update to 1.20 * Using semctl to reset the value of the semaphore in the Synchronized appender to prevent "Numerical result out of range" problem caused by an unbalanced SEM_UNDO when incrementing it. Reported by John Little. * Added parameters in curly braces to cspecs in PatternLayout. * As explained in http://rt.cpan.org/Ticket/Display.html?id=41505 the latest LWP release (5.822) got rid of all of its internal debugging functions, making infiltrate_lwp() and its test case useless. Disabling it for LWP>=5.822. - update to 1.19 * Applied patch by Peter Rabbitson, which fixes the caller() level when calling get_logger() on a subclass of Log4perl. * Added documentation on is_xxx() methods and clarified that it doesn't necessarily mean that a message gets logged if they're returning true (requested by Conway Allen via [rt.cpan.org #39085]. * Applied patch by Lee Johnson to appender_by_name() to allow for undefined appender names without issuing a warning, which was occurring with Catalyst::Log4perl. * Added docs on numerical levels and level strings in Log::Log4perl::Level. * Applied patch by Anthony Foiani for support of literal text in DateFormat format strings. * Tue Sep 16 2008 lrupp@suse.de - fix rpmlint errors * Fri Sep 05 2008 ug@suse.de * 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 (http://rt.cpan.org/Ticket/Display.html?id=38537). * Applied patch by Jae Gangemi addding a no_warning option to the socket appender (http://rt.cpan.org/Ticket/Display.html?id=34399). * 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. (http://rt.cpan.org/Ticket/Display.html?id=34051) * 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 (http://rt.cpan.org/Public/Bug/Display.html?id=35370) * 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 ug@suse.de - 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. - [rt.cpan.org #32738] fixed caller_depth for error_warn() (reported by Felix Antonius Wilhelm Ostmann) - [rt.cpan.org #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 ug@suse.de - 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 @Log::Log4perl::DateFormat::WEEK_DAYS - 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 PropertyConfigurator.pm 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, thanks! * Wed Oct 25 2006 ug@suse.de - version update from 1.02 to 1.07 - minor bugfixes - documentation enhanced * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Tue Jan 03 2006 ug@suse.de - version update from 1.01 to 1.02 * Mon Dec 12 2005 ug@suse.de - version update from 0.52 to 1.01 * Wed Sep 28 2005 dmueller@suse.de - add norootforbuild * Wed Jul 13 2005 ug@suse.de - version update from 0.51 to 0.52 - DateFormat.pm 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 ug@suse.de - 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 ug@suse.de - 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 Logger.pm - 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 ug@suse.de - version update from 0.36 to 0.42 * Mon Aug 25 2003 ro@suse.de - remove man3 dir from filelist (already in filesystem.rpm) * Mon Aug 25 2003 ro@suse.de - removed noarch: perl modules always have arch in the path * Mon Aug 25 2003 ug@suse.de - initial package