procinfo-vl.spec 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. Summary: A tool for gathering and displaying system information.
  2. Summary(ja): システム情報をまとめて表示するツール
  3. Name: procinfo
  4. Version: 18
  5. Release: 16%{?_dist_release}
  6. License: GPL+
  7. Group: Applications/System
  8. Source: ftp://ftp.cistron.nl/pub/people/svm/%{name}-%{version}.tar.bz2
  9. Patch0: procinfo-14-misc.patch
  10. Patch3: procinfo-17-mandir.patch
  11. Patch5: procinfo-17-uptime.patch
  12. Patch6: procinfo-17-lsdev.patch
  13. Patch7: procinfo-18-acct.patch
  14. Patch8: procinfo-18-mharris-use-sysconf.patch
  15. Patch9: procinfo-18-maxdev.patch
  16. Patch10: procinfo-18-ranges.patch
  17. Patch11: procinfo-18-cpu-steal.patch
  18. Patch12: procinfo-18-intr.patch
  19. Patch13: procinfo-18-intrprint.patch
  20. Patch14: procinfo-18-version.patch
  21. Patch15: procinfo-18-man-comment.patch
  22. Patch16: procinfo-18-socklist.patch
  23. Patch17: procinfo-18-idle-overflow.patch
  24. ## Vine Patch(es)
  25. Patch100: procinfo-17-bindir.patch
  26. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  27. BuildRequires: libtermcap-devel
  28. BuildRequires: ncurses-devel
  29. Vendor: Project Vine
  30. Distribution: Vine Linux
  31. %description
  32. The procinfo command gets system data from the /proc directory (the
  33. kernel filesystem), formats it and displays it on standard output.
  34. You can use procinfo to acquire information about your system from the
  35. kernel as it is running.
  36. Install procinfo if you'd like to use it to gather and display system
  37. data.
  38. %description -l ja
  39. procinfo コマンドはシステムの情報を /proc ディレクトリ
  40. (カーネルファイルシステム) から取得し,整形して標準出力に
  41. 表示します.procinfo を使うと現在動作しているカーネルから,
  42. 利用中のシステムの情報を得ることが出来ます.
  43. システム情報をまとめて表示したい場合は procinfo をインストールして下さい.
  44. %prep
  45. %setup -q
  46. %patch0 -p1 -b .misc
  47. %patch3 -p1 -b .mandir
  48. %patch5 -p1 -b .uptime
  49. %patch6 -p1 -b .lsdev
  50. %patch7 -p1 -b .acct
  51. %patch8 -p1 -b .mharris-use-sysconf
  52. %patch9 -p1 -b .maxdev
  53. %patch10 -p1 -b .ranges
  54. %patch11 -p1 -b .steal
  55. %patch12 -p1 -b .intr
  56. %patch13 -p1 -b .intrprint
  57. %patch14 -p1 -b .version
  58. %patch15 -p1 -b .mancomment
  59. %patch16 -p0 -b .socklist
  60. %patch17 -p1 -b .idle
  61. ## Vine Patch(es)
  62. %patch100 -p1 -b .bindir
  63. %build
  64. make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -I/usr/include/ncurses" LDFLAGS= LDLIBS=-lncurses
  65. %install
  66. rm -rf $RPM_BUILD_ROOT
  67. mkdir -p $RPM_BUILD_ROOT/%{_bindir}
  68. mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
  69. make install prefix=$RPM_BUILD_ROOT/usr \
  70. bindir=$RPM_BUILD_ROOT/%{_bindir} \
  71. mandir=$RPM_BUILD_ROOT/%{_mandir}
  72. %clean
  73. rm -rf $RPM_BUILD_ROOT
  74. %files
  75. %defattr(-,root,root)
  76. %doc README CHANGES
  77. %{_bindir}/procinfo
  78. %{_bindir}/lsdev
  79. %{_bindir}/socklist
  80. %{_mandir}/man8/procinfo.8*
  81. %{_mandir}/man8/lsdev.8*
  82. %{_mandir}/man8/socklist.8*
  83. %changelog
  84. * Thu Mar 22 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 18-16
  85. - rebuild; import patch10 to patch17 from Fedora
  86. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 18-15vl5
  87. - applied new versioning policy, spec in utf-8
  88. * Tue May 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 18-15vl1
  89. - based on 18-15 from Fedora development
  90. * Fri Dec 17 2004 Karel Zak <kzak@redhat.com> 18-14
  91. - fixed limit of devices (#89176)
  92. * Sat Jan 17 2004 Mike A. Harris <mharris@redhat.com> 18-11
  93. - Added procinfo-18-mharris-use-sysconf.patch to use sysconf for determining
  94. the number of processors online, as this is more portable between different
  95. CPU architectures than relying on particular /proc file entry contents and
  96. formatting. We ship on 7 architectures (x86, ia64, AMD64, ppc, ppc64,
  97. s390, s390x), and the current code only handled x86, alpha, sparc.
  98. sysconf will work on all processors. Better fix for (#9497)
  99. * Thu Jul 3 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 18-9vl1
  100. - based on 18-9 from Rawhide
  101. - s/Copyright/License/
  102. - added BuildPrereq: libtermcap-devel
  103. * Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  104. - 17-10vl1
  105. - based on 17-10 from Rawhide
  106. - use better macros (%%{_bindir}) and added Patch10 for that
  107. - added Japanese summary and description
  108. * Mon Dec 11 2000 Erik Troan <ewt@redhat.com>
  109. - built on all archs
  110. * Thu Nov 16 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  111. - fix up lsdev (Bug #10295 and a couple of unreported bugs)
  112. - fix up calculation of uptime milliseconds (introduced by gcc acting
  113. differently from previous releases, t/100*100 != t*100/100)
  114. (Bug #20741)
  115. * Mon Oct 16 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  116. - Fix uptime calculation (Bug #18673)
  117. This problem was introduced by gcc acting differently from previous
  118. releases (t * 100 / HZ --> overflow; t / HZ * 100 ok).
  119. * Mon Oct 2 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  120. - Fix CPU stats after very long uptimes (Bug #17391)
  121. * Tue Aug 8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  122. - Fix reported number of CPUs on sparc (Bug #9597)
  123. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  124. - automatic rebuild
  125. * Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
  126. - FHS man paths (patch3)
  127. - buildable as non-root (patch3)
  128. * Fri Feb 18 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  129. - Fix up the CPU detection patch (Bug #9497)
  130. * Sat Feb 5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  131. - handle compressed man pages
  132. * Mon Oct 04 1999 Michael K. Johnson <johnsonm@redhat.com>
  133. - fix cpu detection on sparc and alpha
  134. * Fri Aug 27 1999 Preston Brown <pbrown@redhat.com>
  135. - upgraded to r17, which incorporates several of our patches + smp fixes
  136. - fix bug #1959
  137. * Tue Mar 23 1999 Preston Brown <pbrown@redhat.com>
  138. - patched to work with kernels with LOTS of IRQs. (bug 1616)
  139. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  140. - auto rebuild in the new build environment (release 2)
  141. * Fri Mar 12 1999 Michael Maher <mike@redhat.com>
  142. - updated to version 16
  143. - closed bug 1349
  144. * Fri Nov 20 1998 Michael K. Johnson <johnsonm@redhat.com>
  145. - updated to version 15 to fix bugzilla 70.
  146. * Fri Oct 2 1998 Jeff Johnson <jbj@redhat.com>
  147. - calculate time per-cent on non-{alpha,i386} correctly.
  148. * Thu Sep 10 1998 Cristian Gafton <gafton@redhat.com>
  149. - upgraded to version 14
  150. - fixed the spec file
  151. * Thu Apr 30 1998 Donnie Barnes <djb@redhat.com>
  152. - updated from 0.11 to 13
  153. - added socklist program
  154. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  155. - translations modified for de, fr, tr
  156. * Thu Oct 23 1997 Michael K. Johnson <johnsonm@redhat.com>
  157. - updated to version 0.11
  158. * Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
  159. - built against glibc