File bubblewrap.spec of Package bubblewrap.11815

# spec file for package bubblewrap
# Copyright (c) 2017 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

Name:           bubblewrap
Version:        0.2.0
Release:        0
Summary:        Core execution tool for unprivileged containers
License:        LGPL-2.0+
Group:          Productivity/Security
# Does not have and included -> unusable
# Source0:{version}/%%{name}-%%{version}.tar.xz
# PATCH-FIX-UPSTREAM fix-cve-2019-12439.patch boo#1136958 CVE-2019-12439
# adapted from
Patch0:         fix-cve-2019-12439.patch
# We always run
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  docbook-xsl-stylesheets
BuildRequires:  gcc
BuildRequires:  git
BuildRequires:  libcap-devel
BuildRequires:  libtool
BuildRequires:  libxslt
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libselinux)

Bubblewrap (%{_bindir}/bwrap) is a core execution engine for unprivileged
containers that works as a setuid binary on kernels without
user namespaces.

# autosetup applies the patch itself according to the build log
%autosetup -n %{name}-%{version}
sed -i '1d' completions/bash/bwrap

%configure --disable-silent-rules --with-priv-mode=none
make %{?_smp_mflags}

%make_install DESTDIR=%{buildroot} INSTALL="install -p -c"
find %{buildroot} -type f -name "*.la" -delete -print

%license COPYING
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions

openSUSE Build Service is sponsored by