]>
Commit | Line | Data |
---|---|---|
60cd4962 ER |
1 | # Conditional build: |
2 | %bcond_without dist_kernel # allow non-distribution kernel | |
3 | %bcond_without kernel # don't build kernel modules | |
d6b3e891 ER |
4 | %bcond_without up # don't build SMP module |
5 | %bcond_without smp # don't build SMP module | |
60cd4962 ER |
6 | %bcond_without userspace # don't build userspace programs |
7 | %bcond_with verbose # verbose build (V=1) | |
8 | ||
9 | %if %{without kernel} | |
10 | %undefine with_dist_kernel | |
11 | %endif | |
12 | ||
d6b3e891 ER |
13 | %ifarch %{x8664} |
14 | %undefine with_up | |
15 | %endif | |
16 | ||
17 | %define __kernel_ver 2.6.5-7.252 | |
18 | %define __kernel_rpmvr %{__kernel_ver} | |
19 | ||
60cd4962 ER |
20 | # |
21 | # main package. | |
22 | # | |
d6b3e891 | 23 | %define _rel 0.4 |
60cd4962 ER |
24 | Summary: EMC PowerPath |
25 | Name: EMCpower | |
26 | Version: 4.5.1 | |
27 | Release: %{_rel} | |
28 | License: Proprietary (not distributable) | |
29 | Group: Base/Kernel | |
30 | Source0: %{name}.LINUX-%{version}-022.sles.i386.rpm | |
31 | # NoSource0-md5: ed93c4daa2169b992c888ef5c27a6334 | |
32 | Source1: %{name}.LINUX-%{version}-022.sles.x86_64.rpm | |
33 | # NoSource1-md5: b9e452479cff19640dee5431ff96f56c | |
34 | %if %{with kernel} | |
35 | %{?with_dist_kernel:BuildRequires: kernel-module-build >= 3:2.6.14} | |
36 | BuildRequires: rpmbuild(macros) >= 1.286 | |
37 | %endif | |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %description | |
41 | Multi-path software providing fail-over and load-sharing for SCSI | |
42 | disks. | |
43 | ||
44 | # kernel subpackages. | |
45 | ||
46 | %package -n kernel-block-emc | |
47 | Summary: Linux driver for emc | |
48 | Summary(pl): Sterownik dla Linuksa do emc | |
49 | Release: %{_rel}@%{_kernel_ver_str} | |
50 | Group: Base/Kernel | |
51 | Requires(post,postun): /sbin/depmod | |
52 | %if %{with dist_kernel} | |
53 | %requires_releq_kernel_up | |
54 | Requires(postun): %releq_kernel_up | |
55 | %endif | |
56 | ||
57 | %description -n kernel-block-emc | |
58 | This is driver for emc for Linux. | |
59 | ||
60 | This package contains Linux module. | |
61 | ||
62 | %description -n kernel-block-emc -l pl | |
63 | Sterownik dla Linuksa do emc. | |
64 | ||
65 |