# # spec file for package perl-Math-Random-Secure # # 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 Math-Random-Secure Name: perl-Math-Random-Secure Version: 0.80.1 Release: 0 # 0.080001 -> normalize -> 0.80.1 %define cpan_version 0.080001 License: Artistic-2.0 Summary: Cryptographically-secure, cross-platform replacement for rand() URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/F/FR/FREW/%{cpan_name}-%{cpan_version}.tar.gz Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Crypt::Random::Source) >= 0.70.0 BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Math::Random::ISAAC) >= 1.001 BuildRequires: perl(Moo) >= 2 BuildRequires: perl(Test::SharedFork) BuildRequires: perl(Test::Warn) Requires: perl(Crypt::Random::Source) >= 0.70.0 Requires: perl(Math::Random::ISAAC) >= 1.001 Requires: perl(Moo) >= 2 Provides: perl(Math::Random::Secure) = %{version} Provides: perl(Math::Random::Secure::RNG) = %{version} %undefine __perllib_provides Recommends: perl(Math::Random::ISAAC::XS) %{perl_requires} %description This module is intended to provide a cryptographically-secure replacement for Perl's built-in 'rand' function. "Crytographically secure", in this case, means: * No matter how many numbers you see generated by the random number generator, you cannot guess the future numbers, and you cannot guess the seed. * There are so many possible seeds that it would take decades, centuries, or millenia for an attacker to try them all. * The seed comes from a source that generates relatively strong random data on your platform, so the seed itself will be as random as possible. See IMPLEMENTATION DETAILS for more information about the underlying systems used to implement all of these guarantees, and some important caveats if you're going to use this module for some very-high-security purpose. %prep %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes README %license LICENSE %changelog