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 \