File delayacct-utils.spec of Package delayacct-utils

# spec file for package delayacct-utils (Version 0.3)
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via

# norootforbuild

Name:           delayacct-utils
BuildRequires:  libnl libnl-devel
Summary:        Delay Accounting Utilities
Version:        0.3
Release:        1
Group:          System/Monitoring
License:        GPL v2 only
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Autoreqprov:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        delayacct-utils-%{version}.tar.bz2
Patch0:		getdelays-compat.diff

Delay accounting allows the administrator to track the time an
application spends waiting on disk I/O, swap I/O and CPU scheduling.
This can help pin-point resource shortages in a system configuration.

    Balbir Singh, IBM Corp.
    Shailabh Nagar, IBM Corp.

%setup -q
%patch0 -p1


mkdir -p $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_mandir/man1
install -m 555 getdelays $RPM_BUILD_ROOT%_bindir
install -m 444 getdelays.1 $RPM_BUILD_ROOT%_mandir/man1


%attr(555,root,root) %{_bindir}/getdelays
%attr(444,root,root) %{_mandir}/man?/*

* Wed Aug 22 2007 -
- updated to kernel level 2.6.22 (as in openSUSE 10.3).
* Wed Jul 11 2007 -
- adjusted getdelays.c to be GPL v2 only, like the
  linux kernel.
* Mon Jan 08 2007 -
- Update getdelays for changed kernel interface
  (#229115, FATE301689, LTC30061)
* Wed May 17 2006 -
- Don't strip binaries.
* Tue Apr 11 2006 -
- Initial packaging