4 Summary: Toshiba laptop function key utility
6 URL: http://fnfx.sf.net
7 Group: System/Configuration/Hardware
8 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
10 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11 Requires(pre): rpm-helper
12 Requires(post): rpm-helper
15 FnFX enables owners of Toshiba laptops to change the LCD brightness,
16 control, the internal fan and use the special keys on their keyboard
17 (Fn-x combinations, hot-keys). The internal functions will give the
18 possibility to map the Fn-Keys to functions like volume up/down, mute,
19 suspend to disk, suspend to ram and switch LCD/CRT/TV-out. These
20 functions heavily depend on the system and/or kernel configuration.
21 You will need at least a kernel (v2.4.x, v2.5.x, v2.6.x) with ACPI and
22 Toshiba support (CONFIG_ACPI and CONFIG_ACPI_TOSHIBA).
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_initrddir}}
34 install -d $RPM_BUILD_ROOT/etc/fnfx
35 install src/{fnfx,fnfxd} $RPM_BUILD_ROOT%{_sbindir}
36 install etc/{fnfxd.conf,keymap} $RPM_BUILD_ROOT/etc/fnfx
37 install %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/fnfx
41 rm -rf $RPM_BUILD_ROOT
44 %_post_service %{name}
47 %_preun_service %{name}
50 %defattr(644,root,root,755)
51 %attr(755,root,root) %{_sbindir}/%{name}
52 %attr(755,root,root) %{_sbindir}/*
53 %dir %{_sysconfdir}/%{name}
54 %config(noreplace) %{_sysconfdir}/%{name}/*
55 %config(noreplace) %{_initrddir}/%{name}
57 #%doc ChangeLog INSTALL AUTHORS README