- 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
This commit is contained in:
David Shea 2015-09-14 10:22:42 -04:00
parent c7c4c92bf1
commit a3f05d86ec
3 changed files with 32 additions and 33 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/requests-ftp-0.3.0.tar.gz
/requests-ftp-0.3.1.tar.gz

View File

@ -1,25 +1,38 @@
Name: python-requests-ftp
Version: 0.3.0
Release: 2%{?dist}
%global srcname requests-ftp
Name: python-%{srcname}
Version: 0.3.1
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
Source0: https://pypi.python.org/packages/source/r/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
%description
Requests-FTP is an implementation of a very stupid FTP transport adapter for
use with the awesome Requests Python library.
%package -n python2-%{srcname}
Summary: FTP transport adapter for python-requests
%{?python_provide:%python_provide python2-%{srcname}}
BuildRequires: python2-devel
BuildRequires: python-setuptools
Requires: python-requests
%description
%description -n python2-%{srcname}
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
This is the Python 2 version of the transport adapter module.
%package -n python3-%{srcname}
Summary: FTP transport adapter for python3-requests
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
@ -33,49 +46,34 @@ 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
%autosetup -n %{srcname}-%{version}
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
%py2_build
%py3_build
%install
pushd python2
%{__python2} setup.py install --skip-build --root %{buildroot}
popd
%py2_install
%py3_install
pushd python3
%{__python3} setup.py install --skip-build --root %{buildroot}
popd
%files
%files -n python2-%{srcname}
%doc README.rst
%license LICENSE
%{python2_sitelib}/requests_ftp/
%{python2_sitelib}/requests_ftp*.egg-info*
%files -n python3-requests-ftp
%files -n python3-%{srcname}
%doc README.rst
%license LICENSE
%{python3_sitelib}/requests_ftp/
%{python3_sitelib}/requests_ftp*.egg-info*
%changelog
* 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
* 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

View File

@ -1 +1 @@
16b87b45b69cb486ed91e8def6ce278c requests-ftp-0.3.0.tar.gz
1a52ad1219e696b5abd5449d1ccc0294 requests-ftp-0.3.1.tar.gz