bubblewrap/bubblewrap.spec

52 lines
1.3 KiB
RPMSpec
Raw Permalink Normal View History

2023-02-07 14:25:15 +00:00
Name: bubblewrap
Version: 0.10.0
2024-05-21 19:35:48 +00:00
Release: %autorelease
Summary: Core execution tool for unprivileged containers
2023-02-07 14:25:15 +00:00
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
2016-07-11 20:03:19 +00:00
BuildRequires: pkgconfig(bash-completion) >= 2.0
BuildRequires: gcc
2016-07-11 20:03:19 +00:00
BuildRequires: docbook-style-xsl
2023-02-07 14:25:15 +00:00
BuildRequires: meson
BuildRequires: pkgconfig(libcap)
BuildRequires: pkgconfig(libselinux)
BuildRequires: /usr/bin/xsltproc
2016-07-11 20:03:19 +00:00
%description
Bubblewrap (/usr/bin/bwrap) is a core execution engine for unprivileged
containers that works as a setuid binary on kernels without
user namespaces.
%prep
%autosetup
2016-07-11 20:03:19 +00:00
%build
%meson -Dman=enabled -Dselinux=enabled
2023-02-07 14:25:15 +00:00
%meson_build
2016-07-11 20:03:19 +00:00
%install
2023-02-07 14:25:15 +00:00
%meson_install
2016-07-11 20:03:19 +00:00
%files
%license COPYING
2023-02-07 14:25:15 +00:00
%doc README.md
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
2016-07-11 20:03:19 +00:00
%{_datadir}/bash-completion/completions/bwrap
2021-08-25 15:16:51 +00:00
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_bwrap
2016-07-11 20:03:19 +00:00
%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
2016-07-11 20:03:19 +00:00
%else
%{_bindir}/bwrap
%endif
2023-02-07 14:25:15 +00:00
%{_mandir}/man1/bwrap.1*
2016-07-11 20:03:19 +00:00
%changelog
2024-05-21 19:35:48 +00:00
%autochangelog