dstat-vl.spec 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. Summary: Versatile resource statistics tool
  2. Summary(ja): 多目的リソース統計ツール
  3. Name: dstat
  4. Version: 0.7.3
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. Group: System Environment/Base
  8. URL: http://dag.wieers.com/home-made/dstat/
  9. Source: http://dag.wieers.com/home-made/dstat/dstat-%{version}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. # Is there any BZ for this ?
  12. Patch0: dstat-0.6.8-dbus.patch
  13. # patch adding options switching from bytes to bits when displaying network and/or disk stats
  14. # Is there any BZ for this ?
  15. #Patch1: dstat-0.7.2-bits.patch
  16. # This patch enables to specify disks with path to device file
  17. # (or with symbolic link to the device file)
  18. # For example:
  19. # dstat -d -D /dev/vda2
  20. # dstat -d -D /dev/disk/by-id/scsi-SATA_Hitachi_HDP7250_GEA534RF3YYMMA-part3
  21. # dstat -d -D /dev/disk/by-path/pci-0000:00:06.0-virtio-pci-virtio3-part2
  22. # dstat -d -D /dev/disk/by-uuid/6df45ed6-c4ad-4054-955d-b15102f2c566
  23. # (BZ#766443)
  24. Patch2: dstat-0.7.2-disk-path.patch
  25. # Fixed inconsistency between man page and help (#852797)
  26. #Patch3: dstat-0.7.2-man.patch
  27. BuildArch: noarch
  28. BuildRequires: python-devel
  29. Requires: python
  30. %description
  31. Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat.
  32. Dstat overcomes some of their limitations and adds some extra features,
  33. more counters and flexibility. Dstat is handy for monitoring systems
  34. during performance tuning tests, benchmarks or troubleshooting.
  35. Dstat allows you to view all of your system resources instantly, you
  36. can eg. compare disk usage in combination with interrupts from your
  37. IDE controller, or compare the network bandwidth numbers directly
  38. with the disk throughput (in the same interval).
  39. Dstat gives you detailed selective information in columns and clearly
  40. indicates in what magnitude and unit the output is displayed. Less
  41. confusion, less mistakes.
  42. %prep
  43. %setup -q
  44. %patch0 -p1 -b .dbus
  45. #%patch1 -p1 -b .bits
  46. %patch2 -p1 -b .disk-path
  47. #%patch3 -p1 -b .man
  48. %build
  49. # Make sure the docs are in unix format
  50. %{__sed} -i 's/\r//' docs/*.html
  51. # Remove the broken symlink
  52. %{__rm} -rf examples/dstat.py
  53. %{__chmod} a-x examples/*
  54. %install
  55. %{__make} install DESTDIR=%{buildroot}
  56. # Install the man page
  57. cd docs
  58. %{__make} install DESTDIR=%{buildroot}
  59. # Plugins .py files are modules, not executable python
  60. %{__chmod} a-x %{buildroot}/%{_datadir}/dstat/*.py
  61. %{__chmod} a+x %{buildroot}/%{_datadir}/dstat/dstat.py
  62. %files
  63. %dir %{_datadir}/dstat
  64. %doc AUTHORS ChangeLog COPYING README.md TODO docs/*.html docs/*.adoc examples/
  65. %{_mandir}/man1/dstat.1*
  66. %{_bindir}/dstat
  67. %{_datadir}/dstat/*.py*
  68. %changelog
  69. * Mon Apr 25 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.3-1
  70. - new upstream release
  71. - deleted Patch1,3
  72. - fixed %%doc
  73. * Fri Aug 29 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-2
  74. - rebuilt with current environment
  75. * Sat Apr 06 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.7.2-1
  76. - initial build for Vine Linux
  77. * Mon Sep 03 2012 Jiri Popelka <jpopelka@redhat.com> - 0.7.2-9
  78. - use upstream's bits.patch
  79. - fixed inconsistency between man page and help (#852797)
  80. * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-8
  81. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  82. * Mon Jun 18 2012 Jiri Popelka <jpopelka@redhat.com> - 0.7.2-7
  83. - fixed typo in bits.patch (#832683)
  84. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-6
  85. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  86. * Tue Nov 08 2011 Jiri Popelka <jpopelka@redhat.com> - 0.7.2-5
  87. - enable to specify disks with path to device file or
  88. with symbolic link to the device file (#766443)
  89. - modernize spec
  90. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-4
  91. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  92. * Tue Aug 24 2010 Jan Zeleny <jzeleny@redhat.com> - 0.7.2-3
  93. - patch adding options switching from bytes to bits when displaying
  94. network and/or disk stats
  95. * Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com> - 0.7.2-2
  96. - recompiling .py files against Python 2.7 (rhbz#623287)
  97. * Mon Jun 28 2010 Jan Zeleny <jzeleny@redhat.com> - 0.7.2-1
  98. - rebased to 0.7.2
  99. * Mon Mar 01 2010 Jan Zeleny <jzeleny@redhat.com> - 0.7.1-1
  100. - rebased to 0.7.1
  101. * Mon Feb 22 2010 Jan Zeleny <jzeleny@redhat.com> - 0.7.0-2
  102. - fixed syntax error in mysql_conn plugin
  103. * Thu Dec 03 2009 Jan Zeleny <jzeleny@redhat.com> - 0.7.0-1
  104. - rebased to 0.7.0
  105. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.9-5
  106. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  107. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.9-4
  108. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  109. * Tue Dec 23 2008 Zdenek Prikryl <zprikryl@redhat.com> - 0.6.9-3
  110. - Fixed wrong total disk counts (#476935)
  111. * Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6.9-2
  112. - Rebuild for Python 2.6
  113. * Thu Dec 04 2008 Zdenek Prikryl <zprikryl@redhat.com> - 0.6.9-1
  114. - Updated to 0.6.9
  115. - Fixed dbus module patch again
  116. * Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6.8-2
  117. - Rebuild for Python 2.6
  118. * Tue Sep 16 2008 Zdenek Prikryl <zprikryl@redhat.com> - 0.6.8-1
  119. - Updated to 0.6.8
  120. - Fixed dbus module patch
  121. * Fri Apr 25 2008 Radek Brich <rbrich@redhat.com> - 0.6.7-3
  122. - fix dbus module (new dbus-python interface since FC4)
  123. * Thu Mar 27 2008 Radek Brich <rbrich@redhat.com> - 0.6.7-2
  124. - fixes for interrupt stats:
  125. * traceback when called with unknown name of interrupt (bz#439143)
  126. * allow '-I total' option (bz#439146)
  127. * Wed Mar 19 2008 Radek Brich <rbrich@redhat.com> - 0.6.7-1
  128. - Release 0.6.7
  129. - Drop upstream patches
  130. * Fri Jan 18 2008 Radek Brich <rbrich@redhat.com> - 0.6.6-3
  131. - Fix --nocolor and --raw (upstream patches)
  132. - Fix errors in man page
  133. * Tue Sep 04 2007 Radek Brich <rbrich@redhat.com> - 0.6.6-2
  134. - Updated license tag.
  135. - Spec clean up.
  136. * Tue May 01 2007 Scott Baker <scott@perturb.org> - 0.6.6-1
  137. - Bumped to latest release
  138. * Wed Apr 18 2007 Scott Baker <scott@perturb.org> - 0.6.5-1
  139. - Bumped to latest release
  140. * Tue Dec 12 2006 Scott Baker <scott@perturb.org> - 0.6.4-1
  141. - Bumped to 0.6.4
  142. * Fri Aug 11 2006 Scott Baker <scott@perturb.org> - 0.6.3-5
  143. - Removed the execute permission from the examples directory
  144. - Fixed the changelog to remove the replaceable %%clean
  145. * Tue Jul 25 2006 Scott Baker <scott@perturb.org> - 0.6.3-4
  146. - Removed some commeted lines in the .spec file that weren't needed
  147. - Changed the permissions on the examples/* scripts
  148. - Converted the HTML documentation to unix line endings
  149. - Removed the erroneous commenting of the %%clean section of the .spec
  150. * Fri Jul 21 2006 Scott Baker <scott@perturb.org> - 0.6.3-3
  151. - Packaged for Fedora Extras.
  152. * Mon Jun 26 2006 Dag Wieers <dag@wieers.com> - 0.6.3-1 - 4303+/dries
  153. - Updated to release 0.6.3.
  154. * Thu Mar 09 2006 Dag Wieers <dag@wieers.com> - 0.6.2-1
  155. - Updated to release 0.6.2.
  156. * Mon Sep 05 2005 Dag Wieers <dag@wieers.com> - 0.6.1-1
  157. - Updated to release 0.6.1.
  158. * Sun May 29 2005 Dag Wieers <dag@wieers.com> - 0.6.0-1
  159. - Updated to release 0.6.0.
  160. * Fri Apr 08 2005 Dag Wieers <dag@wieers.com> - 0.5.10-1
  161. - Updated to release 0.5.10.
  162. * Mon Mar 28 2005 Dag Wieers <dag@wieers.com> - 0.5.9-1
  163. - Updated to release 0.5.9.
  164. * Tue Mar 15 2005 Dag Wieers <dag@wieers.com> - 0.5.8-1
  165. - Updated to release 0.5.8.
  166. * Fri Dec 31 2004 Dag Wieers <dag@wieers.com> - 0.5.7-1
  167. - Updated to release 0.5.7.
  168. * Mon Dec 20 2004 Dag Wieers <dag@wieers.com> - 0.5.6-1
  169. - Updated to release 0.5.6.
  170. * Thu Dec 02 2004 Dag Wieers <dag@wieers.com> - 0.5.5-1
  171. - Updated to release 0.5.5.
  172. * Thu Nov 25 2004 Dag Wieers <dag@wieers.com> - 0.5.4-1
  173. - Updated to release 0.5.4.
  174. - Use dstat15 if distribution uses python 1.5.
  175. * Sun Nov 21 2004 Dag Wieers <dag@wieers.com> - 0.5.3-1
  176. - Updated to release 0.5.3.
  177. * Sat Nov 13 2004 Dag Wieers <dag@wieers.com> - 0.5.2-1
  178. - Updated to release 0.5.2.
  179. * Thu Nov 11 2004 Dag Wieers <dag@wieers.com> - 0.5.1-1
  180. - Updated to release 0.5.1.
  181. * Tue Oct 26 2004 Dag Wieers <dag@wieers.com> - 0.4-1
  182. - Initial package. (using DAR)