4 Summary: trace-cmd - interacts with Ftrace Linux kernel internal tracer
8 License: GPLv2 and LGPLv2.1
9 Group: Development/Tools
10 URL: http://git.kernel.org/?p=linux/kernel/git/rostedt/trace-cmd.git;a=summary
11 # git clone git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git
12 # git archive --prefix=trace-cmd-2.4/ -o trace-cmd-2.4.tar.gz trace-cmd-v2.4
13 Source0: %{name}-%{version}.tar.gz
14 # Source0-md5: 49af232eddd763cc799c346da6902f9c
15 Patch0: %{name}-build.patch
16 BuildRequires: asciidoc
17 BuildRequires: docbook-dtd45-xml
18 BuildRequires: docbook-style-xsl
19 BuildRequires: gtk+2-devel
20 BuildRequires: pkgconfig
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 trace-cmd is a user interface to Ftrace. Instead of needing to use the
25 debugfs directly, trace-cmd will handle of setting of options and
26 tracers and will record into a data file.
29 Summary: Graphical frontend for trace-cmd
30 Group: X11/Development/Tools
31 Requires: %{name} = %{version}-%{release}
34 Graphical frontend for trace-cmd.
40 sed -i -e 's#MANPAGE_DOCBOOK_XSL =.*#MANPAGE_DOCBOOK_XSL = /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl#g' Documentation/Makefile
41 sed -i -e 's#$(prefix)/share/trace-cmd/#$(prefix)/%{_lib}/trace-cmd/#g' Makefile
44 %{__make} trace_plugin_dir all gui doc \
45 CC="%{__cc} %{rpmcppflags} %{rpmcflags} %{rpmldflags}" \
51 rm -rf $RPM_BUILD_ROOT
53 # prevent trace_plugin_dir from being updated
54 sed -i -e 's#trace-util.o: trace_plugin_dir##g' Makefile
55 sed -i -e 's#= trace_plugin_dir tc_version.h#= tc_version.h#g' Makefile
57 %{__make} install install_gui install_doc \
59 prefix=$RPM_BUILD_ROOT%{_prefix} \
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
68 %attr(755,root,root) %{_bindir}/trace-cmd
69 %dir %{_libdir}/%{name}
70 %dir %{_libdir}/%{name}/plugins
71 %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so
72 %{_mandir}/man1/trace-cmd*.1*
73 %{_mandir}/man5/trace-cmd*.5*
76 %defattr(644,root,root,755)
77 %attr(755,root,root) %{_bindir}/kernelshark
78 %attr(755,root,root) %{_bindir}/trace-graph
79 %attr(755,root,root) %{_bindir}/trace-view