From cb8de94a4aecde5020bc0658e87be96abe2c00f5c9e294f0cc18f02294ab30ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com>
Date: Sat, 8 Feb 2020 08:13:53 +0000
Subject: [PATCH] Accepting request 772271 from
 home:elvigia:branches:X11:RemoteDesktop

- Build with --enable-vsock so xrdp can be used with hyper-v
  enhanced session mode.

OBS-URL: https://build.opensuse.org/request/show/772271
OBS-URL: https://build.opensuse.org/package/show/X11:RemoteDesktop/xrdp?expand=0&rev=72
---
 xrdp.changes | 6 ++++++
 xrdp.spec    | 9 +++++----
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/xrdp.changes b/xrdp.changes
index 5dc714a..83c20ff 100644
--- a/xrdp.changes
+++ b/xrdp.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Sat Feb  8 01:39:00 UTC 2020 - Cristian Rodríguez <crrodriguez@opensuse.org>
+
+- Build with --enable-vsock so xrdp can be used with hyper-v
+  enhanced session mode.
+
 -------------------------------------------------------------------
 Wed Nov 13 03:23:15 UTC 2019 - Yifan Jiang <yfjiang@suse.com>
 
diff --git a/xrdp.spec b/xrdp.spec
index 35e63e3..71c011e 100644
--- a/xrdp.spec
+++ b/xrdp.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package xrdp
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,7 +27,7 @@ Release:        0
 Summary:        Remote desktop protocol (RDP) server
 License:        Apache-2.0 AND GPL-2.0-or-later
 Group:          System/X11/Utilities
-Url:            https://github.com/neutrinolabs/xrdp
+URL:            https://github.com/neutrinolabs/xrdp
 Source0:        https://github.com/neutrinolabs/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
 Source1:        https://github.com/neutrinolabs/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
 Source2:        xrdp.keyring
@@ -121,8 +121,9 @@ sh ./bootstrap
 %configure \
    --enable-ipv6 \
    --enable-painter \
-   --with-systemdsystemunitdir=%{_unitdir}
-make %{?_smp_mflags}
+   --with-systemdsystemunitdir=%{_unitdir} \
+   --enable-vsock
+make %{?_smp_mflags} V=1
 
 %install
 make %{?_smp_mflags} DESTDIR=%{buildroot} install