]> git.pld-linux.org Git - projects/template-specs.git/blame - kernel-module.spec
- smp removed from up.
[projects/template-specs.git] / kernel-module.spec
CommitLineData
f9ab3660 1#
5ff61201
AM
2# Replace MODULE_NAME with real module name and MODULE_DIR
3# with required directory name.
4#
f9ab3660
PS
5# Conditional build:
6%bcond_without dist_kernel # allow non-distribution kernel
7%bcond_without kernel # don't build kernel modules
8%bcond_without smp # don't build SMP module
9%bcond_without userspace # don't build userspace module
10%bcond_with verbose # verbose build (V=1)
f9ab3660
PS
11#
12# main package.
13#
62d8299f
PS
14Summary: -
15Summary(pl): -
16Name: -
17Version: -
18Release: -
19Epoch: -
20License: - (enter GPL/LGPL/BSD/BSD-like/other license name here)
21Group: -
22Vendor: -
23Icon: -
24Source0: %{name}-%{version}.tar.gz
25# Source0-md5: -
26Source1: -
27# Source1-md5: -
28Patch0: %{name}-what.patch
29URL: -
063b9033
JB
30%if %{with kernel}
31%{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.7}
32BuildRequires: rpmbuild(macros) >= 1.153
33%endif
62d8299f
PS
34BuildRequires: -
35PreReq: -
36Requires(pre,post): -
37Requires(preun): -
38Requires(postun): -
39Requires: -
40Provides: -
41Obsoletes: -
42Conflicts: -
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45%description
46
47%description -l pl
f9ab3660
PS
48
49# kernel subpackages.
50
51%package -n kernel-...
52Summary: Linux driver for ...
53Summary(pl): Sterownik dla Linuksa do ...
54Release: %{_rel}@%{_kernel_ver_str}
55Group: Base/Kernel
063b9033 56%{?with_dist_kernel:%requires_releq_kernel_up}
f9ab3660 57Requires(post,postun): /sbin/depmod
cef6d055 58%{?with_dist_kernel:Requires(postun): kernel}
f9ab3660 59
07a953a9 60%description -n kernel-...
f9ab3660
PS
61This is driver for ... for Linux.
62
63This package contains Linux module.
64
07a953a9 65%description -n kernel-... -l pl
f9ab3660
PS
66Sterownik dla Linuksa do ...
67
68