New version 2.2.2

This commit is contained in:
Sergey Zhemoitel 2021-12-15 23:08:55 +03:00
parent 8cd5e775da
commit 86d9188a96
2 changed files with 33 additions and 77 deletions

View file

@ -1,2 +1,3 @@
sources: sources:
compose-1.29.1.tar.gz: 14f4c5134fabd56c44ac0ca91bc39ace902a7fc9 compose-1.29.1.tar.gz: 14f4c5134fabd56c44ac0ca91bc39ace902a7fc9
docker-compose-%{verson}.tar.gz: 191fdd50b8a89f97fd9958f08068b3d3e00246b6

View file

@ -1,90 +1,45 @@
%global dcvers 1.29.1 %define debug %nil
#global dcrc rc1 %define debug_package %nil
%global dist_version %{dcvers}
%global debug_package %{nil} %define oname docker-compose
%global provider github
%global provider_tld com
%global project docker
%global repo compose
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
Name: %{project}-%{repo} Name: %{oname}
Version: %{dist_version} Version: 2.2.2
Release: 1 Release: 1
Summary: Multi-container orchestration for Docker Summary: Docker compose golang version
Group: System/Kernel and hardware URL: https://docs.docker.com/compose
License: ASL 2.0 Source0: https://github.com/docker/compose/archive/v%{version}/%{name}-%{verson}.tar.gz
URL: https://www.docker.com/ Group: Development/Other
#Source0: https://%{import_path}/archive/%{dcvers}-%{dcrc}.tar.gz License: ASL 2.0
#Source0: %{repo}-%{dist_version}.tar.gz BuildRequires: go
Source0: https://github.com/docker/compose/archive/%{version}/%{repo}-%{version}.tar.gz BuildRequires: git-core
BuildRequires: upx
# docker-compose is compatible with fig and is a simple rename. Requires: docker
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 %description
Multi-container orchestration for Docker Docker Compose v2
Docker-compose allows you to: Docker Compose is a tool for running multi-container
- Define your application's environment with Docker so it can be reproduced applications on Docker defined using the Compose file
anywhere. format. A Compose file is used to define how the one or
- Define the services that make up your app so they can be run together in an more containers that make up your application are
isolated environment. configured. Once you have a Compose file, you can
- Run 'docker-compose up', and docker-compose will start and run your entire create and start your application with a single command:
app.
docker compose up
%prep %prep
#setup -q -n %{repo}-%{dcvers}-%{dcrc} %setup -qn compose-%{version}
%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 %build
%{py3_build} CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/docker/compose/v2/internal.Version=%{version}" -o bin/%{oname} ./cmd
upx bin/%{oname}
find . -type f -size 0 -exec rm -f {} \;
%install %install
%{py3_install} install -Dm0755 bin/%{oname} %{buildroot}%{_bindir}/%{oname}
%files %files
%doc CHANGES.md CONTRIBUTING.md README.md SWARM.md %doc README.md LICENSE docs
%doc LICENSE %{_bindir}/%{oname}
%{_bindir}/%{name}
# Upstream uses an underscore here
%{py3_puresitedir}/docker_compose*
%{py3_puresitedir}/compose*