* Add initial packaging of containerd 0.0.5.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/containerd?expand=0&rev=1
This commit is contained in:
Aleksa Sarai 2016-03-27 10:27:18 +00:00 committed by Git OBS Bridge
commit 79d52504c9
6 changed files with 137 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

17
_service Normal file
View File

@ -0,0 +1,17 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">https://github.com/docker/containerd.git</param>
<param name="scm">git</param>
<param name="filename">containerd</param>
<param name="versionformat">0.0.5</param>
<param name="revision">0.0.5</param>
<param name="exclude">.git</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled">
<param name="basename">containerd</param>
</service>
</services>

3
containerd-0.0.5.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc0eef9b229b67d018b101d1e2a83074b4a74d5291c9f401f30ce4a906c66554
size 481912

5
containerd.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Sun Mar 27 10:19:02 UTC 2016 - asarai@suse.de
* Add initial packaging of containerd 0.0.5.

88
containerd.spec Normal file
View File

@ -0,0 +1,88 @@
#
# spec file for package containerd
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define go_arches %ix86 x86_64
%ifarch %go_arches
%define go_tool go
%define GO_BUILD_FLAGS %{nil}
%else
%define go_tool go-5
%define GO_BUILD_FLAGS "-gccgoflags=-Wl,--add-needed -Wl,--no-as-needed -static-libgo -ldl -lseccomp -lselinux -lapparmor"
%endif
%define version_unconverted 0.0.5
Name: containerd
Version: 0.0.5
Release: 0
License: Apache-2.0
Summary: Standalone OCI Container Daemon
Url: https://containerd.tools
Group: System/Management
Source: %{name}-%{version}.tar.xz
%ifarch %go_arches
BuildRequires: go >= 1.5
%else
BuildRequires: gcc5-go >= 5.0
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define client ctr
%define daemon %{name}
%define shim %{name}-shim
%description
containerd is a daemon with an API and a command line client, to manage
containers on one machine. It uses runC to run containers according to the OCI
specification. containerd has 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
%build
# Create buildir,
export GOPATH=$PWD/vendor
mkdir -pv $GOPATH/src/github.com/docker/
ln -svfn $PWD $GOPATH/src/github.com/docker/containerd
# Build deamon.
%go_tool build %GO_BUILD_FLAGS -x -o %{daemon}-%{version} github.com/docker/%{name}/%{daemon}
# Build shim.
%go_tool build %GO_BUILD_FLAGS -x -o %{shim}-%{version} github.com/docker/%{name}/%{shim}
# Build client.
%go_tool build %GO_BUILD_FLAGS -x -o %{client}-%{version} github.com/docker/%{name}/%{client}
%install
%{__install} -D -m755 %{daemon}-%{version} %{buildroot}/%{_bindir}/%{daemon}
%{__install} -D -m755 %{shim}-%{version} %{buildroot}/%{_bindir}/%{shim}
%{__install} -D -m755 %{client}-%{version} %{buildroot}/%{_bindir}/%{client}
%post
%postun
%files
%defattr(-,root,root)
%doc LICENSE.code LICENSE.docs README.md
%{_bindir}/%{daemon}
%{_bindir}/%{shim}
%{_bindir}/%{client}