From 7b91e68cdca6791a59a73a23a3a5283e79ce48b2035fe0192cc8aacb345bf2d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 12 Feb 2025 13:38:17 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main iotop revision 07b0f32f3737c1409870794d091f5529 --- .gitattributes | 23 +++++ iotop-4b2e1aa.tar.gz | 3 + iotop.changes | 205 +++++++++++++++++++++++++++++++++++++++++++ iotop.spec | 62 +++++++++++++ 4 files changed, 293 insertions(+) create mode 100644 .gitattributes create mode 100644 iotop-4b2e1aa.tar.gz create mode 100644 iotop.changes create mode 100644 iotop.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/iotop-4b2e1aa.tar.gz b/iotop-4b2e1aa.tar.gz new file mode 100644 index 0000000..e526658 --- /dev/null +++ b/iotop-4b2e1aa.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dff277520eeb4e698472b1e9c805b0d560bbfa43177fdca564abac595c10ee32 +size 28763 diff --git a/iotop.changes b/iotop.changes new file mode 100644 index 0000000..bcb7a85 --- /dev/null +++ b/iotop.changes @@ -0,0 +1,205 @@ +------------------------------------------------------------------- +Thu Jul 11 13:37:39 UTC 2024 - Manfred Schwarb + +- Use git hash for download URL, not branch name. + +------------------------------------------------------------------- +Fri Sep 8 14:05:49 UTC 2023 - Manfred Schwarb + +- Update to head checkout 4b2e1aa: + * data.py get_cmdline: use errors=replace for unicode errors + +------------------------------------------------------------------- +Sat Jul 9 22:47:02 UTC 2022 - Manfred Schwarb + +- Update to head checkout a14256a: + * solves several UTF-8 issues + * switches to python3 + * deal with kernel.task_delayacct (CONFIG_TASK_DELAY_ACCT) +- remove obsolete patches: + * iotop-0.6-ignore-invalid-lines-in-proc-status.patch + * iotop-0.6-python3-header.patch + * iotop-0.6-python3_build.patch + * iotop-0.60-fix-proc-status-split.patch +- remove patch iotop-0.6-noendcurses.patch, is now handled + by issuing sys.exit(1). +- remove "BuildArch: noarch" as package is architecture dependent + +------------------------------------------------------------------- +Tue May 29 15:33:22 UTC 2018 - ldevulder@suse.com + +- Add iotop-0.60-fix-proc-status-split.patch: Upstream commit to + fix crash when /proc/*/status doesn't have tab character (this + can be the case with vserver kernels) +- Add iotop-0.6-ignore-invalid-lines-in-proc-status.patch: Upstream + commit to fix crash when /proc/*/status has invalid lines + +------------------------------------------------------------------- +Wed Feb 21 11:15:11 UTC 2018 - mvetter@suse.com + +- bsc#1081915: Port to python3: + * Add iotop-0.6-python3_build.patch: Upstream commit to fix + python build by replacing itervalues() with values(). ID is + 99c8d7cedce81f17b851954d94bfa73787300599 + * Add iotop-0.6-python3-header.patch: Replace header to use + python3 +- Add iotop-0.6-noendcurses.patch: to prevent problems when closing + terminal while running iotop (rh#1035503) +- Run spec-cleaner: + * Remove py_requires + * Use man macro +- Drop condition around noarch + +------------------------------------------------------------------- +Mon Mar 16 20:44:16 UTC 2015 - mpluskal@suse.com + +- Cleanup spec file with spec-cleaner +- Remove no longer needed iotop-rpmlintrc +- Build cleanup +- Add gpg signature +- Use fdupes to remove duplicates + +------------------------------------------------------------------- +Thu Jun 27 12:26:01 CEST 2013 - pth@suse.de + +- Update to 0.6: + * Clean up the terminal on exit + * Stop busy looping on exit in certain conditions + * Restored UTF-8 support with python2 + * Releases are now gpg signed with key "4096R/4D23A27E 2013-05-26" + +------------------------------------------------------------------- +Sun Mar 3 07:44:09 UTC 2013 - zaitor@opensuse.org + +- Update to version 0.5: + + Adapt the display to the maximum pid width. + + Include both total and actual disk bandwidth in the summary. + + Conversion to Python 3. + + Installation to sbin instead of bin. + +------------------------------------------------------------------- +Mon Oct 31 10:10:47 UTC 2011 - pascal.bleser@opensuse.org + +- update to 0.4.4: + * cosmetic fixes, including a better error message when missing root + credentials + +------------------------------------------------------------------- +Wed Mar 30 07:42:46 UTC 2011 - saschpe@suse.de + +- Remove authors from %%description +- Change "python ./setup.py" calls to "python setup.py" + +------------------------------------------------------------------- +Mon Mar 28 23:04:21 UTC 2011 - pascal.bleser@opensuse.org + +- update to 0.4.3: + * the netlink message parsing code was fixed to accept alignment padding + * UTF-8 output is now forced even if the locale is misconfigured + * the semantic of the 'a' key was changed to show stats since iotop was + started + +- changes from 0.4.2: + * workaround for an ncurses bug where UTF-8 strings are misprinted + * ioprio support for the armel and hppa architectures was added + * a possible incompatibility with Linux 2.6.37 on 64-bit systems was fixed + * iotop does not crash anymore when the locale is incorrectly configured + +------------------------------------------------------------------- +Tue Sep 7 12:18:40 CEST 2010 - pth@suse.de + +- Rename alignment patch. + +------------------------------------------------------------------- +Mon Sep 6 11:56:52 CEST 2010 - pth@suse.de + +- Apply patch from author to adapt iotop to different alignments + on 64 Bit systems (bnc#617281). + +------------------------------------------------------------------- +Thu Sep 2 17:31:20 CEST 2010 - pth@suse.de + +- Add py_requires +- Update to 0.4.1. Changes since 0.2.1: + o Portability fix + o Better reporting of missing requirements + + 0.4 + ~~~ + o Compatibility with python2.4 using the ctypes module + o Stopped using setuptools in favor of straight distutils + + 0.3.2 + ~~~~~ + o Split long command lines in the middle instead of cutting them at the end + o Added a heuristic to detect kernels without CONFIG_TASK_DELAY_ACCT + o The I/O nice of a process/thread can be changed with the 'i' key + + 0.3.1 + ~~~~~ + o Fixed the ioprio syscall detection when running on i386/x86_64 + o Fixed interaction between --accumulated and --only + o Fixed column sorting with --accumulated + + 0.3 + ~~~ + o -P is now fully implemented and is dynamically toggled with 'p' + o Show the I/O priority + o Added the --accumulated, --kilobytes, --time and --quiet options + +------------------------------------------------------------------- +Sun Aug 9 12:43:26 CEST 2009 - coolo@novell.com + +- use new python macros + +------------------------------------------------------------------- +Tue Aug 12 14:59:43 CEST 2008 - pth@suse.de + +- Remove py_requires and the rpmlintrc filters for warnings + resulting from the use of it. +- Remove superfluous BuildRequires for python. + +------------------------------------------------------------------- +Mon Aug 11 12:47:56 CEST 2008 - pth@suse.de + +- Add rpmlintrc file. + +------------------------------------------------------------------- +Thu Jul 10 12:07:27 CEST 2008 - pth@suse.de + +- Update to 0.2.1. Changes since 0.1: + + - 0.2.1: + * UTF-8 strings are now correctly handled + + - 0.2 + * Misconfigured terminals (TERM=xterm-color) are tolerated + * Added the --only option to only show processes or threads actually + doing I/O + * Typing 'o' dynamically toggles the --only option + * Cosmetic fixes as well as minor bug fixes + * Re-organized code to import vanilla pynl80211 + * Added workaround KERNBUG display in -P + +------------------------------------------------------------------- +Wed Mar 19 09:23:55 CET 2008 - aj@suse.de + +- Fix build (really include COPYING). +- Fix rpmlint warnings about "useless-explicit-requires python" and + "redundant-prefix-tag" + +------------------------------------------------------------------- +Fri Mar 14 18:50:43 CET 2008 - pth@suse.de + +- Include a copy of GPL2 (bnc#370246). + +------------------------------------------------------------------- +Tue Feb 12 15:19:05 CET 2008 - pth@suse.de + +- Add missing requires for python-curses + +------------------------------------------------------------------- +Wed Feb 6 12:50:00 CET 2008 - pth@suse.de + +- Initial package + diff --git a/iotop.spec b/iotop.spec new file mode 100644 index 0000000..ab9e019 --- /dev/null +++ b/iotop.spec @@ -0,0 +1,62 @@ +# +# spec file for package iotop +# +# Copyright (c) 2024 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define gitdate 20230403 +%define gitversion 4b2e1aa + +Name: iotop +Version: 0.6git.%{gitdate} +Release: 0 +Summary: Top Like UI to Show Per-Process I/O Going on +License: GPL-2.0-only +Group: System/Monitoring +URL: http://guichaz.free.fr/iotop/ +Source0: https://repo.or.cz/iotop.git/snapshot/%{gitversion}.tar.gz#/%{name}-%{gitversion}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: python3-devel +Requires: python3-curses + +%description +Linux has always been able to show how much I/O was going on (the bi +and bo columns of the vmstat 1 command). + +Iotop is a Python program with a UI similar to top to show on behalf of +which process is the I/O going on. + +%prep +%autosetup -n %{name}-%{gitversion} + +%build +%python3_build + +%install +%python3_install + +%fdupes -s %{buildroot} + +%check + +%files +%license COPYING +%doc README NEWS THANKS +%{_sbindir}/iotop +%{_mandir}/man8/iotop.8%{?ext_man} +%{python3_sitearch}/* + +%changelog