compose-cli/compose-cli.spec

46 lines
949 B
RPMSpec
Raw Normal View History

2020-12-20 01:35:57 +03:00
%define debug %nil
%define debug_package %nil
Name: compose-cli
2025-02-15 13:37:18 +00:00
Version: 1.0.35
2020-12-20 01:35:57 +03:00
Release: 1
Summary: Docker compose cli on GO
URL: https://github.com/docker/compose-cli
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
License: ASL 2.0
Group: Development/Other
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
Requires: docker
%description
This CLI tool makes it easy to run Docker containers and
Docker Compose applications in the cloud using either
Amazon Elastic Container Service (ECS) or Microsoft
Azure Container Instances (ACI) using the Docker
commands you already know.
%prep
%setup -q
%build
2025-02-15 13:37:18 +00:00
export GOPROXY=https://proxy.golang.org,direct
2020-12-20 01:35:57 +03:00
%make -f builder.Makefile BINARY=bin/%{name}
2025-02-15 13:37:18 +00:00
#upx bin/%{name}
2020-12-20 01:35:57 +03:00
%install
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
%post
cd /usr/bin
ln -s docker com.docker.cli
%postun
rm -f %{_bindir}/com.docker.cli
%files
%doc README.md LICENSE
%{_bindir}/%{name}