]>
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: - | |
6e5f56d1 PS |
18 | %define _rel 0.x |
19 | Release: %{_rel} | |
62d8299f PS |
20 | Epoch: - |
21 | License: - (enter GPL/LGPL/BSD/BSD-like/other license name here) | |
22 | Group: - | |
23 | Vendor: - | |
24 | Icon: - | |
25 | Source0: %{name}-%{version}.tar.gz | |
26 | # Source0-md5: - | |
27 | Source1: - | |
28 | # Source1-md5: - | |
29 | Patch0: %{name}-what.patch | |
30 | URL: - | |
063b9033 JB |
31 | %if %{with kernel} |
32 | %{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.7} | |
f7e95648 | 33 | BuildRequires: rpmbuild(macros) >= 1.217 |
063b9033 | 34 | %endif |
62d8299f PS |
35 | BuildRequires: - |
36 | PreReq: - | |
37 | Requires(pre,post): - | |
38 | Requires(preun): - | |
39 | Requires(postun): - | |
40 | Requires: - | |
41 | Provides: - | |
42 | Obsoletes: - | |
43 | Conflicts: - | |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
45 | ||
46 | %description | |
47 | ||
48 | %description -l pl | |
f9ab3660 PS |
49 | |
50 | # kernel subpackages. | |
51 | ||
e85ad390 ER |
52 | %package -n kernel-MODULE_DIR-%{name} |
53 | Summary: Linux driver for %{name} | |
54 | Summary(pl): Sterownik dla Linuksa do %{name} | |
f9ab3660 PS |
55 | Release: %{_rel}@%{_kernel_ver_str} |
56 | Group: Base/Kernel | |
f9ab3660 | 57 | Requires(post,postun): /sbin/depmod |
8fad52ee PS |
58 | %if %{with dist_kernel} |
59 | %requires_releq_kernel_up | |
b76f8d77 | 60 | Requires(postun): %releq_kernel_up |
8fad52ee | 61 | %endif |
f9ab3660 | 62 | |
e85ad390 ER |
63 | %description -n kernel-MODULE_DIR-%{name} |
64 | This is driver for %{name} for Linux. | |
f9ab3660 PS |
65 | |
66 | This package contains Linux module. | |
67 | ||
e85ad390 ER |
68 | %description -n kernel-MODULE_DIR-%{name} -l pl |
69 | Sterownik dla Linuksa do %{name}. | |
f9ab3660 PS |
70 | |
71 |