diff --git a/Crypt-OpenSSL-AES-0.02.tar.gz b/Crypt-OpenSSL-AES-0.02.tar.gz deleted file mode 100644 index 5b06f91..0000000 --- a/Crypt-OpenSSL-AES-0.02.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b66fab514edf97fc32f58da257582704a210c2b35e297d5c31b7fa2ffd08e908 -size 12487 diff --git a/Crypt-OpenSSL-AES-0.10.tar.gz b/Crypt-OpenSSL-AES-0.10.tar.gz new file mode 100644 index 0000000..886098d --- /dev/null +++ b/Crypt-OpenSSL-AES-0.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ea6fa907aa5d5fb568089803433fde60c0ed6a5a39d4bfee131620f7c957ddd +size 151891 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..1805d3a --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,36 @@ +--- +description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +# baz.patch: PATCH-FIX-OPENSUSE +preamble: |- + BuildRequires: openssl-devel + Requires: openssl +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_build: |- +# rm unused.files +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module +#skip_doc: regexp_to_skip_for_doc.* +#add_doc: files to add to docs +#misc: |- +#anything else to be added to spec file +#follows directly after %files section, so it can contain new blocks or also +#changes to %files section diff --git a/perl-Crypt-OpenSSL-AES.changes b/perl-Crypt-OpenSSL-AES.changes index a905cd2..00cc22a 100644 --- a/perl-Crypt-OpenSSL-AES.changes +++ b/perl-Crypt-OpenSSL-AES.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Sep 23 03:06:52 UTC 2023 - Tina Müller + +- updated to 0.10 + see /usr/share/doc/packages/perl-Crypt-OpenSSL-AES/Changes + ------------------------------------------------------------------- Wed Dec 1 13:31:17 UTC 2010 - coolo@novell.com diff --git a/perl-Crypt-OpenSSL-AES.spec b/perl-Crypt-OpenSSL-AES.spec index 6aa6c6c..228a00e 100644 --- a/perl-Crypt-OpenSSL-AES.spec +++ b/perl-Crypt-OpenSSL-AES.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Crypt-OpenSSL-AES -# -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,73 +12,71 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -# norootforbuild - -#Distribution: %dist -#Packager: %packager -#Vendor: %vendor +%define cpan_name Crypt-OpenSSL-AES Name: perl-Crypt-OpenSSL-AES -%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) -Summary: A Perl wrapper around OpenSSL's AES library -Version: 0.02 -Release: 1 -License: artistic -Group: Applications/CPAN -Url: http://www.cpan.org -Source0: %{cpan_name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} +Version: 0.100.0 +Release: 0 +%define cpan_version 0.10 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Perl wrapper around OpenSSL's AES library +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/%{cpan_name}-%{cpan_version}.tar.gz +Source1: cpanspec.yml BuildRequires: perl BuildRequires: perl-macros -#BuildRequires: perl(Module::Build) -# other not perl || perl-base -BuildRequires: openssl-devel -# other not perl || perl-base -Requires: openssl +BuildRequires: perl(Crypt::CBC) +BuildRequires: perl(Crypt::Cipher::AES) +BuildRequires: perl(Crypt::Digest::SHA512_256) +BuildRequires: perl(Crypt::Mode::CBC) +BuildRequires: perl(Crypt::Mode::CFB) +BuildRequires: perl(Crypt::Mode::CTR) +BuildRequires: perl(Crypt::Mode::ECB) +BuildRequires: perl(Crypt::Mode::OFB) +BuildRequires: perl(Crypt::OpenSSL::Guess) +BuildRequires: perl(Crypt::PRNG) +BuildRequires: perl(Digest::SHA) +Provides: perl(Crypt::OpenSSL::AES) = 0.100.0 +%define __perllib_provides /bin/true +%{perl_requires} +# MANUAL BEGIN +BuildRequires: openssl-devel +Requires: openssl +# MANUAL END %description - %{cpan_name} module for perl +This module implements a wrapper around OpenSSL. Specifically, it wraps the +methods related to the US Government's Advanced Encryption Standard (the +Rijndael algorithm). The original version supports only AES 256 ECB +(electronic codebook mode encryption). -This is Crypt::OpenSSL::AES version 0.02, an XS-wrapper around -OpenSSL`s AES (Advanced Encryption Standard) library. +This module is compatible with Crypt::CBC (and likely other modules that +utilize a block cipher to make a stream cipher). This module is an alternative to the implementation provided by -Crypt::Rijndael which implements AES itself. In contrast, this -module is simply a wrapper around the OpenSSL library. - -The Crypt::Rijndael implementation seems to produce inaccurate -results on 64-bit x86 machines. By using OpenSSL, this module -aims to avoid architecture specific problems, allowing the OpenSSL -maintainers to overcome such issues. - - Author: Tolga Tarhan, +Crypt::Rijndael which implements AES itself. In contrast, this module is +simply a wrapper around the OpenSSL library. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build -CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL -%{__make} +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%make_build %check -%{__make} test +make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf $RPM_BUILD_ROOT - %files -f %{name}.files -# normally you only need to check for doc files -%defattr(-,root,root) %doc Changes README - -%changelog +%license LICENSE +%changelog