diff --git a/Digest-HMAC-1.03.tar.gz b/Digest-HMAC-1.03.tar.gz deleted file mode 100644 index a683377..0000000 --- a/Digest-HMAC-1.03.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3bc72c6d3ff144d73aefb90e9a78d33612d58cf1cd1631ecfb8985ba96da4a59 -size 7251 diff --git a/Digest-HMAC-1.04.tar.gz b/Digest-HMAC-1.04.tar.gz new file mode 100644 index 0000000..a52c499 --- /dev/null +++ b/Digest-HMAC-1.04.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6bc8156aa275c44d794b7c18f44cdac4a58140245c959e6b19b2c3838b08ed4 +size 14279 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..ab24ed9 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,35 @@ +--- +#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: gcc-c++ +#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-Digest-HMAC.changes b/perl-Digest-HMAC.changes index 92cb16b..049bfc9 100644 --- a/perl-Digest-HMAC.changes +++ b/perl-Digest-HMAC.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Apr 2 03:06:58 UTC 2021 - Tina Müller + +- updated to 1.04 + see /usr/share/doc/packages/perl-Digest-HMAC/Changes + + Version 1.04: 2021-04-01 + + No-change release updating maintainer to ARODLAND + ------------------------------------------------------------------- Mon Apr 15 10:58:21 UTC 2013 - idonmez@suse.com diff --git a/perl-Digest-HMAC.spec b/perl-Digest-HMAC.spec index e518bc9..bf29a4b 100644 --- a/perl-Digest-HMAC.spec +++ b/perl-Digest-HMAC.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Digest-HMAC # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,28 +12,25 @@ # 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/ # -Name: perl-Digest-HMAC %define cpan_name Digest-HMAC -Summary: Keyed-Hashing for Message Authentication -License: GPL-1.0+ or Artistic-1.0 -Group: Development/Libraries/Perl -Version: 1.03 +Name: perl-Digest-HMAC +Version: 1.04 Release: 0 -Url: http://search.cpan.org/dist/Digest-HMAC/ -Source: http://www.cpan.org/authors/id/G/GA/GAAS/Digest-HMAC-%{version}.tar.gz +Summary: Keyed-Hashing for Message Authentication +License: Artistic-1.0 OR GPL-1.0-or-later +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/A/AR/ARODLAND/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Digest::MD5) >= 2 -BuildRequires: perl(Digest::SHA1) >= 1 -Requires: perl(Digest::MD5) >= 2 -Requires: perl(Digest::SHA1) >= 1 +BuildRequires: perl(Digest::SHA) >= 1 +Requires: perl(Digest::SHA) >= 1 +%{perl_requires} %description HMAC is used for message integrity checks between two parties that share a @@ -43,41 +40,32 @@ usually MD5 or SHA-1. The HMAC mechanism is described in RFC 2104. HMAC follow the common 'Digest::' interface, but the constructor takes the secret key and the name of some other simple 'Digest::' as argument. -Authors: --------- - Graham Barr - Gisle Aas +The hmac() and hmac_hex() functions and the Digest::HMAC->new() constructor +takes an optional $blocksize argument as well. The HMAC algorithm assumes +the digester to hash by iterating a basic compression function on blocks of +data and the $blocksize should match the byte-length of such blocks. + +The default $blocksize is 64 which is suitable for the MD5 and SHA-1 digest +functions. For stronger algorithms the blocksize probably needs to be +increased. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +%make_build %check -%{__make} test +make test %install %perl_make_install -### since 11.4 perl_process_packlist -### removes .packlist, perllocal.pod files -%if 0%{?suse_version} > 1130 %perl_process_packlist -%else -# do not perl_process_packlist -# remove .packlist file -%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch -# remove perllocal.pod file -%{__rm} -f $RPM_BUILD_ROOT%perl_archlib/perllocal.pod -%endif %perl_gen_filelist -%clean -%{__rm} -rf $RPM_BUILD_ROOT - %files -f %{name}.files -%defattr(-,root,root,-) %doc Changes README +%license LICENSE %changelog