7ce03f
Name:           spice-vdagent
7ce03f
Version:        0.14.0
b156de
Release:        18%{?dist}
7ce03f
Summary:        Agent for Spice guests
7ce03f
Group:          Applications/System
7ce03f
License:        GPLv3+
7ce03f
URL:            http://spice-space.org/
7ce03f
Source0:        http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2
7ce03f
# Fixes from upstream git
4e1899
Patch1: 0001-vdagent-d-Add-printing-of-version-to-h-output.patch
4e1899
Patch2: 0002-vdagentd-Advertise-VD_AGENT_CAP_GUEST_LINEEND_LF.patch
4e1899
Patch3: 0003-buildsys-Build-vdagentd-as-pie-relro-when-possible.patch
4e1899
Patch4: 0004-Not-having-the-virtio-channel-is-not-an-error-instea.patch
4e1899
Patch5: 0005-vdagent-x11-Release-clipboard-on-client-disconnect-i.patch
4e1899
#This patch is in the RHEL6 build but omitted on purpose from the RHEL7
4e1899
#build, see https://bugzilla.redhat.com/show_bug.cgi?id=1131454#c2 for
4e1899
#details
4e1899
#Patch6: 0006-randr-set-physical-screen-size-to-keep-a-constant-96.patch
4e1899
Patch7: 0007-clipboard-target_to_type-fix-inner-loop-variable-nam.patch
4e1899
Patch8: 0008-Reply-to-TIMESTAMP-requests.patch
4e1899
Patch9: 0009-Handle-STRING-selection-type.patch
4e1899
Patch10: 0010-randr-Make-resolution-changing-more-robust.patch
4e1899
Patch11: 0011-Don-t-abort-if-XRRSetCrtcConfig-fails.patch
4e1899
Patch12: 0012-Fix-gdm-autostart-path.patch
4e1899
Patch13: 0013-data-remove-rsyslog-config-files.patch
9041e0
Patch14: 0014-vdagent-file-xfers-only-open-the-file-transfer-dir-w.patch
ad7ee3
Patch15: 0015-audio-add-functions-to-set-volume-mute-with-alsa.patch
ad7ee3
Patch16: 0016-vdagent-volume-synchronization-from-client.patch
ad7ee3
Patch17: 0017-vdagentd-proto-strings-Add-missing-string-for-VDAGEN.patch
ad7ee3
Patch18: 0018-vdagent-Return-1-when-virtio-device-cannot-be-opened.patch
ad7ee3
Patch19: 0019-build-sys-Enable-large-file-support.patch
ad7ee3
Patch20: 0020-Add-g_return_if_fail-guards-to-file-xfer-public-func.patch
ad7ee3
Patch21: 0021-Make-creation-of-vdagent_file_xfers-optional.patch
ad7ee3
Patch22: 0022-Disable-file-xfer-when-no-suitable-destination-dir.patch
ad7ee3
Patch23: 0023-Report-an-error-when-file-transfers-are-disabled.patch
ad7ee3
Patch24: 0024-vdagentd-send-file-xfer-status-generic-version.patch
ad7ee3
Patch25: 0025-session-info-check-for-a-locked-session.patch
ad7ee3
Patch26: 0026-session-info-check-if-session-belongs-to-user.patch
ad7ee3
Patch27: 0027-systemd-login-check-for-LockedHint-property.patch
af382a
Patch28: 0028-Add-systemd-socket-activation.patch
36bea2
Patch29: 0029-spice-vdagent.desktop-Change-autostart-to-WindowMana.patch
b156de
Patch30: 0030-systemd-Remove-unneded-virtio-port-dependencies.patch
b156de
Patch31: 0031-systemd-Remove-WantedBy-sockets.service-in-Install.patch
b156de
Patch32: 0032-systemd-Update-path-in-unit-file.patch
b156de
Patch33: 0033-udscs-Avoid-file-descriptor-leak.patch
b156de
Patch34: 0034-x11-invalidate-requests-for-targets-on-grab-from-cli.patch
b156de
Patch35: 0035-vdagent_x11_target_to_type-Improve-error-logging.patch
b156de
Patch36: 0036-vdagent-x11-Turn-some-error-messages-into-debugging-.patch
b156de
b156de
7ce03f
BuildRequires:  systemd-devel glib2-devel spice-protocol >= 0.12.6
7ce03f
BuildRequires:  libpciaccess-devel libXrandr-devel libXinerama-devel
7ce03f
BuildRequires:  libXfixes-devel systemd-units desktop-file-utils libtool
ad7ee3
BuildRequires:  alsa-lib-devel dbus-devel
7ce03f
Requires(post): systemd-units
7ce03f
Requires(preun): systemd-units
7ce03f
Requires(postun): systemd-units
ad7ee3
Requires: dbus systemd >= 219-21
7ce03f
7ce03f
%description
7ce03f
Spice agent for Linux guests offering the following features:
7ce03f
7ce03f
Features:
7ce03f
* Client mouse mode (no need to grab mouse by client, no mouse lag)
7ce03f
  this is handled by the daemon by feeding mouse events into the kernel
