Provide ${kmodname}-devel-kmod for yum-builddep
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 25 Mar 2013 18:28:18 +0000 (11:28 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 25 Mar 2013 20:28:19 +0000 (13:28 -0700)
commit0df23ca9a18bcc3b76319a3c0b93359a5468d016
treeb95700b94993e5bc80ba841dc43d7102abeda9db
parentf6fb7651a0d05b357dc179cc4853263ce15da6ed
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 <behlendorf1@llnl.gov>
rpm/fedora/zfs-kmod.spec.in
rpm/generic/zfs-kmod.spec.in
scripts/kmodtool