disabled auto start
[platform/adaptation/emulator/spice-vdagent.git] / packaging / spice-vdagent.spec
index 0c6cef1..335d06f 100644 (file)
@@ -1,5 +1,5 @@
 Name: spice-vdagent
-Version: 0.15.1
+Version: 0.15.2
 Release: 1
 Summary: This is used for spice input communication
 License: GPL-3.0
@@ -24,6 +24,16 @@ BuildRequires: spice-protocol
 make
 
 %install
+rm -rf %{buildroot}
+
+if [ ! -d %{buildroot}/usr/lib/systemd/system ]; then
+    mkdir -p %{buildroot}/usr/lib/systemd/system
+fi
+
+cp data/spice-vdagentd.service %{buildroot}/usr/lib/systemd/system/.
+cp data/spice-vdagent.service %{buildroot}/usr/lib/systemd/system/.
+
+%make_install
 
 %clean
 make clean
@@ -39,6 +49,8 @@ rm -rf install_manifest.txt
 
 %files
 %defattr(-,root,root,-)
+/usr/lib/systemd/system/spice-vdagent.service
+/usr/lib/systemd/system/spice-vdagentd.service
 /usr/bin/spice-vdagent
 /usr/etc/rsyslog.d/spice-vdagentd.conf
 /usr/etc/xdg/autostart/spice-vdagent.desktop