7ce03f
  via uinput. This will only work if the active X-session is running a
7ce03f
  spice-vdagent process so that its resolution can be determined.
7ce03f
* Automatic adjustment of the X-session resolution to the client resolution
7ce03f
* Support of copy and paste (text and images) between the active X-session
7ce03f
  and the client
7ce03f
7ce03f
7ce03f
%prep
7ce03f
%setup -q
7ce03f
%patch1 -p1
7ce03f
%patch2 -p1
7ce03f
%patch3 -p1
7ce03f
%patch4 -p1
7ce03f
%patch5 -p1
4e1899
%patch7 -p1
4e1899
%patch8 -p1
4e1899
%patch9 -p1
4e1899
%patch10 -p1
4e1899
%patch11 -p1
4e1899
%patch12 -p1
4e1899
%patch13 -p1
9041e0
%patch14 -p1
ad7ee3
%patch15 -p1
ad7ee3
%patch16 -p1
ad7ee3
%patch17 -p1
ad7ee3
%patch18 -p1
ad7ee3
%patch19 -p1
ad7ee3
%patch20 -p1
ad7ee3
%patch21 -p1
ad7ee3
%patch22 -p1
ad7ee3
%patch23 -p1
ad7ee3
%patch24 -p1
ad7ee3
%patch25 -p1
ad7ee3
%patch26 -p1
ad7ee3
%patch27 -p1
af382a
%patch28 -p1
36bea2
%patch29 -p1
b156de
%patch30 -p1
b156de
%patch31 -p1
b156de
%patch32 -p1
b156de
%patch33 -p1
b156de
%patch34 -p1
b156de
%patch35 -p1
b156de
%patch36 -p1
7ce03f
autoreconf -fi
7ce03f
7ce03f
7ce03f
%build
7ce03f
%configure --with-session-info=systemd --with-init-script=systemd
7ce03f
make %{?_smp_mflags} V=2
7ce03f
7ce03f
7ce03f
%install
7ce03f
make install DESTDIR=$RPM_BUILD_ROOT V=2
7ce03f
# rhbz#963201
7ce03f
rm $RPM_BUILD_ROOT%{_sysconfdir}/modules-load.d/spice-vdagentd.conf
7ce03f
7ce03f
7ce03f
%post
af382a
%systemd_post spice-vdagentd.service spice-vdagentd.socket
7ce03f
7ce03f
%preun
af382a
%systemd_preun spice-vdagentd.service spice-vdagentd.socket
7ce03f
7ce03f
%postun
af382a
%systemd_postun_with_restart spice-vdagentd.service spice-vdagentd.socket
7ce03f
7ce03f
7ce03f
%files
7ce03f
%doc COPYING ChangeLog README TODO
7ce03f
/lib/udev/rules.d/70-spice-vdagentd.rules
7ce03f
%{_unitdir}/spice-vdagentd.service
af382a
%{_unitdir}/spice-vdagentd.socket
7ce03f
%{_prefix}/lib/tmpfiles.d/spice-vdagentd.conf
7ce03f
%{_bindir}/spice-vdagent
7ce03f
%{_sbindir}/spice-vdagentd
7ce03f
%{_var}/run/spice-vdagentd
7ce03f
%{_sysconfdir}/xdg/autostart/spice-vdagent.desktop
7ce03f
# For /usr/share/gdm/autostart/LoginWindow/spice-vdagent.desktop
7ce03f
# We own the dir too, otherwise we must Require gdm
7ce03f
%{_datadir}/gdm
7ce03f
%{_mandir}/man1/%{name}*.1*
7ce03f
7ce03f
7ce03f
%changelog
b156de
* Mon Apr  8 2019 Victor Toso <victortoso@redhat.com> - 0.14.0-18
b156de
- Fix clipboard logs on requests for targets on grab from client
b156de
  Resolves: rhbz#1594876
