File perl-App-Genpass.spec of Package perl-App-Genpass
#
# spec file for package perl-App-Genpass
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: perl-App-Genpass
Version: 2.401
Release: 0
%define cpan_name App-Genpass
Summary: Quickly and easily create secure passwords
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/App-Genpass/
Source0: https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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.06
BuildRequires: perl(Module::Build) >= 0.280000
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.06
Requires: perl(Moo)
Requires: perl(MooX::Types::MooseLike)
Requires: perl(Sub::Quote)
Requires: perl(namespace::clean) >= 0.2
%{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
%setup -q -n %{cpan_name}-%{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
%defattr(-,root,root,755)
%doc Changes README
%license LICENSE
%changelog