- 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:
parent
c7c4c92bf1
commit
a3f05d86ec
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
/requests-ftp-0.3.0.tar.gz
|
/requests-ftp-0.3.0.tar.gz
|
||||||
|
/requests-ftp-0.3.1.tar.gz
|
||||||
|
@ -1,25 +1,38 @@
|
|||||||
Name: python-requests-ftp
|
%global srcname requests-ftp
|
||||||
Version: 0.3.0
|
|
||||||
Release: 2%{?dist}
|
Name: python-%{srcname}
|
||||||
|
Version: 0.3.1
|
||||||
|
Release: 1%{?dist}
|
||||||
Summary: FTP transport adapter for python-requests
|
Summary: FTP transport adapter for python-requests
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/Lukasa/requests-ftp
|
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
|
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: python2-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
|
|
||||||
Requires: python-requests
|
Requires: python-requests
|
||||||
|
|
||||||
%description
|
%description -n python2-%{srcname}
|
||||||
Requests-FTP is an implementation of a very stupid FTP transport adapter for
|
Requests-FTP is an implementation of a very stupid FTP transport adapter for
|
||||||
use with the awesome Requests Python library.
|
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
|
Summary: FTP transport adapter for python3-requests
|
||||||
|
%{?python_provide:%python_provide python3-%{srcname}}
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
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.
|
This is the Python 3 version of the transport adapter module.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qc
|
%autosetup -n %{srcname}-%{version}
|
||||||
mv requests-ftp-%{version} python2
|
|
||||||
pushd python2
|
|
||||||
rm -rf requests_ftp.egg-info
|
rm -rf requests_ftp.egg-info
|
||||||
|
|
||||||
# Copy common doc files to top dir
|
|
||||||
cp -pr README.rst LICENSE ..
|
|
||||||
|
|
||||||
popd
|
|
||||||
|
|
||||||
cp -a python2 python3
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd python2
|
%py2_build
|
||||||
%{__python2} setup.py build
|
%py3_build
|
||||||
popd
|
|
||||||
|
|
||||||
pushd python3
|
|
||||||
%{__python3} setup.py build
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd python2
|
%py2_install
|
||||||
%{__python2} setup.py install --skip-build --root %{buildroot}
|
%py3_install
|
||||||
popd
|
|
||||||
|
|
||||||
pushd python3
|
%files -n python2-%{srcname}
|
||||||
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
||||||
popd
|
|
||||||
|
|
||||||
%files
|
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python2_sitelib}/requests_ftp/
|
%{python2_sitelib}/requests_ftp/
|
||||||
%{python2_sitelib}/requests_ftp*.egg-info*
|
%{python2_sitelib}/requests_ftp*.egg-info*
|
||||||
|
|
||||||
%files -n python3-requests-ftp
|
%files -n python3-%{srcname}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/requests_ftp/
|
%{python3_sitelib}/requests_ftp/
|
||||||
%{python3_sitelib}/requests_ftp*.egg-info*
|
%{python3_sitelib}/requests_ftp*.egg-info*
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user