File trace-cmd.spec of Package trace-cmd

# spec file for package trace-cmd
# Copyright (c) 2017 SUSE LINUX 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

Name:           trace-cmd
Summary:        Configuration tool for Ftrace
License:        GPL-2.0 and LGPL-2.1
Group:          Development/Tools/Debuggers
Version:        2.6.1
Release:        0
Source0:        trace-cmd-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  asciidoc
BuildRequires:  audit-devel
BuildRequires:  docbook-xsl-stylesheets
BuildRequires:  gtk2-devel
BuildRequires:  libxml2-devel
BuildRequires:  swig
%if 0%{?suse_version} > 1200
BuildRequires:  xsltproc
BuildRequires:  libxslt
Patch1:         makefile-lib64.patch
Patch2:         revert-trace-cmd-if-event-fork-exists-use-it-instead-of-ptrace.patch

trace-cmd is a command-line tool for configuring Ftrace.

%setup -q
%patch1 -p1
%patch2 -p1

%package -n kernelshark
Summary:        GUI for trace-cmd
Group:          Development/Tools/IDE

%description -n kernelshark
Graphical front-end for trace-cmd.

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

%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 -n kernelshark

openSUSE Build Service is sponsored by