# Generated by go2rpm 1.11.0 %bcond_without check # https://github.com/docker/compose/v2 %global goipath github.com/docker/compose/v2 Version: 2.26.0 %gometa -L -f %global common_description %{expand: Define and run multi-container applications with Docker.} Name: docker-compose Release: %autorelease Summary: Define and run multi-container applications with Docker License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 URL: %{gourl} Source0: %{gosource} Source1: %{archivename}-vendor.tar.xz Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools BuildRequires: make BuildRequires: moby-rpm-macros Requires: docker-cli # Conflict with upstream package Conflicts: docker-compose-plugin %description %{common_description} %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build export GO_LDFLAGS="-X %{goipath}/internal.Version=%{version}" %gobuild -o %{gobuilddir}/bin/docker-compose %{goipath}/cmd %install %go_vendor_license_install -c %{S:2} install -Dpm 0755 \ %{gobuilddir}/bin/docker-compose \ %{buildroot}%{moby_cli_plugins_dir}/docker-compose %check %go_vendor_license_check -c %{S:2} %if %{with check} # e2e tests require external services %gocheck -t pkg/e2e %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc README.md %{moby_cli_plugins_dir}/docker-compose %changelog %autochangelog