update to 1.3.0 [release 1.3.0-1mamba;Wed Nov 06 2019]
This commit is contained in:
parent
f28b15bdf4
commit
eb0e7eb8ad
@ -1,46 +1,59 @@
|
|||||||
|
%define _commit d50db0a42053864a270f648048f9a8b4f24eced3
|
||||||
Name: containerd
|
Name: containerd
|
||||||
Version: 0.2.8
|
Version: 1.3.0
|
||||||
Release: 3mamba
|
Release: 1mamba
|
||||||
Summary: A daemon to control OCI container runtimes
|
Summary: A daemon to control OCI container runtimes
|
||||||
Group: System/Servers
|
Group: System/Servers
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://www.docker.com/
|
URL: https://containerd.io/
|
||||||
## GITSOURCE https://github.com/docker/containerd.git 0.0.5
|
## GITSOURCE https://github.com/docker/containerd.git 0.0.5
|
||||||
Source: https://github.com/docker/containerd.git/v%{version}/containerd-%{version}.tar.bz2
|
Source: https://github.com/containerd/containerd.git/v%{version}/containerd-%{version}.tar.bz2
|
||||||
License: Apache License 2.0
|
License: Apache License 2.0
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libgcc
|
BuildRequires: libseccomp-devel
|
||||||
BuildRequires: libgo-devel
|
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: libgo-devel >= 7.3.0-1mamba
|
BuildRequires: libgo-devel >= 7.3.0-1mamba
|
||||||
BuildRequires: go
|
BuildRequires: go-pie
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A daemon to control OCI container runtimes.
|
A daemon to control OCI container runtimes.
|
||||||
|
|
||||||
%debug_package
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
mkdir -p src/github.com/containerd
|
||||||
|
ln -rsf $PWD src/github.com/containerd/containerd
|
||||||
|
|
||||||
|
# fix paths in service
|
||||||
|
sed -i 's,/sbin,/usr/bin,;s,/usr/local,/usr,' containerd.service
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export GOPATH=`pwd`
|
export GOPATH=$PWD
|
||||||
mkdir -p src/github.com/docker
|
cd src/github.com/containerd/containerd
|
||||||
ln -rsf `pwd` src/github.com/docker/containerd
|
export GOFLAGS="-trimpath"
|
||||||
cd src/github.com/docker/containerd
|
|
||||||
|
|
||||||
%make
|
%make VERSION=v%{version}.m REVISION=%{_commit}.m
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
cd src/github.com/docker/containerd/bin
|
cd src/github.com/containerd/containerd
|
||||||
for file in $(find . -type f -print); do
|
%makeinstall DESTDIR=%{buildroot}/usr
|
||||||
install -Dm755 $file %{buildroot}%{_bindir}/$file
|
install -Dm644 containerd.service %{buildroot}%{_unitdir}/containerd.service
|
||||||
done
|
|
||||||
|
%post
|
||||||
|
%systemd_post containerd
|
||||||
|
:
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%systemd_preun containerd
|
||||||
|
:
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%systemd_postun containerd
|
||||||
|
:
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -49,12 +62,17 @@ done
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/containerd
|
%{_bindir}/containerd
|
||||||
%{_bindir}/containerd-shim
|
%{_bindir}/containerd-shim
|
||||||
|
%{_bindir}/containerd-shim-runc-v1
|
||||||
|
%{_bindir}/containerd-shim-runc-v2
|
||||||
|
%{_bindir}/containerd-stress
|
||||||
%{_bindir}/ctr
|
%{_bindir}/ctr
|
||||||
%doc LICENSE.code LICENSE.docs MAINTAINERS
|
%{_unitdir}/containerd.service
|
||||||
#%doc README.md
|
%doc LICENSE
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 06 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.0-1mamba
|
||||||
|
- update to 1.3.0
|
||||||
|
|
||||||
* Sun Jun 24 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.8-3mamba
|
* Sun Jun 24 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.8-3mamba
|
||||||
- rebuilt with go-pie
|
- rebuilt with go-pie
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user