From: Vitaly Parakhin Date: Fri, 21 Mar 2014 08:50:19 +0000 (+0200) Subject: Change requested in launchpad bug #1288352 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=refs%2Fheads%2F4.1.2;p=packages%2Fcentos6%2Fqemu.git Change requested in launchpad bug #1288352 Change-Id: I514207dd2151569145d1c4c875abdfd537579939 --- diff --git a/qemu.spec b/qemu.spec index af54851..a8d3b1f 100644 --- a/qemu.spec +++ b/qemu.spec @@ -123,6 +123,7 @@ ExclusiveArch: %{kvm_archs} %define _smp_mflags %{nil} %endif + # This is generated from the git qemu-kvm-1.2.0 tag, replace with proper # upstream tarbal once available Source0: qemu-kvm-%{version}.tar.gz @@ -1483,6 +1484,7 @@ if [ $1 -eq 1 ] ; then # Initial installation /bin/systemctl enable ksm.service >/dev/null 2>&1 || : /bin/systemctl enable ksmtuned.service >/dev/null 2>&1 || : + /bin/ln -s /usr/bin/qemu-kvm /usr/libexec/qemu-kvm fi getent group kvm >/dev/null || groupadd -g 36 -r kvm @@ -1507,7 +1509,10 @@ if [ $1 -ge 1 ] ; then /bin/systemctl try-restart ksmtuned.service >/dev/null 2>&1 || : /bin/systemctl try-restart ksm.service >/dev/null 2>&1 || : fi - +if [ $1 -eq 0 ] ; then + # Package removal, not upgrade + /bin/rm -f /usr/libexec/qemu-kvm +fi %global kvm_files \ %{_sysconfdir}/sysconfig/modules/kvm.modules \