]> git.pld-linux.org Git - packages/fnfx.git/blob - fnfx.spec
- rel 5 to rebuild with UTF-8 descriptions
[packages/fnfx.git] / fnfx.spec
1 Summary:        Toshiba laptop function key utility
2 Summary(pl.UTF-8):      Narzędzie do obsługi klawisza funkcyjnego w laptopach firmy Toshiba
3 Name:           fnfx
4 Version:        0.3
5 Release:        5
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        http://dl.sourceforge.net/fnfx/%{name}-%{version}.tar.gz
9 # Source0-md5:  2487730494a8ff86d83d9cf7e6a67325
10 Source1:        %{name}.init
11 Patch0:         %{name}-shad.patch
12 URL:            http://fnfx.sourceforge.net/
13 BuildRequires:  rpmbuild(macros) >= 1.268
14 Requires(post,preun):   /sbin/chkconfig
15 Requires:       rc-scripts
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 FnFX enables owners of Toshiba laptops to change the LCD brightness,
20 control the internal fan and use the special keys on their keyboard
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.
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
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
37 i Toshiby (CONFIG_ACPI i CONFIG_ACPI_TOSHIBA).
38
39 %prep
40 %setup -q
41 %patch0 -p0
42
43 %build
44 %configure
45 %{__make}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d,%{_sysconfdir}/fnfx,%{_bindir}}
50
51 install src/fnfxd $RPM_BUILD_ROOT%{_sbindir}
52 install src/fnfx $RPM_BUILD_ROOT%{_bindir}
53 install etc/{fnfxd.conf,keymap} $RPM_BUILD_ROOT%{_sysconfdir}/fnfx
54 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/fnfx
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %post
60 /sbin/chkconfig --add %{name}
61 %service fnfx restart
62
63 %preun
64 if [ "$1" = "0" ]; then
65         %service fnfx stop
66         /sbin/chkconfig --del %{name}
67 fi
68
69 %files
70 %defattr(644,root,root,755)
71 %doc AUTHORS ChangeLog README
72 %attr(755,root,root) %{_sbindir}/fnfxd
73 %attr(755,root,root) %{_bindir}/fnfx
74 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}
75 %attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.033005 seconds and 3 git commands to generate.