Blame python-resumable-urlretrieve.spec

12a8dfc
%global pypi_name resumable-urlretrieve
12a8dfc
12a8dfc
%global desc %{expand: \
12a8dfc
Small library to fetch files over HTTP and resume their download.}
12a8dfc
12a8dfc
Name:           python-%{pypi_name}
12a8dfc
Version:        0.1.6
12a8dfc
Release:        1%{?dist}
12a8dfc
Summary:        Small library to fetch files over HTTP and resume their download
12a8dfc
12a8dfc
License:        MIT
12a8dfc
URL:            https://github.com/berdario/resumable-urlretrieve
12a8dfc
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
12a8dfc
BuildArch:      noarch
12a8dfc
12a8dfc
%?python_enable_dependency_generator
12a8dfc
12a8dfc
BuildRequires: python3-devel
12a8dfc
BuildRequires: python3dist(pytest)
12a8dfc
BuildRequires: python3dist(requests)
12a8dfc
BuildRequires: python3dist(setuptools)
12a8dfc
BuildRequires: python3dist(rangehttpserver)
12a8dfc
12a8dfc
%description
12a8dfc
%{desc}
12a8dfc
12a8dfc
%package -n python3-%{pypi_name}
12a8dfc
Summary: %{summary}
12a8dfc
%{?python_provide:%python_provide python3-%{pypi_name}}
12a8dfc
 
12a8dfc
%description -n python3-%{pypi_name}
12a8dfc
%{desc}
12a8dfc
12a8dfc
%prep
12a8dfc
%autosetup -n %{pypi_name}-%{version}
12a8dfc
12a8dfc
# Comment out to remove /usr/bin/env shebangs
12a8dfc
# Can use something similar to correct/remove /usr/bin/python shebangs also
12a8dfc
find . -type f -name "*.py" -exec sed -i '/^#![  ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
12a8dfc
12a8dfc
%build
12a8dfc
%py3_build
12a8dfc
12a8dfc
%install
12a8dfc
%py3_install
12a8dfc
12a8dfc
%check
12a8dfc
PYTHONPATH=. pytest-3
12a8dfc
12a8dfc
%files -n python3-%{pypi_name}
12a8dfc
%doc README.md
12a8dfc
%{python3_sitelib}/resumable
12a8dfc
%{python3_sitelib}/resumable_urlretrieve-%{version}-py?.?.egg-info
12a8dfc
12a8dfc
%changelog
12a8dfc
* Tue Mar 26 2019 Luis Bazan <lbazan@fedoraproject.org> - 0.1.6-1
12a8dfc
- Unorphaned
12a8dfc
- New upstream version
12a8dfc
12a8dfc
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-5
12a8dfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
12a8dfc
12a8dfc
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 0.1.5-4
12a8dfc
- Rebuilt for Python 3.7
12a8dfc
12a8dfc
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-3
12a8dfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
12a8dfc
12a8dfc
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.5-2
12a8dfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
12a8dfc
12a8dfc
* Fri Mar 17 2017 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 0.1.5-1
12a8dfc
- Update to 0.1.5 (#1433337)
12a8dfc
12a8dfc
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-2
12a8dfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
12a8dfc
12a8dfc
* Thu Jan 19 2017 Mathieu Bridon <bochecha@daitauha.fr> - 0.1.4-1
12a8dfc
- New upstream version, which now includes the README file (which contains the
12a8dfc
  license text).
12a8dfc
12a8dfc
* Mon Dec 12 2016 Mathieu Bridon <bochecha@daitauha.fr> - 0.1.3-1
12a8dfc
- New upstream version.
12a8dfc
12a8dfc
* Sat Oct 15 2016 Mathieu Bridon <bochecha@daitauha.fr> - 0.1.2-1
12a8dfc
- New upstream version.
12a8dfc
- Add the test requirements, and properly run the tests.
12a8dfc
12a8dfc
* Thu Jan 28 2016 Mathieu Bridon <bochecha@daitauha.fr> - 0.1.1-1
12a8dfc
- Initial package for Fedora.