LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File docker-compose.spec of Package docker-compose (Project home:M0ses:Infrastructure)

# 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.8.1
Release:        0
Summary:        Define and run complex applications using Docker
License:        Apache-2.0
Group:          System/Management
Url:            https://pypi.python.org/pypi/fig
Source0:        %{mod_name}-%{version}.tar.xz
Source1:        README.SUSE
Patch0:         fix-requirements.patch
Requires:       docker
Requires:       python-PyYAML           >= 3.11
Conflicts:      python-PyYAML           >= 4
Requires:       python-docker           >= 1.10.3
Conflicts:      python-docker           >= 2
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.2
Conflicts:      python-texttable        >= 0.9
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
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()")}
BuildArch:      noarch

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.

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

python setup.py build

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

%dir %{python_sitelib}/*