File perl-Crypt-OpenPGP.spec of Package perl-Crypt-OpenPGP

#
# spec file for package perl-Crypt-OpenPGP
#
# Copyright (c) 2025 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-OpenPGP
Name:           perl-Crypt-OpenPGP
Version:        1.190.0
Release:        0
# 1.19 -> normalize -> 1.190.0
%define cpan_version 1.19
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        Pure-Perl OpenPGP implementation
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/%{cpan_name}-%{cpan_version}.tar.gz
Source1:        cpanspec.yml
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Alt::Crypt::RSA::BigInt)
BuildRequires:  perl(Bytes::Random::Secure)
BuildRequires:  perl(Compress::Zlib)
BuildRequires:  perl(Crypt::Blowfish)
BuildRequires:  perl(Crypt::CAST5_PP)
BuildRequires:  perl(Crypt::DES_EDE3)
BuildRequires:  perl(Crypt::DSA) >= 1.170
BuildRequires:  perl(Crypt::IDEA)
BuildRequires:  perl(Crypt::RIPEMD160) >= 0.50.0
BuildRequires:  perl(Crypt::Rijndael)
BuildRequires:  perl(Crypt::Twofish)
BuildRequires:  perl(Data::Buffer) >= 0.40.0
BuildRequires:  perl(Digest::SHA)
BuildRequires:  perl(File::HomeDir)
BuildRequires:  perl(LWP::UserAgent)
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(URI::Escape)
Requires:       perl(Alt::Crypt::RSA::BigInt)
Requires:       perl(Bytes::Random::Secure)
Requires:       perl(Compress::Zlib)
Requires:       perl(Crypt::Blowfish)
Requires:       perl(Crypt::CAST5_PP)
Requires:       perl(Crypt::DES_EDE3)
Requires:       perl(Crypt::DSA) >= 1.170
Requires:       perl(Crypt::IDEA)
Requires:       perl(Crypt::RIPEMD160) >= 0.50.0
Requires:       perl(Crypt::Rijndael)
Requires:       perl(Crypt::Twofish)
Requires:       perl(Data::Buffer) >= 0.40.0
Requires:       perl(Digest::SHA)
Requires:       perl(File::HomeDir)
Requires:       perl(LWP::UserAgent)
Requires:       perl(URI::Escape)
Provides:       perl(Crypt::OpenPGP) = %{version}
Provides:       perl(Crypt::OpenPGP::Armour) = %{version}
Provides:       perl(Crypt::OpenPGP::Buffer) = %{version}
Provides:       perl(Crypt::OpenPGP::CFB) = %{version}
Provides:       perl(Crypt::OpenPGP::Certificate) = %{version}
Provides:       perl(Crypt::OpenPGP::Cipher) = %{version}
Provides:       perl(Crypt::OpenPGP::Cipher::Blowfish)
Provides:       perl(Crypt::OpenPGP::Cipher::CAST5)
Provides:       perl(Crypt::OpenPGP::Cipher::DES3)
Provides:       perl(Crypt::OpenPGP::Cipher::IDEA)
Provides:       perl(Crypt::OpenPGP::Cipher::Rijndael)
Provides:       perl(Crypt::OpenPGP::Cipher::Rijndael192)
Provides:       perl(Crypt::OpenPGP::Cipher::Rijndael256)
Provides:       perl(Crypt::OpenPGP::Cipher::Twofish)
Provides:       perl(Crypt::OpenPGP::Ciphertext) = %{version}
Provides:       perl(Crypt::OpenPGP::Compressed) = %{version}
Provides:       perl(Crypt::OpenPGP::Config) = %{version}
Provides:       perl(Crypt::OpenPGP::Config::GnuPG)
Provides:       perl(Crypt::OpenPGP::Config::PGP2)
Provides:       perl(Crypt::OpenPGP::Config::PGP5)
Provides:       perl(Crypt::OpenPGP::Constants) = %{version}
Provides:       perl(Crypt::OpenPGP::Digest) = %{version}
Provides:       perl(Crypt::OpenPGP::Digest::MD5)
Provides:       perl(Crypt::OpenPGP::Digest::RIPEMD160)
Provides:       perl(Crypt::OpenPGP::Digest::SHA1)
Provides:       perl(Crypt::OpenPGP::Digest::SHA224)
Provides:       perl(Crypt::OpenPGP::Digest::SHA256)
Provides:       perl(Crypt::OpenPGP::Digest::SHA384)
Provides:       perl(Crypt::OpenPGP::Digest::SHA512)
Provides:       perl(Crypt::OpenPGP::ElGamal::Private)
Provides:       perl(Crypt::OpenPGP::ElGamal::Public)
Provides:       perl(Crypt::OpenPGP::ErrorHandler) = %{version}
Provides:       perl(Crypt::OpenPGP::Key) = %{version}
Provides:       perl(Crypt::OpenPGP::Key::Public) = %{version}
Provides:       perl(Crypt::OpenPGP::Key::Public::DSA) = %{version}
Provides:       perl(Crypt::OpenPGP::Key::Public::ElGamal) = %{version}
Provides:       perl(Crypt::OpenPGP::Key::Public::RSA) = %{version}
Provides:       perl(Crypt::OpenPGP::Key::Secret) = %{version}
Provides:       perl(Crypt::OpenPGP::Key::Secret::DSA) = %{version}
Provides:       perl(Crypt::OpenPGP::Key::Secret::ElGamal) = %{version}
Provides:       perl(Crypt::OpenPGP::Key::Secret::RSA) = %{version}
Provides:       perl(Crypt::OpenPGP::KeyBlock) = %{version}
Provides:       perl(Crypt::OpenPGP::KeyRing) = %{version}
Provides:       perl(Crypt::OpenPGP::KeyServer) = %{version}
Provides:       perl(Crypt::OpenPGP::MDC) = %{version}
Provides:       perl(Crypt::OpenPGP::Marker) = %{version}
Provides:       perl(Crypt::OpenPGP::Message) = %{version}
Provides:       perl(Crypt::OpenPGP::OnePassSig) = %{version}
Provides:       perl(Crypt::OpenPGP::PacketFactory) = %{version}
Provides:       perl(Crypt::OpenPGP::Plaintext) = %{version}
Provides:       perl(Crypt::OpenPGP::S2k) = %{version}
Provides:       perl(Crypt::OpenPGP::S2k::Salt_Iter)
Provides:       perl(Crypt::OpenPGP::S2k::Salted)
Provides:       perl(Crypt::OpenPGP::S2k::Simple)
Provides:       perl(Crypt::OpenPGP::SKSessionKey) = %{version}
Provides:       perl(Crypt::OpenPGP::SessionKey) = %{version}
Provides:       perl(Crypt::OpenPGP::Signature) = %{version}
Provides:       perl(Crypt::OpenPGP::Signature::SubPacket) = %{version}
Provides:       perl(Crypt::OpenPGP::Trust) = %{version}
Provides:       perl(Crypt::OpenPGP::UserAttribute) = %{version}
Provides:       perl(Crypt::OpenPGP::UserID) = %{version}
Provides:       perl(Crypt::OpenPGP::Util) = %{version}
Provides:       perl(Crypt::OpenPGP::Words) = %{version}
%undefine       __perllib_provides
%{perl_requires}
# MANUAL BEGIN
BuildRequires:  iputils
BuildRequires:  openssl
Requires:       openssl
# MANUAL END

