psmisc-vl.spec 4.4 KB

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