SHA256
1
0
forked from pool/bubblewrap
bubblewrap/bubblewrap.spec
Miquel Sabate Sola 44070bf510 Accepting request 446662 from home:sebix:branches:home:dmulder
specfile from project itself, with some minor modifications, and from home:dmulder
needed for e.g. sandboxed-tor-browser

OBS-URL: https://build.opensuse.org/request/show/446662
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/bubblewrap?expand=0&rev=1
2017-01-26 09:25:10 +00:00

52 lines
1.3 KiB
RPMSpec

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/*