2011-04-14 07:51:19 +00:00
|
|
|
#
|
2015-04-16 17:16:51 +00:00
|
|
|
# spec file for package perl-Catalyst-Log-Log4perl
|
2011-04-14 07:51:19 +00:00
|
|
|
#
|
2024-07-19 20:48:53 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-04-14 07:51:19 +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.
|
|
|
|
|
2024-07-19 20:48:53 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-14 07:51:19 +00:00
|
|
|
#
|
|
|
|
|
2015-04-16 17:16:51 +00:00
|
|
|
|
2024-07-19 20:48:53 +00:00
|
|
|
%define cpan_name Catalyst-Log-Log4perl
|
2011-04-14 07:51:19 +00:00
|
|
|
Name: perl-Catalyst-Log-Log4perl
|
2024-07-19 20:48:53 +00:00
|
|
|
Version: 1.60.0
|
2015-04-16 17:16:51 +00:00
|
|
|
Release: 0
|
2024-07-19 20:48:53 +00:00
|
|
|
# 1.06 -> normalize -> 1.60.0
|
|
|
|
%define cpan_version 1.06
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2015-04-16 17:16:51 +00:00
|
|
|
Summary: DEPRECATED (see Log::Log4perl::Catalyst)
|
2024-07-19 20:48:53 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-16 17:16:51 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:12:07 +02:00
|
|
|
Source100: README.md
|
2011-04-14 07:51:19 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2024-07-19 20:48:53 +00:00
|
|
|
BuildRequires: perl(Catalyst) >= 5.600.0
|
2011-04-14 07:51:19 +00:00
|
|
|
BuildRequires: perl(Data::Dump)
|
2024-07-19 20:48:53 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
|
2011-04-14 07:51:19 +00:00
|
|
|
BuildRequires: perl(Log::Log4perl) >= 1.04
|
|
|
|
BuildRequires: perl(MRO::Compat)
|
|
|
|
BuildRequires: perl(Params::Validate)
|
2024-07-19 20:48:53 +00:00
|
|
|
Requires: perl(Catalyst) >= 5.600.0
|
2011-04-14 07:51:19 +00:00
|
|
|
Requires: perl(Data::Dump)
|
|
|
|
Requires: perl(Log::Log4perl) >= 1.04
|
|
|
|
Requires: perl(MRO::Compat)
|
|
|
|
Requires: perl(Params::Validate)
|
2024-07-19 20:48:53 +00:00
|
|
|
Provides: perl(Catalyst::Log::Log4perl) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2011-04-14 07:51:19 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2024-07-19 20:48:53 +00:00
|
|
|
This module provides a Catalyst::Log implementation that uses Log::Log4perl
|
|
|
|
as the underlying log mechanism. It provides all the methods listed in
|
|
|
|
Catalyst::Log, with the exception of:
|
2011-04-14 07:51:19 +00:00
|
|
|
|
|
|
|
levels
|
|
|
|
enable
|
|
|
|
disable
|
|
|
|
|
|
|
|
These methods simply return 0 and do nothing, as similar functionality is
|
2024-07-19 20:48:53 +00:00
|
|
|
already provided by Log::Log4perl.
|
2011-04-14 07:51:19 +00:00
|
|
|
|
|
|
|
These methods will all instantiate a logger with the component set to the
|
|
|
|
package who called it. For example, if you were in the MyApp::C::Main
|
|
|
|
package, the following:
|
|
|
|
|
|
|
|
package MyApp::C::Main;
|
|
|
|
|
|
|
|
sub default : Private {
|
|
|
|
my ( $self, $c ) = @_;
|
|
|
|
my $logger = $c->log;
|
|
|
|
$logger->debug("Woot!");
|
|
|
|
}
|
|
|
|
|
2024-07-19 20:48:53 +00:00
|
|
|
Would send a message to the Myapp.C.Main Log::Log4perl component.
|
2011-04-14 07:51:19 +00:00
|
|
|
|
2024-07-19 20:48:53 +00:00
|
|
|
See Log::Log4perl for more information on how to configure different
|
|
|
|
logging mechanisms based on the component.
|
2011-04-14 07:51:19 +00:00
|
|
|
|
|
|
|
%prep
|
2024-07-19 20:48:53 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2011-04-14 07:51:19 +00:00
|
|
|
|
|
|
|
%build
|
2024-07-19 20:48:53 +00:00
|
|
|
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2011-04-14 07:51:19 +00:00
|
|
|
|
|
|
|
%check
|
2024-07-19 20:48:53 +00:00
|
|
|
make test
|
2011-04-14 07:51:19 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2011-04-15 07:27:20 +00:00
|
|
|
%doc Changes example.conf README
|
2011-04-14 07:51:19 +00:00
|
|
|
|
|
|
|
%changelog
|