diff options
author | Brian Behlendorf <[email protected]> | 2013-03-25 11:18:11 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-03-25 13:30:22 -0700 |
commit | 8636968f9a24e4a1cce1753ca68631a0ae2ced71 (patch) | |
tree | 6987b7932196f4fdb28f201ba452870a38b06741 /scripts/kmodtool | |
parent | c14183adcabd020b72c29f224f94bd90f9cead12 (diff) |
Provide ${kmodname}-devel-kmod for yum-builddep
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 <[email protected]>
Diffstat (limited to 'scripts/kmodtool')
-rwxr-xr-x | scripts/kmodtool | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/kmodtool b/scripts/kmodtool index 2170c4a90..2fe014c7f 100755 --- a/scripts/kmodtool +++ b/scripts/kmodtool @@ -243,7 +243,8 @@ print_rpmtemplate_per_kmoddevelpkg () 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 |