File sysdig.spec of Package sysdig

# spec file for package sysdig
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

Name:           sysdig
Version:        0.24.2
Release:        0
Summary:        System-level exploration
License:        Apache-2.0
Group:          System/Monitoring
BuildRequires:  %{kernel_module_package_buildreqs}
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  libb64-devel
BuildRequires:  libjq-devel
BuildRequires:  pkgconfig
BuildRequires:  tbb-devel
BuildRequires:  pkgconfig(jsoncpp)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libelf)
BuildRequires:  pkgconfig(lua5.1)
BuildRequires:  pkgconfig(ncurses)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(zlib)
ExcludeArch:    %{arm} aarch64

Sysdig is open source, system-level exploration: capture system state and
activity from a running Linux instance, then save, filter and analyze.
Think of it as strace + tcpdump + lsof + awesome sauce. With a little Lua
cherry on top.

%setup -q

export SYSDIG_CHISEL_DIR=%{_datadir}%{name}/chisels
%cmake \
  -DDIR_ETC=%{_sysconfdir} \

export INSTALL_MOD_PATH=%{buildroot}
cd build
for flavor in %{flavors_to_build} ; do
	make KERNELDIR="%{_prefix}/src/linux-obj/%{_target_cpu}/$flavor" \
		clean install_driver DESTDIR=%{buildroot}
	make KERNELDIR="%{_prefix}/src/linux-obj/%{_target_cpu}/$flavor" \
		-C ../driver clean
rm -rf %{buildroot}%{_prefix}/src/*
%fdupes -s %{buildroot}/%{_datadir}

%license COPYING
%config %{_sysconfdir}/bash_completion.d/sysdig
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%dir %{_datadir}/zsh/vendor-completions

openSUSE Build Service is sponsored by