[fedora-virt-maint] rpms/qemu/devel qemu.spec,1.111,1.112
Daniel P. Berrange
berrange at fedoraproject.org
Thu Jul 16 17:04:31 UTC 2009
Author: berrange
Update of /cvs/pkgs/rpms/qemu/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7057
Modified Files:
qemu.spec
Log Message:
Add a qemu user account & group. Force disable xen support
Index: qemu.spec
===================================================================
RCS file: /cvs/pkgs/rpms/qemu/devel/qemu.spec,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -p -r1.111 -r1.112
--- qemu.spec 16 Jul 2009 11:48:33 -0000 1.111
+++ qemu.spec 16 Jul 2009 17:04:01 -0000 1.112
@@ -5,7 +5,7 @@
Summary: QEMU is a FAST! processor emulator
Name: qemu
Version: 0.10.50
-Release: 11.%{kvmvertag}%{?dist}
+Release: 12.%{kvmvertag}%{?dist}
# Epoch because we pushed a qemu-1.0 package
Epoch: 2
License: GPLv2+ and LGPLv2+ and BSD
@@ -240,7 +240,8 @@ fi
--audio-drv-list=pa,sdl,alsa,oss \
--disable-strip \
--extra-ldflags=$extraldflags \
- --extra-cflags="$RPM_OPT_FLAGS"
+ --extra-cflags="$RPM_OPT_FLAGS" \
+ --disable-xen
echo "config-host.mak contents:"
echo "==="
@@ -272,7 +273,8 @@ cd ../../
--disable-kvm \
--disable-strip \
--extra-ldflags=$extraldflags \
- --extra-cflags="$RPM_OPT_FLAGS"
+ --extra-cflags="$RPM_OPT_FLAGS" \
+ --disable-xen
echo "config-host.mak contents:"
echo "==="
@@ -342,8 +344,6 @@ rm -rf $RPM_BUILD_ROOT
%post system-x86
%ifarch %{ix86} x86_64
-# Create kvm group in case this is an upgrade with pre-existing /etc/group
-/usr/sbin/groupadd -r -g 36 kvm 2> /dev/null || :
# load kvm modules now, so we can make sure no reboot is needed.
# If there's already a kvm module installed, we don't mess with it
sh %{_sysconfdir}/sysconfig/modules/kvm.modules
@@ -363,6 +363,13 @@ if [ $1 -ge 1 ]; then
/sbin/service qemu condrestart &>/dev/null || :
fi
+%post common
+getent group kvm >/dev/null || groupadd -g 36 -r kvm
+getent group qemu >/dev/null || groupadd -g 107 -r qemu
+getent passwd qemu >/dev/null || \
+ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \
+ -c "qemu user" qemu
+
%files
%defattr(-,root,root)
@@ -470,6 +477,10 @@ fi
%{_mandir}/man1/qemu-img.1*
%changelog
+* Thu Jul 16 2009 Daniel P. Berrange <berrange at redhat.com> - 2:0.10.50-12.kvm88
+- Add 'qemu' user and group accounts
+- Force disable xen until it can be made to build
+
* Thu Jul 16 2009 Mark McLoughlin <markmc at redhat.com> - 2:0.10.50-11.kvm88
- Update to kvm-88, see http://www.linux-kvm.org/page/ChangeLog
- Package mutiboot.bin
More information about the Fedora-virt-maint
mailing list