195 lines
7.0 KiB
RPMSpec
195 lines
7.0 KiB
RPMSpec
#
|
|
# spec file for package perl-Log-Log4perl (Version 1.15)
|
|
#
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: perl-Log-Log4perl
|
|
License: Artistic License
|
|
Group: Development/Libraries/Perl
|
|
#Requires:
|
|
AutoReqProv: on
|
|
Summary: Log4j implementation for Perl
|
|
Version: 1.15
|
|
Release: 1
|
|
Source: Log-Log4perl-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Log4j implementation for Perl
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Mike Schilli <m@perlmeister.com>
|
|
Kevin Goess <cpan@goess.org>
|
|
|
|
%prep
|
|
%setup -n Log-Log4perl-%{version}
|
|
# ---------------------------------------------------------------------------
|
|
|
|
%build
|
|
perl Makefile.PL
|
|
make
|
|
# ---------------------------------------------------------------------------
|
|
|
|
%install
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
|
%if %suse_version > 820
|
|
make DESTDIR=$RPM_BUILD_ROOT \
|
|
INSTALLMAN3DIR=$RPM_BUILD_ROOT/%{_mandir}/man3 \
|
|
install_vendor
|
|
%perl_process_packlist
|
|
%else
|
|
install -d $RPM_BUILD_ROOT/%{perl_archlib}
|
|
make PREFIX=$RPM_BUILD_ROOT/usr \
|
|
INSTALLMAN3DIR=$RPM_BUILD_ROOT/%{_mandir}/man3 \
|
|
install
|
|
install -d $RPM_BUILD_ROOT/var/adm/perl-modules
|
|
cat $RPM_BUILD_ROOT/%{perl_archlib}/perllocal.pod | sed "s@$RPM_BUILD_ROOT@@g" > $RPM_BUILD_ROOT/var/adm/perl-modules/%{name}
|
|
cd $RPM_BUILD_ROOT/%{perl_sitearch}/auto/Log/Log4perl
|
|
sed "s@$RPM_BUILD_ROOT@@g" < .packlist | sort -u > .packlist.tmp
|
|
mv .packlist.tmp .packlist
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%if %suse_version > 820
|
|
%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}
|
|
%else
|
|
%dir %{perl_sitelib}/Log
|
|
%{perl_sitelib}/Log/*
|
|
%{perl_sitearch}/auto/Log/Log4perl/.packlist
|
|
%endif
|
|
%doc Changes LICENSE MANIFEST README eg xml
|
|
%doc %{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* 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
|
|
* Thu Sep 29 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
|