Name: latencytop Version: 0.5 Release: 9%{?dist} Summary: System latency monitor (with GUI) Group: Applications/System License: GPLv2 URL: http://www.latencytop.org/ Source0: http://www.latencytop.org/download/%{name}-%{version}.tar.gz Patch0: latencytop-Makefile-fixes.patch Patch1: latencytop-Makefile-default-to-no-gtk.patch Patch2: latencytop-remove-the-fsync-view.patch Patch3: latencytop-better-error-message.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ncurses-devel glib2-devel gtk2-devel pkgconfig Requires: %{name}-common = %{version}-%{release} %description LatencyTOP is a 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. This package contains a build of LatencyTOP with GUI interface. For a build without GUI install %{name}-tui instead. %package tui Group: Applications/System Summary: System latency monitor (text interface only) Requires: %{name}-common = %{version}-%{release} %description tui LatencyTOP is a 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. This package contains a build of LatencyTOP without GUI support (and with few dependencies). %package common Group: Applications/System Summary: System latency monitor (shared files for both GUI and TUI builds) %description common LatencyTOP is a 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. This package contains files needed by both the GUI and TUI builds of LatencyTOP. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p2 %patch3 -p2 %build export CFLAGS="${CFLAGS:-%{optflags}}" # make two builds, first without GUI, then with make %{?_smp_mflags} mv latencytop latencytop-tui make clean make %{?_smp_mflags} HAS_GTK_GUI=1 %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} install -m 0755 latencytop-tui %{buildroot}%{_sbindir}/ ln -s latencytop.8 %{buildroot}%{_mandir}/man8/latencytop-tui.8 %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_sbindir}/latencytop %files tui %{_sbindir}/latencytop-tui %files common %defattr(-,root,root,-) %{_datadir}/%{name} %{_mandir}/man8/* %changelog * Tue Feb 21 2012 Michal Schmidt - 0.5-9 - Make the manpage accessible under the latencytop-tui name as well. * Sun Feb 19 2012 Michal Schmidt - 0.5-8 - Print the error message only after cleaning up curses. * Thu Feb 16 2012 Michal Schmidt - 0.5-7 - Remove the broken fsync view, stop using the obsolete 'tracing_enabled'. - Better error message when run as non-root. * Thu Jan 26 2012 Michal Schmidt - 0.5-6 - Build both with and without GUI to allow the use on systems where Gtk dependency is undesirable. The latencytop package is still the full-blown build. latencytop-tui is the miminal build. latencytop-common has the shared files. * Mon Feb 07 2011 Fedora Release Engineering - 0.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Feb 16 2010 Michal Schmidt 0.5-3 - BuildRequire pkgconfig because the Makefile uses pkg-config. * Fri Jul 24 2009 Fedora Release Engineering - 0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu May 14 2009 Michal Schmidt 0.5-1 - Upstream release 0.5, adds GTK based GUI. * Wed Feb 25 2009 Fedora Release Engineering - 0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Oct 07 2008 Michal Schmidt - 0.4-2 - Add an upstream patch to update the translation table. * Thu Apr 24 2008 Michal Schmidt - 0.4-1 - Upstream release 0.4. * Wed Feb 20 2008 Michal Schmidt - 0.3-5 - Own the data directory. * Tue Feb 5 2008 Michal Schmidt - 0.3-4 - Package the translation table too and modify latencytop.c to look for it in the correct directory. * Mon Feb 4 2008 Michal Schmidt - 0.3-3 - Dropped the whitespace-changing hunk from latencytop-standard-cflags.patch. * Fri Feb 1 2008 Michal Schmidt - 0.3-2 - From review comments - removed whitespace in latencytop-standard-cflags.patch * Thu Jan 31 2008 Michal Schmidt - 0.3-1 - Initial package for Fedora.