docker-compose/docker-compose.spec

46 lines
1.2 KiB
RPMSpec
Raw Permalink Normal View History

2021-12-15 23:08:55 +03:00
%define debug %nil
%define debug_package %nil
%define oname docker-compose
Name: %{oname}
2022-05-30 22:17:43 +03:00
Version: 2.6.0
2021-12-15 23:08:55 +03:00
Release: 1
Summary: Docker compose golang version
URL: https://docs.docker.com/compose
2022-03-08 16:39:24 +03:00
Source0: https://github.com/docker/compose/archive/v%{version}/%{name}-%{version}.tar.gz
2021-12-15 23:08:55 +03:00
Group: Development/Other
License: ASL 2.0
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
Requires: docker
2019-02-15 17:52:21 +03:00
%description
2021-12-15 23:08:55 +03:00
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:
2019-02-15 17:52:21 +03:00
2021-12-15 23:08:55 +03:00
docker compose up
2019-02-15 17:52:21 +03:00
%prep
2021-12-15 23:08:55 +03:00
%setup -qn compose-%{version}
2019-02-15 17:52:21 +03:00
%build
2021-12-15 23:08:55 +03:00
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 {} \;
2019-02-15 17:52:21 +03:00
%install
2021-12-15 23:08:55 +03:00
install -Dm0755 bin/%{oname} %{buildroot}%{_bindir}/%{oname}
2019-02-15 17:52:21 +03:00
%files
2021-12-15 23:08:55 +03:00
%doc README.md LICENSE docs
%{_bindir}/%{oname}