mirror of
https://abf.rosa.ru/djam/docker-compose.git
synced 2025-02-23 14:42:57 +00:00
90 lines
2.9 KiB
RPMSpec
90 lines
2.9 KiB
RPMSpec
%global dcvers 1.28.6
|
|
#global dcrc rc1
|
|
%global dist_version %{dcvers}
|
|
|
|
%global debug_package %{nil}
|
|
%global provider github
|
|
%global provider_tld com
|
|
%global project docker
|
|
%global repo compose
|
|
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
|
|
Name: %{project}-%{repo}
|
|
Version: %{dist_version}
|
|
Release: 5
|
|
Summary: Multi-container orchestration for Docker
|
|
Group: System/Kernel and hardware
|
|
License: ASL 2.0
|
|
URL: https://www.docker.com/
|
|
#Source0: https://%{import_path}/archive/%{dcvers}-%{dcrc}.tar.gz
|
|
#Source0: %{repo}-%{dist_version}.tar.gz
|
|
Source0: https://github.com/docker/compose/archive/%{version}/%{repo}-%{version}.tar.gz
|
|
|
|
# docker-compose is compatible with fig and is a simple rename.
|
|
Provides: fig = %{version}-%{release}
|
|
Obsoletes: fig < 1.0.0-4
|
|
|
|
BuildRequires: pkgconfig(python3)
|
|
BuildRequires: python3egg(setuptools)
|
|
BuildRequires: python3egg(docker) >= 4.4
|
|
BuildRequires: python3egg(websocket-client)
|
|
BuildRequires: python3egg(texttable)
|
|
BuildRequires: python3egg(requests)
|
|
BuildRequires: python3egg(pyyaml)
|
|
BuildRequires: python3egg(docopt)
|
|
BuildRequires: python3egg(cached-property)
|
|
BuildRequires: python3egg(six) >= 1.12.0
|
|
|
|
Requires: python3egg(repoze.lru)
|
|
Requires: python3egg(texttable)
|
|
Requires: python3egg(ipaddress) >= 1.0.16
|
|
Requires: python3egg(cached-property)
|
|
Requires: python3egg(paramiko)
|
|
Requires: python3egg(six) >= 1.12.0
|
|
Requires: python3egg(subprocess32)
|
|
Requires: python3egg(docopt) < 1
|
|
Requires: python3egg(websocket-client)
|
|
Requires: python3egg(docker) >= 4.4
|
|
Requires: python3egg(backports.shutil-get-terminal-size) == 1.0.0
|
|
Requires: python3-pkg-resources
|
|
Requires: python3egg(functools32)
|
|
Requires: python3egg(python-dotenv) >= 0.13.0
|
|
Requires: python3egg(distro) >= 1.5.0
|
|
Requires: pigz
|
|
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Multi-container orchestration for Docker
|
|
|
|
Docker-compose allows you to:
|
|
- Define your application's environment with Docker so it can be reproduced
|
|
anywhere.
|
|
- Define the services that make up your app so they can be run together in an
|
|
isolated environment.
|
|
- Run 'docker-compose up', and docker-compose will start and run your entire
|
|
app.
|
|
|
|
%prep
|
|
#setup -q -n %{repo}-%{dcvers}-%{dcrc}
|
|
%setup -q -n %{repo}-%{version}
|
|
perl -pi -e "s|'PyYAML >= 3.10, < 4',|'PyYAML >= 4.1',|" setup.py
|
|
perl -pi -e "s|'PyYAML==3.12'||" requirements.txt
|
|
perl -pi -e "s|'texttable >= 0.9.0, < 0.10',|'texttable >= 1.2',|" setup.py
|
|
perl -pi -e "s|'requests >= 2.6.1, != 2.11.0, != 2.12.2, != 2.18.0, < 2.21',|'requests >= 2.6.1, != 2.11.0, != 2.12.2, != 2.18.0',|" setup.py
|
|
|
|
%build
|
|
%{py3_build}
|
|
|
|
%install
|
|
%{py3_install}
|
|
|
|
%files
|
|
%doc CHANGES.md CONTRIBUTING.md README.md SWARM.md
|
|
%doc LICENSE
|
|
%{_bindir}/%{name}
|
|
# Upstream uses an underscore here
|
|
%{py3_puresitedir}/docker_compose*
|
|
%{py3_puresitedir}/compose*
|
|
|
|
|