2007-01-15 23:31:03 +00:00
|
|
|
#
|
2011-04-04 10:58:37 +00:00
|
|
|
# spec file for package perl-Log-Dispatch
|
2007-01-15 23:31:03 +00:00
|
|
|
#
|
2023-04-27 15:12:47 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-15 23:31:03 +00:00
|
|
|
#
|
2008-09-12 16:11:44 +00:00
|
|
|
# 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.
|
|
|
|
|
2019-10-29 08:51:39 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:31:03 +00:00
|
|
|
#
|
|
|
|
|
2011-04-04 10:58:37 +00:00
|
|
|
|
2023-04-27 15:12:47 +00:00
|
|
|
%define cpan_name Log-Dispatch
|
2007-01-15 23:31:03 +00:00
|
|
|
Name: perl-Log-Dispatch
|
2023-04-27 15:12:47 +00:00
|
|
|
Version: 2.71
|
2013-06-05 12:33:28 +00:00
|
|
|
Release: 0
|
|
|
|
License: Artistic-2.0
|
2023-04-27 15:12:47 +00:00
|
|
|
Summary: Dispatches messages to one or more outputs
|
2020-07-26 08:01:52 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-05-31 07:25:10 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
2015-06-16 05:02:08 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:15:08 +02:00
|
|
|
Source100: README.md
|
2011-02-01 16:48:21 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-06-16 05:02:08 +00:00
|
|
|
BuildRequires: perl(Devel::GlobalDestruction)
|
2013-07-26 10:06:18 +00:00
|
|
|
BuildRequires: perl(Dist::CheckConflicts) >= 0.02
|
2015-08-08 13:40:07 +00:00
|
|
|
BuildRequires: perl(IPC::Run3)
|
2014-09-19 12:31:13 +00:00
|
|
|
BuildRequires: perl(Module::Runtime)
|
2017-05-31 07:25:10 +00:00
|
|
|
BuildRequires: perl(Params::ValidationCompiler)
|
|
|
|
BuildRequires: perl(Specio) >= 0.32
|
|
|
|
BuildRequires: perl(Specio::Declare)
|
|
|
|
BuildRequires: perl(Specio::Exporter)
|
|
|
|
BuildRequires: perl(Specio::Library::Builtins)
|
|
|
|
BuildRequires: perl(Specio::Library::Numeric)
|
|
|
|
BuildRequires: perl(Specio::Library::String)
|
2014-09-19 12:31:13 +00:00
|
|
|
BuildRequires: perl(Sys::Syslog) >= 0.28
|
|
|
|
BuildRequires: perl(Test::Fatal)
|
2015-06-16 05:02:08 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2016-08-16 14:40:48 +00:00
|
|
|
BuildRequires: perl(Test::Needs)
|
2017-05-31 07:25:10 +00:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
|
|
|
BuildRequires: perl(namespace::autoclean)
|
|
|
|
BuildRequires: perl(parent)
|
2015-06-16 05:02:08 +00:00
|
|
|
Requires: perl(Devel::GlobalDestruction)
|
2013-07-26 10:06:18 +00:00
|
|
|
Requires: perl(Dist::CheckConflicts) >= 0.02
|
2014-09-19 12:31:13 +00:00
|
|
|
Requires: perl(Module::Runtime)
|
2017-05-31 07:25:10 +00:00
|
|
|
Requires: perl(Params::ValidationCompiler)
|
|
|
|
Requires: perl(Specio) >= 0.32
|
|
|
|
Requires: perl(Specio::Declare)
|
|
|
|
Requires: perl(Specio::Exporter)
|
|
|
|
Requires: perl(Specio::Library::Builtins)
|
|
|
|
Requires: perl(Specio::Library::Numeric)
|
|
|
|
Requires: perl(Specio::Library::String)
|
2014-09-19 12:31:13 +00:00
|
|
|
Requires: perl(Sys::Syslog) >= 0.28
|
2017-05-31 07:25:10 +00:00
|
|
|
Requires: perl(Try::Tiny)
|
|
|
|
Requires: perl(namespace::autoclean)
|
|
|
|
Requires: perl(parent)
|
2011-02-01 16:48:21 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:31:03 +00:00
|
|
|
|
|
|
|
%description
|
2011-02-01 16:48:21 +00:00
|
|
|
This module manages a set of Log::Dispatch::* output objects that can be
|
|
|
|
logged to via a unified interface.
|
2007-01-15 23:31:03 +00:00
|
|
|
|
2011-02-01 16:48:21 +00:00
|
|
|
The idea is that you create a Log::Dispatch object and then add various
|
|
|
|
logging objects to it (such as a file logger or screen logger). Then you
|
|
|
|
call the 'log' method of the dispatch object, which passes the message to
|
|
|
|
each of the objects, which in turn decide whether or not to accept the
|
|
|
|
message and what to do with it.
|
2007-01-15 23:31:03 +00:00
|
|
|
|
2011-02-01 16:48:21 +00:00
|
|
|
This makes it possible to call single method and send a message to a log
|
|
|
|
file, via email, to the screen, and anywhere else, all with very little
|
|
|
|
code needed on your part, once the dispatching object has been created.
|
2007-01-15 23:31:03 +00:00
|
|
|
|
|
|
|
%prep
|
2023-04-27 15:12:47 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2007-01-15 23:31:03 +00:00
|
|
|
|
|
|
|
%build
|
2019-10-29 08:51:39 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2023-04-27 15:12:47 +00:00
|
|
|
%make_build
|
2010-01-11 16:05:17 +00:00
|
|
|
|
|
|
|
%check
|
2019-10-29 08:51:39 +00:00
|
|
|
make test
|
2007-01-15 23:31:03 +00:00
|
|
|
|
|
|
|
%install
|
2010-01-11 16:05:17 +00:00
|
|
|
%perl_make_install
|
2007-01-15 23:31:03 +00:00
|
|
|
%perl_process_packlist
|
2010-01-11 16:05:17 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:31:03 +00:00
|
|
|
|
2010-01-11 16:05:17 +00:00
|
|
|
%files -f %{name}.files
|
2023-04-27 15:12:47 +00:00
|
|
|
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
|
2017-05-31 07:25:10 +00:00
|
|
|
%license LICENSE
|
2007-01-15 23:31:03 +00:00
|
|
|
|
2007-07-27 00:05:35 +00:00
|
|
|
%changelog
|