Compare commits
10 Commits
411d781e97
...
f9cbf22f4d
Author | SHA256 | Date | |
---|---|---|---|
f9cbf22f4d | |||
e1cf8d3146 | |||
|
ff02fa57f1 | ||
|
c57b880892 | ||
|
33187c9a19 | ||
|
01ab89612a | ||
|
f58970fc22 | ||
|
f52572a7a6 | ||
|
6437529f57 | ||
|
89de84a8c5 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ced025dfd9d0a3a3cfe8dac32d903fdc413ae7b32d8d34e9ce041dcdd9d54417
|
||||
size 33294
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:db6869945c6059160b150fb3716e57d2f00008459795f85a79b0c15d3aeb2255
|
||||
size 32956
|
3
Digest-SHA-PurePerl-6.04.tar.gz
Normal file
3
Digest-SHA-PurePerl-6.04.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e713bc85f6bddce6aa01a8e7a51dd1f0ae0eb84d2c186bb8ee82f275a7773512
|
||||
size 36978
|
28
cpanspec.yml
Normal file
28
cpanspec.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
#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:
|
||||
#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
|
@@ -1,3 +1,105 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 26 03:06:52 UTC 2023 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 6.04
|
||||
see /usr/share/doc/packages/perl-Digest-SHA-PurePerl/Changes
|
||||
|
||||
6.04 Sat Feb 25 12:00:50 PM MST 2023
|
||||
- no substantive changes over previous version
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 9 03:07:54 UTC 2022 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 6.03
|
||||
see /usr/share/doc/packages/perl-Digest-SHA-PurePerl/Changes
|
||||
|
||||
6.03 Mon 08 Aug 2022 11:30:32 AM MST
|
||||
- corrected addfile to report error when stdin is a directory
|
||||
-- ref. rt.cpan.org #143899
|
||||
-- thanks to Gregor Herrmann for pointing this out
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 22 05:17:51 UTC 2018 - coolo@suse.com
|
||||
|
||||
- updated to 6.02
|
||||
see /usr/share/doc/packages/perl-Digest-SHA-PurePerl/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 26 06:18:06 UTC 2017 - coolo@suse.com
|
||||
|
||||
- updated to 6.01
|
||||
see /usr/share/doc/packages/perl-Digest-SHA-PurePerl/Changes
|
||||
|
||||
6.01 Mon Dec 25 00:08:08 MST 2017
|
||||
- added "--ignore-missing" and "--strict" options to shasumpp
|
||||
-- consistent with GNU coreutils
|
||||
-- ref. rt.cpan.org #123897
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 10 06:17:00 UTC 2017 - coolo@suse.com
|
||||
|
||||
- updated to 6.00
|
||||
see /usr/share/doc/packages/perl-Digest-SHA-PurePerl/Changes
|
||||
|
||||
6.00 Fri Dec 8 22:44:44 MST 2017
|
||||
- added "tag" option (BSD-style checksums) to shasumpp
|
||||
-- consistent with GNU sha1sum, sha224sum, etc.
|
||||
-- thanks to Christopher Tubbs for suggestion
|
||||
- decoupled Digest::SHA::PurePerl and Digest::SHA
|
||||
-- scripts/tests in each module now fully independent
|
||||
-- Digest::SHA::PurePerl to be phased out eventually
|
||||
-- past versions will remain available
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 5 05:19:06 UTC 2017 - coolo@suse.com
|
||||
|
||||
- updated to 5.98
|
||||
see /usr/share/doc/packages/perl-Digest-SHA-PurePerl/Changes
|
||||
|
||||
5.98 Wed Oct 4 00:40:02 MST 2017
|
||||
- Digest::SHA::PurePerl now has its own shasum
|
||||
-- renamed to shasumpp
|
||||
-- depends explicitly on Digest::SHA::PurePerl
|
||||
-- no longer makes use of Digest::SHA if present
|
||||
-- hence no need for -R option
|
||||
- removed "portable" mode from shasumpp and addfile
|
||||
-- rarely used, mostly in outdated systems
|
||||
-- potentially confusing features (e.g.
|
||||
|
||||
->
|
||||
)
|
||||
-- Universal Newlines mode (-U) a much cleaner approach
|
||||
-- mimics Universal Newlines in Python
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 7 05:23:04 UTC 2017 - coolo@suse.com
|
||||
|
||||
- updated to 5.97
|
||||
see /usr/share/doc/packages/perl-Digest-SHA-PurePerl/Changes
|
||||
|
||||
5.97 Wed Sep 6 02:23:02 MST 2017
|
||||
- added 'quiet' option to shasum
|
||||
-- thanks to Chris David for suggestion and initial patch
|
||||
-- ref. rt.cpan.org #122750
|
||||
- expanded shasum --help message
|
||||
-- to explain use of escaped FILE names
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 29 05:17:03 UTC 2016 - coolo@suse.com
|
||||
|
||||
- updated to 5.96
|
||||
see /usr/share/doc/packages/perl-Digest-SHA-PurePerl/Changes
|
||||
|
||||
5.96 Wed Jul 27 20:04:34 MST 2016
|
||||
- prevented shasum from possibly running malicious code
|
||||
-- remove '.' from @INC before module loading
|
||||
-- ref. rt.cpan.org #116513
|
||||
- namespace cleanup (ref. rt.cpan.org #105371 and #105372)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 10 12:52:17 UTC 2015 - tuukka.pasanen@ilmi.fi
|
||||
|
||||
- New version 5.95
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 3 15:02:33 UTC 2011 - coolo@novell.com
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Digest-SHA-PurePerl (Version 5.61)
|
||||
# spec file for package perl-Digest-SHA-PurePerl
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# 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
|
||||
@@ -12,36 +12,36 @@
|
||||
# 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-SHA-PurePerl
|
||||
Version: 5.61
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
|
||||
%define cpan_name Digest-SHA-PurePerl
|
||||
Name: perl-Digest-SHA-PurePerl
|
||||
Version: 6.40.0
|
||||
Release: 0
|
||||
# 6.04 -> normalize -> 6.40.0
|
||||
%define cpan_version 6.04
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Perl implementation of SHA-1/224/256/384/512
|
||||
Url: http://search.cpan.org/dist/Digest-SHA-PurePerl/
|
||||
Group: Development/Libraries/Perl
|
||||
#Source: http://www.cpan.org/authors/id/M/MS/MSHELOR/Digest-SHA-PurePerl-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/M/MS/MSHELOR/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(FileHandle)
|
||||
Requires: perl(FileHandle)
|
||||
Provides: perl(Digest::SHA::PurePerl) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Digest::SHA::PurePerl is written entirely in Perl. If your platform has a C
|
||||
compiler, you should install the functionally equivalent (but much faster)
|
||||
the Digest::SHA manpage module.
|
||||
Digest::SHA module.
|
||||
|
||||
The programming interface is easy to use: it's the same one found in CPAN's
|
||||
the Digest manpage module. So, if your applications currently use the
|
||||
Digest::MD5 manpage and you'd prefer the stronger security of SHA, it's a
|
||||
simple matter to convert them.
|
||||
Digest module. So, if your applications currently use Digest::MD5 and you'd
|
||||
prefer the stronger security of SHA, it's a simple matter to convert them.
|
||||
|
||||
The interface provides two ways to calculate digests: all-at-once, or in
|
||||
stages. To illustrate, the following short program computes the SHA-256
|
||||
@@ -77,16 +77,15 @@ Note that for larger bit-strings, it's more efficient to use the
|
||||
two-argument version _add_bits($data, $nbits)_, where _$data_ is in the
|
||||
customary packed binary format used for Perl strings.
|
||||
|
||||
The module also lets you save intermediate SHA states to disk, or display
|
||||
them on standard output. The _dump()_ method generates portable,
|
||||
human-readable text describing the current state of computation. You can
|
||||
subsequently retrieve the file with _load()_ to resume where the
|
||||
calculation left off.
|
||||
The module also lets you save intermediate SHA states to a string. The
|
||||
_getstate()_ method generates portable, human-readable text describing the
|
||||
current state of computation. You can subsequently restore that state with
|
||||
_putstate()_ to resume where the calculation left off.
|
||||
|
||||
To see what a state description looks like, just run the following:
|
||||
|
||||
use Digest::SHA::PurePerl;
|
||||
Digest::SHA::PurePerl->new->add("Shaw" x 1962)->dump;
|
||||
print Digest::SHA::PurePerl->new->add("Shaw" x 1962)->getstate;
|
||||
|
||||
As an added convenience, the Digest::SHA::PurePerl module offers routines
|
||||
to calculate keyed hashes using the HMAC-SHA-1/224/256/384/512 algorithms.
|
||||
@@ -99,25 +98,21 @@ behavior of the _sha()_, _sha_hex()_, and _sha_base64()_ functions.
|
||||
print hmac_sha256_hex("Hi There", chr(0x0b) x 32), "\n";
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_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
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(644,root,root,755)
|
||||
%doc Changes README shasum
|
||||
%doc Changes examples README shasumpp
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user