Summary: Toshiba laptop function key utility Summary(pl.UTF-8): Narzędzie do obsługi klawisza funkcyjnego w laptopach firmy Toshiba Name: fnfx Version: 0.3 Release: 5 License: GPL v2 Group: Applications/System Source0: http://dl.sourceforge.net/fnfx/%{name}-%{version}.tar.gz # Source0-md5: 2487730494a8ff86d83d9cf7e6a67325 Source1: %{name}.init Patch0: %{name}-shad.patch URL: http://fnfx.sourceforge.net/ BuildRequires: rpmbuild(macros) >= 1.268 Requires(post,preun): /sbin/chkconfig Requires: rc-scripts BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description FnFX enables owners of Toshiba laptops to change the LCD brightness, control the internal fan and use the special keys on their keyboard (Fn-x combinations, hot-keys). The internal functions will give the possibility to map the Fn-Keys to functions like volume up/down, mute, suspend to disk, suspend to ram and switch LCD/CRT/TV-out. These functions heavily depend on the system and/or kernel configuration. You will need at least a kernel (v2.4.x, v2.6.x) with ACPI and Toshiba support (CONFIG_ACPI and CONFIG_ACPI_TOSHIBA). %description -l pl.UTF-8 FnFx pozwala posiadaczom laptopów firmy Toshiba na zmianę jasności wyświetlacza LCD, sterowanie wewnętrznym wiatraczkiem i korzystanie z klawiszy specjalnych na klawiaturze (kombinacji Fn-x, skrótów klawiszowych). Wewnętrzne funkcje dają możliwość mapowania kombinacji Fn-klawisz na funkcje takie jak zmiana głośności, wyciszenie, suspend-to-disk, suspend-to-ram oraz przełączanie LCD/CRT/TV-out. Te funkcje w dużym stopniu są zależne od konfiguracji systemu i/lub jądra. Potrzebne jest co najmniej jądro (2.4.x, 2.6.x) z obsługą ACPI i Toshiby (CONFIG_ACPI i CONFIG_ACPI_TOSHIBA). %prep %setup -q %patch0 -p0 %build %configure %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d,%{_sysconfdir}/fnfx,%{_bindir}} install src/fnfxd $RPM_BUILD_ROOT%{_sbindir} install src/fnfx $RPM_BUILD_ROOT%{_bindir} install etc/{fnfxd.conf,keymap} $RPM_BUILD_ROOT%{_sysconfdir}/fnfx install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/fnfx %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add %{name} %service fnfx restart %preun if [ "$1" = "0" ]; then %service fnfx stop /sbin/chkconfig --del %{name} fi %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog README %attr(755,root,root) %{_sbindir}/fnfxd %attr(755,root,root) %{_bindir}/fnfx %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name} %attr(754,root,root) /etc/rc.d/init.d/%{name}