]> git.pld-linux.org Git - packages/trace-cmd.git/blame - trace-cmd.spec
- up to 2.6
[packages/trace-cmd.git] / trace-cmd.spec
CommitLineData
7094f921
AM
1# TODO:
2# - add gui (make gui)
3#
4Summary: trace-cmd - interacts with Ftrace Linux kernel internal tracer
5Name: trace-cmd
17c3f89c 6Version: 2.6
7094f921
AM
7Release: 1
8License: GPLv2 and LGPLv2.1
9Group: Development/Tools
8af117cc 10URL: http://git.kernel.org/?p=linux/kernel/git/rostedt/trace-cmd.git;a=summary
be306070 11# git clone git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git
17c3f89c 12# git archive --prefix=trace-cmd-2.6/ -o trace-cmd-2.6.tar.gz trace-cmd-v2.6
be306070 13Source0: %{name}-%{version}.tar.gz
17c3f89c 14# Source0-md5: de94b70d910902848e3b73da78a3c361
7094f921 15BuildRequires: asciidoc
24996b8e 16BuildRequires: docbook-dtd45-xml
8af117cc 17BuildRequires: docbook-style-xsl
a4b82bec 18BuildRequires: gtk+2-devel
24996b8e 19BuildRequires: pkgconfig
7094f921
AM
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23trace-cmd is a user interface to Ftrace. Instead of needing to use the
24debugfs directly, trace-cmd will handle of setting of options and
25tracers and will record into a data file.
26
a4b82bec
AM
27%package gui
28Summary: Graphical frontend for trace-cmd
29Group: X11/Development/Tools
30Requires: %{name} = %{version}-%{release}
31
32%description gui
33Graphical frontend for trace-cmd.
34
7094f921
AM
35%prep
36%setup -q
37
8af117cc 38sed -i -e 's#MANPAGE_DOCBOOK_XSL =.*#MANPAGE_DOCBOOK_XSL = /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl#g' Documentation/Makefile
f4813d22 39sed -i -e 's#$(prefix)/share/trace-cmd/#$(prefix)/%{_lib}/trace-cmd/#g' Makefile
7094f921
AM
40
41%build
0bbd4ebe 42%{__make} trace_plugin_dir all gui doc \
7094f921 43 CC="%{__cc} %{rpmcppflags} %{rpmcflags} %{rpmldflags}" \
f4813d22 44 V=1 \
be306070
AM
45 prefix=%{_prefix} \
46 libdir=%{_lib}
7094f921
AM
47
48%install
49rm -rf $RPM_BUILD_ROOT
50
0bbd4ebe
AM
51# prevent trace_plugin_dir from being updated
52sed -i -e 's#trace-util.o: trace_plugin_dir##g' Makefile
53sed -i -e 's#= trace_plugin_dir tc_version.h#= tc_version.h#g' Makefile
54
a4b82bec 55%{__make} install install_gui install_doc \
0bbd4ebe 56 V=1 \
be306070
AM
57 prefix=$RPM_BUILD_ROOT%{_prefix} \
58 libdir=%{_lib}
7094f921
AM
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
65%doc README
66%attr(755,root,root) %{_bindir}/trace-cmd
67%dir %{_libdir}/%{name}
68%dir %{_libdir}/%{name}/plugins
69%attr(755,root,root) %{_libdir}/%{name}/plugins/*.so
a4b82bec
AM
70%{_mandir}/man1/trace-cmd*.1*
71%{_mandir}/man5/trace-cmd*.5*
72
73%files gui
74%defattr(644,root,root,755)
75%attr(755,root,root) %{_bindir}/kernelshark
76%attr(755,root,root) %{_bindir}/trace-graph
77%attr(755,root,root) %{_bindir}/trace-view
This page took 0.111771 seconds and 4 git commands to generate.