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