%global srcname tortilla %global sum A tiny library for creating wrappers around web APIs Name: python-%{srcname} Version: 0.4.1 Release: 2%{?dist} Summary: A tiny library for creating wrappers around web APIs License: MIT URL: http://pypi.python.org/pypi/%{srcname} Source0: http://pypi.python.org/packages/source/t/%{srcname}/%{srcname}-%{version}.tar.gz Source1: https://raw.githubusercontent.com/redodo/tortilla/master/LICENSE BuildArch: noarch BuildRequires: python2-devel python3-devel %description A tiny library for creating wrappers around web APIs %package -n python2-%{srcname} Requires: python-requests Requires: python-six Requires: python2-formats Requires: python2-colorclass Summary: A tiny library for creating wrappers around web APIs %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} A tiny library for creating wrappers around web APIs %package -n python3-%{srcname} Requires: python3-requests Requires: python3-six Requires: python3-formats Requires: python3-colorclass Summary: A tiny library for creating wrappers around web APIs %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} A tiny library for creating wrappers around web APIs %prep %autosetup -n %{srcname}-%{version} cp %{SOURCE1} . rm -rf tortilla.egg-info %build %py2_build %py3_build %install %py2_install %py3_install %check %files -n python2-%{srcname} %license LICENSE %doc README.rst %{python2_sitelib}/tortilla* %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/tortilla* %changelog * Mon Nov 9 2015 René Ribaud - 0.4.1-2 - Update based on the comments from Julien (bug 1262645). * Sun Sep 13 2015 René Ribaud - 0.4.1-1 - Initial rpm