# # spec file for package perl-Log-Handler # # Copyright (c) 2024 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define cpan_name Log-Handler Name: perl-Log-Handler Version: 0.900.0 Release: 0 # 0.90 -> normalize -> 0.900.0 %define cpan_version 0.90 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Log messages to several outputs URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/B/BL/BLOONIX/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Module::Build) >= 0.42 BuildRequires: perl(Params::Validate) Requires: perl(Params::Validate) Provides: perl(Log::Handler) = %{version} Provides: perl(Log::Handler::Config) = 0.90.0 Provides: perl(Log::Handler::Levels) = 0.70.0 Provides: perl(Log::Handler::Output) = 0.100.0 Provides: perl(Log::Handler::Output::DBI) = 0.120.0 Provides: perl(Log::Handler::Output::Email) = 0.80.0 Provides: perl(Log::Handler::Output::File) = 0.80.0 Provides: perl(Log::Handler::Output::Forward) = 0.30.0 Provides: perl(Log::Handler::Output::Screen) = 0.70.0 Provides: perl(Log::Handler::Output::Sendmail) = 0.70.0 Provides: perl(Log::Handler::Output::Socket) = 0.80.0 Provides: perl(Log::Handler::Pattern) = 0.80.0 Provides: perl(Log::Handler::Plugin::Config::General) = 0.20.0 Provides: perl(Log::Handler::Plugin::Config::Properties) = 0.30.0 Provides: perl(Log::Handler::Plugin::YAML) = 0.30.0 %undefine __perllib_provides Recommends: perl(Config::General) Recommends: perl(Config::Properties) Recommends: perl(DBI) Recommends: perl(Email::Date) Recommends: perl(YAML) %{perl_requires} %description The 'Log::Handler' is a object oriented handler for logging, tracing and debugging. It is very easy to use and provides a simple interface for multiple output objects with lots of configuration parameters. You can easily filter the amount of logged information on a per-output base, define priorities, create patterns to format the messages and reload the complete logging machine. See the documentation for details. %prep %autosetup -n %{cpan_name}-%{cpan_version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Build.PL --installdirs=vendor ./Build build --flags=%{?_smp_mflags} %check ./Build test %install ./Build install --destdir=%{buildroot} --create_packlist=0 %perl_gen_filelist %files -f %{name}.files %doc ChangeLog examples README README.md %license LICENSE %changelog