File python-txredisapi.spec of Package python-txredisapi
#
# spec file for package python-txredisapi
#
# 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 mod_name txredisapi
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-txredisapi
Version: 1.4.10
Release: 0
Summary: NonBlocking Redis client for Python Twisted
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/IlyaSkriblovsky/txredisapi
Source: https://github.com/IlyaSkriblovsky/txredisapi/archive/v%{version}/%{mod_name}-%{version}.tar.gz
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: psmisc
BuildRequires: python-rpm-macros
Requires: python-Twisted
Requires: python-six
Requires(post): update-alternatives
Requires(postun):update-alternatives
%python_subpackages
%description
txredisapi is a non-blocking client driver for the redis database, written in Python. It uses Twisted for the asynchronous communication with redis.
%prep
%setup -q -n %{mod_name}-%{version}
%build
%python_build
%install
%python_install
%files %{python_files}
%doc *.md
%license LICENSE
%{python_sitelib}/*
%changelog