1 Summary: Toshiba laptop function key utility
2 Summary(pl): Narzêdzie do obs³ugi klawisza funkcyjnego w laptopach firmy Toshiba
7 Group: Applications/System
8 Source0: http://dl.sourceforge.net/fnfx/%{name}-%{version}.tar.gz
9 # Source0-md5: 2487730494a8ff86d83d9cf7e6a67325
11 URL: http://fnfx.sourceforge.net/
12 Requires(post,preun): /sbin/chkconfig
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 FnFX enables owners of Toshiba laptops to change the LCD brightness,
17 control the internal fan and use the special keys on their keyboard
18 (Fn-x combinations, hot-keys). The internal functions will give the
19 possibility to map the Fn-Keys to functions like volume up/down, mute,
20 suspend to disk, suspend to ram and switch LCD/CRT/TV-out. These
21 functions heavily depend on the system and/or kernel configuration.
22 You will need at least a kernel (v2.4.x, v2.6.x) with ACPI and Toshiba
23 support (CONFIG_ACPI and CONFIG_ACPI_TOSHIBA).
26 FnFx pozwala posiadaczom laptopów firmy Toshiba na zmianê jasno¶ci
27 wy¶wietlacza LCD, sterowanie wewnêtrznym wiatraczkiem i korzystanie z
28 klawiszy specjalnych na klawiaturze (kombinacji Fn-x, skrótów
29 klawiszowych). Wewnêtrzne funkcje daj± mo¿liwo¶æ mapowania kombinacji
30 Fn-klawisz na funkcje takie jak zmiana g³o¶no¶ci, wyciszenie,
31 suspend-to-disk, suspend-to-ram oraz prze³±czanie LCD/CRT/TV-out. Te
32 funkcje w du¿ym stopniu s± zale¿ne od konfiguracji systemu i/lub
33 j±dra. Potrzebne jest co najmniej j±dro (2.4.x, 2.6.x) z obs³ug± ACPI
34 i Toshiby (CONFIG_ACPI i CONFIG_ACPI_TOSHIBA).
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d,%{_sysconfdir}/fnfx,%{_bindir}}
47 install src/fnfxd $RPM_BUILD_ROOT%{_sbindir}
48 install src/fnfx $RPM_BUILD_ROOT%{_bindir}
49 install etc/{fnfxd.conf,keymap} $RPM_BUILD_ROOT/etc/fnfx
50 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/fnfx
53 rm -rf $RPM_BUILD_ROOT
56 /sbin/chkconfig --add %{name}
57 if [ -f /var/lock/subsys/%{name} ]; then
58 /etc/rc.d/init.d/%{name} restart >&2
60 echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon." >&2
64 if [ "$1" = "0" ]; then
65 if [ -f /var/lock/subsys/%{name} ]; then
66 /etc/rc.d/init.d/%{name} stop >&2
68 /sbin/chkconfig --del %{name}
72 %defattr(644,root,root,755)
73 %doc AUTHORS ChangeLog README
74 %attr(755,root,root) %{_sbindir}/fnfxd
75 %attr(755,root,root) %{_bindir}/fnfx
76 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}
77 %attr(754,root,root) /etc/rc.d/init.d/%{name}