|
|
dec5f6 |
%global pypi_name requests_download
|
|
|
dec5f6 |
Name: python-requests-download
|
|
|
dec5f6 |
Version: 0.1.2
|
|
|
dec5f6 |
Release: 5%{?dist}
|
|
|
dec5f6 |
Summary: Download files using requests and save them to a target path
|
|
|
dec5f6 |
|
|
|
dec5f6 |
License: MIT
|
|
|
dec5f6 |
URL: https://www.github.com/takluyver/requests_download
|
|
|
dec5f6 |
Source0: %{pypi_source}
|
|
|
dec5f6 |
BuildArch: noarch
|
|
|
dec5f6 |
BuildRequires: pyproject-rpm-macros
|
|
|
dec5f6 |
|
|
|
dec5f6 |
%global _description %{expand:
|
|
|
dec5f6 |
A convenient function to download to a file using requests.
|
|
|
dec5f6 |
|
|
|
dec5f6 |
Basic usage:
|
|
|
dec5f6 |
|
|
|
dec5f6 |
url = "https://github.com/takluyver/requests_download/archive/master.zip"
|
|
|
dec5f6 |
download(url, "requests_download.zip")
|
|
|
dec5f6 |
|
|
|
dec5f6 |
An optional headers= parameter is passed through to requests.}
|
|
|
dec5f6 |
|
|
|
dec5f6 |
%description %_description
|
|
|
dec5f6 |
|
|
|
dec5f6 |
|
|
|
dec5f6 |
%package -n python3-requests-download
|
|
|
dec5f6 |
Summary: %{summary}
|
|
|
dec5f6 |
%{?python_provide:%python_provide python3-requests-download}
|
|
|
dec5f6 |
|
|
|
dec5f6 |
%description -n python3-requests-download %_description
|
|
|
dec5f6 |
|
|
|
dec5f6 |
|
|
|
dec5f6 |
%prep
|
|
|
dec5f6 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
dec5f6 |
|
|
|
dec5f6 |
%generate_buildrequires
|
|
|
dec5f6 |
%pyproject_buildrequires -r
|
|
|
dec5f6 |
|
|
|
dec5f6 |
%build
|
|
|
dec5f6 |
%pyproject_wheel
|
|
|
dec5f6 |
|
|
|
dec5f6 |
%install
|
|
|
dec5f6 |
%pyproject_install
|
|
|
dec5f6 |
|
|
|
dec5f6 |
%check
|
|
|
dec5f6 |
# as of 0.1.2, upstream has no tests :(
|
|
|
dec5f6 |
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
|
dec5f6 |
%{python3} -c 'import sys; sys.path.remove(""); import requests_download'
|
|
|
dec5f6 |
|
|
|
dec5f6 |
%files -n python3-requests-download
|
|
|
dec5f6 |
%license LICENSE
|
|
|
dec5f6 |
%doc README.rst
|
|
|
dec5f6 |
%pycached %{python3_sitelib}/%{pypi_name}.py
|
|
|
dec5f6 |
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/
|
|
|
dec5f6 |
|
|
|
dec5f6 |
|
|
|
dec5f6 |
%changelog
|
|
|
dec5f6 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-5
|
|
|
dec5f6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
dec5f6 |
|
|
|
dec5f6 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-4
|
|
|
dec5f6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
dec5f6 |
|
|
|
dec5f6 |
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.1.2-3
|
|
|
dec5f6 |
- Rebuilt for Python 3.9
|
|
|
dec5f6 |
|
|
|
dec5f6 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-2
|
|
|
dec5f6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
dec5f6 |
|
|
|
dec5f6 |
* Sun Dec 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.1.2-1
|
|
|
dec5f6 |
- Initial package
|