File perl-WebService-Mattermost.spec of Package perl-WebService-Mattermost

#
# spec file for package perl-WebService-Mattermost
#
# 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 WebService-Mattermost
Name:           perl-WebService-Mattermost
Version:        0.25
Release:        0
Summary:        Perl client library for Mattermost's REST API and websocket gateway
License:        MIT
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/M/MI/MIKEJONES/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(DateTime)
BuildRequires:  perl(Dist::Zilla::App::Command::cover)
BuildRequires:  perl(List::MoreUtils)
BuildRequires:  perl(Mojolicious) >= 8.57
BuildRequires:  perl(Moo) >= 2.005004
BuildRequires:  perl(MooX::HandlesVia)
BuildRequires:  perl(Readonly)
BuildRequires:  perl(Role::EventEmitter)
BuildRequires:  perl(Test::Compile)
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(Test::Most)
BuildRequires:  perl(Test::Pod)
BuildRequires:  perl(Test::Spec) >= 0.54
BuildRequires:  perl(Types::Standard)
Requires:       perl(DateTime)
Requires:       perl(List::MoreUtils)
Requires:       perl(Mojolicious) >= 8.57
Requires:       perl(Moo) >= 2.005004
Requires:       perl(MooX::HandlesVia)
Requires:       perl(Readonly)
Requires:       perl(Role::EventEmitter)
Requires:       perl(Types::Standard)
%{perl_requires}

%description
WebService::Mattermost provides websocket and REST API integrations for
Mattermost, and supercedes 'Net::Mattermost::Bot', replacing all
functionality.

See the at https://github.com/n7st/webservice-mattermost for more
information.

%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 CONTRIBUTING.md README README.md
%license LICENSE LICENSE.txt

%changelog
openSUSE Build Service is sponsored by