# Generated by go2rpm 1.11.0 %bcond_without check # https://github.com/docker/compose/v5 %global goipath github.com/docker/compose/v5 Version: 5.0.0~rc.2 %global tag v%{gsub %{version} ~ -} %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 # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools BuildRequires: moby-rpm-macros # This fixes the issue in https://bugzilla.redhat.com/2316333. # The boolean Requires along with the Suggests will make sure docker-cli is # installed unless podman-docker is already installed. # Note that the "podman compose" command is not officially supported by the # `docker-compose` maintainers, # and any bugs that cannot be reproduced with `docker compose` # (where `docker` is provided by docker-cli and not podman-docker) # should be reported to the podman maintainers. Requires: (docker-cli or podman-docker) Suggests: docker-cli >= 28.0.0 # Ensure that %%{moby_cli_plugins_dir} is owned when podman-docker is installed # by Requiring moby-filesystem explicitly. Requires: moby-filesystem # Provides /usr/bin/docker-compose wrapper for backwards compatibility Recommends: docker-compose-switch # 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 %global test_ignores %{shrink: %dnl possibly fixed in next upstream release -s "TestValidatePathInBase" %dnl e2e tests require external services -d pkg/e2e } %gocheck2 %{test_ignores} %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc README.md %{moby_cli_plugins_dir}/docker-compose %changelog %autochangelog