]>
Commit | Line | Data |
---|---|---|
d4054fe9 | 1 | # |
d4054fe9 | 2 | # Conditional build: |
3 | %bcond_without dist_kernel # allow non-distribution kernel | |
4 | %bcond_without kernel # don't build kernel modules | |
5 | %bcond_without smp # don't build SMP module | |
6 | %bcond_without userspace # don't build userspace module | |
7 | %bcond_with verbose # verbose build (V=1) | |
8 | # | |
9 | # main package. | |
10 | # | |
d7b3679a | 11 | |
12 | %define mod_name gpib | |
13 | ||
d4054fe9 | 14 | Summary: GPIB Linux Support |
15 | Summary(pl): Sterowniki GPIB dkla Linuksa | |
16 | Name: linux-gpib | |
17 | Version: 3.2.05 | |
18 | %define _rel 0.1 | |
19 | Release: %{_rel} | |
20 | #Epoch: | |
21 | License: GPL | |
22 | Group: Unknown | |
23 | Vendor: PLD | |
24 | #Icon: - | |
25 | Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz | |
d7b3679a | 26 | # Source0-md5: 65044161fe86a815c9c159fe301d85c4 |
d4054fe9 | 27 | #Source1: - |
28 | # Source1-md5: - | |
9e3b7024 | 29 | Patch0: %{name}-Makefile.am.patch |
d4054fe9 | 30 | URL: http://linux-gpib.sourceforge.net/ |
31 | %if %{with kernel} | |
32 | %{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.7} | |
33 | BuildRequires: rpmbuild(macros) >= 1.153 | |
34 | %endif | |
35 | BuildRequires: kernel-headers >= 2.6.8 | |
d7b3679a | 36 | #PreReq: - |
d4054fe9 | 37 | Requires(pre,post): kernel >= 2.6.8 |
d7b3679a | 38 | #Requires(preun): - |
39 | #Requires(postun): - | |
40 | Requires: kernel-up >= 2.6.8 | |
41 | #Provides: - | |
42 | #Obsoletes: - | |
43 | #Conflicts: - | |
d4054fe9 | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
46 | %description | |
47 | ||
48 | %description -l pl | |
49 | ||
50 | # kernel subpackages. | |
d7b3679a | 51 | |
52 | %package -n kernel-%{mod_name} | |
53 | Summary: Linux driver for %{name} | |
54 | Summary(pl): Sterownik dla Linuksa do %{name} | |
55 | Release: %{_rel}@%{_kernel_ver_str} | |
56 | Group: Base/Kernel | |
57 | Requires(post,postun): /sbin/depmod | |
58 | %if %{with dist_kernel} | |
59 | %requires_releq_kernel_up | |
60 | Requires(postun): %releq_kernel_up | |
61 | %endif | |
62 | ||
63 | %description -n kernel-%{mod_name} | |
64 | This is driver for %{name} for Linux. | |
65 | ||
66 | This package contains Linux module. | |
67 | ||
68 | %description -n kernel-%{mod_name} -l pl | |
69 | Sterownik dla Linuksa do %{name}. | |
70 | ||
71 |