Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
runc.21021
runc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File runc.spec of Package runc.21021
# # spec file for package runc # # Copyright (c) 2021 SUSE LLC # # 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 https://bugs.opensuse.org/ # # nodebuginfo # MANUAL: Make sure you update this each time you update runc. %define git_version 12644e614e25b05da6fd08a38ffa0cfe1903fdec # Package-wide golang version %define go_version 1.13 %define _version 1.0.0-rc93 %define project github.com/opencontainers/runc Name: runc Version: 1.0.0~rc93 Release: 0 Summary: Tool for spawning and running OCI containers License: Apache-2.0 Group: System/Management URL: https://github.com/opencontainers/runc Source0: https://github.com/opencontainers/runc/releases/download/v%{_version}/runc.tar.xz#/runc-%{_version}.tar.xz Source1: https://github.com/opencontainers/runc/releases/download/v%{_version}/runc.tar.xz.asc#/runc-%{_version}.tar.xz.asc Source2: runc.keyring Source3: runc-rpmlintrc # SUSE-FIX: SLE-12 has too old a glibc for memfd_create(2) and __ppc64__ # doesn't appear to match ppc64le for some reason. This is a backport # of <https://github.com/opencontainers/runc/pull/2919>. Patch1: 0001-cloned_binary-switch-from-error-to-warning-for-SYS_m.patch # CVE-2021-30465 bsc#1185405 Patch2: CVE-2021-30465.patch # https://github.com/containerd/console/pull/51 Patch3: Fix-ptsname-for-big-endian-architectures-again.patch BuildRequires: fdupes BuildRequires: go-go-md2man # Due to a limitation in openSUSE's Go packaging we cannot have a BuildRequires # for 'golang(API) >= 1.x' here, so just require 1.x exactly. bsc#1172608 BuildRequires: go%{go_version} BuildRequires: libseccomp-devel BuildRequires: libselinux-devel Recommends: criu # There used to be a docker-runc package which was specifically for Docker. # Since Docker now tracks upstream more consistently, we use the same package # but we need to obsolete the old one. bsc#1181677 # NOTE: We can't use the package version here because docker-runc used a # different versioning scheme by accident (1.0.0rc92 vs 1.0.0~rc92 -- and # GNU sort considers the former to be newer than the latter, in fact # 1.0.0rc92 is newer than 1.0.0 according to GNU sort). So we invent a # fake 1.0.0.1 version. Obsoletes: docker-runc < 1.0.0.1 Provides: docker-runc = 1.0.0.1.%{version} # KUBIC-SPECIFIC: There used to be a kubic-specific docker-runc package, but # now it's been merged into the one package. bsc#1181677 Obsoletes: docker-runc-kubic < 1.0.0.1 Provides: docker-runc-kubic = 1.0.0.1.%{version} Obsoletes: docker-runc = 0.1.1+gitr2819_50a19c6 Obsoletes: docker-runc_50a19c6 %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} # fix build on SLE-12 ppc64le %patch1 -p1 # CVE-2021-30465 bsc#1185405 %patch2 -p1 %patch3 -p1 %build # build runc make BUILDTAGS="seccomp" COMMIT_NO="%{git_version}" runc # build man pages man/md2man-all.sh %install # We install to /usr/sbin/runc as per upstream and create a symlink in /usr/bin # for rootless tools. install -D -m0755 %{name} %{buildroot}%{_sbindir}/%{name} install -m0755 -d %{buildroot}%{_bindir} ln -s %{_sbindir}/%{name} %{buildroot}%{_bindir}/%{name} # Man pages. install -d -m0755 %{buildroot}%{_mandir}/man8 install -m0644 man/man8/runc*.8 %{buildroot}%{_mandir}/man8 %fdupes %{buildroot} %files %defattr(-,root,root) %doc README.md %license LICENSE %{_sbindir}/%{name} %{_bindir}/%{name} %{_mandir}/man8/runc*.8.gz %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor