Adapted for MSVphere 9 build

i9 changed/i9/docker-compose-switch-1.0.5-1.6.el9.inferit
Sergey Cherevko 6 months ago
parent bd5f9df02d
commit 1d24c14818
Signed by: scherevko
GPG Key ID: D87CBBC16D2E4A72

@ -17,20 +17,23 @@
%define __arch_install_post export NO_BRP_STRIP_DEBUG=true %define __arch_install_post export NO_BRP_STRIP_DEBUG=true
%global debug_package %{nil}
Name: docker-compose-switch Name: docker-compose-switch
Version: 1.0.5 Version: 1.0.5
Release: 1.6 Release: 1.6%{?dist}.inferit
Summary: Replacement for the docker-compose (python) executable Summary: Replacement for the docker-compose (python) executable
License: Apache-2.0 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
Source99: docker-compose-switch-rpmlintrc Source99: docker-compose-switch-rpmlintrc
BuildRequires: golang(API) = 1.18 BuildRequires: golang%{?_isa} >= 1.18
Requires: docker Requires: docker-ce
Requires: docker-compose >= 2.0 Requires: docker-compose-plugin
Requires(post): update-alternatives Requires(post): alternatives
Requires(postun): update-alternatives Requires(postun): 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
@ -41,6 +44,8 @@ Obsoletes: python38-docker-compose < 2.0.0
Obsoletes: python39-docker-compose < 2.0.0 Obsoletes: python39-docker-compose < 2.0.0
Obsoletes: python310-docker-compose < 2.0.0 Obsoletes: python310-docker-compose < 2.0.0
Provides: docker-compose
%description %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. 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
install -D -m 0755 bin/%{name} "%{buildroot}%{_bindir}/%{name}" install -D -m 0755 bin/%{name} "%{buildroot}%{_bindir}/%{name}"
mkdir -p %{buildroot}%{_sysconfdir}/alternatives 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 %post
update-alternatives --install \ update-alternatives --install \
@ -77,10 +82,16 @@ fi
%ghost %{_sysconfdir}/alternatives/docker-compose %ghost %{_sysconfdir}/alternatives/docker-compose
%changelog %changelog
* Wed Jul 31 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 1.0.5-1.6.inferit
- Adapted for MSVphere 9 build
- Rebuilt for MSVSphere 9.4
* Tue Aug 2 2022 Dirk Müller <dmueller@suse.com> * Tue Aug 2 2022 Dirk Müller <dmueller@suse.com>
- add explicit golang API dependency - add explicit golang API dependency
- cleanup - cleanup
* Wed Jul 6 2022 Johannes Kastl <kastl@b1-systems.de> * Wed Jul 6 2022 Johannes Kastl <kastl@b1-systems.de>
- add docker-compose-switch-rpmlintrc to ignore obsolete-not-provided error - add docker-compose-switch-rpmlintrc to ignore obsolete-not-provided error
* Thu Jun 30 2022 Johannes Kastl <kastl@b1-systems.de> * Thu Jun 30 2022 Johannes Kastl <kastl@b1-systems.de>
- 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 - 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

Loading…
Cancel
Save