%global dist_version 0.2.8 %global provider github %global provider_tld com %global project docker %global repo containerd %global import_path %{provider}.%{provider_tld}/%{project}/%{repo} #debuginfo not supported with Go %global gopath %{_libdir}/golang %define gosrc %{gopath}/src/pkg/%{import_path} %global commit ca47f7e76a93e9b3768ed084d62318e85bd9f4b2 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: %{project}-%{repo} Version: %{dist_version} Release: %mkrel 1 Summary: A daemon to control runC License: ASL 2.0 Group: System/Configuration URL: http://www.docker.com Source0: https://%{import_path}/archive/v%{dist_version}.tar.gz #Source0: https://%{import_path}/archive/%{commit}.tar.gzS BuildRequires: gcc BuildRequires: glibc-static-devel # ensure build uses golang 1.4 or above BuildRequires: golang >= 1.4 Requires: opencontainers-runc > 0.1.1 %description containerd is a daemon to control runC, built for performance and density. containerd leverages runC's advanced features such as seccomp and user namespace support as well as checkpoint and restore for cloning and live migration of containers. %prep #%setup -q -n docker-%{commit} %setup -q -n %{repo}-%{dist_version} %build #export DOCKER_GITCOMMIT="%{shortcommit}" #export DOCKER_GITCOMMIT="%{shortcommit}/%{version}" ln -sf $(pwd) vendor/src/%{import_path} export GOPATH=$(pwd)/vendor:%{gopath} make %install # install binary install -d %{buildroot}%{_bindir} install -p -m 755 bin/* %{buildroot}%{_bindir} cd %{buildroot}%{_bindir} for i in *; do ln -sf $i docker-$i done %files %doc LICENSE.* MAINTAINERS NOTICE README.md %{_bindir}/* %changelog * Fri May 12 2017 bcornec <bcornec> 0.2.8-1.mga6 + Revision: 1100545 - Update to upstream 0.2.8 docker-containerd * Sat Sep 24 2016 bcornec <bcornec> 0.2.3-1.mga6 + Revision: 1055670 - Force a dep on the 1.0 branch of runc as the previous one doesn't work anymore - Update docker-containerd to upstream 0.2.3 * Mon May 23 2016 bcornec <bcornec> 0.2.1-4.mga6 + Revision: 1018009 - bump rel * Mon May 23 2016 bcornec <bcornec> 0.2.1-3.mga6 + Revision: 1018000 - remove restriction on arch * Sun May 22 2016 bcornec <bcornec> 0.2.1-2.mga6 + Revision: 1017693 - containerd requires runc * Sun May 22 2016 bcornec <bcornec> 0.2.1-1.mga6 + Revision: 1017668 - Create a package for docker-containerd which is now needed by docker >= 1.11 - Created package structure for docker-containerd.