A new user interface for you! Read more...

File docker-compose.spec of Package docker-compose

#
# spec file for package docker-compose
#
# 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/
#


%define mod_name compose

Name:           docker-compose
Version:        1.17.0
Release:        0
Summary:        Define and run complex applications using Docker
License:        Apache-2.0
Group:          System/Management
Url:            https://pypi.python.org/pypi/docker-compose
Source0:        %{mod_name}-%{version}.tar.xz
Source1:        README.SUSE
Patch0:         fix-requirements.patch
Requires:       docker
Requires:       python-PySocks          >= 1.5.6
Conflicts:      python-PySocks          >= 2
Requires:       python-PyYAML           >= 3.11
Conflicts:      python-PyYAML           >= 4
Requires:       python-docker           >= 2.5.1
Conflicts:      python-docker           >= 3
Requires:       python-dockerpty        >= 0.4.1
Conflicts:      python-dockerpty        >= 0.5
Requires:       python-docopt           >= 0.6.1
Conflicts:      python-docopt           >= 0.7
Requires:       python-enum34           >= 1.0
Conflicts:      python-enum34           >= 2
Requires:       python-jsonschema       >= 2.5.1
Conflicts:      python-jsonschema       >= 3
Requires:       python-requests         >= 2.7.0
# Conflicts:      python-requests         >= 2.11
Requires:       python-setuptools
Requires:       python-six              >= 1.7.3
Conflicts:      python-six              >= 2
Requires:       python-texttable        >= 0.8.1
Conflicts:      python-texttable        >= 0.10
Requires:       python-websocket-client >= 0.32.0
Conflicts:      python-websocket-client >= 1.0
Requires:       python-cached-property  >= 1.2.0
Conflicts:      python-cached-property  >= 2
Requires:       python-ipaddress        >= 1.0.16
BuildRequires:  python-setuptools
Requires:       python >= 2.7
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch:      noarch
%endif

%description
Compose is a tool for defining and running complex applications with Docker.
With Compose, you define a multi-container application in a single file, then
spin your application up in a single command which does everything that needs
to be done to get it running.

Compose is great for development environments, staging servers, and CI. We
don't recommend that you use it in production yet.

Previously known as Fig.

%prep
%setup -q -n %{mod_name}-%{version}
%patch0 -p1
cp %{SOURCE1} .

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%doc LICENSE README.md CHANGES.md SWARM.md README.SUSE
%{_bindir}/docker-compose
%dir %{python_sitelib}/*
%{python_sitelib}/compose/*
%{python_sitelib}/*egg-info/*

%changelog