Files
perl-Log-Report/perl-Log-Report.spec

104 lines
3.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Log-Report (Version 0.92)
#
# Copyright (c) 2010 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/
#
Name: perl-Log-Report
Version: 0.92
Release: 1
License: GPL+ or Artistic
%define cpan_name Log-Report
Summary: report a problem, pluggable handlers and language support
Url: http://search.cpan.org/dist/Log-Report/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/M/MA/MARKOV/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Encode) >= 2.00
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sys::Syslog) >= 0.27
BuildRequires: perl(Test::More) >= 0.86
BuildRequires: perl(Test::Pod) >= 1.00
Requires: perl(Encode) >= 2.00
Requires: perl(Scalar::Util)
Requires: perl(Sys::Syslog) >= 0.27
Requires: perl(Test::More) >= 0.86
Requires: perl(Test::Pod) >= 1.00
%{perl_requires}
%description
Handling messages to users can be a hassle, certainly when the same module
is used for command-line and in a graphical interfaces, and has to cope
with internationalization at the same time; this set of modules tries to
simplify this. Log::Report combines 'gettext' features with
Log::Dispatch-like features. However, you can also use this module to do
only translations or only message dispatching.
Read more about how and why in the the /DETAILS manpage section, below.
Especially, you should *read about the REASON parameter*.
Content of the whole 'Log::Report' package:
* . Log::Report
Exports the functions to end-users. To avoid the need to pass around an
logger-object to all end-user packages, the singleton object is wrapped
in functions.
* . Translating
You can use the GNU gettext infrastructure (via MO files handled by
Log::Report::Translator::Gettext), or extract strings via PPI
(Log::Report::Extract::PerlPPI) into PO files which can be used directly
(Log::Report::Lexicon::POTcompact).
* . Dispatching
Multiple dispatchers in parallel can be active. Log::Report::Dispatcher
takes care that the back-end gets the messages of the severity it needs,
translated and in the right character-set.
* . Exception handling
A simple exception system is implemented via Log::Report/"Report
Production and Configuration" and Log::Report::Dispatcher::Try.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc ChangeLog README
%changelog