]>
Commit | Line | Data |
---|---|---|
867f2424 | 1 | Summary: Toshiba laptop function key utility |
b26e8c33 | 2 | Summary(pl.UTF-8): Narzędzie do obsługi klawisza funkcyjnego w laptopach firmy Toshiba |
dce79cb4 | 3 | Name: fnfx |
8646a474 | 4 | Version: 0.3 |
9890cc01 | 5 | Release: 5 |
31597258 | 6 | License: GPL v2 |
867f2424 JB |
7 | Group: Applications/System |
8 | Source0: http://dl.sourceforge.net/fnfx/%{name}-%{version}.tar.gz | |
8646a474 | 9 | # Source0-md5: 2487730494a8ff86d83d9cf7e6a67325 |
dce79cb4 | 10 | Source1: %{name}.init |
2245c050 | 11 | Patch0: %{name}-shad.patch |
31597258 | 12 | URL: http://fnfx.sourceforge.net/ |
580218f3 | 13 | BuildRequires: rpmbuild(macros) >= 1.268 |
ea005a35 | 14 | Requires(post,preun): /sbin/chkconfig |
15 | Requires: rc-scripts | |
867f2424 | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
dce79cb4 | 17 | |
18 | %description | |
19 | FnFX enables owners of Toshiba laptops to change the LCD brightness, | |
867f2424 | 20 | control the internal fan and use the special keys on their keyboard |
dce79cb4 | 21 | (Fn-x combinations, hot-keys). The internal functions will give the |
22 | possibility to map the Fn-Keys to functions like volume up/down, mute, | |
23 | suspend to disk, suspend to ram and switch LCD/CRT/TV-out. These | |
24 | functions heavily depend on the system and/or kernel configuration. | |
867f2424 JB |
25 | You will need at least a kernel (v2.4.x, v2.6.x) with ACPI and Toshiba |
26 | support (CONFIG_ACPI and CONFIG_ACPI_TOSHIBA). | |
27 | ||
b51e73e5 JR |
28 | %description -l pl.UTF-8 |
29 | FnFx pozwala posiadaczom laptopów firmy Toshiba na zmianę jasności | |
30 | wyświetlacza LCD, sterowanie wewnętrznym wiatraczkiem i korzystanie z | |
31 | klawiszy specjalnych na klawiaturze (kombinacji Fn-x, skrótów | |
32 | klawiszowych). Wewnętrzne funkcje dają możliwość mapowania kombinacji | |
33 | Fn-klawisz na funkcje takie jak zmiana głośności, wyciszenie, | |
34 | suspend-to-disk, suspend-to-ram oraz przełączanie LCD/CRT/TV-out. Te | |
35 | funkcje w dużym stopniu są zależne od konfiguracji systemu i/lub | |
36 | jądra. Potrzebne jest co najmniej jądro (2.4.x, 2.6.x) z obsługą ACPI | |
867f2424 | 37 | i Toshiby (CONFIG_ACPI i CONFIG_ACPI_TOSHIBA). |
dce79cb4 | 38 | |
39 | %prep | |
40 | %setup -q | |
2245c050 | 41 | %patch0 -p0 |
dce79cb4 | 42 | |
43 | %build | |
44 | %configure | |
45 | %{__make} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
9a2ecf8e | 49 | install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d,%{_sysconfdir}/fnfx,%{_bindir}} |
31597258 | 50 | |
9a2ecf8e | 51 | install src/fnfxd $RPM_BUILD_ROOT%{_sbindir} |
52 | install src/fnfx $RPM_BUILD_ROOT%{_bindir} | |
ea005a35 | 53 | install etc/{fnfxd.conf,keymap} $RPM_BUILD_ROOT%{_sysconfdir}/fnfx |
867f2424 | 54 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/fnfx |
dce79cb4 | 55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %post | |
a710a760 | 60 | /sbin/chkconfig --add %{name} |
ea005a35 | 61 | %service fnfx restart |
dce79cb4 | 62 | |
63 | %preun | |
a710a760 | 64 | if [ "$1" = "0" ]; then |
ea005a35 | 65 | %service fnfx stop |
66 | /sbin/chkconfig --del %{name} | |
a710a760 | 67 | fi |
dce79cb4 | 68 | |
69 | %files | |
70 | %defattr(644,root,root,755) | |
31597258 | 71 | %doc AUTHORS ChangeLog README |
9a2ecf8e | 72 | %attr(755,root,root) %{_sbindir}/fnfxd |
73 | %attr(755,root,root) %{_bindir}/fnfx | |
31597258 | 74 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name} |
ea005a35 | 75 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |