]> git.pld-linux.org Git - packages/acerhk.git/blob - acerhk.spec
- release 46
[packages/acerhk.git] / acerhk.spec
1 #
2 # Conditional build:
3 %bcond_without  dist_kernel     # without distribution kernel
4 #
5 %define         rel     46
6 Summary:        Linux driver for Acer notebook special Hot Keys
7 Summary(pl.UTF-8):      Sterownik dla Linuksa obsługujący specjalne klawisze w notebookach Acer
8 Name:           acerhk
9 Version:        0.5.35
10 Release:        %{rel}
11 License:        GPL
12 Group:          Base/Kernel
13 Source0:        http://www.cakey.de/acerhk/archives/%{name}-%{version}.tar.bz2
14 # Source0-md5:  551285657c8ba338f23595af257d21df
15 Patch0:         %{name}-2.6.24.patch
16 Patch1:         %{name}-2.6.30.patch
17 URL:            http://www.cakey.de/acerhk/
18 BuildRequires:  %{kgcc_package}
19 %{?with_dist_kernel:BuildRequires:      kernel-module-build >= 3:2.6.20.2}
20 BuildRequires:  rpmbuild(macros) >= 1.379
21 Requires(post,postun):  /sbin/depmod
22 ExclusiveArch:  %{x8664} %{ix86}
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define modules acerhk
26
27 %description
28 This is a Linux driver for Acer notebook special Hot Keys.
29
30 %description -l pl.UTF-8
31 Sterownik dla Linuksa pozwalający uaktywnić specjalne przyciski w
32 notebookach Acer.
33
34 %package -n kernel%{_alt_kernel}-misc-acerhk
35 Summary:        Linux driver for Acer notebook special Hot Keys
36 Summary(pl.UTF-8):      Sterownik dla Linuksa obsługujący specjalne klawisze w notebookach Acer
37 Release:        %{rel}@%{_kernel_ver_str}
38 Group:          Base/Kernel
39 %{?with_dist_kernel:%requires_releq_kernel}
40 Requires(post,postun):  /sbin/depmod
41
42 %description -n kernel%{_alt_kernel}-misc-acerhk
43 This is a Linux driver for Acer notebook special Hot Keys.
44
45 %description -n kernel%{_alt_kernel}-misc-acerhk -l pl.UTF-8
46 Sterownik dla Linuksa pozwalający uaktywnić specjalne przyciski w
47 notebookach Acer.
48
49 %prep
50 %setup -q
51 %patch0 -p1
52 %patch1 -p1
53
54 %build
55 %build_kernel_modules -m %{modules}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %install_kernel_modules -m %{modules} -d misc
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %post   -n kernel%{_alt_kernel}-misc-%{name}
66 %depmod %{_kernel_ver}
67
68 %postun -n kernel%{_alt_kernel}-misc-%{name}
69 %depmod %{_kernel_ver}
70
71 %files -n kernel%{_alt_kernel}-misc-%{name}
72 %defattr(644,root,root,755)
73 %doc NEWS INSTALL README doc/*
74 /lib/modules/%{_kernel_ver}/misc/*.ko*
This page took 0.055231 seconds and 3 git commands to generate.