aboutsummaryrefslogtreecommitdiffstats
path: root/rpm/generic/zfs-kmod.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'rpm/generic/zfs-kmod.spec.in')
-rw-r--r--rpm/generic/zfs-kmod.spec.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/rpm/generic/zfs-kmod.spec.in b/rpm/generic/zfs-kmod.spec.in
index 6e4bfdcfe..1692be1a7 100644
--- a/rpm/generic/zfs-kmod.spec.in
+++ b/rpm/generic/zfs-kmod.spec.in
@@ -57,6 +57,13 @@ BuildRequires: gcc, make
BuildRequires: elfutils-libelf-devel
%endif
+%if 0%{?rhel}%{?fedora}%{?suse_version}
+# We don't directly use it, but if this isn't installed, rpmbuild as root can
+# crash+corrupt rpmdb
+# See issue #12071
+BuildRequires: ncompress
+%endif
+
# The developments headers will conflict with the dkms packages.
Conflicts: %{module}-dkms