Only use imlib2 on EPEL 9 and Fedora.

This commit is contained in:
Bojan Smojver 2022-01-11 22:05:03 +11:00
parent ffa22d87de
commit 72aba3d850

View File

@ -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