3ecd3b8405
* add patch seccomp-use-pkg-config.patch which allows us to build runC, since they assume that the seccomp.h file lives at /usr/include/seccomp.h. OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/runc?expand=0&rev=1
62 lines
2.0 KiB
RPMSpec
62 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package runc
|
|
#
|
|
# 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 version_unconverted 0.0.9
|
|
|
|
Name: runc
|
|
Version: 0.0.9
|
|
Release: 0
|
|
Summary: Tool for spawning and running OCI containers
|
|
License: Apache-2.0
|
|
Group: System/Management
|
|
Url: https://github.com/opencontainers/runc
|
|
Source: %{name}-%{version}.tar.xz
|
|
Patch0: seccomp-use-pkg-config.patch
|
|
BuildRequires: go >= 1.5
|
|
BuildRequires: libapparmor-devel
|
|
BuildRequires: libseccomp-devel
|
|
BuildRequires: libselinux-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
runc is a CLI tool for spawning and running containers according to the OCI
|
|
specification. It is designed to be as minimal as possible, and is the workhorse
|
|
of Docker. It was originally designed to be a replacement for LXC within Docker,
|
|
and has grown to become a separate project entirely.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
# Apply the vendor'd patch to the right subdirectory.
|
|
%patch0 -p1 -d Godeps/_workspace/src/github.com/seccomp/libseccomp-golang
|
|
|
|
%build
|
|
# TODO: Add support for gcc-go.
|
|
export BUILDTAGS="seccomp apparmor selinux"
|
|
make BUILDTAGS="$BUILDTAGS" all
|
|
|
|
%install
|
|
%{__install} -D -m755 %{name} %{buildroot}/%{_bindir}/%{name}
|
|
|
|
%post
|
|
|
|
%postun
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README.md LICENSE
|
|
%{_bindir}/%{name}
|