From 4356dd23a97483fb0c5934737c0f09be996408b8 Mon Sep 17 00:00:00 2001 From: LOLi Date: Sun, 26 Aug 2018 21:43:27 +0200 Subject: [PATCH] Fix libaio-devel requirement for Debian-based distributions BuildRequires tags for "-devel" packages in the RPM spec file do not work when building on Debian-based distributions. Fix this issue by making this requirement conditional to RPM-based distributions. Reviewed-by: George Melikov Reviewed-by: Brian Behlendorf Signed-off-by: loli10K Closes #7829 Closes #7831 --- rpm/generic/zfs.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 16c5780b9..225657251 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -197,7 +197,9 @@ Requires: sudo Requires: sysstat Requires: rng-tools Requires: libaio +%if 0%{?rhel}%{?fedora}%{?suse_version} BuildRequires: libaio-devel +%endif AutoReqProv: no %description test