%global gomodulesmode GO111MODULE=on Name: docker-compose Version: 2.29.2 Release: %autorelease Summary: Define and run multi-container applications License: Apache-2.0 URL: https://github.com/docker/compose Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: go-rpm-macros BuildRequires: git-core %description Docker Compose is a tool for running multi-container applications on Docker defined using the Compose file format. A Compose file is used to define how the one or more containers that make up your application are configured. Once you have a Compose file, you can create and start your application with a single command: docker compose up. %prep %autosetup -n compose-%{version} %build go env -w GOPROXY=https://proxy.golang.org,direct go env -w GOSUMDB=sum.golang.org export LDFLAGS="-X github.com/docker/compose/v2/internal.Version=%{version}" %gobuild -o %{name} ./cmd %check #CGO_ENABLED=0 go test -tags "e2e,kube" -v $(go list -tags "e2e,kube" ./... | grep -vE 'e2e') %install install -Dm0755 %{name} -t %{buildroot}%{_prefix}/lib/docker/cli-plugins install -d %{buildroot}%{_bindir} ln -sf /usr/lib/docker/cli-plugins/docker-compose %{buildroot}%{_bindir}/%{name} %files %doc README.md %license LICENSE %{_bindir}/%{name} %{_prefix}/lib/docker/ %changelog %autochangelog