Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
iotop
> iotop.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File iotop.spec of Package iotop (Revision 4)
Currently displaying revision
4
,
show latest
%define name iotop %define version 0.2.1 %define unmangled_version 0.2.1 %define unmangled_version 0.2.1 %define release 1 Summary: Per process I/O bandwidth monitor Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{unmangled_version}.tar.gz License: GPL Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Url: http://guichaz.free.fr/iotop BuildRequires: python python-devel Requires: python %description Iotop is a Python program with a top like UI used to show of behalf of which process is the I/O going on. %prep %setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version} %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 --single-version-externally-managed --root=${RPM_BUILD_ROOT} --prefix=%{_prefix} --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" %clean rm -rf $RPM_BUILD_ROOT %files -f INSTALLED_FILES %defattr(-,root,root) %doc COPYING NEWS THANKS