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 Tony Hutter
parent 75318ec497
commit 4356dd23a9

View File

@ -197,7 +197,9 @@ Requires: sudo
Requires: sysstat Requires: sysstat
Requires: rng-tools Requires: rng-tools
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