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
6b04a33
Release:        19%{?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
6b04a33
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.1.6-19
6b04a33
- Rebuilt for Python 3.13
6b04a33
d26f67b
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-18
d26f67b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
d26f67b
48134dc
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-17
48134dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
48134dc
c8c8fce
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-16
c8c8fce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
c8c8fce
940bbf1
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.1.6-15
940bbf1
- Rebuilt for Python 3.12
940bbf1
8001cfc
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-14
8001cfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
8001cfc
0ce4450
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-13
0ce4450
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
0ce4450
9870cad
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.1.6-12
9870cad
- Rebuilt for Python 3.11
9870cad
4f4013f
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-11
4f4013f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
4f4013f
84a5739
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-10
84a5739
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
84a5739
57d0a85
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.1.6-9
57d0a85
- Rebuilt for Python 3.10
57d0a85
d5a8450
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-8
d5a8450
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d5a8450
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.