2007-01-15 23:08:55 +00:00
|
|
|
#
|
2011-09-19 19:08:18 +00:00
|
|
|
# spec file for package delayacct-utils
|
2007-01-15 23:08:55 +00:00
|
|
|
#
|
2022-04-10 12:39:25 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2007-01-15 23:08:55 +00:00
|
|
|
#
|
2008-11-28 13:53:38 +00:00
|
|
|
# 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.
|
|
|
|
|
|
2022-04-10 12:39:25 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:08:55 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2022-04-10 12:39:25 +00:00
|
|
|
%define version %(rpm -q --qf '%%{VERSION}' kernel-source)
|
2007-01-15 23:08:55 +00:00
|
|
|
Name: delayacct-utils
|
2022-04-10 12:39:25 +00:00
|
|
|
Version: %{version}
|
|
|
|
|
Release: 0
|
2007-01-15 23:08:55 +00:00
|
|
|
Summary: Delay Accounting Utilities
|
2022-04-10 12:39:25 +00:00
|
|
|
License: GPL-2.0-only
|
2013-01-25 05:40:01 +00:00
|
|
|
Group: System/Monitoring
|
2022-04-10 12:39:25 +00:00
|
|
|
URL: https://www.kernel.org/
|
2008-06-05 16:06:52 +00:00
|
|
|
Source0: delayacct-utils.tar.bz2
|
2014-06-19 15:44:08 +00:00
|
|
|
Patch0: delayacct-utils-nl.patch
|
2022-04-10 12:39:25 +00:00
|
|
|
BuildRequires: kernel-devel
|
|
|
|
|
BuildRequires: kernel-source
|
2007-01-15 23:08:55 +00:00
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
2022-04-10 12:39:25 +00:00
|
|
|
%package rebuild
|
|
|
|
|
Summary: Empty package to ensure rebuilding delayacct-utils in OBS
|
|
|
|
|
Group: System/Monitoring
|
|
|
|
|
%requires_eq kernel-source
|
|
|
|
|
|
|
|
|
|
%description rebuild
|
|
|
|
|
This is empty package that ensures delayacct-utils is rebuilt every time
|
|
|
|
|
kernel-default is rebuilt in OBS.
|
|
|
|
|
|
|
|
|
|
There is no reason to install this package.
|
|
|
|
|
|
2007-01-15 23:08:55 +00:00
|
|
|
%prep
|
2024-02-26 08:38:40 +00:00
|
|
|
%autosetup -p1 -n %{name}
|
|
|
|
|
|
2008-06-05 16:06:52 +00:00
|
|
|
mkdir -p linux
|
2013-01-25 05:40:01 +00:00
|
|
|
%if 0%{?suse_version} <= 1220
|
2022-04-10 12:39:25 +00:00
|
|
|
cp %{_prefix}/src/linux/include/linux/taskstats.h linux/taskstats.h
|
2013-01-25 05:40:01 +00:00
|
|
|
%else
|
2022-04-10 12:39:25 +00:00
|
|
|
cp %{_prefix}/src/linux/include/uapi/linux/taskstats.h linux/taskstats.h
|
2013-01-25 05:40:01 +00:00
|
|
|
%endif
|
2022-04-10 12:39:25 +00:00
|
|
|
if [ -f %{_prefix}/src/linux/Documentation/accounting/getdelays.c ]; then
|
|
|
|
|
cp %{_prefix}/src/linux/Documentation/accounting/getdelays.c .
|
2017-01-10 11:51:04 +00:00
|
|
|
fi
|
2022-04-10 12:39:25 +00:00
|
|
|
if [ -f %{_prefix}/src/linux/tools/accounting/getdelays.c ]; then
|
|
|
|
|
cp %{_prefix}/src/linux/tools/accounting/getdelays.c .
|
2017-01-10 11:51:04 +00:00
|
|
|
fi
|
2008-11-28 13:53:38 +00:00
|
|
|
|
|
|
|
|
%build
|
2022-04-10 12:39:25 +00:00
|
|
|
%make_build CCOPT="%{optflags}"
|
2007-01-15 23:08:55 +00:00
|
|
|
|
|
|
|
|
%install
|
2022-04-10 12:39:25 +00:00
|
|
|
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
|
|
|
|
|
install -m 555 getdelays %{buildroot}%{_bindir}
|
|
|
|
|
install -m 444 getdelays.1 %{buildroot}%{_mandir}/man1
|
2007-01-15 23:08:55 +00:00
|
|
|
|
|
|
|
|
%files
|
2022-04-10 12:39:25 +00:00
|
|
|
%license COPYING
|
|
|
|
|
%doc README
|
2007-01-15 23:08:55 +00:00
|
|
|
%attr(555,root,root) %{_bindir}/getdelays
|
|
|
|
|
%attr(444,root,root) %{_mandir}/man?/*
|
|
|
|
|
|
2022-04-10 12:39:25 +00:00
|
|
|
%files rebuild
|
|
|
|
|
%license COPYING
|
|
|
|
|
|
2007-07-13 16:26:04 +00:00
|
|
|
%changelog
|