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 http://bugs.opensuse.org/
#

# 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

%description
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.



Authors:
--------
    Balbir Singh, IBM Corp.
    Shailabh Nagar, IBM Corp.

%prep
%setup -q
%patch0 -p1

%build
make CCOPT="$RPM_OPT_FLAGS"

%install
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

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(444,root,root,755)
%doc README COPYING
%attr(555,root,root) %{_bindir}/getdelays
%attr(444,root,root) %{_mandir}/man?/*

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