%description
_Crypt::OpenPGP_ is a pure-Perl implementation of the OpenPGP standard[1].
In addition to support for the standard itself, _Crypt::OpenPGP_ claims
compatibility with many other PGP implementations, both those that support
the standard and those that preceded it.

_Crypt::OpenPGP_ provides signing/verification, encryption/decryption,
keyring management, and key-pair generation; in short it should provide you
with everything you need to PGP-enable yourself. Alternatively it can be
used as part of a larger system; for example, perhaps you have a
web-form-to-email generator written in Perl, and you'd like to encrypt
outgoing messages, because they contain sensitive information.
_Crypt::OpenPGP_ can be plugged into such a scenario, given your public
key, and told to encrypt all messages; they will then be readable only by
you.

This module currently supports 'RSA' and 'DSA' for digital signatures, and
'RSA' and 'ElGamal' for encryption/decryption. It supports the symmetric
ciphers '3DES', 'Blowfish', 'IDEA', 'Twofish', 'CAST5', and 'Rijndael'
('AES'). 'Rijndael' is supported for key sizes of '128', '192', and '256'
bits. _Crypt::OpenPGP_ supports the digest algorithms 'MD5', 'SHA-1', and
'RIPE-MD/160'. And it supports 'ZIP' and 'Zlib' compression.

%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 CREDITS README
%license LICENSE

%changelog
openSUSE Build Service is sponsored by