From 9363940171b99e150444c1d2dbc0694ed3e334e1 Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Jan 28 2016 14:09:13 +0000 Subject: Package submitted for review https://bugzilla.redhat.com/show_bug.cgi?id=1302744 --- diff --git a/.gitignore b/.gitignore index e69de29..4740cc1 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/resumable-urlretrieve-0.1.1.tar.gz diff --git a/python-resumable-urlretrieve.spec b/python-resumable-urlretrieve.spec new file mode 100644 index 0000000..00739d2 --- /dev/null +++ b/python-resumable-urlretrieve.spec @@ -0,0 +1,56 @@ +%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. diff --git a/sources b/sources index e69de29..cc8e605 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fad1b77af90e24881a4e9eb598dffa69 resumable-urlretrieve-0.1.1.tar.gz