commit 5671990edf427cf818e850e2a572576f2c34ebf7 Author: MSVSphere Packaging Team Date: Wed Mar 15 20:12:07 2023 +0300 import python-requests-file-1.5.1-4.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8936a48 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/requests-file-1.5.1.tar.gz diff --git a/.python-requests-file.metadata b/.python-requests-file.metadata new file mode 100644 index 0000000..0beffb9 --- /dev/null +++ b/.python-requests-file.metadata @@ -0,0 +1 @@ +3c9bd5e80a5cc9135e346e5c2b56b7d8dbdbbd66 SOURCES/requests-file-1.5.1.tar.gz diff --git a/SPECS/python-requests-file.spec b/SPECS/python-requests-file.spec new file mode 100644 index 0000000..4ac4e77 --- /dev/null +++ b/SPECS/python-requests-file.spec @@ -0,0 +1,165 @@ +%global srcname requests-file + +Name: python-%{srcname} +Version: 1.5.1 +Release: 4%{?dist} +Summary: Transport adapter for using file:// URLs with python-requests + +License: ASL 2.0 +URL: https://github.com/dashea/requests-file +Source0: %pypi_source + +BuildArch: noarch + +%description +Requests-File is a transport adapter for use with the Requests Python +library to allow local file system access via file:// URLs. + +This is the Python 2 version of the requests_file module + +%package -n python3-requests-file +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. + +This is the Python 3 version of the requests_file module + +%prep +%autosetup -n %{srcname}-%{version} +rm -rf requests_file.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%{pytest} + +%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 +* Wed Mar 15 2023 MSVSphere Packaging Team - 1.5.1-4 +- Rebuilt for MSVSphere 9.1. + +* Tue Aug 10 2021 Mohan Boddu - 1.5.1-4 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 1.5.1-3 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Dec 14 2020 David Shea - 1.5.1-1 +- Make Content-Length optional +- Fix python2 compatibility + +* Wed Jul 29 2020 Fedora Release Engineering - 1.4.3-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 23 2020 Miro Hrončok - 1.4.3-15 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.4.3-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 1.4.3-13 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Fri Aug 16 2019 Miro Hrončok - 1.4.3-12 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.4.3-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.4.3-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Dec 17 2018 David Shea - 1.4.3-9 +- Remove the python2 subpackage +- Remove all the dumb %%if statements + +* Sat Jul 14 2018 Fedora Release Engineering - 1.4.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jun 15 2018 Miro Hrončok - 1.4.3-7 +- Rebuilt for Python 3.7 + +* Fri Mar 16 2018 Iryna Shcherbina - 1.4.3-6 +- Don't build Python 2 subpackage on EL > 7 + +* Mon Feb 26 2018 Nick Bebout - 1.4.3-5 +- Add python2- prefix where possible + +* Fri Feb 09 2018 Fedora Release Engineering - 1.4.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Feb 7 2018 Eli Young - 1.4.3-3 +- Package for EPEL7 + +* Sat Jan 27 2018 Iryna Shcherbina - 1.4.3-2 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Wed Jan 3 2018 David Shea - 1.4.3-1 +- Update to requests-file-1.4.3, which sets the response URL to the request URL + +* Thu Jul 27 2017 Fedora Release Engineering - 1.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Dec 13 2016 Charalampos Stratakis cstratak@redhat.com> - 1.4-5 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 1.4-4 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 1.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 03 2015 Robert Kuska - 1.4-2 +- Rebuilt for Python3.5 rebuild + +* Mon Sep 14 2015 David Shea - 1.4-1 +- Use getprerredencoding instead of nl_langinfo +- Handle files with a drive component +- Switch to the new Fedora packaging guidelines, which renames python-requests-file to python2-requests-file + +* Mon May 18 2015 David Shea - 1.3.1-1 +- Add python version classifiers to the package info + +* Mon May 18 2015 David Shea - 1.3-1 +- Fix a crash when closing a file response. +- Use named aliases instead of integers for status codes. + +* Fri May 8 2015 David Shea - 1.2-1 +- Added support for HEAD requests + +* Thu Mar 12 2015 David Shea - 1.1-1 +- Added handing for %% escapes in URLs +- Proofread the README + +* Tue Mar 10 2015 David Shea - 1.0-1 +- Initial package