File perl-Search-Elasticsearch-Client-2_0-Async.spec of Package perl-Search-Elasticsearch-Client-2_0-Async

# spec file for package perl-Search-Elasticsearch-Client-2_0-Async
# Copyright (c) 2020 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

Name:           perl-Search-Elasticsearch-Client-2_0-Async
Version:        6.81
Release:        0
%define cpan_name Search-Elasticsearch-Client-2_0-Async
Summary:        Thin async client with full support for Elasticsearch 2.x APIs
License:        This is free software, licensed under: The Apache License, Version 2.0, January 2004
Group:          Development/Libraries/Perl
URL:  {cpan_name}
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Moo)
BuildRequires:  perl(Promises)
BuildRequires:  perl(Search::Elasticsearch::Async::Util)
BuildRequires:  perl(Search::Elasticsearch::Client::2_0) >= 6.00
BuildRequires:  perl(Search::Elasticsearch::Client::2_0::Role::Bulk)
BuildRequires:  perl(Search::Elasticsearch::Client::2_0::Role::Scroll)
BuildRequires:  perl(Search::Elasticsearch::Role::Is_Async)
BuildRequires:  perl(Search::Elasticsearch::Util)
BuildRequires:  perl(Try::Tiny)
BuildRequires:  perl(namespace::clean)
Requires:       perl(Moo)
Requires:       perl(Promises)
Requires:       perl(Search::Elasticsearch::Async::Util)
Requires:       perl(Search::Elasticsearch::Client::2_0) >= 6.00
Requires:       perl(Search::Elasticsearch::Client::2_0::Role::Bulk)
Requires:       perl(Search::Elasticsearch::Client::2_0::Role::Scroll)
Requires:       perl(Search::Elasticsearch::Role::Is_Async)
Requires:       perl(Search::Elasticsearch::Util)
Requires:       perl(Try::Tiny)
Requires:       perl(namespace::clean)

The Search::Elasticsearch::Client::2_0::Async package provides a client
compatible with Elasticsearch 2.x. It should be used in conjunction with
Search::Elasticsearch::Async as follows:

    $e = Search::Elasticsearch::Async->new(
        client => "2_0::Direct"

See Search::Elasticsearch::Client::2_0::Direct for documentation about how
to use the client itself.

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

perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

make test


%files -f %{name}.files
%doc Changes README
%license LICENSE

openSUSE Build Service is sponsored by