Blame python-resumable-urlretrieve.spec

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