1 | %define pprefver 0.4.3 |
---|
2 | |
---|
3 | Summary: daemon to control the functions of hotkeys found on recent Macs |
---|
4 | Summary(ja): Mac ¤Î¥Û¥Ã¥È¥¡¼¤òÍøÍѲÄǽ¤Ë¤¹¤ë¥Ç¡¼¥â¥ó |
---|
5 | Name: pbbuttonsd |
---|
6 | Version: 0.5.8 |
---|
7 | Release: 0vl1 |
---|
8 | Copyright: GPL |
---|
9 | Group: Utilities/System |
---|
10 | URL: http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html |
---|
11 | Source0: http://www.cymes.de/members/joker/projects/pbbuttons/tar/%{name}-%{version}.tar.gz |
---|
12 | Source1: http://www.cymes.de/members/joker/projects/pbbuttons/tar/powerprefs-%{pprefver}.tar.gz |
---|
13 | Source10: pbbuttonsd.init |
---|
14 | Patch100: powerprefs-0.4.2-pbb055.patch |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | Obsoletes: pbbuttons |
---|
17 | BuildRequires: SysVinit >= 2.85, gtk2-devel |
---|
18 | Vendor: Project Vine |
---|
19 | Distribution: Vine Linux |
---|
20 | Packager: MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
21 | |
---|
22 | |
---|
23 | %description |
---|
24 | PBButtons is a program which make the special hotkeys of an Apple iBook, |
---|
25 | PowerBook or TiBook (or recent PowerMacs' keyboards) working as expected. |
---|
26 | With this program the keys for the display brightness, the volume of |
---|
27 | speaker and headphone, the mute key and the eject key will do their jobs |
---|
28 | as expected. |
---|
29 | |
---|
30 | |
---|
31 | %description -l ja |
---|
32 | PBButtons ¤Ï Apple iBook, PowerBook, TiBook (°¿¤¤¤ÏºÇ¶á¤Î PowerMac) ¤Î |
---|
33 | ¥¡¼¥Ü¡¼¥É¤Î¡Ö¥Û¥Ã¥È¥¡¼¡×¤ò´üÂԤɤª¤ê¤ËÆ°ºî¤µ¤»¤ë¤¿¤á¤Î¤â¤Î¤Ç¤¹¡¥ |
---|
34 | ¤³¤Î¥×¥í¥°¥é¥à¤ò»È¤¦¤È¡¤¥Ç¥£¥¹¥×¥ì¥¤¾ÈÅÙÄ´Àᡤ¥¹¥Ô¡¼¥«¡¼¤Î²»ÎÌÄ´Àᡤ |
---|
35 | ¥ß¥å¡¼¥È¡¤CD-ROM ¤Î¥¤¥¸¥§¥¯¥È¤È¤¤¤Ã¤¿¥Û¥Ã¥È¥¡¼¤ò»ÈÍѤ¹¤ë»ö¤¬½ÐÍè¤Þ¤¹¡¥ |
---|
36 | |
---|
37 | |
---|
38 | %prep |
---|
39 | %setup -q -a 1 |
---|
40 | |
---|
41 | pushd powerprefs-%{pprefver} |
---|
42 | cp ../libpbbipc/*.h src/ |
---|
43 | #%patch100 -p1 |
---|
44 | popd |
---|
45 | |
---|
46 | %build |
---|
47 | %configure |
---|
48 | make |
---|
49 | |
---|
50 | pushd powerprefs-%{pprefver} |
---|
51 | %configure |
---|
52 | perl -pi -e 's/#define HAVE_OLDLIBPBB 1//g' config.h |
---|
53 | make LIBS="-L%{_builddir}/%{name}-%{version}/libpbbipc -lpbb" |
---|
54 | popd |
---|
55 | |
---|
56 | %install |
---|
57 | [ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != / ] \ |
---|
58 | && rm -rf ${RPM_BUILD_ROOT} |
---|
59 | |
---|
60 | mkdir -p ${RPM_BUILD_ROOT}/etc/power |
---|
61 | |
---|
62 | %makeinstall |
---|
63 | |
---|
64 | pushd powerprefs-%{pprefver} |
---|
65 | %makeinstall |
---|
66 | popd |
---|
67 | |
---|
68 | mkdir -p ${RPM_BUILD_ROOT}%{_initdir} |
---|
69 | install -m 755 %{SOURCE10} \ |
---|
70 | ${RPM_BUILD_ROOT}%{_initdir}/pbbuttonsd |
---|
71 | |
---|
72 | # XXX Fix me |
---|
73 | rm -f ${RPM_BUILD_ROOT}/etc/pbbuttonsd.conf |
---|
74 | cp pbbuttonsd.conf ${RPM_BUILD_ROOT}/etc/pbbuttonsd.conf |
---|
75 | |
---|
76 | %find_lang %{name} |
---|
77 | |
---|
78 | |
---|
79 | %clean |
---|
80 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
81 | |
---|
82 | |
---|
83 | %post |
---|
84 | /sbin/chkconfig --add pbbuttonsd |
---|
85 | |
---|
86 | if [ -f /var/lock/subsys/pbbuttonsd ] ; then |
---|
87 | %{_initdir}/pbbuttonsd restart |
---|
88 | fi |
---|
89 | |
---|
90 | |
---|
91 | %preun |
---|
92 | if [ $1 = 0 ] ; then |
---|
93 | /sbin/chkconfig --del pbbuttonsd |
---|
94 | |
---|
95 | if [ -f /var/lock/subsys/pbbuttonsd ] ; then |
---|
96 | %{_initdir}/pbbuttonsd stop |
---|
97 | fi |
---|
98 | fi |
---|
99 | |
---|
100 | |
---|
101 | %triggerpostun -- pbbuttons |
---|
102 | /sbin/chkconfig --add pbbuttonsd |
---|
103 | |
---|
104 | |
---|
105 | %triggerpostun -- pbbuttonsd < 0.5.3-0vl1 |
---|
106 | /sbin/chkconfig --add pbbuttonsd |
---|
107 | |
---|
108 | |
---|
109 | %files -f %{name}.lang |
---|
110 | %defattr(-, root, root) |
---|
111 | %doc ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO |
---|
112 | %config %{_initdir}/pbbuttonsd |
---|
113 | %config %{_sysconfdir}/pbbuttonsd.conf |
---|
114 | %{_sysconfdir}/power/* |
---|
115 | %{_bindir}/* |
---|
116 | %{_datadir}/powerprefs/* |
---|
117 | %{_libdir}/* |
---|
118 | %{_includedir}/* |
---|
119 | %{_mandir}/*/* |
---|
120 | |
---|
121 | |
---|
122 | %changelog |
---|
123 | * Wed Feb 04 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.5.8-0vl1 |
---|
124 | - updated to pbbuttonsd-0.5.8 and powerprefs-0.4.3 |
---|
125 | |
---|
126 | * Wed Dec 10 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.5.6-1vl2 |
---|
127 | - rebuild with kernel-2.4.23-0vl1 |
---|
128 | |
---|
129 | * Mon Nov 17 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.5.6-0vl1 |
---|
130 | - source update |
---|
131 | |
---|
132 | * Mon Nov 10 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.5.5-0vl1 |
---|
133 | - source update |
---|
134 | - added BuildRequires section |
---|
135 | - added powerprefs |
---|
136 | |
---|
137 | * Mon Mar 24 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.5.3-0vl1 |
---|
138 | - source update |
---|
139 | |
---|
140 | * Sun Mar 17 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.4.2a-0vl3 |
---|
141 | - modified init script to match 0.4.2a's pbbuttonsd retval |
---|
142 | (now non-error returns 0, as expected) |
---|
143 | |
---|
144 | * Fri Mar 15 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.4.2a-0vl2 |
---|
145 | - modified %preun, added %triggerpostun |
---|
146 | |
---|
147 | * Mon Mar 11 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.4.2a-0vl1 |
---|
148 | - updated to the upstream bugfix release |
---|
149 | |
---|
150 | * Fri Mar 08 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.4.2-0vl1 |
---|
151 | - updated to the new upstream release |
---|
152 | - now pbbuttonsd and gtkpbbuttons are in separated package (as expected) |
---|
153 | |
---|
154 | * Mon Mar 04 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.4-0vl1 |
---|
155 | - updated in sync with the new upstream release |
---|
156 | - added init script |
---|
157 | |
---|
158 | * Mon Mar 04 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.3.3-0vl2 |
---|
159 | - added xinit script |
---|
160 | |
---|
161 | * Tue Feb 26 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.3.3-0vl1 |
---|
162 | - initial rpm package for Vine Linux |
---|