3667c1
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3667c1
Name: iotop
3667c1
Version: 0.6
3667c1
Release: 4%{?dist}
3667c1
Summary: Top like utility for I/O       
3667c1
3667c1
Group: Applications/System          
3667c1
License: GPLv2+
3667c1
URL: http://guichaz.free.fr/iotop/            
3667c1
Source0: http://guichaz.free.fr/iotop/files/%{name}-%{version}.tar.bz2 
3667c1
3667c1
# from upstream, for iotop <= 0.6, rhbz#1582821
3667c1
Patch1: iotop-0.6-splitline.patch
3667c1
Patch2: iotop-0.3.2-ppcprio.patch
3667c1
Patch3: iotop-0.6-aarch64prio.patch
3667c1
3667c1
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3667c1
3667c1
BuildArch: noarch
3667c1
BuildRequires: python-devel
3667c1
Requires: python
3667c1
      
3667c1
%prep
3667c1
%setup
3667c1
%patch1 -p1 -b .splitline
3667c1
%patch2 -p1 -b .ppcprio
3667c1
%patch3 -p1 -b .aarch64prio
3667c1
3667c1
%build
3667c1
%{__python} setup.py build
3667c1
3667c1
%description
3667c1
Linux has always been able to show how much I/O was going on
3667c1
(the bi and bo columns of the vmstat 1 command).
3667c1
iotop is a Python program with a top like UI used to
3667c1
show of behalf of which process is the I/O going on.
3667c1
3667c1
3667c1
%install
3667c1
rm -rf $RPM_BUILD_ROOT
3667c1
%{__python} setup.py install --root=${RPM_BUILD_ROOT}
3667c1
3667c1
3667c1
%clean
3667c1
rm -rf $RPM_BUILD_ROOT
3667c1
3667c1
3667c1
%files
3667c1
%defattr(-,root,root,-)
3667c1
%doc COPYING NEWS THANKS
3667c1
%{_sbindir}/iotop
3667c1
%{_mandir}/man8/iotop.*
3667c1
%{python_sitelib}/*
3667c1
3667c1
%changelog
3667c1
* Thu Aug 02 2018 Michal Hlavinka <mhlavink@redhat.com> - 0.6-4
3667c1
- fix prio field for ppc and aarch64 (#1610912, #1610914)
3667c1
3667c1
* Mon Jul 09 2018 Michal Hlavinka <mhlavink@redhat.com> - 0.6-3
3667c1
- fix data value unpack with latest kernels (#1582821)
3667c1
3667c1
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.6-2
3667c1
- Mass rebuild 2013-12-27
3667c1
3667c1
* Wed Mar 29 2013 Michal Hlavinka <mhlavink@redhat.com> - 0.6-1
3667c1
- iotop updated to 0.6
3667c1
3667c1
* Tue Feb 05 2013 Michal Hlavinka <mhlavink@redhat.com> - 0.5-1
3667c1
- iotop updated to 0.5
3667c1
3667c1
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-3
3667c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3667c1
3667c1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-2
3667c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3667c1
3667c1
* Wed Nov 16 2011 Michal Hlavinka <mhlavink@redhat.com> - 0.4.4-1
3667c1
- iotop updated to 0.4.4
3667c1
3667c1
* Fri Oct 14 2011 Michal Hlavinka <mhlavink@redhat.com> 0.4.3-3
3667c1
- fix typo in last patch
3667c1
3667c1
* Thu Oct 13 2011 Michal Hlavinka <mhlavink@redhat.com> 0.4.3-2
3667c1
- after CVE-2011-2494 fix, iotop needs root privileges
3667c1
3667c1
* Sun Sep 18 2011 Adel Gadllah <adel.gadllah@gmail.com> 0.4.3-1
3667c1
- New upstream version
3667c1
3667c1
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-3
3667c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3667c1
3667c1
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.4-2
3667c1
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
3667c1
3667c1
* Tue Jan 12 2010 Adel Gadllah <adel.gadllah@gmail.com> 0.4-1
3667c1
- New upstream version
3667c1
3667c1
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
3667c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3667c1
3667c1
* Tue May 19 2009 Adel Gadllah <adel.gadllah@gmail.com> 0.3-1
3667c1
- New upstream version
3667c1
- fixes RH #475917
3667c1
3667c1
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-3
3667c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3667c1
3667c1
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.1-2
3667c1
- Rebuild for Python 2.6
3667c1
3667c1
* Wed Jul 09 2008 Adel Gadllah <adel.gadllah@gmail.com> 0.2.1-1
3667c1
- Update to 0.2.1
3667c1
3667c1
* Mon Jul 07 2008 Adel Gadllah <adel.gadllah@gmail.com> 0.2-2
3667c1
- New upstream tarball..
3667c1
3667c1
* Mon May 26 2008 Adel Gadllah <adel.gadllah@gmail.com> 0.2-1
3667c1
- Update to new upstream version
3667c1
3667c1
* Fri Dec 28 2007 Adel Gadllah <adel.gadllah@gmail.com> 0.1-3
3667c1
- Fix build issue
3667c1
3667c1
* Fri Dec 28 2007 Adel Gadllah <adel.gadllah@gmail.com> 0.1-2
3667c1
- Fix traceback on xterm-color RH #400071
3667c1
3667c1
* Sun Nov 3 2007 Adel Gadllah <adel.gadllah@gmail.com> 0.1-1
3667c1
- Fix version
3667c1
3667c1
* Sun Nov 3 2007 Adel Gadllah <adel.gadllah@gmail.com> 20070930-1
3667c1
- Initial Build