## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.11.0 %bcond_without check # https://github.com/docker/compose-switch %global goipath github.com/docker/compose-switch Version: 1.0.5 %gometa -L -f %global common_description %{expand: Compose Switch is a replacement for the Compose V1 "docker-compose" (python) executable. It translates the command line into Compose V2 "docker compose" and then runs the latter. } Name: docker-compose-switch Release: %autorelease Summary: docker-compose CLI shim # Generated with go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause URL: %{gourl} Source0: %{gosource} # Generated with go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools Requires: docker-compose >= 2 %description %{common_description} %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build GO_LDFLAGS="-X %{goipath}/internal.Version=%{version}" %gobuild -o %{gobuilddir}/bin/docker-compose %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %go_vendor_license_check -c %{S:2} %if %{with check} %gocheck %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc README.md %{_bindir}/docker-compose %changelog ## START: Generated by rpmautospec * Thu Jan 16 2025 Fedora Release Engineering - 1.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sun Aug 04 2024 Maxwell G - 1.0.5-1 - Initial package (rhbz#2274656). ## END: Generated by rpmautospec