83 lines
2.9 KiB
RPMSpec
83 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package perl-Tie-EncryptedHash
|
|
#
|
|
# 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 Tie-EncryptedHash
|
|
Name: perl-Tie-EncryptedHash
|
|
Version: 1.240.0
|
|
Release: 0
|
|
# 1.24 -> normalize -> 1.240.0
|
|
%define cpan_version 1.24
|
|
#Upstream: This module is distributed under the same license as Perl itself.
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Hashes (and objects based on hashes) with encrypting fields
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/V/VI/VIPUL/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Crypt::Blowfish)
|
|
BuildRequires: perl(Crypt::CBC)
|
|
BuildRequires: perl(Crypt::DES)
|
|
Requires: perl(Crypt::Blowfish)
|
|
Requires: perl(Crypt::CBC)
|
|
Requires: perl(Crypt::DES)
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Tie::EncryptedHash augments Perl hash semantics to build secure, encrypting
|
|
containers of data. Tie::EncryptedHash introduces special hash fields that
|
|
are coupled with encrypt/decrypt routines to encrypt assignments at STORE()
|
|
and decrypt retrievals at FETCH(). By design, _encrypting fields_ are
|
|
associated with keys that begin in single underscore. The remaining
|
|
keyspace is used for accessing normal hash fields, which are retained
|
|
without modification.
|
|
|
|
While the password is set, a Tie::EncryptedHash behaves exactly like a
|
|
standard Perl hash. This is its _transparent mode_ of access. Encrypting
|
|
and normal fields are identical in this mode. When password is deleted,
|
|
encrypting fields are accessible only as ciphertext. This is
|
|
Tie::EncryptedHash's _opaque mode_ of access, optimized for serialization.
|
|
|
|
Encryption is done with Crypt::CBC(3) which encrypts in the cipher block
|
|
chaining mode with Blowfish, DES or IDEA. Tie::EncryptedHash uses Blowfish
|
|
by default, but can be instructed to employ any cipher supported by
|
|
Crypt::CBC(3).
|
|
|
|
%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 README.html TODO
|
|
%license LICENSE
|
|
|
|
%changelog
|