From ecc6f57b617b212eed6e7bc4f261bafd518033ddefb84520479050418be4e4a2 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Thu, 1 Dec 2016 12:25:14 +0000 Subject: [PATCH] Accepting request 442956 from home:Zaitor:branches:GNOME:Next Tweak package spec a bit. OBS-URL: https://build.opensuse.org/request/show/442956 OBS-URL: https://build.opensuse.org/package/show/Virtualization/spice-vdagent?expand=0&rev=17 --- spice-vdagent.changes | 7 +++++++ spice-vdagent.spec | 10 ++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/spice-vdagent.changes b/spice-vdagent.changes index 89967e4..e611a36 100644 --- a/spice-vdagent.changes +++ b/spice-vdagent.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Nov 25 18:53:15 UTC 2016 - zaitor@opensuse.org + +- Add pkgconfig(glib-2.0) BuildRequires: Explicit dependency. +- Handle spice-vdagentd.target in pre/post/preun/postun. +- Handle spice-vdagentd.conf in post via tmpfiles_create macro. + ------------------------------------------------------------------- Fri Nov 25 18:53:14 UTC 2016 - seife+obs@b1-systems.com diff --git a/spice-vdagent.spec b/spice-vdagent.spec index 8109556..412e33d 100644 --- a/spice-vdagent.spec +++ b/spice-vdagent.spec @@ -26,7 +26,7 @@ Group: Applications/System Url: http://spice-space.org/ Source0: http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2 Patch0: spice-vdagent-var_run.patch -BuildRequires: alsa-devel +BuildRequires: alsa-devel >= 1.0.22 BuildRequires: desktop-file-utils BuildRequires: glib2-devel BuildRequires: libXfixes-devel @@ -34,10 +34,11 @@ BuildRequires: libXinerama-devel BuildRequires: libXrandr-devel BuildRequires: libpciaccess-devel BuildRequires: libtool -BuildRequires: spice-protocol-devel >= 0.12.6 +BuildRequires: spice-protocol-devel >= 0.12.8 BuildRequires: systemd BuildRequires: systemd-devel BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(glib-2.0) >= 2.28 Supplements: modalias(xorg-x11-server:virtio:d00000003v*) %{?systemd_requires} @@ -80,18 +81,23 @@ rm -fr %{buildroot}%{_datadir}/gdm/autostart %pre %service_add_pre spice-vdagentd.service +%service_add_pre spice-vdagentd.target %post %service_add_post spice-vdagentd.service if [ "$1" -eq 1 ]; then systemctl -q enable spice-vdagentd.service || : fi +%service_add_post spice-vdagentd.target +%tmpfiles_create %_tmpfilesdir/spice-vdagentd.conf %preun %service_del_preun spice-vdagentd.service +%service_del_preun spice-vdagentd.target %postun %service_del_postun spice-vdagentd.service +%service_del_postun spice-vdagentd.target %files %defattr(-,root,root)