%global srcname tortilla
%global sum A tiny library for creating wrappers around web APIs
Name: python-%{srcname}
Version: 0.4.1
Release: 7%{?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
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.1-5
- Rebuild for Python 3.6
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Mon Nov 9 2015 René Ribaud <rene.ribaud@free.fr> - 0.4.1-2
- Update based on the comments from Julien (bug 1262645).
* Sun Sep 13 2015 René Ribaud <rene.ribaud@free.fr> - 0.4.1-1
- Initial rpm