fix leap build OBS-URL: https://build.opensuse.org/request/show/1172144 OBS-URL: https://build.opensuse.org/package/show/security/nsjail?expand=0&rev=27
83 lines
2.7 KiB
RPMSpec
83 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package nsjail
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: nsjail
|
|
Version: 3.4+git14.b740dcf
|
|
Release: 0
|
|
Summary: A light-weight process isolation tool
|
|
License: Apache-2.0
|
|
Group: System/GUI/Other
|
|
URL: https://nsjail.com
|
|
Source0: nsjail-%{version}.tar.xz
|
|
BuildRequires: autoconf
|
|
BuildRequires: bison
|
|
BuildRequires: flex
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: git-core
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libnl3-devel
|
|
BuildRequires: make
|
|
BuildRequires: pkgconfig
|
|
# Protobuf 25 has added to SLE15 in SP4 Update
|
|
%if 0%{?suse_version} > 1500 || (0%{?suse_version} == 1500 && 0%{?sle_version} > 150300)
|
|
BuildRequires: protobuf21-devel
|
|
%else
|
|
BuildRequires: protobuf-devel
|
|
%endif
|
|
ExclusiveArch: x86_64
|
|
|
|
%description
|
|
A light-weight process isolation tool, making use of Linux namespaces and
|
|
seccomp-bpf syscall filters (with help of the kafel bpf language)
|
|
|
|
%prep
|
|
%setup -qa0
|
|
|
|
%build
|
|
%define _lto_cflags %{nil}
|
|
export CFLAGS="%{optflags}"
|
|
export CXXFLAGS="$CFLAGS"
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/%{_bindir}/
|
|
cp nsjail %{buildroot}/%{_bindir}/
|
|
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}
|
|
install -m 644 configs/*.cfg %{buildroot}/%{_sysconfdir}/%{name}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%{_bindir}/nsjail
|
|
%{_sysconfdir}/%{name}
|
|
%config %{_sysconfdir}/%{name}/xchat-with-net.cfg
|
|
%config %{_sysconfdir}/%{name}/znc-with-net.cfg
|
|
%config %{_sysconfdir}/%{name}/apache.cfg
|
|
%config %{_sysconfdir}/%{name}/bash-with-fake-geteuid.cfg
|
|
%config %{_sysconfdir}/%{name}/demo-dont-use-chrome-with-net.cfg
|
|
%config %{_sysconfdir}/%{name}/firefox-with-cloned-net.cfg
|
|
%config %{_sysconfdir}/%{name}/firefox-with-net.cfg
|
|
%config %{_sysconfdir}/%{name}/firefox-with-net-wayland.cfg
|
|
%config %{_sysconfdir}/%{name}/home-documents-with-xorg-no-net.cfg
|
|
%config %{_sysconfdir}/%{name}/imagemagick-convert.cfg
|
|
%config %{_sysconfdir}/%{name}/static-busybox-with-execveat.cfg
|
|
%config %{_sysconfdir}/%{name}/tomcat8.cfg
|
|
%config %{_sysconfdir}/%{name}/telegram.cfg
|
|
%config %{_sysconfdir}/%{name}/hexchat-with-net.cfg
|
|
|
|
%changelog
|