Blob Blame History Raw
%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.3
Release:       1%{?dist}
Source0:       https://files.pythonhosted.org/packages/source/r/%{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-pytest
BuildRequires: python3-rangehttpserver
BuildRequires: python3-requests

Requires:      python3-requests

%description -n python3-%{srcname}
%{description}


%prep
%setup -q -n %{srcname}-%{version}


%build
%py3_build


%install
%py3_install


%check
PYTHONPATH=. py.test-3


%files -n python3-%{srcname}
%{python3_sitelib}/%{modname}
%{python3_sitelib}/%{modname}*.egg-info


%changelog
* Mon Dec 12 2016 Mathieu Bridon <bochecha@daitauha.fr> - 0.1.3-1
- New upstream version.

* Sat Oct 15 2016 Mathieu Bridon <bochecha@daitauha.fr> - 0.1.2-1
- New upstream version.
- Add the test requirements, and properly run the tests.

* Thu Jan 28 2016 Mathieu Bridon <bochecha@daitauha.fr> - 0.1.1-1
- Initial package for Fedora.