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

# spec file for package perl-Mojo-Redis
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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-Mojo-Redis
Version:        3.24
Release:        0
%define cpan_name Mojo-Redis
Summary:        Redis driver based on Mojo::IOLoop
License:        Artistic-2.0
Group:          Development/Libraries/Perl
Url:  {cpan_name}
Source1:        cpanspec.yml
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Mojolicious) >= 7.80
BuildRequires:  perl(Protocol::Redis::Faster) >= 0.002
BuildRequires:  perl(Test::More) >= 0.88
Requires:       perl(Mojolicious) >= 7.80
Requires:       perl(Protocol::Redis::Faster) >= 0.002

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 if you find this module
useful, annoying or if you simply find bugs. Feedback can also be sent to

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

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

make test


%files -f %{name}.files
%doc Changes examples