File iotop.spec of Package iotop

# spec file for package iotop (Version 0.4.1)
# Copyright (c) 2010 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

# norootforbuild

Name:           iotop
BuildRequires:  python-devel >= 2.5
Summary:        Top Like UI to Show Per-Process I/O Going on
Version:        0.4.1
Release:        2
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}-rpmlintrc
#Added 2010.09.06 Will be unnecessary with next major version.
Patch0:         iotop-pid_alignment.patch
License:        GPLv2
Group:          System/Monitoring
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python-curses
BuildArch:      noarch

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.

    Guillaume Chazarain <>

%setup -q
%patch0 -p1

python build

#! /bin/sh
# Copied from:
# this file is *inserted* into the install section of the generated
# spec file
# this is, what normally does
./ install --prefix=/usr --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$@\*@' \
       -e '/.\+\.pyc$/d' \
echo "%dir %{python_sitelib}/iotop" >> INSTALLED_FILES

rm -rf %{buildroot}