2024-07-19 20:48:53 +00:00
committed by Git OBS Bridge
parent f4c92932bc
commit a9a6cb8b90

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Catalyst-Log-Log4perl # spec file for package perl-Catalyst-Log-Log4perl
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,48 +12,50 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: perl-Catalyst-Log-Log4perl
Version: 1.06
Release: 0
%define cpan_name Catalyst-Log-Log4perl %define cpan_name Catalyst-Log-Log4perl
Name: perl-Catalyst-Log-Log4perl
Version: 1.60.0
Release: 0
# 1.06 -> normalize -> 1.60.0
%define cpan_version 1.06
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: DEPRECATED (see Log::Log4perl::Catalyst) Summary: DEPRECATED (see Log::Log4perl::Catalyst)
License: Artistic-1.0 or GPL-1.0+ URL: https://metacpan.org/release/%{cpan_name}
Group: Development/Libraries/Perl Source0: https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{cpan_version}.tar.gz
Url: http://search.cpan.org/dist/Catalyst-Log-Log4perl/
Source0: http://www.cpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Catalyst) >= 5.60 BuildRequires: perl(Catalyst) >= 5.600.0
BuildRequires: perl(Data::Dump) BuildRequires: perl(Data::Dump)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
BuildRequires: perl(Log::Log4perl) >= 1.04 BuildRequires: perl(Log::Log4perl) >= 1.04
BuildRequires: perl(Module::Install)
BuildRequires: perl(MRO::Compat) BuildRequires: perl(MRO::Compat)
BuildRequires: perl(Params::Validate) BuildRequires: perl(Params::Validate)
Requires: perl(Catalyst) >= 5.60 Requires: perl(Catalyst) >= 5.600.0
Requires: perl(Data::Dump) Requires: perl(Data::Dump)
Requires: perl(Log::Log4perl) >= 1.04 Requires: perl(Log::Log4perl) >= 1.04
Requires: perl(MRO::Compat) Requires: perl(MRO::Compat)
Requires: perl(Params::Validate) Requires: perl(Params::Validate)
Provides: perl(Catalyst::Log::Log4perl) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
This module provides a the Catalyst::Log manpage implementation that uses This module provides a Catalyst::Log implementation that uses Log::Log4perl
the Log::Log4perl manpage as the underlying log mechanism. It provides all as the underlying log mechanism. It provides all the methods listed in
the methods listed in the Catalyst::Log manpage, with the exception of: Catalyst::Log, with the exception of:
levels levels
enable enable
disable disable
These methods simply return 0 and do nothing, as similar functionality is These methods simply return 0 and do nothing, as similar functionality is
already provided by the Log::Log4perl manpage. already provided by Log::Log4perl.
These methods will all instantiate a logger with the component set to the 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 who called it. For example, if you were in the MyApp::C::Main
@@ -67,21 +69,20 @@ package, the following:
$logger->debug("Woot!"); $logger->debug("Woot!");
} }
Would send a message to the Myapp.C.Main the Log::Log4perl manpage Would send a message to the Myapp.C.Main Log::Log4perl component.
component.
See the Log::Log4perl manpage for more information on how to configure See Log::Log4perl for more information on how to configure different
different logging mechanisms based on the component. logging mechanisms based on the component.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags} %make_build
%check %check
%{__make} test make test
%install %install
%perl_make_install %perl_make_install
@@ -89,7 +90,6 @@ different logging mechanisms based on the component.
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes example.conf README %doc Changes example.conf README
%changelog %changelog