From a2499abb09d6f94dc70939fa3c1fdc5a9d234d0fef01c14b45a2315ed835e6e1 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 2 Aug 2022 09:29:01 +0000 Subject: [PATCH] - add explicit golang API dependency - cleanup OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker-compose-switch?expand=0&rev=2 --- docker-compose-switch.changes | 6 ++++++ docker-compose-switch.spec | 10 ++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docker-compose-switch.changes b/docker-compose-switch.changes index 4234ff9..629e8a5 100644 --- a/docker-compose-switch.changes +++ b/docker-compose-switch.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 2 09:27:00 UTC 2022 - Dirk Müller + +- add explicit golang API dependency +- cleanup + ------------------------------------------------------------------- Wed Jul 6 18:02:54 UTC 2022 - Johannes Kastl diff --git a/docker-compose-switch.spec b/docker-compose-switch.spec index 8a13b0a..8b4ffd3 100644 --- a/docker-compose-switch.spec +++ b/docker-compose-switch.spec @@ -17,7 +17,6 @@ %define __arch_install_post export NO_BRP_STRIP_DEBUG=true - Name: docker-compose-switch Version: 1.0.5 Release: 0 @@ -26,13 +25,13 @@ License: Apache-2.0 URL: https://github.com/docker/compose-switch Source: compose-switch-%{version}.tar.gz Source1: vendor.tar.gz -BuildRequires: go >= 1.18 +BuildRequires: golang(API) = 1.18 Requires: docker Requires: docker-compose >= 2.0 Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-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). +# It has been completely rewritten from scratch in Golang (V1 was in Python). Obsoletes: python2-docker-compose < 2.0.0 Obsoletes: python3-docker-compose < 2.0.0 Obsoletes: python36-docker-compose < 2.0.0 @@ -45,8 +44,7 @@ Obsoletes: python310-docker-compose < 2.0.0 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. %prep -%setup -q -n compose-switch-%{version} -%setup -q -T -D -a 1 -n compose-switch-%{version} +%setup -q -a1 -n compose-switch-%{version} %build go build \