2015-05-08 20:26:29 +00:00
|
|
|
Name: python-requests-ftp
|
|
|
|
Version: 0.3.0
|
2015-06-18 20:38:08 +00:00
|
|
|
Release: 2%{?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
|
|
|
|
Source0: https://pypi.python.org/packages/source/r/requests-ftp/requests-ftp-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
|
|
|
Requires: python-requests
|
|
|
|
|
|
|
|
%description
|
|
|
|
Requests-FTP is an implementation of a very stupid FTP transport adapter for
|
|
|
|
use with the awesome Requests Python library.
|
|
|
|
|
|
|
|
%package -n python3-requests-ftp
|
|
|
|
Summary: FTP transport adapter for python3-requests
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qc
|
|
|
|
mv requests-ftp-%{version} python2
|
|
|
|
pushd python2
|
|
|
|
rm -rf requests_ftp.egg-info
|
|
|
|
|
|
|
|
# Copy common doc files to top dir
|
|
|
|
cp -pr README.rst LICENSE ..
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
cp -a python2 python3
|
|
|
|
|
|
|
|
%build
|
|
|
|
pushd python2
|
|
|
|
%{__python2} setup.py build
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd python3
|
|
|
|
%{__python3} setup.py build
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd python2
|
|
|
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd python3
|
|
|
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
|
popd
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python2_sitelib}/requests_ftp/
|
|
|
|
%{python2_sitelib}/requests_ftp*.egg-info*
|
|
|
|
|
|
|
|
%files -n python3-requests-ftp
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python3_sitelib}/requests_ftp/
|
|
|
|
%{python3_sitelib}/requests_ftp*.egg-info*
|
|
|
|
|
|
|
|
%changelog
|
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
|