From a9a6cb8b90ba74d901b3892e766ef8bb53a88b8cfcc9f4bac3c254238a4ee507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Fri, 19 Jul 2024 20:48:53 +0000 Subject: [PATCH] Normalize CPAN version See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Catalyst-Log-Log4perl?expand=0&rev=8 --- perl-Catalyst-Log-Log4perl.spec | 52 ++++++++++++++++----------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/perl-Catalyst-Log-Log4perl.spec b/perl-Catalyst-Log-Log4perl.spec index e5aa68b..911f591 100644 --- a/perl-Catalyst-Log-Log4perl.spec +++ b/perl-Catalyst-Log-Log4perl.spec @@ -1,7 +1,7 @@ # # 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 # 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) # 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 +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) -License: Artistic-1.0 or GPL-1.0+ -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Catalyst-Log-Log4perl/ -Source0: http://www.cpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{version}.tar.gz +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Catalyst) >= 5.60 +BuildRequires: perl(Catalyst) >= 5.600.0 BuildRequires: perl(Data::Dump) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36 BuildRequires: perl(Log::Log4perl) >= 1.04 -BuildRequires: perl(Module::Install) BuildRequires: perl(MRO::Compat) BuildRequires: perl(Params::Validate) -Requires: perl(Catalyst) >= 5.60 +Requires: perl(Catalyst) >= 5.600.0 Requires: perl(Data::Dump) Requires: perl(Log::Log4perl) >= 1.04 Requires: perl(MRO::Compat) Requires: perl(Params::Validate) +Provides: perl(Catalyst::Log::Log4perl) = %{version} +%undefine __perllib_provides %{perl_requires} %description -This module provides a the Catalyst::Log manpage implementation that uses -the Log::Log4perl manpage as the underlying log mechanism. It provides all -the methods listed in the Catalyst::Log manpage, with the exception of: +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: levels enable disable 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 package who called it. For example, if you were in the MyApp::C::Main @@ -67,21 +69,20 @@ package, the following: $logger->debug("Woot!"); } -Would send a message to the Myapp.C.Main the Log::Log4perl manpage -component. +Would send a message to the Myapp.C.Main Log::Log4perl component. -See the Log::Log4perl manpage for more information on how to configure -different logging mechanisms based on the component. +See Log::Log4perl for more information on how to configure different +logging mechanisms based on the component. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor +%make_build %check -%{__make} test +make test %install %perl_make_install @@ -89,7 +90,6 @@ different logging mechanisms based on the component. %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes example.conf README %changelog