docker-compose-vl.spec 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Name: docker-compose
  2. Summary: Define and run multi-container applications with Docker
  3. Version: 2.35.1
  4. Release: 1%{_dist_release}
  5. Group: virtualization
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: Apache-2.0
  9. URL: https://github.com/docker/compose
  10. Source: https://github.com/docker/compose/archive/refs/tags/v%{version}.tar.gz#/compose-%{version}.tar.gz
  11. # cd compose-x.y-z/
  12. # GOPROXY=https://proxy.golang.org,direct go mod vendor
  13. # tar Jcvf ../vendor.tar.xz vendor
  14. Source1: vendor.tar.xz
  15. BuildRequires: golang
  16. Requires: moby-engine
  17. %description
  18. 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.
  19. About update and backward compatibility
  20. Docker Compose V2 is a major version bump release of Docker Compose. It has been completely rewritten from scratch in Golang (V1 was in Python). The installation instructions for Compose V2 differ from V1. V2 is not a standalone binary anymore, and installation scripts will have to be adjusted. Some commands are different.
  21. For a smooth transition from legacy docker-compose 1.xx, please consider installing compose-switch to translate docker-compose ... commands into Compose V2's docker compose .... . Also check V2's --compatibility flag.
  22. %prep
  23. %setup -q -a 1 -n compose-%{version}
  24. %build
  25. go build \
  26. -mod=vendor \
  27. -buildmode=pie \
  28. -trimpath \
  29. -ldflags="-s -w -X github.com/docker/compose/v2/internal.Version=%{version}" \
  30. -o _build/docker-compose ./cmd/
  31. %install
  32. install -Dpm 0755 _build/%{name} %{buildroot}%{_bindir}/%{name}
  33. mkdir -p %{buildroot}/usr/lib/docker/cli-plugins
  34. ln -sf ../../../bin/%{name} %{buildroot}/usr/lib/docker/cli-plugins/%{name}
  35. %pre
  36. if [ -e /usr/lib/docker/cli-plugins/%{name} -a ! -L /usr/lib/docker/cli-plugins/%{name} ]; then
  37. rm -f /usr/lib/docker/cli-plugins/%{name}
  38. fi
  39. %files
  40. %license LICENSE
  41. %doc README.md
  42. %{_bindir}/*
  43. %dir /usr/lib/docker/
  44. %dir /usr/lib/docker/cli-plugins/
  45. /usr/lib/docker/cli-plugins/%{name}
  46. %changelog
  47. * Sat Apr 26 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.35.1-1
  48. - new upstream release.
  49. * Fri Jan 10 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.32.2-1
  50. - new upstream release.
  51. * Mon Sep 16 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.29.4-1
  52. - new upstream release.
  53. * Fri Sep 13 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.29.3-1
  54. - new upstream release.
  55. * Sat Aug 17 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.29.2-1
  56. - new upstream release.
  57. * Wed Jul 24 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.29.1-1
  58. - new upstream release.
  59. * Tue Jul 16 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.28.1-1
  60. - initial build for Vine Linux.