psmisc-vl.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. Name: psmisc
  2. Summary: Utilities for managing processes on your system.
  3. Summary(ja): システムのプロセスを管理するユーティリティ
  4. Version: 22.13
  5. Release: 1%{?_dist_release}
  6. Group: Applications/System
  7. License: GPLv2+
  8. URL: http://sourceforge.net/projects/psmisc
  9. Source: ftp://ftp.sf.net/pub/sourceforge/psmisc/psmisc-%{version}.tar.gz
  10. Patch1: psmisc-22.13-peekfd-segv.patch
  11. Patch2: psmisc-22.13-fuser-silent.patch
  12. Patch3: psmisc-22.13-killall-pgid.patch
  13. Patch4: psmisc-22.13-ppc64.patch
  14. Buildroot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: gettext
  16. BuildRequires: ncurses-devel
  17. BuildRequires: autoconf automake
  18. %description
  19. The psmisc package contains utilities for managing processes on your
  20. system: pstree, killall and fuser. The pstree command displays a tree
  21. structure of all of the running processes on your system. The killall
  22. command sends a specified signal (SIGTERM if nothing is specified) to
  23. processes identified by name. The fuser command identifies the PIDs
  24. of processes that are using specified files or filesystems.
  25. %description -l ja
  26. psmisc パッケージには pstree, killall, fuser といった,システムの
  27. プロセスを管理するユーティリティが収められています.pstree コマンドは
  28. システム上で動作している全プロセスをツリー状に表示します.
  29. killall コマンドは,指定されたシグナル (何も指定しなければ SIGTERM) を
  30. 名前で指定したプロセスに送ります.
  31. fuser コマンドは,指定したファイルやファイルシステムを使用している
  32. プロセスの PID を特定します.
  33. %prep
  34. %setup -q
  35. %patch1 -p1
  36. %patch2 -p1
  37. %patch3 -p1
  38. %patch4 -p1
  39. %build
  40. %configure --prefix=%{_prefix}
  41. make %{?_smp_mflags}
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. # The rpm makeinstall macro breaks the build, so we do it the old way
  45. make install DESTDIR="$RPM_BUILD_ROOT"
  46. mkdir -p $RPM_BUILD_ROOT%{_syssbindir}
  47. mv $RPM_BUILD_ROOT%{_bindir}/fuser $RPM_BUILD_ROOT%{_syssbindir}
  48. %ifnarch %ix86 x86_64 ppc ppc64
  49. rm -f $RPM_BUILD_ROOT/%{_bindir}/peekfd
  50. rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/peekfd.1*
  51. %endif
  52. %find_lang %name
  53. %clean
  54. rm -rf $RPM_BUILD_ROOT
  55. %files -f %{name}.lang
  56. %defattr(-,root,root)
  57. %doc AUTHORS ChangeLog COPYING README
  58. %{_syssbindir}/fuser
  59. %{_bindir}/killall
  60. %{_bindir}/pstree
  61. %{_bindir}/pstree.x11
  62. %{_bindir}/prtstat
  63. %{_mandir}/man1/fuser.1*
  64. %{_mandir}/man1/killall.1*
  65. %{_mandir}/man1/pstree.1*
  66. %{_mandir}/man1/prtstat.1*
  67. %ifarch %ix86 x86_64 ppc ppc64
  68. %{_bindir}/peekfd
  69. %{_mandir}/man1/peekfd.1*
  70. %endif
  71. %changelog
  72. * Sat Apr 9 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 22.13-1
  73. - updated to 22.13
  74. - added Patch1-4 from Fedora
  75. * Thu Jan 27 2011 Jan Görig <jgorig@redhat.com> 22.13-7
  76. - fix #671135 - peekfd utility doesn't work on ppc64 architecture
  77. * Fri Jan 7 2011 Jan Görig <jgorig@redhat.com> 22.13-6
  78. - fix #666213 - uninitialized memory leading to `killall -g name` failure
  79. * Tue Nov 16 2010 Jan Görig <jgorig@redhat.com> 22.13-5
  80. - fix #651794 - incorrect exit code of fuser -m -s
  81. * Thu Oct 14 2010 Jan Görig <jgorig@redhat.com> 22.13-3
  82. - fix #642800 - peekfd regression
  83. * Mon Aug 18 2008 Shu KONNO <owa@bg.wakwak.com> 22.6-2
  84. - added psmisc-22.6-types.patch by fedora
  85. - added psmisc-22.6-pstree-overflow.patch by fedora
  86. * Sat Aug 16 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 22.6-1
  87. - new upstream release
  88. - add peekfd to %%files on %%ix86, x86_64, ppc and ppc64
  89. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 22.5-2vl5
  90. - applied new versioning policy, spec in utf-8
  91. * Sat Oct 20 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 22.5-2vl1
  92. - based on 22.5-2 from Fedora
  93. - rebuilt with new toolchains
  94. * Sun Jun 15 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 21.2-4vl1
  95. - based on 21.2-4 from Redhat9
  96. - dropped psmisc-17-buildroot.patch and psmisc-19-noroot.patch
  97. - rebuild with new toolchains
  98. * Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  99. - 19-4vl1
  100. - based on 19-4 from Rawhide
  101. - use better macros (%%{_syssbindir}, %%{_bindir})
  102. - added Japanese summary and description
  103. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  104. - automatic rebuild
  105. * Sun Jun 18 2000 Matt Wilson <msw@redhat.com>
  106. - FHS man paths
  107. - patch makefile to enable non-root builds
  108. * Sat Feb 5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  109. - Deal with compressed man pages
  110. * Sun Nov 21 1999 Bernhard Rosenkraenzer <bero@redhat.com>
  111. - update to v19
  112. - handle RPM_OPT_FLAGS
  113. * Mon Sep 27 1999 Bill Nottingham <notting@redhat.com>
  114. - move fuser to /sbin
  115. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  116. - auto rebuild in the new build environment (release 2)
  117. * Sat Mar 13 1999 Michael Maher <mike@redhat.com>
  118. - updated package
  119. * Fri May 01 1998 Prospector System <bugs@redhat.com>
  120. - translations modified for de, fr, tr
  121. * Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
  122. - renamed the patch file .patch instead of .spec
  123. * Thu Apr 09 1998 Erik Troan <ewt@redhat.com>
  124. - updated to psmisc version 17
  125. - buildrooted
  126. * Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
  127. - updated from version 11 to version 16
  128. - spec file cleanups
  129. * Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
  130. - built against glibc