]>
Commit | Line | Data |
---|---|---|
74fbb710 ER |
1 | Summary: sysdig |
2 | Name: sysdig | |
3 | Version: 0.1.101 | |
4 | Release: 0.1 | |
5 | License: GPL v2 | |
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 | |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %description | |
14 | Sysdig instruments your physical and virtual machines at the OS level | |
15 | by installing into the Linux kernel and capturing system calls and | |
16 | other OS events. Then, using sysdig's command line interface, you can | |
17 | filter and decode these events in order to extract useful information. | |
18 | Sysdig can be used to inspect systems live in real-time, or to | |
19 | generate trace files that can be analyzed at a later stage. | |
20 | ||
21 | %prep | |
22 | %setup -q | |
23 | ||
24 | %build | |
25 | mkdir build | |
26 | cd build | |
27 | %cmake \ | |
28 | -DBUILD_DRIVER=OFF \ | |
29 | .. | |
30 | %{__make} | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | %{__make} -C build install \ | |
35 | DESTDIR=$RPM_BUILD_ROOT | |
36 | ||
37 | mv $RPM_BUILD_ROOT%{_prefix}/src/sysdig* $RPM_BUILD_ROOT%{_prefix}/src/sysdig-%{version} | |
38 | install -d $RPM_BUILD_ROOT%{_sysconfdir} | |
39 | mv $RPM_BUILD_ROOT%{_prefix}/etc/bash_completion.d $RPM_BUILD_ROOT%{_sysconfdir} | |
40 | rm -rf $RPM_BUILD_ROOT%{_datadir}/zsh | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %attr(755,root,root) %{_bindir}/csysdig | |
48 | %attr(755,root,root) %{_bindir}/sysdig | |
49 | %attr(755,root,root) %{_bindir}/sysdig-probe-loader | |
50 | %{_mandir}/man8/csysdig.8* | |
51 | %{_mandir}/man8/sysdig.8* | |
52 | %{_datadir}/%{name} | |
53 | %{_prefix}/src/sysdig-%{version} | |
54 | /etc/bash_completion.d/sysdig |