Fix handling of qemu config files from previous commit

The /etc/qemu directory is potentially used by any of the QEMU
sub RPMs, so needs to be in qemu-common.

The qemu-system-x86  sub-RPM should always include target-x86_64.conf
regardless host arch, since it can be used by both the TCG and KVM
binaries.
This commit is contained in:
Daniel P. Berrange 2010-11-03 17:20:53 +00:00
parent 34f76713e8
commit 35d458d0e9

View File

@ -447,11 +447,6 @@ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/ppc_rom.bin
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/video.x rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/video.x
%endif %endif
# remove config used by kvm
%ifnarch %{ix86} x86_64
rm -rf ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/target-*
%endif
# the pxe gpxe images will be symlinks to the images on # the pxe gpxe images will be symlinks to the images on
# /usr/share/gpxe, as QEMU doesn't know how to look # /usr/share/gpxe, as QEMU doesn't know how to look
# for other paths, yet. # for other paths, yet.
@ -551,6 +546,8 @@ fi
%{_initddir}/ksmtuned %{_initddir}/ksmtuned
%{_sbindir}/ksmtuned %{_sbindir}/ksmtuned
%config(noreplace) %{_sysconfdir}/ksmtuned.conf %config(noreplace) %{_sysconfdir}/ksmtuned.conf
%dir %{_sysconfdir}/qemu
%files user %files user
%defattr(-,root,root) %defattr(-,root,root)
%{_initddir}/qemu %{_initddir}/qemu
@ -573,6 +570,7 @@ fi
%{_bindir}/qemu-sparc64 %{_bindir}/qemu-sparc64
%{_bindir}/qemu-sparc32plus %{_bindir}/qemu-sparc32plus
%endif %endif
%files system-x86 %files system-x86
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/qemu %{_bindir}/qemu
@ -591,32 +589,40 @@ fi
%{_datadir}/%{name}/pxe-pcnet.bin %{_datadir}/%{name}/pxe-pcnet.bin
%{_datadir}/%{name}/pxe-rtl8139.bin %{_datadir}/%{name}/pxe-rtl8139.bin
%{_datadir}/%{name}/pxe-ne2k_pci.bin %{_datadir}/%{name}/pxe-ne2k_pci.bin
%config(noreplace) %{_sysconfdir}/qemu/target-x86_64.conf
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
%{_datadir}/%{name}/extboot.bin %{_datadir}/%{name}/extboot.bin
%{_bindir}/qemu-kvm %{_bindir}/qemu-kvm
%{_sysconfdir}/sysconfig/modules/kvm.modules %{_sysconfdir}/sysconfig/modules/kvm.modules
%{_sysconfdir}/udev/rules.d/80-kvm.rules %{_sysconfdir}/udev/rules.d/80-kvm.rules
%dir %{_sysconfdir}/qemu %endif
%{_sysconfdir}/qemu/target-*
%ifarch %{ix86} x86_64
%files kvm-tools %files kvm-tools
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/kvm_stat %{_bindir}/kvm_stat
%endif %endif
%if !%{with_x86only} %if !%{with_x86only}
%files system-sparc %files system-sparc
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/qemu-system-sparc %{_bindir}/qemu-system-sparc
%{_datadir}/%{name}/openbios-sparc32 %{_datadir}/%{name}/openbios-sparc32
%{_datadir}/%{name}/openbios-sparc64 %{_datadir}/%{name}/openbios-sparc64
%files system-arm %files system-arm
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/qemu-system-arm %{_bindir}/qemu-system-arm
%files system-mips %files system-mips
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/qemu-system-mips %{_bindir}/qemu-system-mips
%{_bindir}/qemu-system-mipsel %{_bindir}/qemu-system-mipsel
%{_bindir}/qemu-system-mips64 %{_bindir}/qemu-system-mips64
%{_bindir}/qemu-system-mips64el %{_bindir}/qemu-system-mips64el
%files system-ppc %files system-ppc
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/qemu-system-ppc %{_bindir}/qemu-system-ppc
@ -626,16 +632,20 @@ fi
%{_datadir}/%{name}/video.x %{_datadir}/%{name}/video.x
%{_datadir}/%{name}/bamboo.dtb %{_datadir}/%{name}/bamboo.dtb
%{_datadir}/%{name}/ppc_rom.bin %{_datadir}/%{name}/ppc_rom.bin
%files system-cris %files system-cris
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/qemu-system-cris %{_bindir}/qemu-system-cris
%files system-m68k %files system-m68k
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/qemu-system-m68k %{_bindir}/qemu-system-m68k
%files system-sh4 %files system-sh4
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/qemu-system-sh4 %{_bindir}/qemu-system-sh4
%{_bindir}/qemu-system-sh4eb %{_bindir}/qemu-system-sh4eb
%endif %endif
%files img %files img
@ -645,6 +655,12 @@ fi
%{_mandir}/man1/qemu-img.1* %{_mandir}/man1/qemu-img.1*
%changelog %changelog
* Wed Nov 3 2010 Daniel P. Berrange <berrange@redhat.com> - 2:0.13.0-2
- Revert previous change
- Make qemu-common own the /etc/qemu directory
- Add /etc/qemu/target-x86_64.conf to qemu-system-x86 regardless
of host architecture.
* Wed Nov 03 2010 Dan Horák <dan[at]danny.cz> - 2:0.13.0-2 * Wed Nov 03 2010 Dan Horák <dan[at]danny.cz> - 2:0.13.0-2
- Remove kvm config file on non-x86 arches (part of #639471) - Remove kvm config file on non-x86 arches (part of #639471)
- Own the /etc/qemu directory - Own the /etc/qemu directory