2017-03-02 10:22:03 +01:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: bubblewrap
|
2017-05-25 23:21:41 +02:00
|
|
|
Version: 0.1.8
|
2017-03-02 10:22:03 +01:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Core execution tool for unprivileged containers
|
|
|
|
License: LGPL-2.0+
|
|
|
|
Url: https://github.com/projectatomic/bubblewrap
|
|
|
|
Source: https://github.com/projectatomic/bubblewrap/archive/v%{version}.tar.gz
|
|
|
|
# Does not have README.md and autogen.sh included -> unusable
|
|
|
|
# Source0: https://github.com/projectatomic/bubblewrap/releases/download/v%%{version}/%%{name}-%%{version}.tar.xz
|
2017-01-26 10:25:10 +01:00
|
|
|
# We always run autogen.sh
|
2017-03-02 10:22:03 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(libselinux)
|
2017-01-26 10:25:10 +01:00
|
|
|
|
|
|
|
%description
|
2017-03-02 10:22:03 +01:00
|
|
|
Bubblewrap (%{_bindir}/bwrap) is a core execution engine for unprivileged
|
2017-01-26 10:25:10 +01:00
|
|
|
containers that works as a setuid binary on kernels without
|
|
|
|
user namespaces.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{name}-%{version}
|
|
|
|
sed -i '1d' completions/bash/bwrap
|
|
|
|
|
|
|
|
%build
|
|
|
|
env NOCONFIGURE=1 ./autogen.sh
|
|
|
|
%configure --disable-silent-rules --with-priv-mode=none
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
2017-03-02 10:22:03 +01:00
|
|
|
%make_install DESTDIR=%{buildroot} INSTALL="install -p -c"
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2017-01-26 10:25:10 +01:00
|
|
|
|
|
|
|
%files
|
2017-03-02 10:22:03 +01:00
|
|
|
%defattr(-,root,root)
|
2017-01-26 10:25:10 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc README.md
|
|
|
|
%dir %{_datadir}/bash-completion
|
|
|
|
%dir %{_datadir}/bash-completion/completions
|
|
|
|
%{_datadir}/bash-completion/completions/bwrap
|
|
|
|
%{_bindir}/bwrap
|
|
|
|
%{_mandir}/man1/*
|
2017-03-02 10:22:03 +01:00
|
|
|
|
|
|
|
%changelog
|