%global modname resumable %global srcname resumable-urlretrieve %global sum Small library to fetch files over HTTP and resume their download Name: python-%{srcname} Summary: %{sum} URL: https://pypi.python.org/pypi/%{srcname} License: MIT Version: 0.1.1 Release: 1%{?dist} Source0: https://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch %description Small library to fetch files over HTTP and resuming their download. %package -n python3-%{srcname} Summary: %{sum} BuildRequires: python3-devel # For the unit tests BuildRequires: python3-requests Requires: python3-requests %description -n python3-%{srcname} %{description} %prep %autosetup -n %{srcname}-%{version} %build %py3_build %install %py3_install %check %{__python3} setup.py test %files -n python3-%{srcname} %{python3_sitelib}/%{modname} %{python3_sitelib}/%{modname}*.egg-info %changelog * Thu Jan 28 2016 Mathieu Bridon - 0.1.1-1 - Initial package for Fedora.