b156de
- Make some clipboard logs debug instead of error
b156de
  Resolves: rhbz#1686008
b156de
b156de
* Fri Mar 15 2019 Victor Toso <victortoso@redhat.com> - 0.14.0-17
b156de
- Fix 'Dependency failed for Activation socket' message
b156de
  Resolves: rhbz#1545212
b156de
- Fix socket leak
b156de
  Resolves: rhbz#1650596
b156de
36bea2
* Fri Sep  7 2018 Victor Toso <victortoso@redhat.com> - 0.14.0-16
36bea2
- Change session agent initialization stage to WindowManager
36bea2
  Resolves: rhbz#1623947
36bea2
af382a
* Fri Nov 17 2017 Jonathon Jongsma <jjongsma@redhat.com> - 0.14.0-15
af382a
- Add systemd socket activation
af382a
  Resolves: rhbz#1340160
af382a
ad7ee3
* Fri Jul  8 2016 Victor Toso <victortoso@redhat.com> - 0.14.0-14
ad7ee3
- Do not allow drag-and-drop on (gdm) login screen
ad7ee3
  Resolves: rhbz#1328761
ad7ee3
- Do not allow drag-and-drop on locked screen
ad7ee3
  Resolves: rhbz#1323623
ad7ee3
ad7ee3
* Thu Apr 28 2016 Christophe Fergeau <cfergeau@redhat.com> - 0.14.0-13
ad7ee3
- Enable large file support
ad7ee3
  Resolves: rhbz#1331490
ad7ee3
ad7ee3
* Thu Apr 28 2016 Christophe Fergeau <cfergeau@redhat.com> - 0.14.0-12
ad7ee3
- Apply patches forgotten in previous build..
ad7ee3
  Related: rhbz#1264102, rhbz#1256704
ad7ee3
ad7ee3
* Thu Apr 28 2016 Christophe Fergeau <cfergeau@redhat.com> - 0.14.0-11
ad7ee3
- Add client to guest audio volume synchronization
ad7ee3
  Resolves: rhbz#1264102
ad7ee3
- Exit with error when virtio channel device is missing
ad7ee3
  Resolves: rhbz#1256704
ad7ee3
9041e0
* Fri Jun 05 2015 Jonathon Jongsma <jjongsma@redhat.com> - 0.14.0-10
9041e0
- Don't open a separate file manager for each file transfered
9041e0
  Resolves: rhbz#1168324
9041e0
4e1899
* Tue Sep 23 2014 Christophe Fergeau <cfergeau@redhat.com> 0.14.0-9
4e1899
- Don't install rsyslog config file. This can cause duplicate logging
4e1899
  to syslog in rhel6->rhel7 upgrades, and is not really useful anyway
4e1899
  as the same functionality can be achieved with journald
4e1899
  Resolves: rhbz#1136881
4e1899
4e1899
* Tue Aug 19 2014 Christophe Fergeau <cfergeau@redhat.com> 0.14.0-8
4e1899
- Fix copy and paste issues with vncclient
4e1899
  Resolves: rhbz#1130218
4e1899
- Make vdagent more robust against xrandr failures
4e1899
  Resolves: rhbz#1066422
4e1899
- Fix autostart of vdagent in gdm
4e1899
  Resolves: rhbz#1052172
