File iotop.spec of Package iotop
#
# spec file for package iotop-c
#
# Copyright (c) 2025 SUSE LLC
#
# 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.
Name: iotop
Version: 0
Release: 0
Summary: Simple top-like I/O monitor (implemented in C)
License: GPL-2.0-or-later
URL: https://github.com/Tomas-M/iotop/
Source0: https://github.com/Tomas-M/iotop/releases/download/v%{version}/iotop-%{version}.tar.xz
Source1: https://github.com/Tomas-M/iotop/releases/download/v%{version}/iotop-%{version}.tar.xz.asc
Source2: https://raw.githubusercontent.com/Tomas-M/iotop/v%{version}/debian/upstream/signing-key.asc
# This replaces python-based iotop
Obsoletes: iotop < 0.7
BuildRequires: gcc
BuildRequires: gnupg
BuildRequires: make
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(ncursesw)
%description
iotop-c does for I/O usage what top(1) does for CPU usage. It monitors
I/O usage information from the Linux kernel and displays a table of the
current I/O usage by processes or threads.
It is a performance-optimized reimplementation in C, intended for systems
under heavy I/O load.
%prep
#%%gpgverify -k %%{SOURCE2} -s %%{SOURCE1} -d %%{SOURCE0}
%autosetup -n iotop-%{version}
%build
%set_build_flags
NO_FLTO=1 %make_build
%install
V=1 STRIP=: BINDIR=%{buildroot}%{_bindir} %make_install
%check
# Simple smoke test to check if the binary executes and reports version
%{buildroot}%{_bindir}/iotop --version
%files
%license COPYING
%license LICENSE
%doc README.md
%{_bindir}/iotop
%{_mandir}/man8/iotop.8%{?ext_man}
%changelog
* Tue Nov 25 2025 itachi_re <xanbenson99@gmail.com>
- Initial package build