From 839ebd54f658194cf07a16eb6695772ea0fba2bd Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 1 Jun 2022 18:14:11 +0300 Subject: [PATCH] Fix containerd.service location --- SPECS/containerd.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SPECS/containerd.spec b/SPECS/containerd.spec index 05cfa2e..de0b756 100644 --- a/SPECS/containerd.spec +++ b/SPECS/containerd.spec @@ -22,9 +22,8 @@ Release: 3.1%{?dist} Summary: An industry-standard container runtime License: ASL 2.0 URL: https://containerd.io -Source0: containerd-1.6.4.tar +Source0: %{tarball_name}-%{version}.tar Source2: containerd.toml -# Source3: runc # container-selinux isn't a thing in suse flavors %if %{undefined suse_version} # amazonlinux2 doesn't have container-selinux either @@ -92,7 +91,7 @@ bin/ctr --version cd %{_topdir}/BUILD/%{tarball_name}-%{version} mkdir -p %{buildroot}%{_bindir} install -D -m 0755 bin/* %{buildroot}%{_bindir} -install -D -m 0644 containerd.service %{buildroot}%{_unitdir}/containerd.service +install -D -m 0644 containerd.service %{buildroot}%{_prefix}/local/bin/containerd.service install -D -m 0644 %{S:2} %{buildroot}%{_sysconfdir}/containerd/config.toml # install manpages, taking into account that not all sections may be present @@ -119,7 +118,7 @@ done %license LICENSE %doc README.md %{_bindir}/* -%{_unitdir}/containerd.service +%{_prefix}/local/bin/containerd.service %{_sysconfdir}/containerd %{_mandir}/man*/* %config(noreplace) %{_sysconfdir}/containerd/config.toml