|
|
|
@ -1,93 +1,68 @@
|
|
|
|
|
%global srcname requests-file
|
|
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
|
Version: 2.0.0
|
|
|
|
|
Version: 1.5.1
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: Transport adapter for using file:// URLs with python-requests
|
|
|
|
|
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: https://github.com/dashea/requests-file
|
|
|
|
|
Source0: %pypi_source
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3dist(pytest)
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
%description
|
|
|
|
|
Requests-File is a transport adapter for use with the Requests Python
|
|
|
|
|
library to allow local file system access via file:// URLs.}
|
|
|
|
|
library to allow local file system access via file:// URLs.
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
This is the Python 2 version of the requests_file module
|
|
|
|
|
|
|
|
|
|
%package -n python3-requests-file
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
Summary: Transport adapter for using file:// URLs with python3-requests
|
|
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-requests
|
|
|
|
|
BuildRequires: python3-six
|
|
|
|
|
|
|
|
|
|
Requires: python3-requests
|
|
|
|
|
Requires: python3-six
|
|
|
|
|
|
|
|
|
|
%description -n python3-requests-file
|
|
|
|
|
Requests-File is a transport adapter for use with the Requests Python
|
|
|
|
|
library to allow local file system access via file:// URLs.
|
|
|
|
|
|
|
|
|
|
%description -n python3-requests-file %_description
|
|
|
|
|
This is the Python 3 version of the requests_file module
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
rm -rf requests_file.egg-info
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files requests_file
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{pytest}
|
|
|
|
|
|
|
|
|
|
%files -n python3-requests-file -f %{pyproject_files}
|
|
|
|
|
%files -n python3-requests-file
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python3_sitelib}/requests_file.py*
|
|
|
|
|
%{python3_sitelib}/__pycache__/requests_file.*
|
|
|
|
|
%{python3_sitelib}/requests_file*.egg-info*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.0.0-4
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.0.0-3
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 02 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 2.0.0-2
|
|
|
|
|
- Avoid tox dependency
|
|
|
|
|
|
|
|
|
|
* Mon Jan 29 2024 David Shea <reallylongword@gmail.com> - 2.0.0-1
|
|
|
|
|
- Update to version 2.0.0
|
|
|
|
|
- Apply current python packaging recommendations to the spec file
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.5.1-9
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.5.1-6
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.1-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.5.1-3
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.1-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|