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
This commit is contained in:
Stefan Seyfried 2016-12-01 12:25:14 +00:00 committed by Git OBS Bridge
parent 61cd2c2588
commit ecc6f57b61
2 changed files with 15 additions and 2 deletions

View File

@ -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

View File

@ -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)