In order to ensure that yum-builddep pulls in all the build
requirements a generic ${kmodname}-devel-kmod provides line is
added. This allows a version of the development headers to be
included without requiring knowledge of the kernel version.
This is important because unlike rpmbuild which does correctly
expand the source rpm spec file, yum-builddep does not. Without
this generic provides line mock which relies on yum-builddep is
unable to automatically satisfy the dependency.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Conflicts: %{module}-dkms
BuildRequires: %{_bindir}/kmodtool
+BuildRequires: spl-devel-kmod = %{version}-%{release}
-%global KmodsBuildRequires kmod-spl-devel
+%global KmodsBuildRequires spl-devel-kmod
%global KmodsRequires kmod-spl
%{!?kernels:BuildRequires: buildsys-build-rpmfusion-kerneldevpkgs-%{?buildforkernels:%{buildforkernels}}%{!?buildforkernels:current}-%{_target_cpu} }
%{?suse_version:BuildRequires: kernel-source}
%if 0%{?rhel}%{?fedora}%{?suse_version}
-%global KmodsBuildRequires kmod-spl-devel
+BuildRequires: spl-devel-kmod = %{version}-%{release}
+%global KmodsBuildRequires spl-devel-kmod
%global KmodsRequires kmod-spl
%endif
Summary: ${kmodname} kernel module(s) devel for ${kernel_uname_r}
Group: System Environment/Kernel
Requires: ${kmodname}-devel-kmod-common = %{?epoch:%{epoch}:}%{version}-%{release}
-Provides: kmod-${kmodname}-devel-uname-r = ${kernel_uname_r}
+Provides: ${kmodname}-devel-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
+Provides: ${kmodname}-devel-kmod-uname-r = ${kernel_uname_r}
EOF
# second part