Files
perl-Log-Agent/perl-Log-Agent.spec
2025-08-12 18:15:06 +02:00

76 lines
2.7 KiB
RPMSpec

#
# spec file for package perl-Log-Agent
#
# Copyright (c) 2025 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-Agent
Name: perl-Log-Agent
Version: 1.5.0
Release: 0
# 1.005 -> normalize -> 1.5.0
%define cpan_version 1.005
#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
Summary: General logging framework
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MR/MROGASKI/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
Provides: perl(Log::Agent) = %{version}
%undefine __perllib_provides
Recommends: perl(Callback)
%{perl_requires}
%description
The 'Log::Agent' module provides an abstract layer for logging and tracing,
which is independent from the actual method used to physically perform
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
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc CHANGELOG.md README
%changelog