From: LOLi Date: Sun, 26 Aug 2018 19:43:27 +0000 (+0200) Subject: Fix libaio-devel requirement for Debian-based distributions X-Git-Tag: zfs-0.8.0-rc1~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=644e01a268ad55dc789a79982d62d3db59660499;p=zfs 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 --- diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 132b0402f..a26f925e4 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -203,7 +203,9 @@ Requires: acl Requires: sudo Requires: sysstat Requires: libaio +%if 0%{?rhel}%{?fedora}%{?suse_version} BuildRequires: libaio-devel +%endif AutoReqProv: no %description test