Compare commits

..

No commits in common. "d122ec06d2a7f8f21b63c08c706a510bb6eaac12" and "77225aa6b0886fe94a2e72ea2a78f0e039f3da5f" have entirely different histories.

3 changed files with 42 additions and 19 deletions

View File

@ -2,15 +2,21 @@
Name: python-requests-ftp
Version: 0.3.1
Release: 18
Release: 15
Summary: FTP Transport Adapter for Requests
License: ASL 2.0
URL: https://github.com/Lukasa/requests-ftp
Source0: https://github.com/Lukasa/requests-ftp/archive/v%{version}.tar.gz
Source0: https://github.com/Lukasa/requests-ftp/archive/requests-ftp-0.3.1.tar.gz
BuildArch: noarch
%if %{with python2}
BuildRequires: python2-devel python2-setuptools
%endif
%if %{with python3}
BuildRequires: python3-devel python3-setuptools
%endif
Patch1: PR28-01-Adding-2-tests-and-updated-statud_code-build.patch
Patch2: PR28-02-Adding-code-3-to-retr4ieve-status_code.patch
@ -21,6 +27,17 @@ 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
Requires: python3-requests
@ -28,6 +45,7 @@ Requires: python3-requests
%description -n python3-%{srcname}
python3 for requests-ftp.
%endif
%package_help
@ -36,33 +54,42 @@ python3 for requests-ftp.
rm -rf requests_ftp.egg-info
%build
%if %{with python2}
%py2_build
%endif
%if %{with python3}
%py3_build
%endif
%install
%py3_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}
%files -n python3-%{srcname}
%defattr(-,root,root)
%license LICENSE
%{python3_sitelib}/*
%endif
%files help
%defattr(-,root,root)
%doc README.rst
%changelog
* Wed Oct 26 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 0.3.1-18
- Rebuild for next release
* Fri Oct 30 2020 jinzhimin <jinzhimin2@huawei.com> - 0.3.1-17
- remove python2-requests-ftp subpackage
* Thu Sep 10 2020 chengguipeng<chengguipeng1@huawei.com> - 0.3.1-16
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify source0 url
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.3.1-15
- Type:bugfix
- Id:NA

View File

@ -1,4 +0,0 @@
version_control: github
src_repo: Lukasa/requests-ftp
tag_prefix: ^v
seperator: .