1
0
Files
perl-Crypt-OpenSSL-RSA/perl-Crypt-OpenSSL-RSA.spec
Dirk Stoecker 0c8a09086a Accepting request 988353 from devel:languages:perl:autoupdate
- updated to 0.33
   see /usr/share/doc/packages/perl-Crypt-OpenSSL-RSA/Changes
  0.33 July 7 2022
      - Update for windows github CI
      - Remove duplicit 'LICENSE' key
      - Remove EUMM Remove version check
      - #31 by removing reference to RSA_SSLV23_PADDING (removed from OpenSSL starting from v3.0.0)
      - support passphase protected private key load
      - fix 'unsupported encryption' error on old library versions
      - Clarify croak message for missing passphrase on older cyphers
      - More structs opaqued in LibreSSL 3.5
      - Use a macro for dealing with older SSL lacking macros
      - more CI fixups. Drop testing for 5.10 and 5.8. Something is broken upstream.

OBS-URL: https://build.opensuse.org/request/show/988353
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Crypt-OpenSSL-RSA?expand=0&rev=27
2022-07-13 11:35:54 +00:00

70 lines
2.2 KiB
RPMSpec

#
# spec file for package perl-Crypt-OpenSSL-RSA
#
# Copyright (c) 2022 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-OpenSSL-RSA
Name: perl-Crypt-OpenSSL-RSA
Version: 0.33
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: RSA encoding and decoding, using the openSSL libraries
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
Patch0: Crypt-OpenSSL-RSA.patch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Crypt::OpenSSL::Guess) >= 0.11
BuildRequires: perl(Crypt::OpenSSL::Random)
Requires: perl(Crypt::OpenSSL::Random)
Recommends: perl(Crypt::OpenSSL::Bignum)
%{perl_requires}
# MANUAL BEGIN
BuildRequires: openssl-devel
# MANUAL END
%description
'Crypt::OpenSSL::RSA' provides the ability to RSA encrypt strings which are
somewhat shorter than the block size of a key. It also allows for
decryption, signatures and signature verification.
_NOTE_: Many of the methods in this package can croak, so use 'eval', or
Error.pm's try/catch mechanism to capture errors. Also, while some methods
from earlier versions of this package return true on success, this (never
documented) behavior is no longer the case.
%prep
%autosetup -n %{cpan_name}-%{version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README README.md
%license LICENSE
%changelog