File iotop.spec of Package iotop
#
# spec file for package iotop
#
# Copyright (c) 2011 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/
#
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Name: iotop
Version: 0.4.4
Release: 1.1
Summary: Top Like UI to Show Per-Process I/O Going on
Source: http://guichaz.free.fr/iotop/files/iotop-%{version}.tar.bz2
Source1: %{name}-rpmlintrc
Url: http://guichaz.free.fr/iotop/
Group: System/Monitoring
License: GPL-2.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel >= 2.7
Requires: python-curses
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%py_requires
%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
%setup -q
%build
%__python setup.py build
%install
# Copied from: http://trac.edgewall.org/ticket/1141
# this file is *inserted* into the install section of the generated
# spec file
# this is, what dist.py normally does
%__python setup.py install --prefix="%{_prefix}" --root="%{buildroot}" --record="INSTALLED_FILES"
# catch compressed man pages
%__sed -i -e 's@\(.\+/man/man[[:digit:]]/.\+\.[[:digit:]]\)$@\1*@' "INSTALLED_FILES"
# catch any compiled python files (.pyc, .pyo), but don't list them twice
%__sed -i -e 's@\(.\+\)\.py$@\1.py*@' \
-e '/.\+\.pyc$/d' \
"INSTALLED_FILES"
echo "%dir %{python_sitelib}/iotop" >> INSTALLED_FILES
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc COPYING NEWS THANKS
%changelog
* Mon Oct 31 2011 pascal.bleser@opensuse.org
- update to 0.4.4:
* cosmetic fixes, including a better error message when missing root
credentials
* Wed Mar 30 2011 saschpe@suse.de
- Remove authors from %%%%description
- Change "python ./setup.py" calls to "python setup.py"
* Mon Mar 28 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 2010 pth@suse.de
- Rename alignment patch.
* Mon Sep 6 2010 pth@suse.de
- Apply patch from author to adapt iotop to different alignments
on 64 Bit systems (bnc#617281).
* Thu Sep 2 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 2009 coolo@novell.com
- use new python macros
* Tue Aug 12 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 2008 pth@suse.de
- Add rpmlintrc file.
* Thu Jul 10 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 2008 aj@suse.de
- Fix build (really include COPYING).
- Fix rpmlint warnings about "useless-explicit-requires python" and
"redundant-prefix-tag"
* Fri Mar 14 2008 pth@suse.de
- Include a copy of GPL2 (bnc#370246).
* Tue Feb 12 2008 pth@suse.de
- Add missing requires for python-curses
* Wed Feb 6 2008 pth@suse.de
- Initial package