Whamcloud - gitweb
LU-19098 hsm: don't print progname twice with lhsmtool
[fs/lustre-release.git] / rpm / kmp-lustre.preamble
1 %if 0%{?suse_version} > 1
2 Requires:       kernel-%1
3 %endif
4 Obsoletes:      %{name}-modules < %{version}
5 License:        GPL-2.0-only
6 # When using multiple lnd the requires are in the external ko2iblnd
7 %if 0%{?enable_multi_lnds} == 0
8 %if %{with mofed}
9 # If not a mofed source install require the devel package
10 %if 0%{?mofed_source} > 0
11 BuildRequires: mlnx-ofa_kernel-devel
12 %endif
13 # For dist, require the mofed kernel modules package regardless
14 %if "%{_vendor}" == "redhat" || "%{_vendor}" == "fedora" || 0%{?openEuler}
15 Requires: kmod-mlnx-ofa_kernel
16 %else
17 Requires: mlnx-ofa_kernel-kmp
18 %endif
19 %endif
20 %endif