File iotop-c.spec of Package iotop-c

Name:			iotop-c
Version:		1.15
Release:		0
Summary:		Simple top-like I/O monitor (implemented in C)
Group:			System/Console

License:		GPL-2.0-or-later
URL:			https://github.com/Tomas-M/iotop/

Source:			%{name}-%{version}.tar.xz	

BuildRequires:  gcc
BuildRequires:  ncurses-devel
BuildRequires:  make
BuildRequires:  pkgconfig(ncursesw)
BuildRequires:  autoconf >= 2.61
BuildRequires:  automake
BuildRequires:  binutils
BuildRequires:  coreutils

%description
iotop-c does for I/O usage what top(1) does for CPU usage. It watches I/O
usage information output by the Linux kernel and displays a table of
current I/O usage by processes on the system. It is handy for answering
the question "Why is the disk churning so much?".

iotop-c requires a Linux kernel built with the CONFIG_TASKSTATS,
CONFIG_TASK_DELAY_ACCT, CONFIG_TASK_IO_ACCOUNTING and
CONFIG_VM_EVENT_COUNTERS config options on.

iotop-c is an alternative re-implementation of iotop in C, optimized for
performance. Normally a monitoring tool intended to be used on a system
under heavy stress should use the least additional resources as
possible.

%global _hardened_build 1

%prep
%setup -q

%build
make all %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install

%files
%doc README.md
%license LICENSE
%{_sbindir}/*
%{_mandir}/man8/*

%changelog

openSUSE Build Service is sponsored by