Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Tomcat42
perl-Data-Rand-Obscure
perl-Data-Rand-Obscure.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Data-Rand-Obscure.spec of Package perl-Data-Rand-Obscure
# # spec file for package perl-Data-Rand-Obscure # # Copyright (c) 2020 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/ # Name: perl-Data-Rand-Obscure Version: 0.021 Release: 0 %define cpan_name Data-Rand-Obscure Summary: Generate (fairly) random strings easily License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/R/RK/RKRIMEN/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Archive::Tar) BuildRequires: perl(Archive::Zip) BuildRequires: perl(Carp::Clan) BuildRequires: perl(IO::Uncompress::Bunzip2) BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(Module::Build) BuildRequires: perl(Object::Tiny) BuildRequires: perl(Parse::CPAN::Packages) BuildRequires: perl(Pod::Simple::TextContent) BuildRequires: perl(Text::Autoformat) BuildRequires: perl(YAML) Requires: perl(Archive::Tar) Requires: perl(Archive::Zip) Requires: perl(Carp::Clan) Requires: perl(IO::Uncompress::Bunzip2) Requires: perl(LWP::UserAgent) Requires: perl(Object::Tiny) Requires: perl(Parse::CPAN::Packages) Requires: perl(Pod::Simple::TextContent) Requires: perl(Text::Autoformat) Requires: perl(YAML) %{perl_requires} %description Data::Rand::Obscure provides a method for generating random hexadecimal, binary, and base64 strings of varying length. To do this, it first generates a pseudo-random "seed" and hashes it using a SHA-1, SHA-256, or MD5 digesting algorithm. Currently, the seed generator is: join("", <an increasing counter>, time, rand, $$, {}) You can use the output to make obscure "one-shot" identifiers for cookie data, "secret" values, etc. Values are not GUARANTEED to be unique (see Data::UUID for that), but should be sufficient for most purposes. This package was inspired by (and contains code taken from) the Catalyst::Plugin::Session package by Yuval Kogman %prep %setup -q -n %{cpan_name}-%{version} %build PERL_USE_UNSAFE_INC=1 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 %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor