wmapm-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. Summary: wmapm monitors the APM statistics
  2. Summary(ja): APM 情報を表示する dock アプリケーション
  3. %define version 3.1
  4. Name: wmapm
  5. Version: %{version}
  6. Release: 4vl1
  7. Copyright: GPL
  8. Group: User Interface/Desktops
  9. Source: ftp://leadbelly.lanl.gov/pub/mgh/%{name}-%{version}.tar.gz
  10. Patch1: wmapm-3.1-ppc.patch
  11. Vendor: Project Vine
  12. Distribution: Vine
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. %ifnarch ppc
  15. Requires: apmd
  16. %endif
  17. Excludearch: sparc sparc64
  18. %description
  19. WMAPM monitors the APM statistics through the APM support in
  20. the Linux and FreeBSD Kernels.
  21. For kernel-2.2 on OldWorld PowerBooks (eg. PowerBook2400/3400/3500(G3)
  22. WallStreet) WMPMU is provided.
  23. You will need to make apm setuid before the suspend and standby
  24. buttons will work.
  25. %description -l ja
  26. WMAPM は Linux や FreeBSD カーネルの APM サポートから
  27. 得られる情報を元に APM 情報を表示します。
  28. PB2400/3400/3500(G3) WallStreet などの OldWorld のマシンで
  29. kernel-2.2 系統を使う場合のために wmpmu を用意しました。
  30. サスペンドやスタンバイボタンを動作させるためには
  31. apm を setuid しておく必要があります。
  32. %prep
  33. %setup
  34. %ifarch ppc
  35. %patch1 -p1
  36. %endif
  37. %build
  38. touch %{name}/%{name}.c
  39. make -C %{name}
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. mkdir -p $RPM_BUILD_ROOT/usr/X11R6/{bin,man/man1}
  43. install -s -m 755 %{name}/%{name} $RPM_BUILD_ROOT/usr/X11R6/bin
  44. install -m 444 %{name}/%{name}.1 $RPM_BUILD_ROOT/usr/X11R6/man/man1
  45. %ifarch ppc
  46. install -s -m 755 %{name}/wmpmu $RPM_BUILD_ROOT/usr/X11R6/bin
  47. install -m 444 %{name}/wmpmu.1 $RPM_BUILD_ROOT/usr/X11R6/man/man1
  48. %endif
  49. %files
  50. %defattr(-,root,root)
  51. /usr/X11R6/bin/%{name}
  52. /usr/X11R6/man/man1/%{name}.1*
  53. %ifarch ppc
  54. /usr/X11R6/bin/wmpmu
  55. /usr/X11R6/man/man1/wmpmu.1*
  56. %endif
  57. %doc BUGS CHANGES COPYING HINTS INSTALL README TODO
  58. %clean
  59. rm -rf $RPM_BUILD_ROOT
  60. %ifarch ppc
  61. %post
  62. chmod 4666 /dev/adb
  63. if ! [ -c /dev/pmu ]; then
  64. mknod /dev/pmu c 10 154
  65. fi
  66. chmod 4666 /dev/pmu
  67. %endif
  68. %changelog
  69. * Sat Jan 12 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  70. - 3.1-4vl1
  71. - updated to wmapm-3.1
  72. - provide wmpmu for kernel-2.2 on OldWorld PowerBooks
  73. * Sat Oct 14 2000 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp>
  74. - 3.01-3vl8
  75. - added Excludearch: sparc sparc64
  76. * Wed Oct 04 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  77. - 3.01-3vl7
  78. - rebuilt with kernel-2.2.17-0vl7 (especially for ppc)
  79. * Fri Sep 08 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  80. - 3.01-3vl6
  81. - modified %files section to handle compressed man page(s)
  82. * Tue May 09 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  83. - fixed small typo in %post section
  84. * Mon May 1 2000 T.R. Kobayashi <tkoba@ike-dyn.ritsumei.ac.jp>
  85. - Fixed charge and timeleft estimation of PowerBooks.
  86. - added Japanese summary and description
  87. * Sun Apr 30 2000 T.R. Kobayashi <tkoba@ike-dyn.ritsumei.ac.jp>
  88. - PowerBooks PMU support added
  89. * Wed Jan 5 2000 Jun Nishii <jun@vinelinux.org>
  90. - change group
  91. * Sun Feb 21 1998 Ian Macdonald <ianmacd@xs4all.nl>
  92. - suid bit removed from wmapm
  93. - apmd dependency added
  94. * Tue Feb 9 1998 Ian Macdonald <ianmacd@xs4all.nl>
  95. - first RPM release