Fix imlib2 inclusion conditions.

This commit is contained in:
Bojan Smojver 2022-01-11 22:20:10 +11:00
parent 72aba3d850
commit ddfdbce073

View File

@ -9,7 +9,7 @@
%global _hardlink /usr/sbin/hardlink
%endif
%if ! 0%{?rhel} <= 8
%if 0%{?fedora} >= 34 || 0%{?rhel} >= 9
%global _with_imlib2 --with-imlib2
%endif
@ -44,7 +44,7 @@ BuildRequires: gcc
BuildRequires: libX11-devel
BuildRequires: libXfixes-devel
BuildRequires: libXrandr-devel
%if ! 0%{?rhel} <= 8
%if 0%{?fedora} >= 34 || 0%{?rhel} >= 9
BuildRequires: imlib2-devel
%endif
BuildRequires: openssl