containerd-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. %bcond_with systemd
  2. %bcond_without check
  3. Name: containerd
  4. Version: 2.0.5
  5. Release: 1%{_dist_release}%{?with_systemd:.systemd}
  6. Summary: An open and reliable container runtime
  7. Group: virtualization
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. # Generated by go-vendor-tools
  11. # SourceLicense: Apache-2.0
  12. License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
  13. URL: https://github.com/containerd/containerd
  14. Source0: https://github.com/containerd/containerd/archive/refs/tags/v%{version}.tar.gz#/containerd-%{version}.tar.gz
  15. Patch: 0001-Makefile-fix-GO_LDFLAGS-quoting.patch
  16. %if %{with man}
  17. BuildRequires: /usr/bin/go-md2man
  18. %endif
  19. BuildRequires: btrfs-progs-devel
  20. BuildRequires: libseccomp-devel
  21. BuildRequires: make
  22. BuildRequires: golang
  23. Requires: runc
  24. %description
  25. Containerd is an industry-standard container runtime with an emphasis on
  26. simplicity, robustness and portability. It is available as a daemon for Linux
  27. and Windows, which can manage the complete container lifecycle of its host
  28. system: image transfer and storage, container execution and supervision,
  29. low-level storage and network attachments, etc.
  30. %prep
  31. %setup -q
  32. %autopatch -p1
  33. # Replace default bin directory
  34. sed -i \
  35. -e "s|/usr/local/bin/containerd|/usr/bin/containerd|" \
  36. -e "s|network\.target|network-online.target|" \
  37. containerd.service
  38. %build
  39. GO_LDFLAGS="-s -w" GO_BUILDFLAGS="-E -trimpath"
  40. %global makeflags %{expand:\\
  41. DATADIR=%{_datadir} \\
  42. DESTDIR=%{buildroot} \\
  43. MANDIR=%{_mandir} \\
  44. PREFIX=%{_prefix} \\
  45. SHIM_CGO_ENABLED=1 \\
  46. BUILDTAGS="apparmor selinux seccomp" \\
  47. VERSION=%{version} \\
  48. REVISION=%{release} \\
  49. }
  50. %if %{with man}
  51. %make_build %{makeflags} binaries man
  52. %else
  53. %make_build %{makeflags} binaries
  54. %endif
  55. %install
  56. %if %{with man}
  57. %make_build %{makeflags} install install-man
  58. %else
  59. %make_build %{makeflags} install
  60. %endif
  61. # Set up dummy configuration.
  62. install -d -m755 %{buildroot}/%{_sysconfdir}/%{name}
  63. echo "# See containerd-config.toml(5) for documentation." >%{buildroot}/%{_sysconfdir}/%{name}/config.toml
  64. %if %{with systemd}
  65. install -Dpm 0644 containerd.service -t %{buildroot}%{_unitdir}
  66. %endif
  67. %check
  68. %if %{with check}
  69. %make_build %{makeflags} test
  70. %endif
  71. %files
  72. %license vendor/modules.txt
  73. %doc ROADMAP.md ADOPTERS.md BUILDING.md README.md RELEASES.md SCOPE.md
  74. %{_bindir}/ctr
  75. %{_bindir}/containerd
  76. %{_bindir}/containerd-stress
  77. %{_bindir}/containerd-shim*
  78. %if %{with man}
  79. %{_mandir}/man5/containerd-config.toml.5*
  80. %{_mandir}/man8/ctr.8*
  81. %{_mandir}/man8/containerd.8*
  82. %{_mandir}/man8/containerd-config.8*
  83. %endif
  84. %dir %{_sysconfdir}/containerd
  85. %config(noreplace) %{_sysconfdir}/containerd/config.toml
  86. %if %{with systemd}
  87. %{_unitdir}/containerd.service
  88. %endif
  89. %changelog
  90. * Sat Apr 26 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.5-1
  91. - new upstream release.
  92. * Fri Jan 10 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.1-1
  93. - new upstream release.
  94. * Wed Sep 11 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.22-1
  95. - new upstream release.
  96. * Thu Aug 29 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.21-1
  97. - new upstream release.
  98. * Thu Jul 18 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.20-1
  99. - new upstream release.
  100. * Mon Jul 15 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.19-1
  101. - initial build for Vine Linux.