!8 remove python2-requests-ftp subpackage
From: @jinzhimin369 Reviewed-by: @zengwefeng Signed-off-by: @zengwefeng
This commit is contained in:
commit
46fe5b94da
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: python-requests-ftp
|
Name: python-requests-ftp
|
||||||
Version: 0.3.1
|
Version: 0.3.1
|
||||||
Release: 16
|
Release: 17
|
||||||
Summary: FTP Transport Adapter for Requests
|
Summary: FTP Transport Adapter for Requests
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://github.com/Lukasa/requests-ftp
|
URL: https://github.com/Lukasa/requests-ftp
|
||||||
@ -10,13 +10,7 @@ Source0: https://github.com/Lukasa/requests-ftp/archive/v%{version}.tar.gz
|
|||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
BuildRequires: python2-devel python2-setuptools
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
%endif
|
|
||||||
|
|
||||||
Patch1: PR28-01-Adding-2-tests-and-updated-statud_code-build.patch
|
Patch1: PR28-01-Adding-2-tests-and-updated-statud_code-build.patch
|
||||||
Patch2: PR28-02-Adding-code-3-to-retr4ieve-status_code.patch
|
Patch2: PR28-02-Adding-code-3-to-retr4ieve-status_code.patch
|
||||||
@ -27,17 +21,6 @@ Patch5: PR28-05-Improve-logging-in-status-code-extraction.patch
|
|||||||
Requests-FTP is an implementation of a very stupid FTP transport adapter
|
Requests-FTP is an implementation of a very stupid FTP transport adapter
|
||||||
for use with the awesome Requests Python library.
|
for use with the awesome Requests Python library.
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%package -n python2-%{srcname}
|
|
||||||
Summary: python2 for requests-ftp
|
|
||||||
Requires: python2-requests
|
|
||||||
%{?python_provide:%python_provide python2-%{srcname}}
|
|
||||||
|
|
||||||
%description -n python2-%{srcname}
|
|
||||||
python2 for requests-ftp.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%package -n python3-%{srcname}
|
%package -n python3-%{srcname}
|
||||||
Summary: python3 for requests-ftp
|
Summary: python3 for requests-ftp
|
||||||
Requires: python3-requests
|
Requires: python3-requests
|
||||||
@ -45,7 +28,6 @@ Requires: python3-requests
|
|||||||
|
|
||||||
%description -n python3-%{srcname}
|
%description -n python3-%{srcname}
|
||||||
python3 for requests-ftp.
|
python3 for requests-ftp.
|
||||||
%endif
|
|
||||||
|
|
||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
@ -54,42 +36,24 @@ python3 for requests-ftp.
|
|||||||
rm -rf requests_ftp.egg-info
|
rm -rf requests_ftp.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{with python2}
|
|
||||||
%py2_build
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{with python2}
|
|
||||||
%py2_install
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%files -n python2-%{srcname}
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%license LICENSE
|
|
||||||
%{python2_sitelib}/*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%files -n python3-%{srcname}
|
%files -n python3-%{srcname}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
%endif
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 30 2020 jinzhimin <jinzhimin2@huawei.com> - 0.3.1-17
|
||||||
|
- remove python2-requests-ftp subpackage
|
||||||
|
|
||||||
* Tue Sep 10 2020 chengguipeng<chengguipeng1@huawei.com> - 0.3.1-16
|
* Tue Sep 10 2020 chengguipeng<chengguipeng1@huawei.com> - 0.3.1-16
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user