diff --git a/perl-Algorithm-GenerateSequence.spec b/perl-Algorithm-GenerateSequence.spec index 9f0a2dc..8b4a2e3 100644 --- a/perl-Algorithm-GenerateSequence.spec +++ b/perl-Algorithm-GenerateSequence.spec @@ -1,7 +1,7 @@ # -# spec file for package perl-Algorithm-GenerateSequence (Version 0.02) +# spec file for package perl-Algorithm-GenerateSequence # -# Copyright (c) 2010 SUSE LINUX Products 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,25 +12,26 @@ # 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-GenerateSequence -Version: 0.02 -Release: 1 -License: GPL+ or Artistic + %define cpan_name Algorithm-GenerateSequence -Summary: a sequence generator -Url: http://search.cpan.org/dist/Algorithm-GenerateSequence/ -Group: Development/Libraries/Perl -Source: http://www.cpan.org/authors/id/R/RC/RCLAMP/%{cpan_name}-%{version}.tar.gz +Name: perl-Algorithm-GenerateSequence +Version: 0.20.0 +Release: 0 +# 0.02 -> normalize -> 0.20.0 +%define cpan_version 0.02 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Sequence generator +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/%{cpan_name}-%{cpan_version}.tar.gz BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl -BuildRequires: perl(Module::Build) BuildRequires: perl-macros BuildRequires: perl(Module::Build) -BuildRequires: perl(Test::More) +Provides: perl(Algorithm::GenerateSequence) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -53,24 +54,20 @@ Or for a range of addresses to scan: ); %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build -%{__perl} Build.PL installdirs=vendor -./Build build flags=%{?_smp_mflags} +perl Build.PL --installdirs=vendor +./Build build --flags=%{?_smp_mflags} %check ./Build test %install -./Build install destdir=%{buildroot} create_packlist=0 +./Build install --destdir=%{buildroot} --create_packlist=0 %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(-,root,root,755) %doc bench_call Changes README %changelog