2024-07-29 19:34:07 +00:00
committed by Git OBS Bridge
parent 100326267e
commit f6f5f9254c

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-String-Random # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,20 +18,24 @@
%define cpan_name String-Random %define cpan_name String-Random
Name: perl-String-Random Name: perl-String-Random
Version: 0.32 Version: 0.320.0
Release: 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 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} 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 Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.280000 BuildRequires: perl(Module::Build) >= 0.28
BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(parent) BuildRequires: perl(parent)
Requires: perl(parent) Requires: perl(parent)
Provides: perl(String::Random) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
@@ -65,17 +69,17 @@ code would have a similar result:
$pass->randregex('[A-Z]{2}[a-z]{2}.[a-z]{2}\d'), "\n"; $pass->randregex('[A-Z]{2}[a-z]{2}.[a-z]{2}\d'), "\n";
%prep %prep
%autosetup -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version}
%build %build
perl Build.PL installdirs=vendor perl Build.PL --installdirs=vendor
./Build build flags=%{?_smp_mflags} ./Build build --flags=%{?_smp_mflags}
%check %check
./Build test ./Build test
%install %install
./Build install destdir=%{buildroot} create_packlist=0 ./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files