aboutsummaryrefslogtreecommitdiffstats
path: root/rpm/fedora/zfs-kmod.spec.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2013-03-25 11:28:18 -0700
committerBrian Behlendorf <[email protected]>2013-03-25 13:28:19 -0700
commit0df23ca9a18bcc3b76319a3c0b93359a5468d016 (patch)
treeb95700b94993e5bc80ba841dc43d7102abeda9db /rpm/fedora/zfs-kmod.spec.in
parentf6fb7651a0d05b357dc179cc4853263ce15da6ed (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 'rpm/fedora/zfs-kmod.spec.in')
-rw-r--r--rpm/fedora/zfs-kmod.spec.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpm/fedora/zfs-kmod.spec.in b/rpm/fedora/zfs-kmod.spec.in
index ac5f42a24..323b99f4a 100644
--- a/rpm/fedora/zfs-kmod.spec.in
+++ b/rpm/fedora/zfs-kmod.spec.in
@@ -30,8 +30,9 @@ ExcludeArch: ppc ppc64
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} }