File project.diff of Package spice-vdagent
--- spice-vdagent.changes.orig
+++ spice-vdagent.changes
@@ -188,6 +188,11 @@ Thu Jul 27 12:20:36 UTC 2017 - msuchanek
- Fix warning in vdagentd-do-endian-swapping.patch
-------------------------------------------------------------------
+Mon Feb 20 17:24:17 UTC 2017 - msuchanek@suse.com
+
+- Add script to start on X11 desktop (icewm).
+
+-------------------------------------------------------------------
Mon Feb 20 13:56:35 UTC 2017 - msuchanek@suse.com
- Add endian swapping to run on BE guests (boo#1012215).
--- spice-vdagent.spec.orig
+++ spice-vdagent.spec
@@ -1,7 +1,7 @@
#
# spec file for package spice-vdagent
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2014 B1 Systems GmbH, Vohburg, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -28,9 +28,11 @@ License: GPL-3.0-or-later
Group: System/Daemons
URL: http://spice-space.org/
Source: http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2
+Source1: %{name}.sh
Source2: %{name}.keyring
Patch0: harden_spice-vdagentd.service.patch
Patch1: allow-enable-on-boot-spice-vdagentd.service.patch
+Patch2: vdagentd-do-endian-swapping.patch
BuildRequires: alsa-devel >= 1.0.22
BuildRequires: desktop-file-utils
@@ -68,6 +70,7 @@ Features:
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
autoreconf
@@ -91,6 +94,8 @@ mkdir -p %{buildroot}%{_datadir}/gdm/gre
mv %{buildroot}%{_datadir}/gdm/autostart/LoginWindow/*.desktop %{buildroot}%{_datadir}/gdm/greeter/autostart
rm -fr %{buildroot}%{_datadir}/gdm/autostart
+install -p -D -m 755 %{SOURCE1} %{buildroot}/etc/X11/xinit/xinitrc.d/%{name}.sh
+
%pre
%service_add_pre spice-vdagentd.service
%service_add_pre spice-vdagentd.socket
@@ -129,5 +134,9 @@ fi
# We own the dir too, otherwise we must Require gdm
%{_datadir}/gdm
%{_mandir}/man1/%{name}*.1*
+%defattr(755,root,root)
+%dir /etc/X11/xinit
+%dir /etc/X11/xinit/xinitrc.d
+/etc/X11/xinit/xinitrc.d/%{name}.sh
%changelog