Files
perl-Crypt-Camellia/perl-Crypt-Camellia.spec
2025-08-12 18:12:47 +02:00

90 lines
3.2 KiB
RPMSpec

#
# spec file for package perl-Crypt-Camellia
#
# 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 Crypt-Camellia
Name: perl-Crypt-Camellia
Version: 2.20.0
Release: 0
# 2.02 -> normalize -> 2.20.0
%define cpan_version 2.02
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl Camellia encryption module
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/O/OY/OYAMA/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildRequires: perl
BuildRequires: perl-macros
Provides: perl(Crypt::Camellia) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This module implements Camelia 128-bit Block Cipher for perl. For Camellia.
Check https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html. Here is
an exerpt of that page.
Camellia is a symmetric key block cipher developed jointly in 2000 by
world top class encryption researchers at NTT and Mitsubishi Electric
Corporation. Technologically speaking, Camellia naturally has not only
a high level of security, but also excellent efficiency and practical
characteristics. It can be implemented at high performance by software
on various platforms. In regard to hardware implementation, compact and
low-power consumption type implementation as well as high-speed
implementation is possible.
Based on these technological advantages, Camellia has been
internationally recognized, for example the selection project on the
European recommendation of strong cryptographic primitives, NESSIE,
evaluated Camellia to have "many similarities to the AES, so much of
the analysis for the AES is also applicable to Camellia." Currently,
Camellia is the only cipher internationally recognized which has the
same level of security and performance as AES, and is selected for many
international standard/recommended ciphers. In particular, as Japanese
domestic ciphers, this is the first case to be approved as IETF
standard ciphers (Proposed Standard RFC) .
Crypt::Camellia has the following methods:
blocksize()
keysize()
encrypt()
decrypt()
Like many Crypt:: modules like Crypt::Blowfish and Crypt::DES, this module
works as a backend of Crypt::CBC.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%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
%changelog