# # spec file for package perl-App-Genpass # # 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define cpan_name App-Genpass Name: perl-App-Genpass Version: 2.401.0 Release: 0 # 2.401 -> normalize -> 2.401.0 %define cpan_version 2.401 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Quickly and easily create secure passwords URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Config::Any) BuildRequires: perl(File::HomeDir) BuildRequires: perl(List::AllUtils) BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Math::Random::Secure) >= 0.60.0 BuildRequires: perl(Module::Build) >= 0.28 BuildRequires: perl(Moo) BuildRequires: perl(MooX::Types::MooseLike) BuildRequires: perl(Sub::Quote) BuildRequires: perl(Test::Deep) BuildRequires: perl(namespace::clean) >= 0.2 Requires: perl(Config::Any) Requires: perl(File::HomeDir) Requires: perl(List::AllUtils) Requires: perl(Math::Random::Secure) >= 0.60.0 Requires: perl(Moo) Requires: perl(MooX::Types::MooseLike) Requires: perl(Sub::Quote) Requires: perl(namespace::clean) >= 0.2 Provides: perl(App::Genpass) = %{version} %undefine __perllib_provides %{perl_requires} %description If you've ever needed to create 10 (or even 10,000) passwords on the fly with varying preferences (lowercase, uppercase, no confusing characters, special characters, minimum length, etc.), you know it can become a pretty pesky task. This module makes it possible to create flexible and secure passwords, quickly and easily. use App::Genpass; my $genpass = App::Genpass->new(); my $single_password = $genpass->generate(1); # returns scalar my @single_password = $genpass->generate(1); # returns array my @multiple_passwords = $genpass->generate(10); # returns array again my $multiple_passwords = $genpass->generate(10); # returns arrayref This distribution includes a program called *genpass*, which is a command line interface to this module. If you need a program that generates passwords, use *genpass*. %prep %autosetup -n %{cpan_name}-%{cpan_version} %build perl Build.PL --installdirs=vendor ./Build build --flags=%{?_smp_mflags} %check ./Build test %install ./Build install --destdir=%{buildroot} --create_packlist=0 %perl_gen_filelist %files -f %{name}.files %doc Changes README %license LICENSE %changelog