File perl-Mojo-Redis.spec of Package perl-Mojo-Redis

#
# spec file for package perl-Mojo-Redis
#
# Copyright (c) 2022 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 Mojo-Redis
Name:           perl-Mojo-Redis
Version:        3.29
Release:        0
License:        Artistic-2.0
Summary:        Redis driver based on Mojo::IOLoop
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/J/JH/JHTHORSEN/%{cpan_name}-%{version}.tar.gz
Source1:        cpanspec.yml
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Mojolicious) >= 8.50
BuildRequires:  perl(Protocol::Redis::Faster) >= 0.002
BuildRequires:  perl(Test::More) >= 0.88
Requires:       perl(Mojolicious) >= 8.50
Requires:       perl(Protocol::Redis::Faster) >= 0.002
%{perl_requires}

%description
Mojo::Redis is a Redis driver that use the Mojo::IOLoop, which makes it
integrate easily with the Mojolicious framework.

It tries to mimic the same interface as Mojo::Pg, Mojo::mysql and
Mojo::SQLite, but the methods for talking to the database vary.

This module is in no way compatible with the 1.xx version of 'Mojo::Redis'
and this version also tries to fix a lot of the confusing methods in
'Mojo::Redis2' related to pubsub.

This module is currently EXPERIMENTAL, and bad design decisions will be
fixed without warning. Please report at
https://github.com/jhthorsen/mojo-redis/issues if you find this module
useful, annoying or if you simply find bugs. Feedback can also be sent to
'jhthorsen@cpan.org'.

%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 examples README.md

%changelog
openSUSE Build Service is sponsored by