Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev
docker-compose
docker-compose.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File docker-compose.spec of Package docker-compose
%define realname compose %define realver 2.17.2 %define srcext tar.gz # turn off the generation of debuginfo rpm (RH9) ?? %global debug_package %{nil} # Common info Name: docker-%{realname} Version: %{realver} Release: wiz%{?extraver:0.}1%{?dist} License: Apache-2.0 Group: System/Management URL: https://docs.docker.com/compose/ Summary: Define and run multi-container applications with Docker # Install-time parameters Requires: docker Obsoletes: python3-docker-compose # Build-time parameters BuildRequires: go >= 1.20 Source: https://codeload.github.com/docker/compose/%{srcext}/refs/tags/v%{realver}#/%{realname}-%{version}%{?extraver}.%{srcext} # go mod vendor -v; tar -Jcvf ../vendor-mods.tar.xz vendor; rm -rf vendor Source11: vendor-mods.tar.xz %description 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 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` # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-%{version}%{?extraver} -a11 # Build step (compile/build binaries, documentation, etc) %build _CFLAGS='%{optflags}' _LDFLAGS='-Wl,--as-needed -Wl,--strip-all -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro' export GOPATH=$(pwd -P)/.gomodules export GOCACHE=$(pwd -P)/.gocache export GOTRACEBACK=crash export CGO_ENABLED=1 export CGO_CFLAGS="$_CFLAGS" export CGO_LDFLAGS="$_LDFLAGS" # Build static assets go build \ -v \ -mod=vendor \ -buildmode=pie \ -gcflags=all='-dwarf=false' \ -ldflags=all='-s -w -X github.com/docker/compose/v2/internal.Version=%{version}' \ -trimpath \ -o bin/docker-compose \ ./cmd # Install built stuff %install # Install executable %{__install} -D -m0755 bin/docker-compose %{buildroot}%{_libexecdir}/docker/cli-plugins/docker-compose # Cleanup %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} # Files list %files %defattr(-,root,root) %license LICENSE %doc docs/reference/*.md %doc README.md %dir %{_libexecdir}/docker/cli-plugins %dir %{_libexecdir}/docker %{_libexecdir}/docker/cli-plugins/docker-compose %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor