File perl-CPAN-Checksums.spec of Package perl-CPAN-Checksums

#
# spec file for package perl-CPAN-Checksums
#
# 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
# 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 https://bugs.opensuse.org/
#


%define cpan_name CPAN-Checksums
Name:           perl-CPAN-Checksums
Version:        2.14
Release:        0
Summary:        Write a C<CHECKSUMS> file for a directory as on CPAN
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/AN/ANDK/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Compress::Bzip2)
BuildRequires:  perl(Compress::Zlib)
BuildRequires:  perl(Data::Compare)
BuildRequires:  perl(Digest::SHA)
BuildRequires:  perl(IO::File) >= 1.14
BuildRequires:  perl(Module::Signature)
Requires:       perl(Compress::Bzip2)
Requires:       perl(Compress::Zlib)
Requires:       perl(Data::Compare)
Requires:       perl(Digest::SHA)
Requires:       perl(IO::File) >= 1.14
Requires:       perl(Module::Signature)
%{perl_requires}

%description
* $success = updatedir($dir[, $root])

$dir is a directory. Updatedir() writes a 'CHECKSUMS' file into that
directory, unless a previously written 'CHECKSUMS' file is there that is
still valid. Returns 2 if a new 'CHECKSUMS' file has been written, 1 if a
valid 'CHECKSUMS' file is already there, otherwise dies.

If $root is given, the hash entry with the key 'cpan_path' is relative to
this root directory.

Note: since version 2.0 updatedir on empty directories behaves just the
same. In older versions it silently did nothing.

%prep
%autosetup  -n %{cpan_name}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%doc Changes README Todo

%changelog
openSUSE Build Service is sponsored by