]> git.pld-linux.org Git - packages/i8kutils.git/blob - i8kutils.spec
- tools need to be in bindir
[packages/i8kutils.git] / i8kutils.spec
1 Summary:        User-space programs for Dell Inspiron and Latitude laptops
2 Summary(pl.UTF-8):      Programy przestrzeni użytkownika dla laptopów Dell Inspiron i Latitude
3 Name:           i8kutils
4 Version:        1.42
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Source0:        https://launchpad.net/i8kutils/trunk/%{version}/+download/%{name}_%{version}.tar.xz
9 # Source0-md5:  7470b2908b39a41e3f26b8b3398e189d
10 Patch0:         %{name}-build.patch
11 Source1:        %{name}.init
12 Source2:        i8kbuttons.aumix
13 Source3:        i8kbuttons.conf
14 URL:            https://launchpad.net/i8kutils
15 Requires:       aumix
16 Requires:       tcl
17 Requires:       tk
18 ExclusiveArch:  %{ix86} %{x8664}
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 This package contains a user-space programs for accessing the SMM BIOS
23 of Dell Inspiron and Latitude laptops. The SMM BIOS is used on many
24 recent laptops to implement APM functionalities and to access custom
25 hardware, for example the cooling fans and volume buttons.
26
27 %description -l pl.UTF-8
28 Ten pakiet zawiera programy działające w przestrzeni użytkownika
29 służące do dostępu do SMM BIOS-u laptopów Dell Inspiron i Latitude.
30 SMM BIOS w nowych laptopach służy do implementowania funkcjonalności
31 APM i dostępu do specyficznego sprzętu, na przykład wiatraczków
32 chłodzących i przycisków głośności.
33
34 %prep
35 %setup -q -n %{name}
36 %patch0 -p1
37
38 %build
39 %{__make} \
40         CC="%{__cc}" \
41         CFLAGS="%{rpmcppflags} %{rpmcflags} -Wall"
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_bindir}
46 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
47 install -d $RPM_BUILD_ROOT%{_mandir}/man1
48
49 cp -p i8kmon.conf $RPM_BUILD_ROOT%{_sysconfdir}
50 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
51 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}
52 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
53 cp -p i8kctl.1 i8kmon.1 $RPM_BUILD_ROOT%{_mandir}/man1
54
55 cp -p i8kctl i8kfan i8kmon probe_i8k_calls_time \
56         $RPM_BUILD_ROOT%{_bindir}
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %post
62 echo
63 echo "Now modprobe i8k module."
64 echo
65 echo "Since than you'll be able to control fans and buttons."
66 echo
67
68 %files
69 %defattr(644,root,root,755)
70 %doc README.i8kutils TODO
71 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/i8kbuttons.conf
72 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/i8kmon.conf
73 %attr(754,root,root) /etc/rc.d/init.d/i8kutils
74 %attr(755,root,root) %{_bindir}/i8kbuttons.aumix
75 %attr(755,root,root) %{_bindir}/i8kctl
76 %attr(755,root,root) %{_bindir}/i8kfan
77 %attr(755,root,root) %{_bindir}/i8kmon
78 %attr(755,root,root) %{_bindir}/probe_i8k_calls_time
79 %{_mandir}/man1/i8kctl.1*
80 %{_mandir}/man1/i8kmon.1*
81
This page took 0.13063 seconds and 3 git commands to generate.