Compare commits
No commits in common. "c8s" and "c9" have entirely different histories.
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
SOURCES/requests-file-1.4.3.tar.gz
|
SOURCES/requests-file-1.5.1.tar.gz
|
||||||
/requests-file-1.4.3.tar.gz
|
|
||||||
|
1
.python-requests-file.metadata
Normal file
1
.python-requests-file.metadata
Normal file
@ -0,0 +1 @@
|
|||||||
|
3c9bd5e80a5cc9135e346e5c2b56b7d8dbdbbd66 SOURCES/requests-file-1.5.1.tar.gz
|
@ -1,26 +1,13 @@
|
|||||||
%global srcname requests-file
|
%global srcname requests-file
|
||||||
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
||||||
%bcond_with python3
|
|
||||||
%else
|
|
||||||
%bcond_without python3
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?rhel} > 7
|
|
||||||
# Disable python2 build by default
|
|
||||||
%bcond_with python2
|
|
||||||
%else
|
|
||||||
%bcond_without python2
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 1.4.3
|
Version: 1.5.1
|
||||||
Release: 5%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Transport adapter for using file:// URLs with python-requests
|
Summary: Transport adapter for using file:// URLs with python-requests
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/dashea/requests-file
|
URL: https://github.com/dashea/requests-file
|
||||||
Source0: https://files.pythonhosted.org/packages/source/r/%{srcname}/%{srcname}-%{version}.tar.gz
|
Source0: %pypi_source
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -30,43 +17,12 @@ library to allow local file system access via file:// URLs.
|
|||||||
|
|
||||||
This is the Python 2 version of the requests_file module
|
This is the Python 2 version of the requests_file module
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%package -n python2-%{srcname}
|
|
||||||
Summary: Transport adapter for using file:// URLs with python-requests
|
|
||||||
%{?python_provide:%python_provide python2-%{srcname}}
|
|
||||||
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
||||||
# EL7 has unversioned names for these packages
|
|
||||||
BuildRequires: python-devel
|
|
||||||
BuildRequires: python-setuptools
|
|
||||||
BuildRequires: python-requests
|
|
||||||
BuildRequires: python-six
|
|
||||||
|
|
||||||
Requires: python-requests
|
|
||||||
Requires: python-six
|
|
||||||
%else
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python2-setuptools
|
|
||||||
BuildRequires: python2-requests
|
|
||||||
BuildRequires: python2-six
|
|
||||||
|
|
||||||
Requires: python2-requests
|
|
||||||
Requires: python2-six
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description -n python2-%{srcname}
|
|
||||||
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
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%package -n python3-requests-file
|
%package -n python3-requests-file
|
||||||
Summary: Transport adapter for using file:// URLs with python3-requests
|
Summary: Transport adapter for using file:// URLs with python3-requests
|
||||||
%{?python_provide:%python_provide python3-%{srcname}}
|
%{?python_provide:%python_provide python3-%{srcname}}
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-requests
|
BuildRequires: python3-requests
|
||||||
BuildRequires: python3-six
|
BuildRequires: python3-six
|
||||||
@ -79,57 +35,79 @@ 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.
|
||||||
|
|
||||||
This is the Python 3 version of the requests_file module
|
This is the Python 3 version of the requests_file module
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{srcname}-%{version}
|
%autosetup -n %{srcname}-%{version}
|
||||||
rm -rf requests_file.egg-info
|
rm -rf requests_file.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{with python2}
|
|
||||||
%py2_build
|
|
||||||
%endif
|
|
||||||
%if %{with python3}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{with python2}
|
|
||||||
%py2_install
|
|
||||||
%endif
|
|
||||||
%if %{with python3}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with python2}
|
%{pytest}
|
||||||
%{__python2} setup.py test
|
|
||||||
%endif
|
|
||||||
%if %{with python3}
|
|
||||||
%{__python3} setup.py test
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%files -n python2-%{srcname}
|
|
||||||
%license LICENSE
|
|
||||||
%doc README.rst
|
|
||||||
%{python2_sitelib}/requests_file.py*
|
|
||||||
%{python2_sitelib}/requests_file*.egg-info*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%files -n python3-requests-file
|
%files -n python3-requests-file
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitelib}/requests_file.py*
|
%{python3_sitelib}/requests_file.py*
|
||||||
%{python3_sitelib}/__pycache__/requests_file.*
|
%{python3_sitelib}/__pycache__/requests_file.*
|
||||||
%{python3_sitelib}/requests_file*.egg-info*
|
%{python3_sitelib}/requests_file*.egg-info*
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
||||||
|
|
||||||
|
* 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
|
||||||
|
|
||||||
|
* Mon Dec 14 2020 David Shea <reallylongword@gmail.com> - 1.5.1-1
|
||||||
|
- Make Content-Length optional
|
||||||
|
- Fix python2 compatibility
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-16
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-15
|
||||||
|
- Rebuilt for Python 3.9
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-14
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-13
|
||||||
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||||
|
|
||||||
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-12
|
||||||
|
- Rebuilt for Python 3.8
|
||||||
|
|
||||||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-10
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Dec 17 2018 David Shea <dshea@redhat.com> - 1.4.3-9
|
||||||
|
- Remove the python2 subpackage
|
||||||
|
- Remove all the dumb %%if statements
|
||||||
|
|
||||||
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-7
|
||||||
|
- Rebuilt for Python 3.7
|
||||||
|
|
||||||
* Fri Mar 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.4.3-6
|
* Fri Mar 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.4.3-6
|
||||||
- Don't build Python 2 subpackage on EL > 7
|
- Don't build Python 2 subpackage on EL > 7
|
||||||
|
|
||||||
|
* Mon Feb 26 2018 Nick Bebout <nb@usi.edu> - 1.4.3-5
|
||||||
|
- Add python2- prefix where possible
|
||||||
|
|
||||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-4
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
Loading…
Reference in New Issue
Block a user