From 2b8ce1c9fdfaa396caa66e7b6f3a0c1dfe0b07e8 Mon Sep 17 00:00:00 2001 From: Luis Bazan Date: Mar 26 2019 23:33:40 +0000 Subject: new upstream verison --- diff --git a/.gitignore b/.gitignore index 4a8fdc8..65df409 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /resumable-urlretrieve-0.1.3.tar.gz /resumable-urlretrieve-0.1.4.tar.gz /resumable-urlretrieve-0.1.5.tar.gz +/resumable-urlretrieve-0.1.6.tar.gz diff --git a/python-resumable-urlretrieve.spec b/python-resumable-urlretrieve.spec index 4f0c4f7..a28a21f 100644 --- a/python-resumable-urlretrieve.spec +++ b/python-resumable-urlretrieve.spec @@ -1,60 +1,59 @@ -%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.5 -Release: 3%{?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} - +%global pypi_name resumable-urlretrieve + +%global desc %{expand: \ +Small library to fetch files over HTTP and resume their download.} + +Name: python-%{pypi_name} +Version: 0.1.6 +Release: 1%{?dist} +Summary: Small library to fetch files over HTTP and resume their download + +License: MIT +URL: https://github.com/berdario/resumable-urlretrieve +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%?python_enable_dependency_generator BuildRequires: python3-devel -# For the unit tests -BuildRequires: python3-pytest -BuildRequires: python3-rangehttpserver -BuildRequires: python3-requests - -Requires: python3-requests - -%description -n python3-%{srcname} -%{description} - - +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(requests) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(rangehttpserver) + +%description +%{desc} + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%{desc} + %prep -%setup -q -n %{srcname}-%{version} - - +%autosetup -n %{pypi_name}-%{version} + +# Comment out to remove /usr/bin/env shebangs +# Can use something similar to correct/remove /usr/bin/python shebangs also +find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';' + %build %py3_build - - %install %py3_install - - %check -PYTHONPATH=. py.test-3 - - -%files -n python3-%{srcname} +PYTHONPATH=. pytest-3 + +%files -n python3-%{pypi_name} %doc README.md -%{python3_sitelib}/%{modname} -%{python3_sitelib}/%{modname}*.egg-info - - +%{python3_sitelib}/resumable +%{python3_sitelib}/resumable_urlretrieve-%{version}-py?.?.egg-info + %changelog +* Tue Mar 26 2019 Luis Bazan - 0.1.6-1 +- Unorphaned +- New upstream version + * Fri Feb 09 2018 Fedora Release Engineering - 0.1.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources index 80e13c9..b8edb64 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (resumable-urlretrieve-0.1.5.tar.gz) = d9af75ac3301aefa0773731539075ff3ecd0614ba48ac7de4a84817b676dfcdcc68e67cf02329d4adc62629b173cd2b8efc525c0f48fa686b267a75c29143aec +SHA512 (resumable-urlretrieve-0.1.6.tar.gz) = 2bff31f0635754e1a6a703ad2fc619a7b047b5f4cc32a9c5d613d570cdec349a9d026238f971509c7a0086593a88b0cdfd1e90c85ad2f54935cd3883fd785d18