aboutsummaryrefslogtreecommitdiffstats
path: root/rpm/generic
diff options
context:
space:
mode:
authorLOLi <[email protected]>2018-08-26 21:43:27 +0200
committerBrian Behlendorf <[email protected]>2018-08-26 12:43:27 -0700
commit644e01a268ad55dc789a79982d62d3db59660499 (patch)
tree03a9481e492c7a8ff25472f2e1faacb64f7dec62 /rpm/generic
parent55972a6724ca49d98d67a47fe0f0b28ad21260d5 (diff)
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: loli10K <[email protected]> Closes #7829 Closes #7831
Diffstat (limited to 'rpm/generic')
-rw-r--r--rpm/generic/zfs.spec.in2
1 files changed, 2 insertions, 0 deletions
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