2019-12-30 12:24:38 +08:00
|
|
|
%global goipath github.com/containerd/containerd
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
Version: 1.2.0
|
|
|
|
|
Name: containerd
|
2020-12-15 14:29:00 +08:00
|
|
|
Release: 106
|
2019-12-30 12:24:38 +08:00
|
|
|
Summary: An industry-standard container runtime
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: https://containerd.io
|
2020-09-14 14:58:02 +08:00
|
|
|
Source0: https://github.com/containerd/containerd/archive/v1.2.0.zip
|
2020-06-09 23:39:19 -04:00
|
|
|
Source1: patch.tar.gz
|
|
|
|
|
Source2: apply-patch
|
|
|
|
|
Source3: series.conf
|
|
|
|
|
Source4: git-commit
|
|
|
|
|
Source5: gen-commit.sh
|
2019-12-30 12:24:38 +08:00
|
|
|
|
|
|
|
|
BuildRequires: golang glibc-static make btrfs-progs-devel
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
containerd is an industry-standard container runtime with an emphasis on
|
|
|
|
|
simplicity, robustness and portability. It is available as a daemon for Linux
|
|
|
|
|
and Windows, which can manage the complete container lifecycle of its host
|
|
|
|
|
system: image transfer and storage, container execution and supervision,
|
|
|
|
|
low-level storage and network attachments, etc.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-06-09 23:39:19 -04:00
|
|
|
cp %{SOURCE0} .
|
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
|
cp %{SOURCE2} .
|
|
|
|
|
cp %{SOURCE3} .
|
|
|
|
|
cp %{SOURCE4} .
|
2019-12-30 12:24:38 +08:00
|
|
|
|
|
|
|
|
%build
|
2020-06-09 23:39:19 -04:00
|
|
|
bash ./apply-patch
|
2019-12-30 12:24:38 +08:00
|
|
|
|
|
|
|
|
GO_BUILD_PATH=$PWD/_build
|
|
|
|
|
install -m 0755 -vd $(dirname $GO_BUILD_PATH/src/%{goipath})
|
|
|
|
|
ln -fs $PWD $GO_BUILD_PATH/src/%{goipath}
|
|
|
|
|
cd $GO_BUILD_PATH/src/%{goipath}
|
|
|
|
|
export GOPATH=$GO_BUILD_PATH:%{gopath}
|
|
|
|
|
export BUILDTAGS="no_btrfs no_cri"
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
install -d $RPM_BUILD_ROOT/%{_bindir}
|
|
|
|
|
install -p -m 755 bin/containerd $RPM_BUILD_ROOT/%{_bindir}/containerd
|
|
|
|
|
install -p -m 755 bin/containerd-shim $RPM_BUILD_ROOT/%{_bindir}/containerd-shim
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_bindir}/containerd
|
|
|
|
|
%{_bindir}/containerd-shim
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-12-15 14:29:00 +08:00
|
|
|
* Fri Dec 11 2020 yangyanchao <yangyanchao6@huawei.com> 1.2.0-106
|
|
|
|
|
- Type:requirement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:restart
|
|
|
|
|
- DESC:containerd:vendor:add some symbol to support riscv
|