diff --git a/perl-Log-Dispatch-Perl.spec b/perl-Log-Dispatch-Perl.spec index af9594d..0eb8213 100644 --- a/perl-Log-Dispatch-Perl.spec +++ b/perl-Log-Dispatch-Perl.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Log-Dispatch-Perl # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -16,24 +16,26 @@ # -Name: perl-Log-Dispatch-Perl -Version: 0.05 -Release: 0 %define cpan_name Log-Dispatch-Perl -Summary: Use core Perl functions for logging +Name: perl-Log-Dispatch-Perl +Version: 0.50.0 +Release: 0 +# 0.05 -> normalize -> 0.50.0 +%define cpan_version 0.05 License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl +Summary: Use core Perl functions for logging URL: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Log::Dispatch) >= 1.16 BuildRequires: perl(Log::Dispatch::Output) Requires: perl(Log::Dispatch) >= 1.16 Requires: perl(Log::Dispatch::Output) +Provides: perl(Log::Dispatch::Perl) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -44,11 +46,11 @@ possibility for a logging action to halt the current environment, such as with "die" and "croak". %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -59,7 +61,6 @@ make test %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes CONTRIBUTING README %license LICENCE