From 2a4fbb972959c01c8009b6df9aac3fac18e90a57 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoitel Date: Sun, 20 Dec 2020 01:35:57 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ compose-cli.spec | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .abf.yml create mode 100644 compose-cli.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..bee64a6 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + compose-cli-1.0.5.tar.gz: 6d4389a4e71db7de49ebdb5a72087cc9f481c7c5 diff --git a/compose-cli.spec b/compose-cli.spec new file mode 100644 index 0000000..3a84a2f --- /dev/null +++ b/compose-cli.spec @@ -0,0 +1,44 @@ +%define debug %nil +%define debug_package %nil + +Name: compose-cli +Version: 1.0.5 +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 +%make -f builder.Makefile BINARY=bin/%{name} + +upx bin/%{name} + +%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}