File latencytop.spec of Package latencytop
#
# spec file for package latencytop (Version 0.4)
#
# Copyright (c) 2008 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/
#
# norootforbuild
Name: latencytop
BuildRequires: glib2-devel ncurses-devel
License: GPL v2 only
Group: System/Monitoring
Summary: Kernel latency measuring tool
Version: 0.4
Release: 2
Source: latencytop-%{version}.tar.bz2
Url: http://www.latencytop.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
LatencyTOP is a Linux* tool for software developers (both kernel and
userspace), aimed at identifying where in the system latency is
happening, and what kind of operation/action is causing the latency to
happen so that the code can be changed to avoid the worst latency
hiccups.
Authors:
--------
Arjan van de Ven <arjan@linux.intel.com>
%prep
%setup -q
%build
export CFLAGS="$RPM_OPT_FLAGS"
make %{?jobs:-j %jobs}
%install
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
install -c -m 0644 *.8 $RPM_BUILD_ROOT%{_mandir}/man8
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc %{_mandir}/man*/*
%{_sbindir}/*
%{_datadir}/latencytop
%changelog
* Tue May 27 2008 tiwai@suse.de
- initial version: 0.4