From 7a6217d60e1509952475d4c01768f6cca02d061d Mon Sep 17 00:00:00 2001 From: chengguipeng_xian Date: Fri, 11 Sep 2020 16:01:35 +0800 Subject: [PATCH] =?UTF-8?q?python-requests-ftp=EF=BC=9ADelete=20a=20subpac?= =?UTF-8?q?kage=20python2-=20requests-ftp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python-requests-ftp.spec | 43 +++++++++------------------------------- 1 file changed, 9 insertions(+), 34 deletions(-) diff --git a/python-requests-ftp.spec b/python-requests-ftp.spec index 17f069c..8c86f46 100644 --- a/python-requests-ftp.spec +++ b/python-requests-ftp.spec @@ -2,7 +2,7 @@ Name: python-requests-ftp Version: 0.3.1 -Release: 15 +Release: 16 Summary: FTP Transport Adapter for Requests License: ASL 2.0 URL: https://github.com/Lukasa/requests-ftp @@ -10,10 +10,6 @@ Source0: https://github.com/Lukasa/requests-ftp/archive/requests-ftp-0.3.1.tar.g BuildArch: noarch -%if %{with python2} -BuildRequires: python2-devel python2-setuptools -%endif - %if %{with python3} BuildRequires: python3-devel python3-setuptools %endif @@ -27,16 +23,6 @@ Patch5: PR28-05-Improve-logging-in-status-code-extraction.patch Requests-FTP is an implementation of a very stupid FTP transport adapter 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} Summary: python3 for requests-ftp @@ -53,32 +39,15 @@ python3 for requests-ftp. %autosetup -n %{srcname}-%{version} -p1 rm -rf requests_ftp.egg-info -%build -%if %{with python2} -%py2_build -%endif - %if %{with python3} %py3_build %endif -%install -%if %{with python2} -%py2_install -%endif - %if %{with python3} %py3_install %endif -%if %{with python2} -%files -n python2-%{srcname} -%defattr(-,root,root) -%license LICENSE -%{python2_sitelib}/* -%endif - -%if %{with python2} +%if %{with python3} %files -n python3-%{srcname} %defattr(-,root,root) %license LICENSE @@ -90,6 +59,12 @@ rm -rf requests_ftp.egg-info %doc README.rst %changelog +* Fri Sep 11 2020 chengguipeng - 0.3.1-16 +- Type:bugfix +- Id:NA +- SUG:NA +- DESC: Delete a subpackage python2-requests-ftp + * Tue Dec 31 2019 openEuler Buildteam - 0.3.1-15 - Type:bugfix - Id:NA @@ -97,4 +72,4 @@ rm -rf requests_ftp.egg-info - DESC:optimization the spec * Sat Oct 12 2019 openEuler Buildteam - 0.3.1-14 -- Package init +- Package init \ No newline at end of file -- Gitee