File iotop.spec of Package iotop

#
# spec file for package iotop (Version 0.2.1)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           iotop
BuildRequires:  python-devel >= 2.5
Summary:        Top Like UI to Show Per-Process I/O Going on
Version:        0.2.1
Release:        16
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}-rpmlintrc
License:        GPL v2 only
Group:          System/Monitoring
Url:            http://guichaz.free.fr/iotop/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python-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.



Authors:
--------
    Guillaume Chazarain <guichaz@yahoo.fr>

%prep
%setup -q

%build
python setup.py build

%install
#! /bin/sh
#
# 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
./setup.py install --prefix=/usr --single-version-externally-managed --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 %{py_sitedir}/iotop" >> INSTALLED_FILES

%clean
rm -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc COPYING NEWS THANKS

%changelog
* 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 06 2008 pth@suse.de
- Initial package
openSUSE Build Service is sponsored by