- add explicit golang API dependency

- cleanup

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker-compose-switch?expand=0&rev=2
This commit is contained in:
Dirk Mueller 2022-08-02 09:29:01 +00:00 committed by Git OBS Bridge
parent d01abf1038
commit a2499abb09
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Aug 2 09:27:00 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add explicit golang API dependency
- cleanup
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 6 18:02:54 UTC 2022 - Johannes Kastl <kastl@b1-systems.de> Wed Jul 6 18:02:54 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>

View File

@ -17,7 +17,6 @@
%define __arch_install_post export NO_BRP_STRIP_DEBUG=true %define __arch_install_post export NO_BRP_STRIP_DEBUG=true
Name: docker-compose-switch Name: docker-compose-switch
Version: 1.0.5 Version: 1.0.5
Release: 0 Release: 0
@ -26,11 +25,11 @@ License: Apache-2.0
URL: https://github.com/docker/compose-switch URL: https://github.com/docker/compose-switch
Source: compose-switch-%{version}.tar.gz Source: compose-switch-%{version}.tar.gz
Source1: vendor.tar.gz Source1: vendor.tar.gz
BuildRequires: go >= 1.18 BuildRequires: golang(API) = 1.18
Requires: docker Requires: docker
Requires: docker-compose >= 2.0 Requires: docker-compose >= 2.0
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun): update-alternatives
# Docker Compose V2 is a major version bump release of Docker Compose. # 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: python2-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. 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 %prep
%setup -q -n compose-switch-%{version} %setup -q -a1 -n compose-switch-%{version}
%setup -q -T -D -a 1 -n compose-switch-%{version}
%build %build
go build \ go build \