Files
perl-IO-Digest/perl-IO-Digest.spec

71 lines
2.3 KiB
RPMSpec

#
# spec file for package perl-IO-Digest
#
# 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
# 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/
#
Name: perl-IO-Digest
Version: 0.11
Release: 0
%define cpan_name IO-Digest
Summary: Calculate digests while reading or writing
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
URL: http://search.cpan.org/dist/IO-Digest/
Source: http://www.cpan.org/authors/id/C/CL/CLKAO/%{cpan_name}-%{version}.tar.gz
# PATCH-FIX_OPENSUSE - fix build with Perl 5.26 and later - https://rt.cpan.org/Public/Bug/Display.html?id=121733
Patch0: IO-Digest_fix_perl_5_26_INC_without_cwd.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(PerlIO::via::dynamic) >= 0.10
#BuildRequires: perl(inc::Module::Install)
#BuildRequires: perl(IO::Digest)
#BuildRequires: perl(JSON)
#BuildRequires: perl(LWP::Simple)
#BuildRequires: perl(Module::Build)
#BuildRequires: perl(Module::Install::Base)
#BuildRequires: perl(Parse::CPAN::Meta)
#BuildRequires: perl(YAML::Tiny)
Requires: perl(PerlIO::via::dynamic) >= 0.10
%{perl_requires}
%description
This module allows you to calculate digests while reading or writing
from/to file handles. This avoids having to reread the same content
to compute the digests after having written a file.
%prep
%autosetup -n %{cpan_name}-%{version} -p0
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__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 MYMETA.json MYMETA.yml README
%changelog