diff --git a/perl-String-Random.spec b/perl-String-Random.spec index b88da01..d00bc6e 100644 --- a/perl-String-Random.spec +++ b/perl-String-Random.spec @@ -1,7 +1,7 @@ # # spec file for package perl-String-Random # -# Copyright (c) 2021 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 @@ -18,20 +18,24 @@ %define cpan_name String-Random Name: perl-String-Random -Version: 0.32 +Version: 0.320.0 Release: 0 -Summary: Perl module to generate random strings based on a pattern +# 0.32 -> normalize -> 0.320.0 +%define cpan_version 0.32 License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Perl module to generate random strings based on a pattern URL: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Module::Build) >= 0.280000 +BuildRequires: perl(Module::Build) >= 0.28 BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(parent) Requires: perl(parent) +Provides: perl(String::Random) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -65,17 +69,17 @@ code would have a similar result: $pass->randregex('[A-Z]{2}[a-z]{2}.[a-z]{2}\d'), "\n"; %prep -%autosetup -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 %files -f %{name}.files