From df808a9888537d93adc4e5b039fcd6fb325513ee Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Jan 15 2017 19:55:39 +0000 Subject: Package was accepted in Fedora --- diff --git a/.gitignore b/.gitignore index e69de29..66de675 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/resumable-urlretrieve-0.1.2.tar.gz +/resumable-urlretrieve-0.1.3.tar.gz diff --git a/python-resumable-urlretrieve.spec b/python-resumable-urlretrieve.spec new file mode 100644 index 0000000..8c7dc6f --- /dev/null +++ b/python-resumable-urlretrieve.spec @@ -0,0 +1,65 @@ +%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 - 0.1.3-1 +- New upstream version. + +* Sat Oct 15 2016 Mathieu Bridon - 0.1.2-1 +- New upstream version. +- Add the test requirements, and properly run the tests. + +* Thu Jan 28 2016 Mathieu Bridon - 0.1.1-1 +- Initial package for Fedora. diff --git a/sources b/sources index e69de29..a73161c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (resumable-urlretrieve-0.1.3.tar.gz) = e8d2e6c4eb06efef1041adb3e064ba2d3bae62f724b63eae559d6bd15a7b21c8d97e68042778d087ca73856b092cc39ca21ba1ceace72306384a2273f3b75918