2011-05-01 10:36:34 +00:00
#
2015-04-17 09:40:06 +00:00
# spec file for package perl-Log-Agent
2011-05-01 10:36:34 +00:00
#
2025-06-11 19:53:26 +00:00
# Copyright (c) 2025 SUSE LLC
2011-05-01 10:36:34 +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.
2021-04-14 13:04:29 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2011-05-01 10:36:34 +00:00
#
2015-04-17 09:40:06 +00:00
2021-04-14 13:04:29 +00:00
%define cpan_name Log-Agent
2011-05-01 10:36:34 +00:00
Name : perl-Log-Agent
2025-06-11 19:53:26 +00:00
Version : 1.5.0
2015-04-17 09:40:06 +00:00
Release : 0
2025-06-11 19:53:26 +00:00
# 1.005 -> normalize -> 1.5.0
%define cpan_version 1.005
2021-04-14 13:04:29 +00:00
#Upstream: This module is free software. You can redistribute it and/or modify it under the terms of the Artistic License 2.0. This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
License : Artistic-1.0
2024-08-10 21:18:44 +00:00
Summary : General logging framework
2021-04-14 13:04:29 +00:00
URL : https://metacpan.org/release/%{cpan_name}
2025-06-11 19:53:26 +00:00
Source0 : https://cpan.metacpan.org/authors/id/M/MR/MROGASKI/%{cpan_name} -%{cpan_version} .tar.gz
2015-04-17 09:40:06 +00:00
Source1 : cpanspec.yml
2025-08-12 18:15:06 +02:00
Source100 : README.md
2011-05-01 10:36:34 +00:00
BuildArch : noarch
BuildRequires : perl
BuildRequires : perl-macros
2025-06-11 19:53:26 +00:00
Provides : perl(Log::Agent) = %{version}
2024-08-10 21:18:44 +00:00
%undefine __perllib_provides
Recommends: perl(Callback)
2011-05-01 10:36:34 +00:00
%{perl_requires}
%description
The 'Log::Agent' module provides an abstract layer for logging and tracing,
2015-12-03 17:59:47 +00:00
which is independent from the actual method used to physically perform
2011-05-01 10:36:34 +00:00
those activities. It acts as an agent (hence the name) that collects the
requests and delegates processing to a sublayer: the logging driver.
The 'Log::Agent' module is meant to be used in all reusable components,
since they cannot know in advance how the application which ends up using
them will perform its logging activities: either by emitting messages on
stdout and errors on stderr, or by directing messages to logfiles, or by
using syslog(3).
The logging interface is common for all the logging drivers, and is
therefore the result of a compromise between many logging schemes: any
information given at this level must be either handled by all drivers, or
may be ignored depending on the application's final choice.
%prep
2025-06-11 19:53:26 +00:00
%autosetup -n %{cpan_name} -%{cpan_version} -p1
2011-05-01 10:36:34 +00:00
%build
2021-04-14 13:04:29 +00:00
perl Makefile.PL INSTALLDIRS=vendor
%make_build
2011-05-01 10:36:34 +00:00
%check
2021-04-14 13:04:29 +00:00
make test
2011-05-01 10:36:34 +00:00
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
2015-12-03 17:59:47 +00:00
%doc CHANGELOG.md README
2011-05-01 10:36:34 +00:00
%changelog