From ddfdbce0735daf5a1959334e98712fa2bfd763b0 Mon Sep 17 00:00:00 2001 From: Bojan Smojver Date: Tue, 11 Jan 2022 22:20:10 +1100 Subject: [PATCH] Fix imlib2 inclusion conditions. --- xrdp.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xrdp.spec b/xrdp.spec index cb38116..7c00974 100644 --- a/xrdp.spec +++ b/xrdp.spec @@ -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