docker-compose/docker-compose.spec

91 lines
2.9 KiB
RPMSpec
Raw Normal View History

2021-04-14 22:34:07 +03:00
%global dcvers 1.29.1
2019-02-15 17:52:21 +03:00
#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}
2021-04-14 22:34:07 +03:00
Release: 1
2019-02-15 17:52:21 +03:00
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
2020-07-07 09:28:59 +03:00
#Source0: %{repo}-%{dist_version}.tar.gz
Source0: https://github.com/docker/compose/archive/%{version}/%{repo}-%{version}.tar.gz
2019-02-15 17:52:21 +03:00
# docker-compose is compatible with fig and is a simple rename.
Provides: fig = %{version}-%{release}
Obsoletes: fig < 1.0.0-4
2019-11-06 16:16:15 +03:00
BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
2021-03-31 20:08:33 +03:00
BuildRequires: python3egg(docker) >= 4.4
2019-11-06 16:16:15 +03:00
BuildRequires: python3egg(websocket-client)
BuildRequires: python3egg(texttable)
BuildRequires: python3egg(requests)
BuildRequires: python3egg(pyyaml)
BuildRequires: python3egg(docopt)
BuildRequires: python3egg(cached-property)
2019-12-05 16:31:32 +03:00
BuildRequires: python3egg(six) >= 1.12.0
2019-02-15 17:52:21 +03:00
2019-11-06 16:16:15 +03:00
Requires: python3egg(repoze.lru)
Requires: python3egg(texttable)
Requires: python3egg(ipaddress) >= 1.0.16
2019-11-06 16:16:15 +03:00
Requires: python3egg(cached-property)
2019-12-05 16:31:32 +03:00
Requires: python3egg(paramiko)
Requires: python3egg(six) >= 1.12.0
Requires: python3egg(subprocess32)
Requires: python3egg(docopt) < 1
Requires: python3egg(websocket-client)
2021-03-31 20:08:33 +03:00
Requires: python3egg(docker) >= 4.4
2019-12-08 00:00:51 +03:00
Requires: python3egg(backports.shutil-get-terminal-size) == 1.0.0
2021-03-31 15:54:52 +03:00
Requires: python3-pkg-resources
2021-03-31 20:08:33 +03:00
Requires: python3egg(functools32)
Requires: python3egg(python-dotenv) >= 0.13.0
Requires: python3egg(distro) >= 1.5.0
2019-12-05 16:31:32 +03:00
Requires: pigz
2019-02-15 17:52:21 +03:00
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
2019-11-06 16:16:15 +03:00
%{py3_build}
2019-02-15 17:52:21 +03:00
%install
2019-11-06 16:16:15 +03:00
%{py3_install}
2019-02-15 17:52:21 +03:00
%files
%doc CHANGES.md CONTRIBUTING.md README.md SWARM.md
%doc LICENSE
%{_bindir}/%{name}
# Upstream uses an underscore here
2019-11-06 16:16:15 +03:00
%{py3_puresitedir}/docker_compose*
%{py3_puresitedir}/compose*
2019-02-15 17:52:21 +03:00