[521] | 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 | |
---|
| 19 | %description |
---|
| 20 | WMAPM monitors the APM statistics through the APM support in |
---|
| 21 | the Linux and FreeBSD Kernels. |
---|
| 22 | |
---|
| 23 | For kernel-2.2 on OldWorld PowerBooks (eg. PowerBook2400/3400/3500(G3) |
---|
| 24 | WallStreet) WMPMU is provided. |
---|
| 25 | |
---|
| 26 | You will need to make apm setuid before the suspend and standby |
---|
| 27 | buttons will work. |
---|
| 28 | |
---|
| 29 | %description -l ja |
---|
| 30 | WMAPM ¤Ï Linux ¤ä FreeBSD ¥«¡¼¥Í¥ë¤Î APM ¥µ¥Ý¡¼¥È¤«¤é |
---|
| 31 | ÆÀ¤é¤ì¤ë¾ðÊó¤ò¸µ¤Ë APM ¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡£ |
---|
| 32 | |
---|
| 33 | PB2400/3400/3500(G3) WallStreet ¤Ê¤É¤Î OldWorld ¤Î¥Þ¥·¥ó¤Ç |
---|
| 34 | kernel-2.2 ·ÏÅý¤ò»È¤¦¾ì¹ç¤Î¤¿¤á¤Ë wmpmu ¤òÍÑ°Õ¤·¤Þ¤·¤¿¡£ |
---|
| 35 | |
---|
| 36 | ¥µ¥¹¥Ú¥ó¥É¤ä¥¹¥¿¥ó¥Ð¥¤¥Ü¥¿¥ó¤òÆ°ºî¤µ¤»¤ë¤¿¤á¤Ë¤Ï |
---|
| 37 | apm ¤ò setuid ¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£ |
---|
| 38 | |
---|
| 39 | %prep |
---|
| 40 | %setup |
---|
| 41 | %ifarch ppc |
---|
| 42 | %patch1 -p1 |
---|
| 43 | %endif |
---|
| 44 | |
---|
| 45 | %build |
---|
| 46 | touch %{name}/%{name}.c |
---|
| 47 | make -C %{name} |
---|
| 48 | |
---|
| 49 | %install |
---|
| 50 | rm -rf $RPM_BUILD_ROOT |
---|
| 51 | mkdir -p $RPM_BUILD_ROOT/usr/X11R6/{bin,man/man1} |
---|
| 52 | install -s -m 755 %{name}/%{name} $RPM_BUILD_ROOT/usr/X11R6/bin |
---|
| 53 | install -m 444 %{name}/%{name}.1 $RPM_BUILD_ROOT/usr/X11R6/man/man1 |
---|
| 54 | %ifarch ppc |
---|
| 55 | install -s -m 755 %{name}/wmpmu $RPM_BUILD_ROOT/usr/X11R6/bin |
---|
| 56 | install -m 444 %{name}/wmpmu.1 $RPM_BUILD_ROOT/usr/X11R6/man/man1 |
---|
| 57 | %endif |
---|
| 58 | |
---|
| 59 | %files |
---|
| 60 | %defattr(-,root,root) |
---|
| 61 | /usr/X11R6/bin/%{name} |
---|
| 62 | /usr/X11R6/man/man1/%{name}.1* |
---|
| 63 | %ifarch ppc |
---|
| 64 | /usr/X11R6/bin/wmpmu |
---|
| 65 | /usr/X11R6/man/man1/wmpmu.1* |
---|
| 66 | %endif |
---|
| 67 | %doc BUGS CHANGES COPYING HINTS INSTALL README TODO |
---|
| 68 | |
---|
| 69 | %clean |
---|
| 70 | rm -rf $RPM_BUILD_ROOT |
---|
| 71 | |
---|
| 72 | %ifarch ppc |
---|
| 73 | %post |
---|
| 74 | chmod 4666 /dev/adb |
---|
| 75 | if ! [ -c /dev/pmu ]; then |
---|
| 76 | mknod /dev/pmu c 10 154 |
---|
| 77 | fi |
---|
| 78 | chmod 4666 /dev/pmu |
---|
| 79 | %endif |
---|
| 80 | |
---|
| 81 | %changelog |
---|
| 82 | * Sat Jan 12 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> |
---|
| 83 | - 3.1-4vl1 |
---|
| 84 | - updated to wmapm-3.1 |
---|
| 85 | - provide wmpmu for kernel-2.2 on OldWorld PowerBooks |
---|
| 86 | |
---|
| 87 | * Sat Oct 14 2000 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp> |
---|
| 88 | - 3.01-3vl8 |
---|
| 89 | - added Excludearch: sparc sparc64 |
---|
| 90 | |
---|
| 91 | * Wed Oct 04 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 92 | - 3.01-3vl7 |
---|
| 93 | - rebuilt with kernel-2.2.17-0vl7 (especially for ppc) |
---|
| 94 | |
---|
| 95 | * Fri Sep 08 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 96 | - 3.01-3vl6 |
---|
| 97 | - modified %files section to handle compressed man page(s) |
---|
| 98 | |
---|
| 99 | * Tue May 09 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 100 | - fixed small typo in %post section |
---|
| 101 | |
---|
| 102 | * Mon May 1 2000 T.R. Kobayashi <tkoba@ike-dyn.ritsumei.ac.jp> |
---|
| 103 | - Fixed charge and timeleft estimation of PowerBooks. |
---|
| 104 | - added Japanese summary and description |
---|
| 105 | |
---|
| 106 | * Sun Apr 30 2000 T.R. Kobayashi <tkoba@ike-dyn.ritsumei.ac.jp> |
---|
| 107 | - PowerBooks PMU support added |
---|
| 108 | |
---|
| 109 | * Wed Jan 5 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 110 | - change group |
---|
| 111 | |
---|
| 112 | * Sun Feb 21 1998 Ian Macdonald <ianmacd@xs4all.nl> |
---|
| 113 | |
---|
| 114 | - suid bit removed from wmapm |
---|
| 115 | - apmd dependency added |
---|
| 116 | |
---|
| 117 | * Tue Feb 9 1998 Ian Macdonald <ianmacd@xs4all.nl> |
---|
| 118 | |
---|
| 119 | - first RPM release |
---|