From 644e01a268ad55dc789a79982d62d3db59660499 Mon Sep 17 00:00:00 2001 From: LOLi Date: Sun, 26 Aug 2018 21:43:27 +0200 Subject: 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(+) (limited to 'rpm/generic') 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 -- cgit v1.2.3