]> git.pld-linux.org Git - packages/fnfx.git/blob - fnfx.spec
d91749d9411f6019f335d27afb176139c910bfa0
[packages/fnfx.git] / fnfx.spec
1 Name:           fnfx
2 Version:        0.2
3 Release:        0.1
4 Summary:        Toshiba laptop function key utility
5 License:        GPL
6 URL:            http://fnfx.sf.net
7 Group:          System/Configuration/Hardware
8 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
9 # Source0-md5:  fb0b2a9d6c5446a4615d907a572fd541
10 Source1:        %{name}.init
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12 Requires(pre):  rpm-helper
13 Requires(post): rpm-helper
14
15 %description
16 FnFX enables owners of Toshiba laptops to change the LCD brightness,
17 control, the internal fan and use the special keys on their keyboard
18 (Fn-x combinations, hot-keys). The internal functions will give the
19 possibility to map the Fn-Keys to functions like volume up/down, mute,
20 suspend to disk, suspend to ram and switch LCD/CRT/TV-out. These
21 functions heavily depend on the system and/or kernel configuration.
22 You will need at least a kernel (v2.4.x, v2.5.x, v2.6.x) with ACPI and
23 Toshiba support (CONFIG_ACPI and CONFIG_ACPI_TOSHIBA).
24
25 %prep
26 %setup -q
27
28 %build
29 %configure
30 %{__make}
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_initrddir}}
35 install -d $RPM_BUILD_ROOT/etc/fnfx
36 install src/{fnfx,fnfxd} $RPM_BUILD_ROOT%{_sbindir}
37 install etc/{fnfxd.conf,keymap} $RPM_BUILD_ROOT/etc/fnfx
38 install %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/fnfx
39
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %post
45 %_post_service %{name}
46
47 %preun
48 %_preun_service %{name}
49
50 %files
51 %defattr(644,root,root,755)
52 %attr(755,root,root) %{_sbindir}/%{name}
53 %attr(755,root,root) %{_sbindir}/*
54 %dir %{_sysconfdir}/%{name}
55 %config(noreplace) %{_sysconfdir}/%{name}/*
56 %config(noreplace) %{_initrddir}/%{name}
57
58 #%doc ChangeLog INSTALL AUTHORS README
This page took 0.03311 seconds and 2 git commands to generate.