%global srcname http-client %global desc Quickly and easily access any RESTful or RESTful-like API. Name: python-%{srcname} Version: 3.0.0 Release: 1%{?dist} Summary: HTTP REST client, simplified for Python License: MIT URL: https://github.com/sendgrid/%{name} Source0: %{url}/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz BuildArch: noarch %description %{desc} %package -n python2-%{srcname} Summary: %{summary} BuildRequires: python2-devel BuildRequires: python2-pytest BuildRequires: python2-setuptools %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} %{desc} This is a Python 2 version of the package. %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-setuptools %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{desc} This is a Python 3 version of the package. %prep %autosetup %build %py2_build %py3_build %install %py2_install %py3_install %check py.test-2 -v py.test-3 -v %files -n python2-%{srcname} %license LICENSE.txt %doc README.md %{python2_sitelib}/python_http_client/ %{python2_sitelib}/python_http_client-%{version}-py%{python2_version}.egg-info/ %files -n python3-%{srcname} %license LICENSE.txt %doc README.md %{python3_sitelib}/python_http_client/ %{python3_sitelib}/python_http_client-%{version}-py%{python3_version}.egg-info/ %changelog * Mon Oct 16 2017 Lumír Balhar 3.0.0-1 - New upstream version * Thu Jul 27 2017 Fedora Release Engineering - 2.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 2.2.1-2 - Rebuild for Python 3.6 * Thu Aug 11 2016 Dominika Krejci - 2.2.1-1 - Update to 2.2.1 * Mon Jul 18 2016 Dominika Krejci - 2.1.1-1 - Initial release