From cbd633bbdd9fdf80f7e81b81be44ff446485e9b7 Mon Sep 17 00:00:00 2001 From: Luis Bazan Date: Mar 26 2019 23:26:43 +0000 Subject: -new upstream version -unorphaned --- 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 f44191f..6421c6d 100644 --- a/python-resumable-urlretrieve.spec +++ b/python-resumable-urlretrieve.spec @@ -1,60 +1,62 @@ -%global modname resumable -%global srcname resumable-urlretrieve -%global sum Small library to fetch files over HTTP and resume their download +%global pypi_name resumable-urlretrieve -Name: python-%{srcname} -Summary: %{sum} -URL: https://pypi.python.org/pypi/%{srcname} -License: MIT +%global desc %{expand: \ +Small library to fetch files over HTTP and resume their download.} -Version: 0.1.5 -Release: 5%{?dist} -Source0: https://files.pythonhosted.org/packages/source/r/%{srcname}/%{srcname}-%{version}.tar.gz +Name: python-%{pypi_name} +Version: 0.1.6 +Release: 1%{?dist} +Summary: Small library to fetch files over HTTP and resume their download -BuildArch: noarch +License: MIT +URL: https://github.com/berdario/resumable-urlretrieve +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch -%description -Small library to fetch files over HTTP and resuming their download. - - -%package -n python3-%{srcname} -Summary: %{sum} +%?python_enable_dependency_generator BuildRequires: python3-devel -# For the unit tests -BuildRequires: python3-pytest -BuildRequires: python3-rangehttpserver -BuildRequires: python3-requests +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(requests) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(rangehttpserver) -Requires: python3-requests - -%description -n python3-%{srcname} -%{description} +%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 - +PYTHONPATH=. pytest-3 -%files -n python3-%{srcname} +%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 + * Sat Jul 14 2018 Fedora Release Engineering - 0.1.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_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