From 72aba3d8505db0b0b272ce2f9a1d9aa8cd2adaa4 Mon Sep 17 00:00:00 2001 From: Bojan Smojver Date: Tue, 11 Jan 2022 22:05:03 +1100 Subject: [PATCH] Only use imlib2 on EPEL 9 and Fedora. --- xrdp.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xrdp.spec b/xrdp.spec index db453b0..cb38116 100644 --- a/xrdp.spec +++ b/xrdp.spec @@ -9,6 +9,10 @@ %global _hardlink /usr/sbin/hardlink %endif +%if ! 0%{?rhel} <= 8 +%global _with_imlib2 --with-imlib2 +%endif + Summary: Open source remote desktop protocol (RDP) server Name: xrdp Epoch: 1 @@ -40,7 +44,9 @@ BuildRequires: gcc BuildRequires: libX11-devel BuildRequires: libXfixes-devel BuildRequires: libXrandr-devel +%if ! 0%{?rhel} <= 8 BuildRequires: imlib2-devel +%endif BuildRequires: openssl BuildRequires: pam-devel BuildRequires: pkgconfig(fuse) @@ -107,7 +113,7 @@ echo '#!/bin/bash -l %build CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations" \ %configure --enable-fuse --enable-pixman --enable-painter --enable-vsock \ - --enable-ipv6 --with-socketdir=%{_rundir}/%{name} --with-imlib2 + --enable-ipv6 --with-socketdir=%{_rundir}/%{name} %{_with_imlib2} %make_build # SELinux policy module