%global srcname redis %global sum Python client for Redis key-value store Name: python-%{srcname} Version: 2.10.5 Release: 1%{?dist} Summary: %{sum} License: MIT URL: http://pypi.python.org/pypi/%{srcname} Source0: http://pypi.python.org/packages/source/e/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel python3-devel %description The Python interface to the Redis key-value store. %package -n python2-%{srcname} Summary: %{sum} %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} The Python interface to the Redis key-value store. %package -n python3-%{srcname} Summary: %{sum} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} The Python interface to the Redis key-value store. %prep %autosetup -n %{srcname}-%{version} %build %py2_build %py3_build %install # Must do the python2 install first because the scripts in /usr/bin are # overwritten with every setup.py install, and in general we want the # python3 version to be the default. %py2_install %py3_install # Note that there is no %%files section for the unversioned python module if we are building for several python runtimes %files -n python2-%{srcname} %license LICENSE %doc CHANGES README.rst %{python2_sitelib}/* %files -n python3-%{srcname} %license LICENSE %doc CHANGES README.rst %{python3_sitelib}/* %changelog * Tue Jun 07 2016 Stefan Nuxoll - 2.10.5-1 - Version 2.10.5