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