6 Group: Applications/System
7 Source0: https://github.com/draios/sysdig/archive/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: 5fe96a3a0fd98b2157a40cb29af41afc
9 URL: http://www.sysdig.org/
10 BuildRequires: cmake >= 2.8.2
11 BuildRequires: gcc >= 6:4.4
12 BuildRequires: jsoncpp-devel
13 BuildRequires: luajit-devel
14 BuildRequires: ncurses-devel
15 BuildRequires: zlib-devel
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Sysdig instruments your physical and virtual machines at the OS level
20 by installing into the Linux kernel and capturing system calls and
21 other OS events. Then, using sysdig's command line interface, you can
22 filter and decode these events in order to extract useful information.
23 Sysdig can be used to inspect systems live in real-time, or to
24 generate trace files that can be analyzed at a later stage.
34 -DUSE_BUNDLED_JSONCPP=OFF \
35 -DUSE_BUNDLED_LUAJIT=OFF \
36 -DUSE_BUNDLED_NCURSES=OFF \
37 -DUSE_BUNDLED_ZLIB=OFF \
42 rm -rf $RPM_BUILD_ROOT
43 %{__make} -C build install \
44 DESTDIR=$RPM_BUILD_ROOT
46 mv $RPM_BUILD_ROOT%{_prefix}/src/sysdig* $RPM_BUILD_ROOT%{_prefix}/src/sysdig-%{version}
47 install -d $RPM_BUILD_ROOT%{_sysconfdir}
48 mv $RPM_BUILD_ROOT%{_prefix}/etc/bash_completion.d $RPM_BUILD_ROOT%{_sysconfdir}
49 rm -rf $RPM_BUILD_ROOT%{_datadir}/zsh
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %attr(755,root,root) %{_bindir}/csysdig
57 %attr(755,root,root) %{_bindir}/sysdig
58 %attr(755,root,root) %{_bindir}/sysdig-probe-loader
59 %{_mandir}/man8/csysdig.8*
60 %{_mandir}/man8/sysdig.8*
62 %{_prefix}/src/sysdig-%{version}
63 /etc/bash_completion.d/sysdig