Fix containerd.service location

This commit is contained in:
eabdullin 2022-06-01 18:14:11 +03:00
parent c007c18356
commit 839ebd54f6

View File

@ -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