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 <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #7829 
Closes #7831
This commit is contained in:
LOLi 2018-08-26 21:43:27 +02:00 committed by Brian Behlendorf
parent 55972a6724
commit 644e01a268
1 changed files with 2 additions and 0 deletions

View File

@ -203,7 +203,9 @@ Requires: acl
Requires: sudo Requires: sudo
Requires: sysstat Requires: sysstat
Requires: libaio Requires: libaio
%if 0%{?rhel}%{?fedora}%{?suse_version}
BuildRequires: libaio-devel BuildRequires: libaio-devel
%endif
AutoReqProv: no AutoReqProv: no
%description test %description test