SHA256
1
0
forked from pool/bubblewrap
bubblewrap/bubblewrap.spec

52 lines
1.3 KiB
RPMSpec
Raw Normal View History

Summary: Core execution tool for unprivileged containers
Name: bubblewrap
Version: 0.1.4
Release: 1%{?dist}
Source0: https://github.com/projectatomic/bubblewrap/archive/v%version.tar.gz
License: LGPL-2.0+
URL: https://github.com/projectatomic/bubblewrap
BuildRequires: gcc
BuildRequires: git
# We always run autogen.sh
BuildRequires: autoconf automake libtool
BuildRequires: libcap-devel
BuildRequires: pkgconfig(libselinux)
BuildRequires: libxslt
BuildRequires: docbook-xsl-stylesheets
%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 -n %{name}-%{version}
sed -i '1d' completions/bash/bwrap
%build
env NOCONFIGURE=1 ./autogen.sh
%configure --disable-silent-rules --with-priv-mode=none
%if 0%{?suse_version} > 1320
%make_build
%else
make %{?_smp_mflags}
%endif
%install
%make_install DESTDIR=%buildroot INSTALL="install -p -c"
find %buildroot -name '*.la' -delete
%files
%license COPYING
%doc README.md
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/bwrap
%if (0%{?rhel} != 0 && 0%{?rhel} <= 7)
%attr(4755,root,root) %{_bindir}/bwrap
%else
%{_bindir}/bwrap
%endif
%{_mandir}/man1/*