docker-compose/docker-compose.spec
2022-03-09 18:15:24 +03:00

45 lines
1.2 KiB
RPMSpec

%define debug %nil
%define debug_package %nil
%define oname docker-compose
Name: %{oname}
Version: 2.3.3
Release: 1
Summary: Docker compose golang version
URL: https://docs.docker.com/compose
Source0: https://github.com/docker/compose/archive/v%{version}/%{name}-%{version}.tar.gz
Group: Development/Other
License: ASL 2.0
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
Requires: docker
%description
Docker Compose v2
Docker Compose is a tool for running multi-container
applications on Docker defined using the Compose file
format. A Compose file is used to define how the one or
more containers that make up your application are
configured. Once you have a Compose file, you can
create and start your application with a single command:
docker compose up
%prep
%setup -qn compose-%{version}
%build
CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/docker/compose/v2/internal.Version=%{version}" -o bin/%{oname} ./cmd
upx bin/%{oname}
find . -type f -size 0 -exec rm -f {} \;
%install
install -Dm0755 bin/%{oname} %{buildroot}%{_bindir}/%{oname}
%files
%doc README.md LICENSE docs
%{_bindir}/%{oname}