Files
perl-Crypt-HSXKPasswd/perl-Crypt-HSXKPasswd.spec
2025-08-12 18:12:49 +02:00

123 lines
4.6 KiB
RPMSpec

#
# spec file for package perl-Crypt-HSXKPasswd
#
# 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 Crypt-HSXKPasswd
Name: perl-Crypt-HSXKPasswd
Version: 3.6.0
Release: 0
# v3.6 -> normalize -> 3.6.0
%define cpan_version v3.6
License: BSD-3-Clause
Summary: Secure memorable password generator inspired by Steve Gibson's Passord H[cut]
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BA/BARTB/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
# PATCH-FIX-https://rt.cpan.org/Ticket/Display.html?id=144672
Patch0: multisig.patch
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Clone)
BuildRequires: perl(DateTime)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(File::Share)
BuildRequires: perl(File::ShareDir) >= 1.00
BuildRequires: perl(JSON)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Math::Round)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Load)
BuildRequires: perl(Readonly)
BuildRequires: perl(Text::Unidecode)
BuildRequires: perl(Type::Library)
BuildRequires: perl(Type::Params)
BuildRequires: perl(Type::Tiny)
BuildRequires: perl(Types::Standard)
Requires: perl(Clone)
Requires: perl(DateTime)
Requires: perl(File::HomeDir)
Requires: perl(File::ShareDir) >= 1.00
Requires: perl(JSON)
Requires: perl(List::MoreUtils)
Requires: perl(Math::Round)
Requires: perl(Module::Load)
Requires: perl(Readonly)
Requires: perl(Text::Unidecode)
Requires: perl(Type::Library)
Requires: perl(Type::Params)
Requires: perl(Type::Tiny)
Requires: perl(Types::Standard)
Provides: perl(Crypt::HSXKPasswd) = %{version}
Provides: perl(Crypt::HSXKPasswd::Dictionary) = 1.2.0
Provides: perl(Crypt::HSXKPasswd::Dictionary::Basic) = 1.2.0
Provides: perl(Crypt::HSXKPasswd::Dictionary::DE) = 3.21.0
Provides: perl(Crypt::HSXKPasswd::Dictionary::EN) = 3.21.0
Provides: perl(Crypt::HSXKPasswd::Dictionary::ES) = 3.21.0
Provides: perl(Crypt::HSXKPasswd::Dictionary::FR) = 3.21.0
Provides: perl(Crypt::HSXKPasswd::Dictionary::IT) = 3.21.0
Provides: perl(Crypt::HSXKPasswd::Dictionary::NL) = 3.21.0
Provides: perl(Crypt::HSXKPasswd::Dictionary::PT) = 3.21.0
Provides: perl(Crypt::HSXKPasswd::Dictionary::System) = 1.2.0
Provides: perl(Crypt::HSXKPasswd::Helper) = 1.0.0
Provides: perl(Crypt::HSXKPasswd::RNG) = 1.2.0
Provides: perl(Crypt::HSXKPasswd::RNG::Basic) = 1.2.0
Provides: perl(Crypt::HSXKPasswd::RNG::Data_Entropy) = 1.2.0
Provides: perl(Crypt::HSXKPasswd::RNG::DevUrandom) = 1.2.0
Provides: perl(Crypt::HSXKPasswd::RNG::Math_Random_Secure) = 1.2.0
Provides: perl(Crypt::HSXKPasswd::RNG::RandomDotOrg) = 1.2.0
Provides: perl(Crypt::HSXKPasswd::Types) = 1.2.0
Provides: perl(Crypt::HSXKPasswd::Util) = 1.3.0
%undefine __perllib_provides
Recommends: perl(Data::Entropy::Algorithms)
Recommends: perl(Devel::StackTrace)
Recommends: perl(Email::Valid)
Recommends: perl(LWP::UserAgent)
Recommends: perl(Math::Random::Secure)
Recommends: perl(Mozilla::CA)
Recommends: perl(URI)
%{perl_requires}
%description
A secure memorable password generator inspired by the wonderful XKCD
webcomic at http://www.xkcd.com/ and Steve Gibson's Password Haystacks page
at https://www.grc.com/haystack.htm. This is the Perl module that powers
https://www.xkpasswd.net.
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%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 README
%license LICENSE
%changelog