From 1d24c148181e3c3a0b555ca35edbbeb2734aa943 Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Thu, 1 Aug 2024 16:54:18 +0300 Subject: [PATCH] Adapted for MSVphere 9 build --- SPECS/docker-compose-switch.spec | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/SPECS/docker-compose-switch.spec b/SPECS/docker-compose-switch.spec index 35ad6c1..26a977f 100644 --- a/SPECS/docker-compose-switch.spec +++ b/SPECS/docker-compose-switch.spec @@ -17,20 +17,23 @@ %define __arch_install_post export NO_BRP_STRIP_DEBUG=true + +%global debug_package %{nil} + Name: docker-compose-switch Version: 1.0.5 -Release: 1.6 +Release: 1.6%{?dist}.inferit Summary: Replacement for the docker-compose (python) executable License: Apache-2.0 URL: https://github.com/docker/compose-switch Source: compose-switch-%{version}.tar.gz Source1: vendor.tar.gz Source99: docker-compose-switch-rpmlintrc -BuildRequires: golang(API) = 1.18 -Requires: docker -Requires: docker-compose >= 2.0 -Requires(post): update-alternatives -Requires(postun): update-alternatives +BuildRequires: golang%{?_isa} >= 1.18 +Requires: docker-ce +Requires: docker-compose-plugin +Requires(post): alternatives +Requires(postun): alternatives # Docker Compose V2 is a major version bump release of Docker Compose. # It has been completely rewritten from scratch in Golang (V1 was in Python). Obsoletes: python2-docker-compose < 2.0.0 @@ -41,6 +44,8 @@ Obsoletes: python38-docker-compose < 2.0.0 Obsoletes: python39-docker-compose < 2.0.0 Obsoletes: python310-docker-compose < 2.0.0 +Provides: docker-compose + %description Compose Switch is a replacement to the Compose V1 docker-compose (python) executable. It translates the command line into Compose V2 docker compose then run the latter. @@ -58,7 +63,7 @@ go build \ %install install -D -m 0755 bin/%{name} "%{buildroot}%{_bindir}/%{name}" mkdir -p %{buildroot}%{_sysconfdir}/alternatives -ln -s -f %{_sysconfdir}/alternatives/docker-compose %{buildroot}%{_bindir}/docker-compose +ln -sf %{_sysconfdir}/alternatives/docker-compose %{buildroot}%{_bindir}/docker-compose %post update-alternatives --install \ @@ -77,10 +82,16 @@ fi %ghost %{_sysconfdir}/alternatives/docker-compose %changelog +* Wed Jul 31 2024 Sergey Cherevko - 1.0.5-1.6.inferit +- Adapted for MSVphere 9 build +- Rebuilt for MSVSphere 9.4 + * Tue Aug 2 2022 Dirk Müller - add explicit golang API dependency - cleanup + * Wed Jul 6 2022 Johannes Kastl - add docker-compose-switch-rpmlintrc to ignore obsolete-not-provided error + * Thu Jun 30 2022 Johannes Kastl - new package docker-compose-switch to ease the transition from docker-compose v1 (Python) to docker-compose v2 (golang), where the latter does no longer have /usr/bin/docker-compose