4e1899
b7688c
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.14.0-7
b7688c
- Mass rebuild 2014-01-24
b7688c
b7688c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.14.0-6
b7688c
- Mass rebuild 2013-12-27
b7688c
7ce03f
* Tue Sep 10 2013 Hans de Goede <hdegoede@redhat.com> - 0.14.0-5
7ce03f
- Silence session agent error logging when not running in a vm (rhbz#999804)
7ce03f
- Release guest clipboard ownership on client disconnect (rhbz#1003977)
7ce03f
7ce03f
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.0-4
7ce03f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7ce03f
7ce03f
* Wed Jul  3 2013 Hans de Goede <hdegoede@redhat.com> - 0.14.0-3
7ce03f
- Advertise clipboard line-endings for copy and paste line-ending conversion
7ce03f
- Build spice-vdagentd as pie + relro
7ce03f
7ce03f
* Mon May 20 2013 Hans de Goede <hdegoede@redhat.com> - 0.14.0-2
7ce03f
- Drop the no longer needed /etc/modules-load.d/spice-vdagentd.conf (#963201)
7ce03f
7ce03f
* Fri Apr 12 2013 Hans de Goede <hdegoede@redhat.com> - 0.14.0-1
7ce03f
- New upstream release 0.14.0
7ce03f
- Adds support for file transfers from client to guest
7ce03f
- Adds manpages for spice-vdagent and spice-vdagentd
7ce03f
7ce03f
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.1-2
7ce03f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7ce03f
7ce03f
* Tue Jan  8 2013 Hans de Goede <hdegoede@redhat.com> - 0.12.1-1
7ce03f
- New upstream release 0.12.1
7ce03f
- Fixes various issues with dynamic monitor / resolution support
7ce03f
7ce03f
* Mon Nov 12 2012 Hans de Goede <hdegoede@redhat.com> - 0.12.0-2
7ce03f
- Fix setting of mode on non arbitrary resolution capable X driver
7ce03f
- Fix wrong mouse coordinates on vms with multiple qxl devices
7ce03f
7ce03f
* Sat Sep  1 2012 Hans de Goede <hdegoede@redhat.com> - 0.12.0-1
7ce03f
- New upstream release 0.12.0
7ce03f
- This moves the tmpfiles.d to /usr/lib/tmpfiles.d (rhbz#840194)
7ce03f
- This adds a systemd .service file (rhbz#848102)
7ce03f
7ce03f
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-2
7ce03f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7ce03f
7ce03f
* Tue Mar 27 2012 Hans de Goede <hdegoede@redhat.com> - 0.10.1-1
7ce03f
- New upstream release 0.10.1
7ce03f
7ce03f
* Thu Mar 22 2012 Hans de Goede <hdegoede@redhat.com> - 0.10.0-1
7ce03f
- New upstream release 0.10.0
7ce03f
- This supports using systemd-logind instead of console-kit (rhbz#756398)
7ce03f
7ce03f
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-2
7ce03f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7ce03f
7ce03f
* Mon Jul 18 2011 Hans de Goede <hdegoede@redhat.com> 0.8.1-1
7ce03f
- New upstream release 0.8.1
7ce03f
7ce03f
* Fri Jul 15 2011 Hans de Goede <hdegoede@redhat.com> 0.8.0-2
7ce03f
- Make the per session agent process automatically reconnect to the system
7ce03f
  spice-vdagentd when the system daemon gets restarted
7ce03f
7ce03f
* Tue Apr 19 2011 Hans de Goede <hdegoede@redhat.com> 0.8.0-1
7ce03f
- New upstream release 0.8.0
7ce03f
7ce03f
* Mon Mar 07 2011 Hans de Goede <hdegoede@redhat.com> 0.6.3-6
7ce03f
- Fix setting of the guest resolution from a multi monitor client
7ce03f
7ce03f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-5
7ce03f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7ce03f
7ce03f
* Mon Jan 10 2011 Hans de Goede <hdegoede@redhat.com> 0.6.3-4
7ce03f
- Make sysvinit script exit cleanly when not running on a spice enabled vm
7ce03f
7ce03f
* Fri Nov 19 2010 Hans de Goede <hdegoede@redhat.com> 0.6.3-3
7ce03f
- Put the pid and log files into their own subdir (#648553)
7ce03f
7ce03f
* Mon Nov  8 2010 Hans de Goede <hdegoede@redhat.com> 0.6.3-2
7ce03f
- Fix broken multiline description in initscript lsb header (#648549)
7ce03f
7ce03f
* Sat Oct 30 2010 Hans de Goede <hdegoede@redhat.com> 0.6.3-1
7ce03f
- Initial Fedora package