File trace-cmd.spec of Package trace-cmd
#
# spec file for package trace-cmd
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: trace-cmd
Url: http://elinux.org/Ftrace
Summary: Configuration tool for Ftrace
License: GPL-2.0 and LGPL-2.1
Group: Development/Tools/Debuggers
Version: 2.0.4
Release: 0
Source0: trace-cmd-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: asciidoc
BuildRequires: docbook-xsl-stylesheets
BuildRequires: gtk2-devel
BuildRequires: libxml2-devel
BuildRequires: swig
%if 0%{?suse_version} > 1200
BuildRequires: xsltproc
%else
BuildRequires: libxslt
%endif
Patch1: makefile-lib64.patch
%description
trace-cmd is a command-line tool for configuring Ftrace.
%prep
%setup -q
%patch1 -p1
%package -n kernelshark
Summary: GUI for trace-cmd
Group: Development/Tools/IDE
%description -n kernelshark
Graphical front-end for trace-cmd.
%build
make %{?_smp_mflags} prefix=%{_prefix} trace-cmd
make %{?_smp_mflags} prefix=%{_prefix} gui
make %{?_smp_mflags} MANPAGE_DOCBOOK_XSL=/usr/share/xml/docbook/stylesheet/nwalsh/current/manpages/docbook.xsl doc
%install
%makeinstall prefix=%{_prefix} install_cmd
%makeinstall prefix=%{_prefix} install_doc
%makeinstall prefix=%{_prefix} install_gui
chmod a-x `find $RPM_BUILD_ROOT/%{_mandir}/ -type f`
chmod a-x `find $RPM_BUILD_ROOT/%{_datadir}/kernelshark -type f`
%files
%defattr(-,root,root)
%{_bindir}/trace-cmd
%{_libdir}/trace-cmd
%{_mandir}/man1/trace-cmd*
%{_mandir}/man5/trace-cmd.dat*
%files -n kernelshark
%defattr(-,root,root)
%{_bindir}/kernelshark
%{_bindir}/trace-graph
%{_bindir}/trace-view
%{_datadir}/kernelshark
%changelog