diff --git a/perl-Algorithm-TokenBucket.spec b/perl-Algorithm-TokenBucket.spec index 4b4bf69..753d21f 100644 --- a/perl-Algorithm-TokenBucket.spec +++ b/perl-Algorithm-TokenBucket.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Algorithm-TokenBucket # -# Copyright (c) 2016 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,27 +12,29 @@ # 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-Algorithm-TokenBucket -Version: 0.38 -Release: 0 %define cpan_name Algorithm-TokenBucket +Name: perl-Algorithm-TokenBucket +Version: 0.380.0 +Release: 0 +# 0.38 -> normalize -> 0.380.0 +%define cpan_version 0.38 +License: GPL-1.0-or-later Summary: Token bucket rate limiting algorithm -License: GPL-1.0+ -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Algorithm-TokenBucket/ -Source0: http://www.cpan.org/authors/id/K/KA/KAPPA/%{cpan_name}-%{version}.tar.gz +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/K/KA/KAPPA/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build::Tiny) >= 0.035 BuildRequires: perl(Test::NoWarnings) +Provides: perl(Algorithm::TokenBucket) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -49,10 +51,10 @@ taken from the at http://linux-ip.net/gl/tcng/node62.html page of the at http://linux-ip.net/gl/tcng/ system documentation. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build -%{__perl} Build.PL --installdirs=vendor +perl Build.PL --installdirs=vendor ./Build build --flags=%{?_smp_mflags} %check @@ -63,7 +65,7 @@ http://linux-ip.net/gl/tcng/ system documentation. %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) -%doc Changes LICENSE README.md +%doc Changes README.md +%license LICENSE %changelog