File perl-Data-Stream-Bulk.spec of Package perl-Data-Stream-Bulk

#
# spec file for package perl-Data-Stream-Bulk
#
# 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/
#


%define cpan_name Data-Stream-Bulk
Name:           perl-Data-Stream-Bulk
Version:        0.110.0
Release:        0
# 0.11 -> normalize -> 0.110.0
%define cpan_version 0.11
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        N at a time iteration API
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/D/DO/DOY/%{cpan_name}-%{cpan_version}.tar.gz
Source1:        cpanspec.yml
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Moose) >= 0.90
BuildRequires:  perl(Path::Class)
BuildRequires:  perl(Sub::Exporter)
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Test::Requires)
BuildRequires:  perl(namespace::clean)
Requires:       perl(Moose) >= 0.90
Requires:       perl(Path::Class)
Requires:       perl(Sub::Exporter)
Requires:       perl(namespace::clean)
Provides:       perl(Data::Stream::Bulk) = %{version}
Provides:       perl(Data::Stream::Bulk::Array) = %{version}
Provides:       perl(Data::Stream::Bulk::Callback) = %{version}
Provides:       perl(Data::Stream::Bulk::Cat) = %{version}
Provides:       perl(Data::Stream::Bulk::Chunked) = %{version}
Provides:       perl(Data::Stream::Bulk::DBI) = %{version}
Provides:       perl(Data::Stream::Bulk::DBIC) = %{version}
Provides:       perl(Data::Stream::Bulk::DoneFlag) = %{version}
Provides:       perl(Data::Stream::Bulk::FileHandle) = %{version}
Provides:       perl(Data::Stream::Bulk::Filter) = %{version}
Provides:       perl(Data::Stream::Bulk::Nil) = %{version}
Provides:       perl(Data::Stream::Bulk::Path::Class) = %{version}
Provides:       perl(Data::Stream::Bulk::Util) = %{version}
%undefine       __perllib_provides
%{perl_requires}

%description
This module tries to find middle ground between one at a time and all at
once processing of data sets.

The purpose of this module is to avoid the overhead of implementing an
iterative api when this isn't necessary, without breaking forward
compatibility in case that becomes necessary later on.

The API optimizes for when a data set typically fits in memory and is
returned as an array, but the consumer cannot assume that the data set is
bounded.

The API is destructive in order to minimize the chance that resultsets are
leaked due to improper usage.

%prep
%autosetup  -n %{cpan_name}-%{cpan_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
%license LICENSE

%changelog
openSUSE Build Service is sponsored by