]>
Commit | Line | Data |
---|---|---|
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 |
14 | Summary: - |
15 | Summary(pl): - | |
16 | Name: - | |
17 | Version: - | |
18 | Release: - | |
19 | Epoch: - | |
20 | License: - (enter GPL/LGPL/BSD/BSD-like/other license name here) | |
21 | Group: - | |
22 | Vendor: - | |
23 | Icon: - | |
24 | Source0: %{name}-%{version}.tar.gz | |
25 | # Source0-md5: - | |
26 | Source1: - | |
27 | # Source1-md5: - | |
28 | Patch0: %{name}-what.patch | |
29 | URL: - | |
063b9033 JB |
30 | %if %{with kernel} |
31 | %{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.7} | |
32 | BuildRequires: rpmbuild(macros) >= 1.153 | |
33 | %endif | |
62d8299f PS |
34 | BuildRequires: - |
35 | PreReq: - | |
36 | Requires(pre,post): - | |
37 | Requires(preun): - | |
38 | Requires(postun): - | |
39 | Requires: - | |
40 | Provides: - | |
41 | Obsoletes: - | |
42 | Conflicts: - | |
43 | BuildRoot: %{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-... | |
52 | Summary: Linux driver for ... | |
53 | Summary(pl): Sterownik dla Linuksa do ... | |
54 | Release: %{_rel}@%{_kernel_ver_str} | |
55 | Group: Base/Kernel | |
063b9033 | 56 | %{?with_dist_kernel:%requires_releq_kernel_up} |
f9ab3660 | 57 | Requires(post,postun): /sbin/depmod |
cef6d055 | 58 | %{?with_dist_kernel:Requires(postun): kernel} |
f9ab3660 | 59 | |
07a953a9 | 60 | %description -n kernel-... |
f9ab3660 PS |
61 | This is driver for ... for Linux. |
62 | ||
63 | This package contains Linux module. | |
64 | ||
07a953a9 | 65 | %description -n kernel-... -l pl |
f9ab3660 PS |
66 | Sterownik dla Linuksa do ... |
67 | ||
68 |