File perl-Mhash.spec of Package perl-Mhash
#
# spec file for package perl-Mhash
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: perl-Mhash
Version: 0.90
Release: 0
%define cpan_name Mhash
Summary: Perl extension for Mhash Hash library
License: CHECK(GPL-1.0+ or Artistic-1.0)
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Mhash/
Source0: http://www.cpan.org/authors/id/F/FK/FKUO/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
%description
This is an perl interface to the Mhash hash library, which provides a
uniform interface to a large number of hash algorithms (also known as
"one-way" algorithms). These algorithms can be used to compute checksums,
message digests, and other signatures. Mhash support HMAC generation (a
mechanism for message authentication using cryptographic hash functions,
and is described in RFC2104). HMAC can be used to create message digests
using a secret key, so that these message digests cannot be regenerated (or
replaced) by someone else. At the time of writing this, the library
supports the algorithms: SHA1, GOST, HAVAL, MD5, RIPEMD160, TIGER, and
CRC32 checksums.
Here is the list of hash constants which are currently supported by the
Mhash module:
MHASH_CRC32
MHASH_MD5
MHASH_SHA1
MHASH_GOST
MHASH_RIPEMD160
MHASH_TIGER
MHASH_GOST
MHASH_CRC32B
MHASH_HAVAL224
MHASH_HAVAL192
MHASH_HAVAL160
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog