diff --git a/xrdp.spec b/xrdp.spec index a79e830..ce3b9ad 100644 --- a/xrdp.spec +++ b/xrdp.spec @@ -10,6 +10,9 @@ Source1: xrdp-sesman.pamd Source2: xrdp.sysconfig Source3: xrdp.logrotate +Patch0: xrdp-0.9.0-sesman.patch +Patch1: xrdp-0.9.0-service.patch + BuildRequires: pam-devel BuildRequires: openssl-devel BuildRequires: autoconf @@ -37,6 +40,11 @@ terminal server / remote desktop clients. %prep %setup -q -n %{name}-%{version} +%patch0 -p1 -b .sesman +%patch1 -p1 -b .service + +# never hardcode rpaths +%{__sed} -i -e 's/^\(AM_CONDITIONAL(GOT_PREFIX,\).*$/\1 false)/' configure.ac # remove unused modules from xrdp login combobox %{__sed} -i -e '/\[xrdp1\]/,$d' xrdp/xrdp.ini