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