]> git.pld-linux.org Git - packages/sysdig.git/blame - sysdig.spec
define DIR_ETC for build
[packages/sysdig.git] / sysdig.spec
CommitLineData
74fbb710
ER
1Summary: sysdig
2Name: sysdig
3Version: 0.1.101
4Release: 0.1
5License: GPL v2
6Group: Applications/System
7Source0: https://github.com/draios/sysdig/archive/%{version}/%{name}-%{version}.tar.gz
8# Source0-md5: 5fe96a3a0fd98b2157a40cb29af41afc
9URL: http://www.sysdig.org/
c91ce2ea 10BuildRequires: cmake >= 2.8.2
c91ce2ea 11BuildRequires: jsoncpp-devel
8dde2f70
ER
12BuildRequires: libstdc++-devel >= 6:4.4
13BuildRequires: luajit-devel >= 2.0.3
14BuildRequires: ncurses-devel >= 5.9
15BuildRequires: zlib-devel >= 1.2.8
74fbb710
ER
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19Sysdig instruments your physical and virtual machines at the OS level
20by installing into the Linux kernel and capturing system calls and
21other OS events. Then, using sysdig's command line interface, you can
22filter and decode these events in order to extract useful information.
23Sysdig can be used to inspect systems live in real-time, or to
24generate trace files that can be analyzed at a later stage.
25
26%prep
27%setup -q
28
29%build
c91ce2ea 30install -d build
74fbb710
ER
31cd build
32%cmake \
4d80860c 33 -DDIR_ETC=%{_sysconfdir} \
74fbb710 34 -DBUILD_DRIVER=OFF \
c91ce2ea
ER
35 -DUSE_BUNDLED_JSONCPP=OFF \
36 -DUSE_BUNDLED_LUAJIT=OFF \
37 -DUSE_BUNDLED_NCURSES=OFF \
38 -DUSE_BUNDLED_ZLIB=OFF \
74fbb710
ER
39 ..
40%{__make}
41
42%install
43rm -rf $RPM_BUILD_ROOT
44%{__make} -C build install \
45 DESTDIR=$RPM_BUILD_ROOT
46
4d80860c
ER
47# rename "sysdig-0.1.1-dev" to "sysdig-%{version}"
48mv $RPM_BUILD_ROOT%{_usrsrc}/{%{name}*,%{name}-%{version}}
74fbb710
ER
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%files
54%defattr(644,root,root,755)
55%attr(755,root,root) %{_bindir}/csysdig
56%attr(755,root,root) %{_bindir}/sysdig
57%attr(755,root,root) %{_bindir}/sysdig-probe-loader
58%{_mandir}/man8/csysdig.8*
59%{_mandir}/man8/sysdig.8*
60%{_datadir}/%{name}
61%{_prefix}/src/sysdig-%{version}
62/etc/bash_completion.d/sysdig
4d80860c
ER
63%{_datadir}/zsh/site-functions/_sysdig
64%{_datadir}/zsh/vendor-completions/_sysdig
This page took 0.073987 seconds and 4 git commands to generate.