2017-09-29 12:30:24 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-docker
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2017-10-11 10:39:13 +00:00
|
|
|
|
2017-09-29 12:30:24 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
%define oldpython python
|
|
|
|
|
Name: python-docker
|
2017-10-11 10:39:13 +00:00
|
|
|
Version: 2.5.1
|
2017-09-29 12:30:24 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Docker API Client
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: System/Management
|
|
|
|
|
Url: https://pypi.python.org/pypi/docker
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/d/docker/docker-%{version}.tar.gz
|
|
|
|
|
BuildRequires: %{python_module mock}
|
2017-10-11 10:39:13 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2017-09-29 12:30:24 +00:00
|
|
|
BuildRequires: %{python_module pytest-cov}
|
2017-10-11 10:39:13 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-09-29 12:30:24 +00:00
|
|
|
BuildRequires: %{python_module requests}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
|
BuildRequires: %{python_module websocket-client}
|
2017-10-11 10:39:13 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2017-09-29 12:30:24 +00:00
|
|
|
%ifpython2
|
|
|
|
|
Requires: python-backports.ssl_match_hostname >= 3.5
|
|
|
|
|
Requires: python-ipaddress >= 1.0.16
|
|
|
|
|
%endif
|
|
|
|
|
Requires: python-docker-pycreds >= 0.2.1
|
|
|
|
|
Requires: python-requests >= 2.5.3
|
|
|
|
|
Requires: python-six >= 1.4.0
|
|
|
|
|
Requires: python-websocket-client >= 0.32.0
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# docker-py got renamed to docker in 2017
|
2017-10-11 10:39:13 +00:00
|
|
|
Obsoletes: python-docker-py < %{version}
|
|
|
|
|
Provides: python-docker-py = %{version}
|
|
|
|
|
%ifpython2
|
|
|
|
|
Obsoletes: %{oldpython}-docker-py < %{version}
|
|
|
|
|
Provides: %{oldpython}-docker-py = %{version}
|
|
|
|
|
%endif
|
2017-09-29 12:30:24 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A docker API client in Python
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n docker-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# % python_exec tests/test.py
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc LICENSE README.md
|
|
|
|
|
%dir %{python_sitelib}/*
|
|
|
|
|
%{python_sitelib}/docker/*
|
|
|
|
|
%{python_sitelib}/*egg-info/*
|
|
|
|
|
|
|
|
|
|
%changelog
|