[spice-vdagent] New upstream release 0.12.0

Hans de Goede jwrdegoede at fedoraproject.org
Sat Sep 1 17:51:11 UTC 2012


commit 2f7cfe8f6ae8a9d96f5dce951d6d3551acd83d55
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Sat Sep 1 19:52:07 2012 +0200

    New upstream release 0.12.0
    
    - This moves the tmpfiles.d to /usr/lib/tmpfiles.d (rhbz#840194)
    - This adds a systemd .service file (rhbz#848102)

 .gitignore         |    1 +
 sources            |    2 +-
 spice-vdagent.spec |   41 +++++++++++++++++++++--------------------
 3 files changed, 23 insertions(+), 21 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e02004d..67adec9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
 /spice-vdagent-0.8.1.tar.bz2
 /spice-vdagent-0.10.0.tar.bz2
 /spice-vdagent-0.10.1.tar.bz2
+/spice-vdagent-0.12.0.tar.bz2
diff --git a/sources b/sources
index 7322227..9fce35a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-0e69a13e4df37eefb52b1df795b22755  spice-vdagent-0.10.1.tar.bz2
+a7de4d6682099b7af9c289ef3e2996f7  spice-vdagent-0.12.0.tar.bz2
diff --git a/spice-vdagent.spec b/spice-vdagent.spec
index 213d866..467efbb 100644
--- a/spice-vdagent.spec
+++ b/spice-vdagent.spec
@@ -1,6 +1,6 @@
 Name:           spice-vdagent
-Version:        0.10.1
-Release:        2%{?dist}
+Version:        0.12.0
+Release:        1%{?dist}
 Summary:        Agent for Spice guests
 Group:          Applications/System
 License:        GPLv3+
@@ -8,11 +8,10 @@ URL:            http://spice-space.org/
 Source0:        http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2
 BuildRequires:  systemd-devel spice-protocol libpciaccess-devel
 BuildRequires:  libXrandr-devel libXinerama-devel libXfixes-devel
-BuildRequires:  desktop-file-utils
-Requires(post):   chkconfig
-Requires(postun): initscripts
-Requires(preun):  chkconfig
-Requires(preun):  initscripts
+BuildRequires:  systemd-units desktop-file-utils
+Requires(post): systemd-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
 
 %description
 Spice agent for Linux guests offering the following features:
@@ -32,7 +31,7 @@ Features:
 
 
 %build
-%configure --with-session-info=systemd
+%configure --with-session-info=systemd --with-init-script=systemd
 make %{?_smp_mflags}
 
 
@@ -41,29 +40,26 @@ make install DESTDIR=$RPM_BUILD_ROOT
 
 
 %post
-/sbin/chkconfig --add spice-vdagentd
+%systemd_post spice-vdagentd.service
 
 %preun
-if [ $1 = 0 ] ; then
-    /sbin/service spice-vdagentd stop >/dev/null 2>&1
-    /sbin/chkconfig --del spice-vdagentd
-fi
+%systemd_preun spice-vdagentd.service
 
 %postun
-if [ "$1" -ge "1" ] ; then
-    /sbin/service spice-vdagentd condrestart >/dev/null 2>&1 || :
-fi
+%systemd_postun_with_restart spice-vdagentd.service
 
 
 %files
-%defattr(-,root,root,-)
 %doc COPYING ChangeLog README TODO
-%{_sysconfdir}/tmpfiles.d/spice-vdagentd.conf
-%{_initddir}/spice-vdagentd
+%config(noreplace) %{_sysconfdir}/rsyslog.d/spice-vdagentd.conf
+/lib/udev/rules.d/70-spice-vdagentd.rules
+%{_unitdir}/spice-vdagentd.service
+%{_unitdir}/spice-vdagentd.target
+%{_prefix}/lib/tmpfiles.d/spice-vdagentd.conf
 %{_bindir}/spice-vdagent
 %{_sbindir}/spice-vdagentd
-%{_var}/log/spice-vdagentd
 %{_var}/run/spice-vdagentd
+%{_sysconfdir}/modules-load.d/spice-vdagentd.conf
 %{_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
@@ -71,6 +67,11 @@ fi
 
 
 %changelog
+* Sat Sep  1 2012 Hans de Goede <hdegoede at redhat.com> - 0.12.0-1
+- New upstream release 0.12.0
+- This moves the tmpfiles.d to /usr/lib/tmpfiles.d (rhbz#840194)
+- This adds a systemd .service file (rhbz#848102)
+
 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.10.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list