2015-09-14 14:22:42 +00:00
|
|
|
%global srcname requests-ftp
|
|
|
|
|
2018-04-24 13:53:28 +00:00
|
|
|
# Disable python3 by default on RHEL < 7
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
%bcond_with python3
|
|
|
|
%else
|
|
|
|
%bcond_without python3
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Diable python2 by default on RHEL > 7 or Fedora > 28
|
|
|
|
%if 0%{?rhel} > 7 || 0%{?fedora} > 28
|
|
|
|
%bcond_with python2
|
|
|
|
%else
|
|
|
|
%bcond_without python2
|
|
|
|
%endif
|
|
|
|
|
2015-09-14 14:22:42 +00:00
|
|
|
Name: python-%{srcname}
|
|
|
|
Version: 0.3.1
|
2021-07-23 09:12:08 +00:00
|
|
|
Release: 23%{?dist}
|
2015-05-08 20:26:29 +00:00
|
|
|
Summary: FTP transport adapter for python-requests
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://github.com/Lukasa/requests-ftp
|
2015-09-14 14:22:42 +00:00
|
|
|
Source0: https://pypi.python.org/packages/source/r/%{srcname}/%{srcname}-%{version}.tar.gz
|
2015-05-08 20:26:29 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2018-08-02 14:24:00 +00:00
|
|
|
# from https://github.com/Lukasa/requests-ftp/pull/28, handle multi-line responses
|
|
|
|
# from 4090846
|
|
|
|
Patch1: PR28-01-Adding-2-tests-and-updated-statud_code-build.patch
|
|
|
|
# from 4f6a9f5
|
|
|
|
Patch2: PR28-02-Adding-code-3-to-retr4ieve-status_code.patch
|
|
|
|
# from 3fb2700
|
|
|
|
Patch3: PR28-03-fix-warning-in-interpreting-ftp-status-codes-minor-d.patch
|
|
|
|
# 2caa427 is only test updates, tests not in pypi tarball
|
|
|
|
# from 7321ab3
|
|
|
|
Patch5: PR28-05-Improve-logging-in-status-code-extraction.patch
|
|
|
|
|
|
|
|
|
2015-09-14 14:22:42 +00:00
|
|
|
%description
|
|
|
|
Requests-FTP is an implementation of a very stupid FTP transport adapter for
|
|
|
|
use with the awesome Requests Python library.
|
|
|
|
|
2018-04-24 13:53:28 +00:00
|
|
|
%if %{with python2}
|
2015-09-14 14:22:42 +00:00
|
|
|
%package -n python2-%{srcname}
|
|
|
|
Summary: FTP transport adapter for python-requests
|
|
|
|
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
|
|
2015-05-08 20:26:29 +00:00
|
|
|
BuildRequires: python2-devel
|
2018-01-27 02:39:54 +00:00
|
|
|
BuildRequires: python2-setuptools
|
2015-05-08 20:26:29 +00:00
|
|
|
|
2018-01-27 02:39:54 +00:00
|
|
|
Requires: python2-requests
|
2015-05-08 20:26:29 +00:00
|
|
|
|
2015-09-14 14:22:42 +00:00
|
|
|
%description -n python2-%{srcname}
|
2015-05-08 20:26:29 +00:00
|
|
|
Requests-FTP is an implementation of a very stupid FTP transport adapter for
|
|
|
|
use with the awesome Requests Python library.
|
|
|
|
|
2015-09-14 14:22:42 +00:00
|
|
|
This is the Python 2 version of the transport adapter module.
|
2018-04-24 13:53:28 +00:00
|
|
|
%endif
|
2015-09-14 14:22:42 +00:00
|
|
|
|
2018-04-24 13:53:28 +00:00
|
|
|
%if %{with python3}
|
2015-09-14 14:22:42 +00:00
|
|
|
%package -n python3-%{srcname}
|
2015-05-08 20:26:29 +00:00
|
|
|
Summary: FTP transport adapter for python3-requests
|
2015-09-14 14:22:42 +00:00
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
2015-05-08 20:26:29 +00:00
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
Requires: python3-requests
|
|
|
|
|
|
|
|
%description -n python3-requests-ftp
|
|
|
|
Requests-FTP is an implementation of a very stupid FTP transport adapter for
|
|
|
|
use with the awesome Requests Python library.
|
|
|
|
|
|
|
|
This is the Python 3 version of the transport adapter module.
|
2018-04-24 13:53:28 +00:00
|
|
|
%endif
|
2015-05-08 20:26:29 +00:00
|
|
|
|
|
|
|
%prep
|
2018-08-02 14:24:00 +00:00
|
|
|
%autosetup -n %{srcname}-%{version} -p1
|
2015-05-08 20:26:29 +00:00
|
|
|
rm -rf requests_ftp.egg-info
|
|
|
|
|
|
|
|
%build
|
2018-04-24 13:53:28 +00:00
|
|
|
%if %{with python2}
|
2015-09-14 14:22:42 +00:00
|
|
|
%py2_build
|
2018-04-24 13:53:28 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with python3}
|
2015-09-14 14:22:42 +00:00
|
|
|
%py3_build
|
2018-04-24 13:53:28 +00:00
|
|
|
%endif
|
2015-05-08 20:26:29 +00:00
|
|
|
|
|
|
|
%install
|
2018-04-24 13:53:28 +00:00
|
|
|
%if %{with python2}
|
2015-09-14 14:22:42 +00:00
|
|
|
%py2_install
|
2018-04-24 13:53:28 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with python3}
|
2015-09-14 14:22:42 +00:00
|
|
|
%py3_install
|
2018-04-24 13:53:28 +00:00
|
|
|
%endif
|
2015-05-08 20:26:29 +00:00
|
|
|
|
2018-04-24 13:53:28 +00:00
|
|
|
%if %{with python2}
|
2015-09-14 14:22:42 +00:00
|
|
|
%files -n python2-%{srcname}
|
2015-05-08 20:26:29 +00:00
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python2_sitelib}/requests_ftp/
|
|
|
|
%{python2_sitelib}/requests_ftp*.egg-info*
|
2018-04-24 13:53:28 +00:00
|
|
|
%endif
|
2015-05-08 20:26:29 +00:00
|
|
|
|
2018-04-24 13:53:28 +00:00
|
|
|
%if %{with python3}
|
2015-09-14 14:22:42 +00:00
|
|
|
%files -n python3-%{srcname}
|
2015-05-08 20:26:29 +00:00
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python3_sitelib}/requests_ftp/
|
|
|
|
%{python3_sitelib}/requests_ftp*.egg-info*
|
2018-04-24 13:53:28 +00:00
|
|
|
%endif
|
2015-05-08 20:26:29 +00:00
|
|
|
|
|
|
|
%changelog
|
2021-07-23 09:12:08 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-23
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-03 09:24:52 +00:00
|
|
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 0.3.1-22
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
2021-01-27 13:07:43 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-21
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-29 03:37:01 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-20
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-23 05:30:59 +00:00
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-19
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-01-30 14:58:46 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-18
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-10-03 12:28:30 +00:00
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-17
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
2019-08-16 10:00:03 +00:00
|
|
|
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-16
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-07-26 15:59:09 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-02 09:03:12 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-08-02 14:24:00 +00:00
|
|
|
* Thu Aug 2 2018 David Shea <dshea@redhat.com> - 0.3.1-13
|
|
|
|
- Fix handling of multi-line FTP responses
|
|
|
|
|
2018-07-14 01:53:28 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-15 22:16:04 +00:00
|
|
|
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-11
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-04-24 13:53:28 +00:00
|
|
|
* Tue Apr 24 2018 David Shea <dshea@redhat.com> - 0.3.1-10
|
|
|
|
- Conditionalize the python2 and python3 builds
|
|
|
|
|
2018-02-09 10:31:51 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-27 02:39:54 +00:00
|
|
|
* Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.1-8
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2017-07-27 11:40:09 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 10:19:18 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-13 22:38:45 +00:00
|
|
|
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 0.3.1-5
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-07-19 11:27:28 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-4
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 20:47:59 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-03 16:33:13 +00:00
|
|
|
* Tue Nov 03 2015 Robert Kuska <rkuska@redhat.com> - 0.3.1-2
|
|
|
|
- Rebuilt for Python3.5 rebuild
|
|
|
|
|
2015-09-14 14:22:42 +00:00
|
|
|
* Mon Sep 14 2015 David Shea <dshea@redhat.com> - 0.3.1-1
|
|
|
|
- Update to requests-ftp-0.3.1, which fixes the LIST command
|
|
|
|
- Switch to the new python packaging guidelines, which renames python-requests-ftp to python2-requests-ftp
|
|
|
|
|
2015-06-18 20:38:08 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-08 20:26:29 +00:00
|
|
|
* Fri Apr 10 2015 David Shea <dshea@redhat.com> - 0.3.0-1
|
|
|
|
- New upstream version 0.3.0
|
|
|
|
- Adds proxy support and improves compatibility with HTTP requests
|
|
|
|
|
|
|
|
* Thu Mar 12 2015 David Shea <dshea@redhat.com> - 0.2.0-1
|
|
|
|
- Initial package
|