File perl-Log-Dispatch.spec of Package perl-Log-Dispatch
#
# spec file for package perl-Log-Dispatch (Version 2.21)
#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Log-Dispatch
Url: http://search.cpan.org/~drolsky/Log-Dispatch
License: Artistic License; GPL v2 or later
Group: Development/Libraries/Perl
Requires: perl-Params-Validate perl = %{perl_version}
AutoReqProv: on
Summary: Module for Access to the System's Common Logging Mechanisms
Version: 2.21
Release: 1
Source: Log-Dispatch-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
With this module you can easily send log messages to Apache-Log, e-mail
addresses, files, the screen, or syslog.
Authors:
--------
Dave Rolsky <autarch@urth.org >
%prep
%setup -n Log-Dispatch-%{version}
# ---------------------------------------------------------------------------
%build
perl Makefile.PL
make
# ---------------------------------------------------------------------------
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc MANIFEST README
%dir %{perl_vendorlib}/Log
%dir %{perl_vendorlib}/Log/Dispatch
%dir %{perl_vendorlib}/Log/Dispatch/File
%dir %{perl_vendorlib}/Log/Dispatch/Email
%{perl_vendorlib}/Log/Dispatch.pm
%{perl_vendorlib}/Log/Dispatch/ApacheLog.pm
%{perl_vendorlib}/Log/Dispatch/Base.pm
%{perl_vendorlib}/Log/Dispatch/Email.pm
%{perl_vendorlib}/Log/Dispatch/Email/MIMELite.pm
%{perl_vendorlib}/Log/Dispatch/Email/MailSend.pm
%{perl_vendorlib}/Log/Dispatch/Email/MailSender.pm
%{perl_vendorlib}/Log/Dispatch/Email/MailSendmail.pm
%{perl_vendorlib}/Log/Dispatch/File.pm
%{perl_vendorlib}/Log/Dispatch/File/Locked.pm
%{perl_vendorlib}/Log/Dispatch/Handle.pm
%{perl_vendorlib}/Log/Dispatch/Null.pm
%{perl_vendorlib}/Log/Dispatch/Output.pm
%{perl_vendorlib}/Log/Dispatch/Screen.pm
%{perl_vendorlib}/Log/Dispatch/Syslog.pm
%doc %{_mandir}/man?/Log::Dispatch.3pm.gz
%doc %{_mandir}/man?/Log::Dispatch::ApacheLog.3pm.gz
%doc %{_mandir}/man?/Log::Dispatch::Base.3pm.gz
%doc %{_mandir}/man?/Log::Dispatch::Email.3pm.gz
%doc %{_mandir}/man?/Log::Dispatch::Email::MIMELite.3pm.gz
%doc %{_mandir}/man?/Log::Dispatch::Email::MailSend.3pm.gz
%doc %{_mandir}/man?/Log::Dispatch::Email::MailSender.3pm.gz
%doc %{_mandir}/man?/Log::Dispatch::Email::MailSendmail.3pm.gz
%doc %{_mandir}/man?/Log::Dispatch::File.3pm.gz
%doc %{_mandir}/man?/Log::Dispatch::File::Locked.3pm.gz
%doc %{_mandir}/man?/Log::Dispatch::Handle.3pm.gz
%doc %{_mandir}/man?/Log::Dispatch::Null.3pm.gz
%doc %{_mandir}/man?/Log::Dispatch::Output.3pm.gz
%doc %{_mandir}/man?/Log::Dispatch::Screen.3pm.gz
%doc %{_mandir}/man?/Log::Dispatch::Syslog.3pm.gz
%{perl_vendorarch}/auto/Log
/var/adm/perl-modules/%{name}
%changelog
* Fri Sep 12 2008 cwh@suse.de
- Removed BuildRequires for perl-Module-Build since this package
provides a traditional Makefile.PL again.
- 2.21 Feb 6, 2008
- Added log_and_die() and log_and_croak() methods. Patch by Yuval
Kogman.
- 2.20 Nov 2, 2007
- One of the tests failed on Perl 5.6.x. Thanks to Slaven Rezic for
the report.
- 2.19 Nov 1, 2007
- Switched to providing a traditional Makefile.PL as well as a
Build.PL file. RT #27208.
- When permissions are specified for a Log::Dispatch::File object,
don't try to chmod the file unless the permissions of the file
differ from what the file already has. Based on a patch by Kevin. RT
[#28151].
- Require at least Perl 5.6.0.
- Remove the tests for the email sending and exit codes, since the
test had a heisenbug I could not understand. I _think_ the code in
the email modules is correct, but the test isn't proving anything.
- Added a binmode parameter for Log::Dispatch::File. Based on a patch
by Angelo. RT #26063.
* Sat Aug 04 2007 aj@suse.de
- Fix filelist.
* Wed Jul 25 2007 cwh@suse.de
- update to v2.18: Log::Dispatch::ApacheLog should really now work
under mod_perl 2 , as well as mod_perl 1
* Wed Oct 25 2006 cwh@suse.de
2.13 Sep 25, 2006
- No code changes, just added a SUPPORT section to the docs referring
folks to RT for bug reports & patches.
2.12 Aug 9, 2006
- The various email sending modules could overwrite if they were in
buffered mode and they sent mail as a script exited. Reported by
Dean Kopesky.
- Doc tweaks. Make reference to "Log Levels" section in output module
docs more explicit. RT #11224.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 29 2005 dmueller@suse.de
- add norootforbuild
* Mon Aug 01 2005 cthiel@suse.de
- fixed filelist
* Sun Jul 31 2005 cthiel@suse.de
- update to version 2.11
* Thu Feb 12 2004 cwh@suse.de
- updated to version 2.10
* Thu Dec 04 2003 cwh@suse.de
- updated to version 2.07
* Fri Aug 22 2003 mjancar@suse.cz
- require the perl version we build with
* Fri Jul 18 2003 cwh@suse.de
- changed from perl_site* to perl_vendor*
* Tue Jul 01 2003 ro@suse.de
- use perl_process_packlist macro
* Wed Jun 18 2003 coolo@suse.de
- package directories
* Mon May 26 2003 ro@suse.de
- remove unpackaged files from buildroot
- add .packlist files to filelist
* Tue Jul 02 2002 mls@suse.de
- remove race in .packlist generation
* Mon Oct 29 2001 cwh@suse.de
- new package with initial version 1.80, required by pdb