|
|
465c2f |
Summary: Versatile resource statistics tool
|
|
|
465c2f |
Name: dstat
|
|
|
465c2f |
Version: 0.7.2
|
|
|
040453 |
Release: 12%{?dist}
|
|
|
465c2f |
License: GPLv2
|
|
|
465c2f |
Group: System Environment/Base
|
|
|
465c2f |
URL: http://dag.wieers.com/home-made/dstat/
|
|
|
465c2f |
|
|
|
465c2f |
Source: http://dag.wieers.com/home-made/dstat/dstat-%{version}.tar.bz2
|
|
|
465c2f |
|
|
|
465c2f |
# Is there any BZ for this ?
|
|
|
465c2f |
Patch0: dstat-0.6.8-dbus.patch
|
|
|
465c2f |
|
|
|
465c2f |
# patch adding options switching from bytes to bits when displaying network and/or disk stats
|
|
|
465c2f |
# Is there any BZ for this ?
|
|
|
465c2f |
Patch1: dstat-0.7.2-bits.patch
|
|
|
465c2f |
|
|
|
465c2f |
# This patch enables to specify disks with path to device file
|
|
|
465c2f |
# (or with symbolic link to the device file)
|
|
|
465c2f |
# For example:
|
|
|
465c2f |
# dstat -d -D /dev/vda2
|
|
|
465c2f |
# dstat -d -D /dev/disk/by-id/scsi-SATA_Hitachi_HDP7250_GEA534RF3YYMMA-part3
|
|
|
465c2f |
# dstat -d -D /dev/disk/by-path/pci-0000:00:06.0-virtio-pci-virtio3-part2
|
|
|
465c2f |
# dstat -d -D /dev/disk/by-uuid/6df45ed6-c4ad-4054-955d-b15102f2c566
|
|
|
465c2f |
# (BZ#766443)
|
|
|
465c2f |
Patch2: dstat-0.7.2-disk-path.patch
|
|
|
465c2f |
|
|
|
465c2f |
# Fixed inconsistency between man page and help (#852797)
|
|
|
465c2f |
Patch3: dstat-0.7.2-man.patch
|
|
|
465c2f |
|
|
|
465c2f |
BuildArch: noarch
|
|
|
465c2f |
BuildRequires: python2-devel
|
|
|
465c2f |
Requires: python
|
|
|
465c2f |
|
|
|
465c2f |
%description
|
|
|
465c2f |
Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat.
|
|
|
465c2f |
Dstat overcomes some of their limitations and adds some extra features,
|
|
|
465c2f |
more counters and flexibility. Dstat is handy for monitoring systems
|
|
|
465c2f |
during performance tuning tests, benchmarks or troubleshooting.
|
|
|
465c2f |
|
|
|
465c2f |
Dstat allows you to view all of your system resources instantly, you
|
|
|
465c2f |
can eg. compare disk usage in combination with interrupts from your
|
|
|
465c2f |
IDE controller, or compare the network bandwidth numbers directly
|
|
|
465c2f |
with the disk throughput (in the same interval).
|
|
|
465c2f |
|
|
|
465c2f |
Dstat gives you detailed selective information in columns and clearly
|
|
|
465c2f |
indicates in what magnitude and unit the output is displayed. Less
|
|
|
465c2f |
confusion, less mistakes.
|
|
|
465c2f |
|
|
|
465c2f |
%prep
|
|
|
465c2f |
%setup -q
|
|
|
465c2f |
%patch0 -p1 -b .dbus
|
|
|
465c2f |
%patch1 -p1 -b .bits
|
|
|
465c2f |
%patch2 -p1 -b .disk-path
|
|
|
465c2f |
%patch3 -p1 -b .man
|
|
|
465c2f |
|
|
|
465c2f |
sed -i -e '1s,^#!/usr/bin/env python,#!/usr/bin/python,' dstat
|
|
|
465c2f |
|
|
|
465c2f |
%build
|
|
|
465c2f |
# Make sure the docs are in unix format
|
|
|
465c2f |
%{__sed} -i 's/\r//' docs/*.html
|
|
|
465c2f |
# Remove the broken symlink
|
|
|
465c2f |
%{__rm} -rf examples/dstat.py
|
|
|
465c2f |
%{__chmod} a-x examples/*
|
|
|
465c2f |
|
|
|
465c2f |
%install
|
|
|
465c2f |
%{__make} install DESTDIR=%{buildroot}
|
|
|
465c2f |
# Install the man page
|
|
|
465c2f |
cd docs
|
|
|
465c2f |
%{__make} install DESTDIR=%{buildroot}
|
|
|
465c2f |
# Plugins .py files are modules, not executable python
|
|
|
465c2f |
%{__chmod} a-x %{buildroot}/%{_datadir}/dstat/*.py
|
|
|
465c2f |
%{__chmod} a+x %{buildroot}/%{_datadir}/dstat/dstat.py
|
|
|
465c2f |
|
|
|
465c2f |
|
|
|
465c2f |
%files
|
|
|
465c2f |
%dir %{_datadir}/dstat
|
|
|
465c2f |
%doc AUTHORS ChangeLog COPYING README TODO docs/*.html docs/*.txt examples/
|
|
|
465c2f |
%{_mandir}/man1/dstat.1*
|
|
|
465c2f |
%{_bindir}/dstat
|
|
|
465c2f |
%{_datadir}/dstat/*.py*
|
|
|
465c2f |
|
|
|
465c2f |
%changelog
|
|
|
040453 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.7.2-12
|
|
|
040453 |
- Mass rebuild 2013-12-27
|
|
|
040453 |
|
|
|
465c2f |
* Mon Jul 22 2013 Jiri Popelka <jpopelka@redhat.com> - 0.7.2-11
|
|
|
465c2f |
- change shebang to absolute path (#987015)
|
|
|
465c2f |
|
|
|
465c2f |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-10
|
|
|
465c2f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
465c2f |
|
|
|
465c2f |
* Mon Sep 03 2012 Jiri Popelka <jpopelka@redhat.com> - 0.7.2-9
|
|
|
465c2f |
- use upstream's bits.patch
|
|
|
465c2f |
- fixed inconsistency between man page and help (#852797)
|
|
|
465c2f |
|
|
|
465c2f |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-8
|
|
|
465c2f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
465c2f |
|
|
|
465c2f |
* Mon Jun 18 2012 Jiri Popelka <jpopelka@redhat.com> - 0.7.2-7
|
|
|
465c2f |
- fixed typo in bits.patch (#832683)
|
|
|
465c2f |
|
|
|
465c2f |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-6
|
|
|
465c2f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
465c2f |
|
|
|
465c2f |
* Tue Nov 08 2011 Jiri Popelka <jpopelka@redhat.com> - 0.7.2-5
|
|
|
465c2f |
- enable to specify disks with path to device file or
|
|
|
465c2f |
with symbolic link to the device file (#766443)
|
|
|
465c2f |
- modernize spec
|
|
|
465c2f |
|
|
|
465c2f |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-4
|
|
|
465c2f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
465c2f |
|
|
|
465c2f |
* Tue Aug 24 2010 Jan Zeleny <jzeleny@redhat.com> - 0.7.2-3
|
|
|
465c2f |
- patch adding options switching from bytes to bits when displaying
|
|
|
465c2f |
network and/or disk stats
|
|
|
465c2f |
|
|
|
465c2f |
* Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 0.7.2-2
|
|
|
465c2f |
- recompiling .py files against Python 2.7 (rhbz#623287)
|
|
|
465c2f |
|
|
|
465c2f |
* Mon Jun 28 2010 Jan Zeleny <jzeleny@redhat.com> - 0.7.2-1
|
|
|
465c2f |
- rebased to 0.7.2
|
|
|
465c2f |
|
|
|
465c2f |
* Mon Mar 01 2010 Jan Zeleny <jzeleny@redhat.com> - 0.7.1-1
|
|
|
465c2f |
- rebased to 0.7.1
|
|
|
465c2f |
|
|
|
465c2f |
* Mon Feb 22 2010 Jan Zeleny <jzeleny@redhat.com> - 0.7.0-2
|
|
|
465c2f |
- fixed syntax error in mysql_conn plugin
|
|
|
465c2f |
|
|
|
465c2f |
* Thu Dec 03 2009 Jan Zeleny <jzeleny@redhat.com> - 0.7.0-1
|
|
|
465c2f |
- rebased to 0.7.0
|
|
|
465c2f |
|
|
|
465c2f |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.9-5
|
|
|
465c2f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
465c2f |
|
|
|
465c2f |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.9-4
|
|
|
465c2f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
465c2f |
|
|
|
465c2f |
* Tue Dec 23 2008 Zdenek Prikryl <zprikryl@redhat.com> - 0.6.9-3
|
|
|
465c2f |
- Fixed wrong total disk counts (#476935)
|
|
|
465c2f |
|
|
|
465c2f |
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6.9-2
|
|
|
465c2f |
- Rebuild for Python 2.6
|
|
|
465c2f |
|
|
|
465c2f |
* Thu Dec 04 2008 Zdenek Prikryl <zprikryl@redhat.com> - 0.6.9-1
|
|
|
465c2f |
- Updated to 0.6.9
|
|
|
465c2f |
- Fixed dbus module patch again
|
|
|
465c2f |
|
|
|
465c2f |
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6.8-2
|
|
|
465c2f |
- Rebuild for Python 2.6
|
|
|
465c2f |
|
|
|
465c2f |
* Tue Sep 16 2008 Zdenek Prikryl <zprikryl@redhat.com> - 0.6.8-1
|
|
|
465c2f |
- Updated to 0.6.8
|
|
|
465c2f |
- Fixed dbus module patch
|
|
|
465c2f |
|
|
|
465c2f |
* Fri Apr 25 2008 Radek Brich <rbrich@redhat.com> - 0.6.7-3
|
|
|
465c2f |
- fix dbus module (new dbus-python interface since FC4)
|
|
|
465c2f |
|
|
|
465c2f |
* Thu Mar 27 2008 Radek Brich <rbrich@redhat.com> - 0.6.7-2
|
|
|
465c2f |
- fixes for interrupt stats:
|
|
|
465c2f |
* traceback when called with unknown name of interrupt (bz#439143)
|
|
|
465c2f |
* allow '-I total' option (bz#439146)
|
|
|
465c2f |
|
|
|
465c2f |
* Wed Mar 19 2008 Radek Brich <rbrich@redhat.com> - 0.6.7-1
|
|
|
465c2f |
- Release 0.6.7
|
|
|
465c2f |
- Drop upstream patches
|
|
|
465c2f |
|
|
|
465c2f |
* Fri Jan 18 2008 Radek Brich <rbrich@redhat.com> - 0.6.6-3
|
|
|
465c2f |
- Fix --nocolor and --raw (upstream patches)
|
|
|
465c2f |
- Fix errors in man page
|
|
|
465c2f |
|
|
|
465c2f |
* Tue Sep 04 2007 Radek Brich <rbrich@redhat.com> - 0.6.6-2
|
|
|
465c2f |
- Updated license tag.
|
|
|
465c2f |
- Spec clean up.
|
|
|
465c2f |
|
|
|
465c2f |
* Tue May 01 2007 Scott Baker <scott@perturb.org> - 0.6.6-1
|
|
|
465c2f |
- Bumped to latest release
|
|
|
465c2f |
|
|
|
465c2f |
* Wed Apr 18 2007 Scott Baker <scott@perturb.org> - 0.6.5-1
|
|
|
465c2f |
- Bumped to latest release
|
|
|
465c2f |
|
|
|
465c2f |
* Tue Dec 12 2006 Scott Baker <scott@perturb.org> - 0.6.4-1
|
|
|
465c2f |
- Bumped to 0.6.4
|
|
|
465c2f |
|
|
|
465c2f |
* Fri Aug 11 2006 Scott Baker <scott@perturb.org> - 0.6.3-5
|
|
|
465c2f |
- Removed the execute permission from the examples directory
|
|
|
465c2f |
- Fixed the changelog to remove the replaceable %%clean
|
|
|
465c2f |
|
|
|
465c2f |
* Tue Jul 25 2006 Scott Baker <scott@perturb.org> - 0.6.3-4
|
|
|
465c2f |
- Removed some commeted lines in the .spec file that weren't needed
|
|
|
465c2f |
- Changed the permissions on the examples/* scripts
|
|
|
465c2f |
- Converted the HTML documentation to unix line endings
|
|
|
465c2f |
- Removed the erroneous commenting of the %%clean section of the .spec
|
|
|
465c2f |
|
|
|
465c2f |
* Fri Jul 21 2006 Scott Baker <scott@perturb.org> - 0.6.3-3
|
|
|
465c2f |
- Packaged for Fedora Extras.
|
|
|
465c2f |
|
|
|
465c2f |
* Mon Jun 26 2006 Dag Wieers <dag@wieers.com> - 0.6.3-1 - 4303+/dries
|
|
|
465c2f |
- Updated to release 0.6.3.
|
|
|
465c2f |
|
|
|
465c2f |
* Thu Mar 09 2006 Dag Wieers <dag@wieers.com> - 0.6.2-1
|
|
|
465c2f |
- Updated to release 0.6.2.
|
|
|
465c2f |
|
|
|
465c2f |
* Mon Sep 05 2005 Dag Wieers <dag@wieers.com> - 0.6.1-1
|
|
|
465c2f |
- Updated to release 0.6.1.
|
|
|
465c2f |
|
|
|
465c2f |
* Sun May 29 2005 Dag Wieers <dag@wieers.com> - 0.6.0-1
|
|
|
465c2f |
- Updated to release 0.6.0.
|
|
|
465c2f |
|
|
|
465c2f |
* Fri Apr 08 2005 Dag Wieers <dag@wieers.com> - 0.5.10-1
|
|
|
465c2f |
- Updated to release 0.5.10.
|
|
|
465c2f |
|
|
|
465c2f |
* Mon Mar 28 2005 Dag Wieers <dag@wieers.com> - 0.5.9-1
|
|
|
465c2f |
- Updated to release 0.5.9.
|
|
|
465c2f |
|
|
|
465c2f |
* Tue Mar 15 2005 Dag Wieers <dag@wieers.com> - 0.5.8-1
|
|
|
465c2f |
- Updated to release 0.5.8.
|
|
|
465c2f |
|
|
|
465c2f |
* Fri Dec 31 2004 Dag Wieers <dag@wieers.com> - 0.5.7-1
|
|
|
465c2f |
- Updated to release 0.5.7.
|
|
|
465c2f |
|
|
|
465c2f |
* Mon Dec 20 2004 Dag Wieers <dag@wieers.com> - 0.5.6-1
|
|
|
465c2f |
- Updated to release 0.5.6.
|
|
|
465c2f |
|
|
|
465c2f |
* Thu Dec 02 2004 Dag Wieers <dag@wieers.com> - 0.5.5-1
|
|
|
465c2f |
- Updated to release 0.5.5.
|
|
|
465c2f |
|
|
|
465c2f |
* Thu Nov 25 2004 Dag Wieers <dag@wieers.com> - 0.5.4-1
|
|
|
465c2f |
- Updated to release 0.5.4.
|
|
|
465c2f |
- Use dstat15 if distribution uses python 1.5.
|
|
|
465c2f |
|
|
|
465c2f |
* Sun Nov 21 2004 Dag Wieers <dag@wieers.com> - 0.5.3-1
|
|
|
465c2f |
- Updated to release 0.5.3.
|
|
|
465c2f |
|
|
|
465c2f |
* Sat Nov 13 2004 Dag Wieers <dag@wieers.com> - 0.5.2-1
|
|
|
465c2f |
- Updated to release 0.5.2.
|
|
|
465c2f |
|
|
|
465c2f |
* Thu Nov 11 2004 Dag Wieers <dag@wieers.com> - 0.5.1-1
|
|
|
465c2f |
- Updated to release 0.5.1.
|
|
|
465c2f |
|
|
|
465c2f |
* Tue Oct 26 2004 Dag Wieers <dag@wieers.com> - 0.4-1
|
|
|
465c2f |
- Initial package. (using DAR)
|