LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File perl-Digest-combined.spec of Package perl-Digest-combined (Project devel:languages:perl:CPAN-D)

# spec file for package perl-Digest-combined
# Copyright (c) 2016 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-Digest-combined
Version:        0.1
Release:        0
%define cpan_name Digest-combined
Summary:        Calculate multiple message digests simultaneously
License:        CHECK(GPL-1.0+ or Artistic-1.0)
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Digest-combined/
Source0:        http://www.cpan.org/authors/id/O/ON/ONEGRAY/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros

Certain catalogues and protocols out there allow (or require) one to list
several digests for a single file (or, rather, an octet sequence), provided
that these are of different ldquokinds.rdquo Consider, e. g., the 'magnet:'
URI schema, or Debian's ldquoPackagesrdquo database:

    Package: beep
    Filename: pool/main/b/beep/beep_1.2.2-22_amd64.deb
    Size: 24036
    MD5sum: dec6eb5a0eb38f4ac85e24d653c01916
    SHA1: 15df36acc29d696c91cf432986e3bbd99761eada
    SHA256: 869fc8d7d8e3d0cba191ea430e8a32426cc29efeb54e0b55af49c3fea90cddf0

The 'Digest::combined' module is intended to provide a simple and
convenient interface for such a task.

%setup -q -n %{cpan_name}-%{version}

%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%{__make} test


%files -f %{name}.files