File delayacct-utils.spec of Package delayacct-utils

#
# spec file for package delayacct-utils (Version MACRO)
#
# 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           delayacct-utils
BuildRequires:  kernel-source libnl libnl-devel
Summary:        Delay Accounting Utilities
%define version %(rpm -q --qf '%{VERSION}' kernel-source)
Version:        %version
Release:        3
Group:          System/Monitoring
License:        GPL v2 only
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        delayacct-utils.tar.bz2

%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 -n %name
mkdir -p linux
cp /usr/src/linux/include/linux/taskstats.h linux/taskstats.h
cp /usr/src/linux/Documentation/accounting/getdelays.c .

%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
* Thu Feb 19 2009 dmueller@suse.de
- drop unnecessary patch, it is now upstream (in the kernel tree)
* Tue Nov 25 2008 meissner@suse.de
- make it not hang if no option is specified bnc#448382
* Thu Jun 05 2008 dmueller@suse.de
- update to kernel 2.6.24.4 (as in openSUSE 11.0) and make
  it generic to always compile against the current kernel sources
* 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
openSUSE Build Service is sponsored by