diff --git a/.gitignore b/.gitignore index e69de29..2a8355c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/requests-ftp-0.3.0.tar.gz diff --git a/python-requests-ftp.spec b/python-requests-ftp.spec new file mode 100644 index 0000000..0032b19 --- /dev/null +++ b/python-requests-ftp.spec @@ -0,0 +1,84 @@ +Name: python-requests-ftp +Version: 0.3.0 +Release: 1%{?dist} +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 +* Fri Apr 10 2015 David Shea - 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 - 0.2.0-1 +- Initial package diff --git a/sources b/sources index e69de29..c9e408a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +16b87b45b69cb486ed91e8def6ce278c requests-ftp-0.3.0.tar.gz