Only use imlib2 on EPEL 9 and Fedora.
This commit is contained in:
parent
ffa22d87de
commit
72aba3d850
@ -9,6 +9,10 @@
|
|||||||
%global _hardlink /usr/sbin/hardlink
|
%global _hardlink /usr/sbin/hardlink
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if ! 0%{?rhel} <= 8
|
||||||
|
%global _with_imlib2 --with-imlib2
|
||||||
|
%endif
|
||||||
|
|
||||||
Summary: Open source remote desktop protocol (RDP) server
|
Summary: Open source remote desktop protocol (RDP) server
|
||||||
Name: xrdp
|
Name: xrdp
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
@ -40,7 +44,9 @@ BuildRequires: gcc
|
|||||||
BuildRequires: libX11-devel
|
BuildRequires: libX11-devel
|
||||||
BuildRequires: libXfixes-devel
|
BuildRequires: libXfixes-devel
|
||||||
BuildRequires: libXrandr-devel
|
BuildRequires: libXrandr-devel
|
||||||
|
%if ! 0%{?rhel} <= 8
|
||||||
BuildRequires: imlib2-devel
|
BuildRequires: imlib2-devel
|
||||||
|
%endif
|
||||||
BuildRequires: openssl
|
BuildRequires: openssl
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
BuildRequires: pkgconfig(fuse)
|
BuildRequires: pkgconfig(fuse)
|
||||||
@ -107,7 +113,7 @@ echo '#!/bin/bash -l
|
|||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations" \
|
CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations" \
|
||||||
%configure --enable-fuse --enable-pixman --enable-painter --enable-vsock \
|
%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
|
%make_build
|
||||||
|
|
||||||
# SELinux policy module
|
# SELinux policy module
|
||||||
|
Loading…
Reference in New Issue
Block a user