File perl-Alt-Crypt-RSA-BigInt.spec of Package perl-Alt-Crypt-RSA-BigInt

# spec file for package perl-Alt-Crypt-RSA-BigInt
# 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

%define cpan_name Alt-Crypt-RSA-BigInt
Name:           perl-Alt-Crypt-RSA-BigInt
Version:        0.60.0
Release:        0
# 0.06 -> normalize -> 0.60.0
%define cpan_version 0.06
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        RSA public-key cryptosystem, using Math::BigInt
URL:  {cpan_name}
Source1:        cpanspec.yml
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Class::Loader)
BuildRequires:  perl(Convert::ASCII::Armour)
BuildRequires:  perl(Crypt::Blowfish)
BuildRequires:  perl(Crypt::CBC) >= 2.17
BuildRequires:  perl(Data::Buffer)
BuildRequires:  perl(Digest::MD2)
BuildRequires:  perl(Digest::SHA)
BuildRequires:  perl(Math::BigInt) >= 1.78
BuildRequires:  perl(Math::BigInt::GMP)
BuildRequires:  perl(Math::Prime::Util) >= 0.640.0
BuildRequires:  perl(Math::Prime::Util::GMP)
BuildRequires:  perl(Sort::Versions)
BuildRequires:  perl(Tie::EncryptedHash)
Requires:       perl(Class::Loader)
Requires:       perl(Convert::ASCII::Armour)
Requires:       perl(Crypt::Blowfish)
Requires:       perl(Crypt::CBC) >= 2.17
Requires:       perl(Data::Buffer)
Requires:       perl(Digest::MD2)
Requires:       perl(Digest::SHA)
Requires:       perl(Math::BigInt) >= 1.78
Requires:       perl(Math::BigInt::GMP)
Requires:       perl(Math::Prime::Util) >= 0.640.0
Requires:       perl(Math::Prime::Util::GMP)
Requires:       perl(Sort::Versions)
Requires:       perl(Tie::EncryptedHash)
Provides:       perl(Alt::Crypt::RSA::BigInt) = %{version}
Provides:       perl(Crypt::RSA) = 1.990.0
Provides:       perl(Crypt::RSA::DataFormat)
Provides:       perl(Crypt::RSA::Debug)
Provides:       perl(Crypt::RSA::ES::OAEP) = 1.990.0
Provides:       perl(Crypt::RSA::ES::PKCS1v15) = 1.990.0
Provides:       perl(Crypt::RSA::Errorhandler)
Provides:       perl(Crypt::RSA::Key) = 1.990.0
Provides:       perl(Crypt::RSA::Key::Private) = 1.990.0
Provides:       perl(Crypt::RSA::Key::Private::SSH)
Provides:       perl(Crypt::RSA::Key::Private::SSH::Buffer)
Provides:       perl(Crypt::RSA::Key::Public) = 1.990.0
Provides:       perl(Crypt::RSA::Key::Public::SSH)
Provides:       perl(Crypt::RSA::Primitives)
Provides:       perl(Crypt::RSA::SS::PKCS1v15) = 1.990.0
Provides:       perl(Crypt::RSA::SS::PSS) = 1.990.0
%undefine       __perllib_provides

This is a modification of the Crypt::RSA module to remove all use and
dependencies on Pari and Math::Pari.

This first version is intended to be a plug-in replacement for Crypt::RSA,
with no user-visible changes. This means some issues will remain unresolved
until future versions.

Math::Pari is completely removed. This includes the two modules:

   - Crypt::Primes   =>   Math::Prime::Util
   - Crypt::Random   =>   Math::Prime::Util

All operations are now performed using Math::BigInt, and prefer the GMP and
Pari backends.

%autosetup  -n %{cpan_name}-%{cpan_version}

find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644

perl Makefile.PL INSTALLDIRS=vendor

make test


%files -f %{name}.files
%doc Changes Changes.old README TODO
%license LICENSE

openSUSE Build Service is sponsored by