2009-06-19 14:46:51 +00:00
|
|
|
#
|
2017-11-08 16:46:39 +00:00
|
|
|
# spec file for package perl-Convert-PEM
|
2010-07-06 15:09:43 +00:00
|
|
|
#
|
2024-07-19 22:36:14 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2009-06-19 14:46:51 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2024-07-19 22:36:14 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-06-19 14:46:51 +00:00
|
|
|
#
|
|
|
|
|
2017-11-08 16:46:39 +00:00
|
|
|
|
2024-07-19 22:36:14 +00:00
|
|
|
%define cpan_name Convert-PEM
|
2009-06-19 14:46:51 +00:00
|
|
|
Name: perl-Convert-PEM
|
2025-01-09 16:25:49 +00:00
|
|
|
Version: 0.130.0
|
2017-11-08 16:46:39 +00:00
|
|
|
Release: 0
|
2025-01-09 16:25:49 +00:00
|
|
|
# 0.13 -> normalize -> 0.130.0
|
|
|
|
%define cpan_version 0.13
|
2024-07-19 22:36:14 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2006-10-31 15:07:20 +00:00
|
|
|
Summary: Read/write encrypted ASN.1 PEM files
|
2024-07-19 22:36:14 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-01-09 16:25:49 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/%{cpan_name}-%{cpan_version}.tar.gz
|
2025-08-12 18:12:42 +02:00
|
|
|
Source100: README.md
|
2010-07-06 15:09:43 +00:00
|
|
|
BuildArch: noarch
|
2009-06-19 14:46:51 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Class::ErrorHandler)
|
2025-01-09 16:25:49 +00:00
|
|
|
BuildRequires: perl(Convert::ASN1) >= 0.340
|
2009-06-19 14:46:51 +00:00
|
|
|
BuildRequires: perl(Crypt::DES_EDE3)
|
2025-01-09 16:25:49 +00:00
|
|
|
BuildRequires: perl(Crypt::PRNG)
|
|
|
|
BuildRequires: perl(Test::Exception)
|
2010-07-06 15:09:43 +00:00
|
|
|
Requires: perl(Class::ErrorHandler)
|
2025-01-09 16:25:49 +00:00
|
|
|
Requires: perl(Convert::ASN1) >= 0.340
|
2010-07-06 15:09:43 +00:00
|
|
|
Requires: perl(Crypt::DES_EDE3)
|
2025-01-09 16:25:49 +00:00
|
|
|
Requires: perl(Crypt::PRNG)
|
2024-07-19 22:36:14 +00:00
|
|
|
Provides: perl(Convert::PEM) = %{version}
|
2025-01-09 16:25:49 +00:00
|
|
|
Provides: perl(Convert::PEM::CBC) = %{version}
|
2024-07-19 22:36:14 +00:00
|
|
|
%undefine __perllib_provides
|
2011-04-04 08:41:12 +00:00
|
|
|
%{perl_requires}
|
2006-10-31 15:07:20 +00:00
|
|
|
|
|
|
|
%description
|
2011-04-04 08:41:12 +00:00
|
|
|
_Convert::PEM_ reads and writes PEM files containing ASN.1-encoded objects.
|
2010-07-06 15:09:43 +00:00
|
|
|
The files can optionally be encrypted using a symmetric cipher algorithm,
|
2011-04-04 08:41:12 +00:00
|
|
|
such as 3DES. An unencrypted PEM file might look something like this:
|
|
|
|
|
|
|
|
-----BEGIN DH PARAMETERS-----
|
|
|
|
MB4CGQDUoLoCULb9LsYm5+/WN992xxbiLQlEuIsCAQM=
|
|
|
|
-----END DH PARAMETERS-----
|
|
|
|
|
|
|
|
The string beginning 'MB4C...' is the Base64-encoded, ASN.1-encoded
|
|
|
|
"object."
|
|
|
|
|
|
|
|
An encrypted file would have headers describing the type of encryption
|
|
|
|
used, and the initialization vector:
|
|
|
|
|
|
|
|
-----BEGIN DH PARAMETERS-----
|
|
|
|
Proc-Type: 4,ENCRYPTED
|
|
|
|
DEK-Info: DES-EDE3-CBC,C814158661DC1449
|
|
|
|
|
|
|
|
AFAZFbnQNrGjZJ/ZemdVSoZa3HWujxZuvBHzHNoesxeyqqidFvnydA==
|
|
|
|
-----END DH PARAMETERS-----
|
2006-10-31 15:07:20 +00:00
|
|
|
|
2011-04-04 08:41:12 +00:00
|
|
|
The two headers ('Proc-Type' and 'DEK-Info') indicate information about the
|
|
|
|
type of encryption used, and the string starting with 'AFAZ...' is the
|
|
|
|
Base64-encoded, encrypted, ASN.1-encoded contents of this "object."
|
2009-06-19 14:46:51 +00:00
|
|
|
|
2011-04-04 08:41:12 +00:00
|
|
|
The initialization vector ('C814158661DC1449') is chosen randomly.
|
2006-10-31 15:07:20 +00:00
|
|
|
|
|
|
|
%prep
|
2024-07-19 22:36:14 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2006-10-31 15:07:20 +00:00
|
|
|
|
|
|
|
%build
|
2025-01-09 16:25:49 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2024-07-19 22:36:14 +00:00
|
|
|
%make_build
|
2006-10-31 15:07:20 +00:00
|
|
|
|
2009-06-19 14:46:51 +00:00
|
|
|
%check
|
2024-07-19 22:36:14 +00:00
|
|
|
make test
|
2009-06-19 14:46:51 +00:00
|
|
|
|
2006-10-31 15:07:20 +00:00
|
|
|
%install
|
2009-06-19 14:46:51 +00:00
|
|
|
%perl_make_install
|
2011-04-04 08:41:12 +00:00
|
|
|
%perl_process_packlist
|
2009-06-19 14:46:51 +00:00
|
|
|
%perl_gen_filelist
|
2006-10-31 15:07:20 +00:00
|
|
|
|
2009-06-19 14:46:51 +00:00
|
|
|
%files -f %{name}.files
|
2011-04-04 08:41:12 +00:00
|
|
|
%doc Changes README
|
2025-01-09 16:25:49 +00:00
|
|
|
%license LICENSE
|
2006-10-31 15:07:20 +00:00
|
|
|
|
|
|
|
%changelog
|