File bubblewrap.spec of Package bubblewrap
#
# spec file for package bubblewrap
#
# Copyright (c) 2025 Andreas Vögele <andreas@andreasvoegele.com>
# Copyright (c) 2025 Fedora Project
#
# 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 send bugfixes or comments to the author.
#
Name: bubblewrap
Version: 0.11.0
Release: 0
Summary: Core execution tool for unprivileged containers
License: LGPL-2.0-or-later
URL: https://github.com/containers/bubblewrap/
Source0: https://github.com/containers/bubblewrap/releases/download/v%{version}/bubblewrap-%{version}.tar.xz
Patch0: Do-not-acquire-privs.patch
BuildRequires: pkgconfig(bash-completion) >= 2.0
BuildRequires: gcc
%if 0%{?suse_version} > 0
BuildRequires: docbook-xsl-stylesheets
%else
BuildRequires: docbook-style-xsl
%endif
BuildRequires: meson
BuildRequires: pkgconfig(libcap)
BuildRequires: pkgconfig(libselinux)
BuildRequires: libxslt
%description
Bubblewrap (/usr/bin/bwrap) is a core execution engine for unprivileged
containers.
%prep
%autosetup
%build
%meson -Dman=enabled -Dselinux=enabled
%meson_build
%install
%meson_install
%files
%license COPYING
%doc README.md
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/bwrap
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_bwrap
%if (0%{?rhel} != 0 && 0%{?rhel} <= 7)
%attr(0755,root,root) %caps(cap_sys_admin,cap_net_admin,cap_sys_chroot,cap_setuid,cap_setgid=ep) %{_bindir}/bwrap
%else
%{_bindir}/bwrap
%endif
%{_mandir}/man1/bwrap.1*
%changelog