2014-02-05 09:12:09 +01:00
|
|
|
#
|
|
|
|
# spec file for package spice-vdagent
|
|
|
|
#
|
2020-01-13 19:07:36 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2014-02-05 09:12:09 +01:00
|
|
|
# Copyright (c) 2014 B1 Systems GmbH, Vohburg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-05-18 00:21:17 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-02-05 09:12:09 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: spice-vdagent
|
2020-03-10 23:20:01 +01:00
|
|
|
Version: 0.20.0
|
2014-02-05 09:12:09 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Agent for Spice guests
|
2019-05-18 00:21:17 +02:00
|
|
|
License: GPL-3.0-or-later
|
|
|
|
Group: System/Daemons
|
2019-12-11 19:51:38 +01:00
|
|
|
URL: http://spice-space.org/
|
2019-05-18 00:21:17 +02:00
|
|
|
Source: http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2
|
|
|
|
Source1: http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2.sig
|
|
|
|
Source2: %{name}.keyring
|
2020-03-26 16:46:06 +01:00
|
|
|
Patch1: vdagentd-work-around-GLib-s-fork-issues.patch
|
|
|
|
Patch2: vdagentd-init-static-uinput-before-fork.patch
|
2016-12-01 13:25:14 +01:00
|
|
|
BuildRequires: alsa-devel >= 1.0.22
|
2014-02-05 09:12:09 +01:00
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: libXfixes-devel
|
|
|
|
BuildRequires: libXinerama-devel
|
2020-03-10 23:20:01 +01:00
|
|
|
BuildRequires: libXrandr-devel >= 1.3
|
|
|
|
BuildRequires: libpciaccess-devel >= 0.10
|
2014-02-05 09:12:09 +01:00
|
|
|
BuildRequires: libtool
|
2016-11-30 22:17:39 +01:00
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
2020-03-10 23:20:01 +01:00
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.50
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.58
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.50
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.22
|
|
|
|
BuildRequires: pkgconfig(libdrm)
|
2020-01-13 19:07:36 +01:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2020-03-10 23:20:01 +01:00
|
|
|
BuildRequires: pkgconfig(spice-protocol) >= 0.14.1
|
2020-01-13 19:07:36 +01:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2019-05-18 00:21:17 +02:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2014-07-15 16:24:33 +02:00
|
|
|
Supplements: modalias(xorg-x11-server:virtio:d00000003v*)
|
2015-07-22 14:30:55 +02:00
|
|
|
%{?systemd_requires}
|
2014-02-05 09:12:09 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Spice agent for Linux guests offering the following features:
|
|
|
|
|
|
|
|
Features:
|
|
|
|
* Client mouse mode (no need to grab mouse by client, no mouse lag)
|
|
|
|
this is handled by the daemon by feeding mouse events into the kernel
|
|
|
|
via uinput. This will only work if the active X-session is running a
|
|
|
|
spice-vdagent process so that its resolution can be determined.
|
|
|
|
* Automatic adjustment of the X-session resolution to the client resolution
|
|
|
|
* Support of copy and paste (text and images) between the active X-session
|
|
|
|
and the client
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2020-03-26 16:46:06 +01:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2014-02-05 09:12:09 +01:00
|
|
|
|
|
|
|
%build
|
2015-07-22 14:30:55 +02:00
|
|
|
%configure \
|
|
|
|
--with-session-info=systemd \
|
|
|
|
--with-init-script=systemd
|
2014-02-05 09:12:09 +01:00
|
|
|
make %{?_smp_mflags} V=2
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot} V=2
|
|
|
|
# create rc symlink
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rcspice-vdagentd
|
|
|
|
|
2014-07-07 11:47:07 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/gdm/greeter/autostart
|
|
|
|
|
|
|
|
mv %{buildroot}%{_datadir}/gdm/autostart/LoginWindow/*.desktop %{buildroot}%{_datadir}/gdm/greeter/autostart
|
|
|
|
rm -fr %{buildroot}%{_datadir}/gdm/autostart
|
|
|
|
|
2014-02-05 09:12:09 +01:00
|
|
|
%pre
|
|
|
|
%service_add_pre spice-vdagentd.service
|
2019-05-18 00:21:17 +02:00
|
|
|
%service_add_pre spice-vdagentd.socket
|
2014-02-05 09:12:09 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%service_add_post spice-vdagentd.service
|
2014-07-07 11:47:07 +02:00
|
|
|
if [ "$1" -eq 1 ]; then
|
|
|
|
systemctl -q enable spice-vdagentd.service || :
|
|
|
|
fi
|
2019-05-18 00:21:17 +02:00
|
|
|
%service_add_post spice-vdagentd.socket
|
2016-12-01 13:25:14 +01:00
|
|
|
%tmpfiles_create %_tmpfilesdir/spice-vdagentd.conf
|
2014-02-05 09:12:09 +01:00
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun spice-vdagentd.service
|
2019-05-18 00:21:17 +02:00
|
|
|
%service_del_preun spice-vdagentd.socket
|
2014-02-05 09:12:09 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun spice-vdagentd.service
|
2019-05-18 00:21:17 +02:00
|
|
|
%service_del_postun spice-vdagentd.socket
|
2014-02-05 09:12:09 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2019-05-18 00:21:17 +02:00
|
|
|
%doc CHANGELOG.md README.md
|
|
|
|
%license COPYING
|
|
|
|
%ghost /run/spice-vdagentd
|
2020-08-19 10:50:56 +02:00
|
|
|
%{_udevrulesdir}/70-spice-vdagentd.rules
|
2014-02-05 09:12:09 +01:00
|
|
|
%{_unitdir}/spice-vdagentd.service
|
2019-05-18 00:21:17 +02:00
|
|
|
%{_unitdir}/spice-vdagentd.socket
|
2020-08-19 10:50:56 +02:00
|
|
|
%{_tmpfilesdir}/spice-vdagentd.conf
|
2014-02-05 09:12:09 +01:00
|
|
|
%{_bindir}/spice-vdagent
|
|
|
|
%{_sbindir}/spice-vdagentd
|
|
|
|
%{_sbindir}/rcspice-vdagentd
|
|
|
|
%{_sysconfdir}/xdg/autostart/spice-vdagent.desktop
|
|
|
|
# For /usr/share/gdm/autostart/LoginWindow/spice-vdagent.desktop
|
|
|
|
# We own the dir too, otherwise we must Require gdm
|
|
|
|
%{_datadir}/gdm
|
|
|
|
%{_mandir}/man1/%{name}*.1*
|
|
|
|
|
|
|
|
%changelog
|