File schedtop.spec of Package schedtop

# spec file for package schedtop (Version 1.1)
# Copyright (c) 2009 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

%define rpmrel 1
%if 0%{?suse_version} > 1100
%define boostdeps boost-devel
%if 0%{?suse_version} == 1110
%define boostdeps boost-devel libboost_regex1_36 libboost_program_options1_36 libboost_filesystem1_36
%define boostdeps boost
BuildRequires:  %{boostdeps} gcc-c++ ncurses-devel
Summary:        Displays Scheduler Statistics

Name:           schedtop
Version:        1.1
Release:        3
License:        GPL
Requires:       ncurses
Group:          System/Monitoring
Source:         %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This utility will process statistics from /proc/schedstat such that the
busiest stats will bubble up to the top.  It can alternately be sorted by
the largest stat, or by name.  Stats can be included or excluded based on
reg-ex pattern matching.

  Gregory Haskins <>



# Install documentation  
%{__mkdir_p} %{buildroot}/%{_defaultdocdir}/schedtop  
%{__mkdir_p} %{buildroot}/%{_mandir}/man1  
%{__gzip} *.1  
%{__cp} *.1.gz %{buildroot}/%{_mandir}/man1  

make clean