Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > ca5aa585837b3356908b9776e50de3c3 > files > 3

perl-Digest-1.160.0-2.1.mga1.src.rpm

%define upstream_name    Digest
%define upstream_version 1.16

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
%define subrel 1
Release:    %mkrel 2

Summary:    Calculate digests of files
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module//%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		Digest-1.16-CVE-2011-3597.patch
BuildRequires: perl(MIME::Base64)
BuildArch: noarch


%description
The 'Digest::' modules calculate digests, also called "fingerprints" or
"hashes", of some data, called a message. The digest is (usually) some
small/fixed size string. The actual size of the digest depend of the
algorithm used. The message is simply a sequence of arbitrary bytes or
bits.

An important property of the digest algorithms is that the digest is
_likely_ to change if the message change in some way. Another property is
that digest functions are one-way functions, that is it should be _hard_ to
find a message that correspond to some given digest. Algorithms differ in
how "likely" and how "hard", as well as how efficient they are to compute.

Note that the properties of the algorithms change over time, as the
algorithms are analyzed and machines grow faster. If your application for
instance depends on it being "impossible" to generate the same digest for a
different message it is wise to make it easy to plug in stronger algorithms
as the one used grow weaker. Using the interface documented here should
make it easy to change algorithms later.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p0

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%{make}

%check
%{make} test

%install
rm -rf %buildroot
%makeinstall_std

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%doc Changes README META.yml
%{_mandir}/man3/*
%perl_vendorlib/*


%changelog

* Sat Jan 14 2012 fwang <fwang> 1.160.0-2.1.mga1
+ Revision: 195869
- add upstream patch to fix CVE-2011-3597

* Sat Jan 22 2011 jquelin <jquelin> 1.160.0-2.mga1
+ Revision: 31928
- mageia rebuild
- imported package perl-Digest