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