%global srcname txredisapi %global desc \ txredisapi is a non-blocking client driver for the Redis database, \ written in Python. It uses Twisted for the asynchronous communication \ with Redis. \ \ It started as a fork of the original Redis protocol for Twisted, and \ evolved into a more robust, reliable, and complete solution for \ applications like web servers. These types of applications often need a \ fault-tolerant pool of connections with multiple Redis servers, making it \ possible to easily develop and maintain distributed systems. \ \ Most of the Redis commands are supported, as well as other features such as \ silent reconnection, connection pools, and automatic sharding. \ \ This driver is distributed as part of the cyclone web framework. Name: python-%{srcname} Version: 1.4.4 Release: 1%{?dist} Summary: Non-blocking Redis client for Python License: ASL 2.0 URL: http://github.com/fiorix/txredisapi Source0: https://files.pythonhosted.org/packages/source/t/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python3-devel BuildRequires: python3-setuptools %description %{desc} %package -n python2-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python2-%{srcname}} Requires: python2-six Requires: python2-twisted %description -n python2-%{srcname} %{desc} %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} Requires: python3-six Requires: python3-twisted %description -n python3-%{srcname} %{desc} %prep %autosetup -n %{srcname}-%{version} # Remove bundled egg-info rm -rf %{srcname}.egg-info %build %py2_build %py3_build %install %py3_install %py2_install %files -n python2-%{srcname} %{python2_sitelib}/%{srcname}.py* %{python2_sitelib}/%{srcname}-%{version}-py?.?.egg-info %files -n python3-%{srcname} %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{srcname}.py %{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info %changelog * Wed Jan 31 2018 Aurelien Bompard - 1.4.4-1 - Initial package.