!4 remove python2-docker subpackage
From: @jinzhimin369 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
7cc7181dde
@ -1,8 +1,6 @@
|
|||||||
%bcond_with python2
|
|
||||||
|
|
||||||
Name: python-docker
|
Name: python-docker
|
||||||
Version: 4.0.2
|
Version: 4.0.2
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A Python library for the Docker Engine API
|
Summary: A Python library for the Docker Engine API
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: https://pypi.org/project/docker
|
URL: https://pypi.org/project/docker
|
||||||
@ -11,31 +9,11 @@ Source0: https://files.pythonhosted.org/packages/source/d/docker/docker-%
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
%if %{with python2}
|
|
||||||
BuildRequires: python2-devel python2-setuptools
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
It lets you do anything the docker command does, but from within Python apps –
|
It lets you do anything the docker command does, but from within Python apps –
|
||||||
run containers, manage containers, manage Swarms, etc.
|
run containers, manage containers, manage Swarms, etc.
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%package -n python2-docker
|
|
||||||
Summary: A Python library for the Docker Engine API
|
|
||||||
|
|
||||||
Requires: python2-requests >= 2.14.2 python2-six >= 1.4.0
|
|
||||||
Requires: python2-websocket-client >= 0.32.0 python2-docker-pycreds >= 0.2.1
|
|
||||||
Requires: python2-backports-ssl_match_hostname >= 3.5 python2-ipaddress >= 1.0.16
|
|
||||||
Requires: python2-pyOpenSSL python2-idna python2-cryptography python2-paramiko
|
|
||||||
|
|
||||||
%{?python_provide:%python_provide python2-docker}
|
|
||||||
Obsoletes: python-docker-py < 1:2
|
|
||||||
|
|
||||||
%description -n python2-docker
|
|
||||||
It lets you do anything the docker command does, but from within Python apps –
|
|
||||||
run containers, manage containers, manage Swarms, etc.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%package -n python-docker-tests
|
%package -n python-docker-tests
|
||||||
Summary: Unit tests and integration tests for python-docker
|
Summary: Unit tests and integration tests for python-docker
|
||||||
|
|
||||||
@ -65,29 +43,13 @@ rm -rf docker.egg-info
|
|||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%py2_build
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%py2_install
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# copy tests to /usr/libexec/installed-tests
|
# copy tests to /usr/libexec/installed-tests
|
||||||
mkdir -p %{buildroot}%{_libexecdir}/installed-tests/%{name}
|
mkdir -p %{buildroot}%{_libexecdir}/installed-tests/%{name}
|
||||||
cp -avr tests/ %{buildroot}%{_libexecdir}/installed-tests/%{name}/
|
cp -avr tests/ %{buildroot}%{_libexecdir}/installed-tests/%{name}/
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%files -n python2-docker
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc README.md
|
|
||||||
%license LICENSE
|
|
||||||
%{python2_sitelib}/*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n python3-docker
|
%files -n python3-docker
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README.md
|
%doc README.md
|
||||||
@ -99,5 +61,8 @@ cp -avr tests/ %{buildroot}%{_libexecdir}/installed-tests/%{name}/
|
|||||||
%{_libexecdir}/installed-tests
|
%{_libexecdir}/installed-tests
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 21 2020 jinzhimin <jinzhimin2@huawei.com> - 4.0.2-2
|
||||||
|
- remove python2-docker subpackage
|
||||||
|
|
||||||
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.0.2-1
|
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.0.2-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user