Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
qemu.28164
qemu.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qemu.spec of Package qemu.28164
# # spec file # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # # !! IMPORTANT !! See README.PACKAGING before modifying package in any way %define _buildshell /bin/bash %define build_in_tree 0 %define build_x86_firmware_from_source 0 %define build_skiboot_from_source 0 %define build_slof_from_source 0 %define build_opensbi_from_source 0 %define kvm_available 0 %define legacy_qemu_kvm 0 %define force_fit_virtio_pxe_rom 1 %define provide_edk2_firmware 0 %define build_rom_arch %ix86 x86_64 aarch64 %if "%{?distribution}" == "" %define distro private-build %else %define distro %{distribution} %endif %ifarch %{build_rom_arch} # choice of building all from source or using provided binary x86 blobs %define build_x86_firmware_from_source 1 %endif %ifarch ppc64 %define build_skiboot_from_source 1 %define build_slof_from_source 1 %endif %ifarch ppc64le %define build_skiboot_from_source 1 %define build_slof_from_source 1 %endif %ifarch riscv64 %define build_opensbi_from_source 1 %endif %ifarch %ix86 x86_64 ppc ppc64 ppc64le s390x armv7hl aarch64 %define kvm_available 1 %endif %ifarch %ix86 x86_64 s390x %define legacy_qemu_kvm 1 %endif %if 0%{?is_opensuse} %define with_glusterfs 1 %endif %ifarch x86_64 aarch64 ppc64le s390x %define with_rbd 1 %endif # qemu, qemu-linux-user, and qemu-testsuite "flavors" are enabled via OBS Multibuild %global flavor @BUILD_FLAVOR@%{nil} %define name_suffix %{nil} %if "%flavor" == "testsuite" %define name_suffix -testsuite %endif %if "%flavor" == "linux-user" %define name_suffix -linux-user %define summary_string CPU emulator for user space %else %define summary_string Machine emulator and virtualizer %endif %bcond_with system_membarrier %define qemuver 4.2.1 %define srcver 4.2.1 %define sbver 1.12.1+ %define srcname qemu Name: qemu%{name_suffix} URL: https://www.qemu.org/ Summary: %{summary_string} License: BSD-2-Clause AND BSD-3-Clause AND GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT Group: System/Emulators/PC Version: %qemuver Release: 0 Source: https://wiki.qemu.org/download/%{srcname}-%{srcver}.tar.xz Source99: https://wiki.qemu.org/download/%{srcname}-%{srcver}.tar.xz.sig Source100: %{srcname}.keyring Source1: 80-kvm.rules Source2: kvm.conf Source3: qemu-ifup Source4: bridge.conf Source5: qemu-kvm.1.gz Source6: ksm.service Source7: qemu-ga@.service Source8: 80-qemu-ga.rules Source9: qemu-supportconfig Source10: supported.arm.txt Source11: supported.ppc.txt Source12: supported.x86.txt Source13: supported.s390.txt Source14: 50-seabios-256k.json Source15: 60-seabios-128k.json Source200: qemu-rpmlintrc Source201: pkg-split.txt Source300: bundles.tar.xz Source301: update_git.sh Source302: config.sh Source303: README.PACKAGING # Upstream First -- https://wiki.qemu.org/Contribute/SubmitAPatch # This patch queue is auto-generated - see README.PACKAGING for process # Patches applied in base project: Patch00000: i386-Add-MSR-feature-bit-for-MDS-NO.patch Patch00001: i386-Add-macro-for-stibp.patch Patch00002: i386-Add-new-CPU-model-Cooperlake.patch Patch00003: linux-headers-Update-against-Linux-5.5-1.patch Patch00004: iotests-Skip-test-060-if-it-is-not-possi.patch Patch00005: iotests-Skip-test-079-if-it-is-not-possi.patch Patch00006: iotests-Provide-a-function-for-checking-.patch Patch00007: virtio-don-t-enable-notifications-during.patch Patch00008: numa-Extend-CLI-to-provide-initiator-inf.patch Patch00009: numa-Extend-CLI-to-provide-memory-latenc.patch Patch00010: numa-Extend-CLI-to-provide-memory-side-c.patch Patch00011: hmat-acpi-Build-Memory-Proximity-Domain-.patch Patch00012: hmat-acpi-Build-System-Locality-Latency-.patch Patch00013: hmat-acpi-Build-Memory-Side-Cache-Inform.patch Patch00014: tests-numa-Add-case-for-QMP-build-HMAT.patch Patch00015: linux-headers-Update-against-Linux-5.5-r.patch Patch00016: target-i386-Add-new-bit-definitions-of-M.patch Patch00017: target-i386-Add-missed-features-to-Coope.patch Patch00018: i386-acpi-Remove-_HID-from-the-SMBus-ACP.patch Patch00019: vnc-prioritize-ZRLE-compression-over-ZLI.patch Patch00020: target-i386-add-a-ucode-rev-property.patch Patch00021: target-i386-kvm-initialize-microcode-rev.patch Patch00022: target-i386-fix-TCG-UCODE_REV-access.patch Patch00023: target-i386-check-for-availability-of-MS.patch Patch00024: target-i386-enable-monitor-and-ucode-rev.patch Patch00025: linux-headers-update-against-Linux-5.6-r.patch Patch00026: aio-wait-delegate-polling-of-main-AioCon.patch Patch00027: async-use-explicit-memory-barriers.patch Patch00028: block-iscsi-fix-heap-buffer-overflow-in-.patch Patch00029: virtio-net-fix-rsc_ext-compat-handling.patch Patch00030: linux-headers-update-against-Linux-5.7-r.patch Patch00031: audio-fix-wavcapture-segfault.patch Patch00032: sm501-Convert-printf-abort-to-qemu_log_m.patch Patch00033: sm501-Shorten-long-variable-names-in-sm5.patch Patch00034: sm501-Use-BIT-x-macro-to-shorten-constan.patch Patch00035: sm501-Clean-up-local-variables-in-sm501_.patch Patch00036: sm501-Replace-hand-written-implementatio.patch Patch00037: megasas-use-unsigned-type-for-reply_queu.patch Patch00038: exec-set-map-length-to-zero-when-returni.patch Patch00039: Linux-headers-update-against-Linux-5.8-r.patch Patch00040: hw-net-xgmac-Fix-buffer-overflow-in-xgma.patch Patch00041: s390x-protvirt-allow-to-IPL-secure-guest.patch Patch00042: hw-net-net_tx_pkt-fix-assertion-failure-.patch Patch00043: hw-xhci-check-return-value-of-usb_packet.patch Patch00044: hw-ehci-check-return-value-of-usb_packet.patch Patch00045: usb-fix-setup_len-init-CVE-2020-14364.patch Patch00046: hw-usb-hcd-ohci-check-len-and-frame_numb.patch Patch00047: hw-usb-hcd-ohci-check-for-processed-TD-b.patch Patch00048: linux-headers-sync-to-5.9-rc4.patch Patch00049: pc-bios-s390-ccw-fix-off-by-one-error.patch Patch00050: pc-bios-s390-ccw-break-loop-if-a-null-bl.patch Patch00051: linux-headers-sync-to-5.9-rc7.patch Patch00052: s390x-s390-virtio-ccw-Reset-PCI-devices-.patch Patch00053: linux-headers-update-against-5.10-rc1.patch Patch00054: vfio-Create-shared-routine-for-scanning-.patch Patch00055: vfio-Find-DMA-available-capability.patch Patch00056: s390x-pci-Add-routine-to-get-the-vfio-dm.patch Patch00057: s390x-pci-Honor-DMA-limits-set-by-vfio.patch Patch00058: ati-check-x-y-display-parameter-values.patch Patch00059: s390x-fix-build-for-without-default-devi.patch Patch00060: net-remove-an-assert-call-in-eth_get_gso.patch Patch00061: hw-net-e1000e-advance-desc_offset-in-cas.patch Patch00062: ide-atapi-assert-that-the-buffer-pointer.patch Patch00063: memory-clamp-cached-translation-in-case-.patch Patch00064: virtio-scsi-trace-events.patch Patch00065: 9pfs-Fully-restart-unreclaim-loop-CVE-20.patch Patch00066: hw-intc-arm_gic-Fix-interrupt-ID-in-GICD.patch Patch00067: hw-pci-host-add-pci-intack-write-method.patch Patch00068: pci-host-designware-add-pcie-msi-read-me.patch Patch00069: vfio-add-quirk-device-write-method.patch Patch00070: prep-add-ppc-parity-write-method.patch Patch00071: nvram-add-nrf51_soc-flash-read-method.patch Patch00072: spapr_pci-add-spapr-msi-read-method.patch Patch00073: tz-ppc-add-dummy-read-write-methods.patch Patch00074: imx7-ccm-add-digprog-mmio-write-method.patch Patch00075: e1000-fail-early-for-evil-descriptor.patch Patch00076: net-introduce-qemu_receive_packet.patch Patch00077: e1000-switch-to-use-qemu_receive_packet-.patch Patch00078: dp8393x-switch-to-use-qemu_receive_packe.patch Patch00079: sungem-switch-to-use-qemu_receive_packet.patch Patch00080: tx_pkt-switch-to-use-qemu_receive_packet.patch Patch00081: rtl8139-switch-to-use-qemu_receive_packe.patch Patch00082: pcnet-switch-to-use-qemu_receive_packet-.patch Patch00083: cadence_gem-switch-to-use-qemu_receive_p.patch Patch00084: lan9118-switch-to-use-qemu_receive_packe.patch Patch00085: hw-isa-piix4-Migrate-Reset-Control-Regis.patch Patch00086: net-vmxnet3-validate-configuration-value.patch Patch00087: XXX-dont-dump-core-on-sigabort.patch Patch00088: qemu-binfmt-conf-Modify-default-path.patch Patch00089: qemu-cvs-gettimeofday.patch Patch00090: qemu-cvs-ioctl_debug.patch Patch00091: qemu-cvs-ioctl_nodirection.patch Patch00092: linux-user-add-binfmt-wrapper-for-argv-0.patch Patch00093: PPC-KVM-Disable-mmu-notifier-check.patch Patch00094: linux-user-binfmt-support-host-binaries.patch Patch00095: linux-user-Fake-proc-cpuinfo.patch Patch00096: linux-user-use-target_ulong.patch Patch00097: Make-char-muxer-more-robust-wrt-small-FI.patch Patch00098: linux-user-lseek-explicitly-cast-non-set.patch Patch00099: AIO-Reduce-number-of-threads-for-32bit-h.patch Patch00100: xen_disk-Add-suse-specific-flush-disable.patch Patch00101: qemu-bridge-helper-reduce-security-profi.patch Patch00102: qemu-binfmt-conf-use-qemu-ARCH-binfmt.patch Patch00103: linux-user-properly-test-for-infinite-ti.patch Patch00104: roms-Makefile-pass-a-packaging-timestamp.patch Patch00105: Raise-soft-address-space-limit-to-hard-l.patch Patch00106: increase-x86_64-physical-bits-to-42.patch Patch00107: vga-Raise-VRAM-to-16-MiB-for-pc-0.15-and.patch Patch00108: i8254-Fix-migration-from-SLE11-SP2.patch Patch00109: acpi_piix4-Fix-migration-from-SLE11-SP2.patch Patch00110: Switch-order-of-libraries-for-mpath-supp.patch Patch00111: Make-installed-scripts-explicitly-python.patch Patch00112: hw-smbios-handle-both-file-formats-regar.patch Patch00113: xen-add-block-resize-support-for-xen-dis.patch Patch00114: tests-qemu-iotests-Triple-timeout-of-i-o.patch Patch00115: tests-Fix-block-tests-to-be-compatible-w.patch Patch00116: xen-ignore-live-parameter-from-xen-save-.patch Patch00117: Conditionalize-ui-bitmap-installation-be.patch Patch00118: tests-change-error-message-in-test-162.patch Patch00119: hw-usb-hcd-xhci-Fix-GCC-9-build-warning.patch Patch00120: hw-usb-dev-mtp-Fix-GCC-9-build-warning.patch Patch00121: hw-intc-exynos4210_gic-provide-more-room.patch Patch00122: configure-only-populate-roms-if-softmmu.patch Patch00123: pc-bios-s390-ccw-net-avoid-warning-about.patch Patch00124: roms-change-cross-compiler-naming-to-be-.patch Patch00125: tests-Disable-some-block-tests-for-now.patch Patch00126: test-add-mapping-from-arch-of-i686-to-qe.patch Patch00127: roms-Makefile-enable-cross-compile-for-b.patch Patch00128: hw-i386-disable-smbus-migration-for-xenf.patch Patch00129: s390x-Don-t-do-a-normal-reset-on-the-ini.patch Patch00130: s390x-Move-reset-normal-to-shared-reset-.patch Patch00131: s390x-Move-initial-reset.patch Patch00132: s390x-Move-clear-reset.patch Patch00133: s390x-kvm-Make-kvm_sclp_service_call-voi.patch Patch00134: s390x-ipl-Consolidate-iplb-validity-chec.patch Patch00135: s390x-Beautify-diag308-handling.patch Patch00136: s390x-Add-missing-vcpu-reset-functions.patch Patch00137: s390x-Move-diagnose-308-subcodes-and-rcs.patch Patch00138: vhost-correctly-turn-on-VIRTIO_F_IOMMU_P.patch Patch00139: Sync-pv.patch Patch00140: s390x-protvirt-Support-unpack-facility.patch Patch00141: s390x-protvirt-Add-migration-blocker.patch Patch00142: s390x-protvirt-Inhibit-balloon-when-swit.patch Patch00143: s390x-protvirt-KVM-intercept-changes.patch Patch00144: s390x-Add-SIDA-memory-ops.patch Patch00145: s390x-protvirt-Move-STSI-data-over-SIDAD.patch Patch00146: s390x-protvirt-SCLP-interpretation.patch Patch00147: s390x-protvirt-Set-guest-IPL-PSW.patch Patch00148: s390x-protvirt-Move-diag-308-data-over-S.patch Patch00149: s390x-protvirt-Disable-address-checks-fo.patch Patch00150: s390x-protvirt-Move-IO-control-structure.patch Patch00151: s390x-protvirt-Handle-SIGP-store-status-.patch Patch00152: s390x-Add-unpack-facility-feature-to-GA1.patch Patch00153: s390x-s390-virtio-ccw-Fix-build-on-syste.patch Patch00154: configure-remove-pkgversion-from-CONFIG_.patch Patch00155: gcc10-maybe-uninitialized.patch Patch00156: Revert-meson-build-file-back-to-Make.obj.patch Patch00157: scsi-make-io_timeout-settable.patch Patch00158: scsi-add-tracing-for-SG_IO-commands.patch Patch00159: scsi-disk-set-default-I-O-timeout-to-30-.patch Patch00160: virtio-scsi-translate-SG_IO-host-status.patch Patch00161: scsi-generic-check-for-additional-SG_IO-.patch Patch00162: scsi-disk-fold-SG_IO-errors-back-into-re.patch Patch00163: scsi-disk-trace-rw-errors.patch Patch00164: virtio-scsi-change-DID-TIMEOUT-handling.patch Patch00165: pc-bios-s390-ccw-don-t-try-to-read-the-n.patch Patch00166: hw-sd-sdhci-Fix-DMA-Transfer-Block-Size-.patch Patch00167: qom-make-object_ref-unref-use-a-void-ins.patch Patch00168: rcu-Implement-drain_call_rcu.patch Patch00169: qdev-add-check-if-address-free-callback-.patch Patch00170: scsi-scsi_bus-switch-search-direction-in.patch Patch00171: device_core-use-drain_call_rcu-in-in-qmp.patch Patch00172: device-core-use-RCU-for-list-of-children.patch Patch00173: scsi-switch-to-bus-check_address.patch Patch00174: device-core-use-atomic_set-on-.realized-.patch Patch00175: scsi-scsi-bus-scsi_device_find-don-t-ret.patch Patch00176: scsi-scsi_bus-Add-scsi_device_get.patch Patch00177: virtio-scsi-use-scsi_device_get.patch Patch00178: scsi-scsi_bus-fix-races-in-REPORT-LUNS.patch Patch00179: xen-block-Fix-removal-of-backend-instanc.patch Patch00180: migration-migration.c-Fix-hang-in-ram_sa.patch Patch00181: vhost-user-gpu-fix-memory-disclosure-in-.patch Patch00182: vhost-user-gpu-fix-resource-leak-in-vg_r.patch Patch00183: vhost-user-gpu-fix-memory-leak-in-vg_res.patch Patch00184: vhost-user-gpu-fix-memory-leak-while-cal.patch Patch00185: vhost-user-gpu-fix-leak-in-virgl_cmd_res.patch Patch00186: vhost-user-gpu-fix-leak-in-virgl_resourc.patch Patch00187: vhost-user-gpu-fix-OOB-write-in-virgl_cm.patch Patch00188: vhost-user-gpu-abstract-vg_cleanup_mappi.patch Patch00189: blockjob-Fix-crash-with-IOthread-when-bl.patch Patch00190: tests-add-migration-helpers-unit.patch Patch00191: qtest-rename-qtest_qmp_receive-to-qtest_.patch Patch00192: qtest-Reintroduce-qtest_qmp_receive-with.patch Patch00193: qtest-remove-qtest_qmp_receive_success.patch Patch00194: device-plug-test-use-qtest_qmp-to-send-t.patch Patch00195: qtest-switch-users-back-to-qtest_qmp_rec.patch Patch00196: qtest-check-that-drives-are-really-appea.patch Patch00197: qemu-iotests-qtest-rewrite-test-067-as-a.patch Patch00198: qom-code-hardening-have-bound-checking-w.patch Patch00199: hw-rdma-Fix-possible-mremap-overflow-in-.patch Patch00200: pvrdma-Ensure-correct-input-on-ring-init.patch Patch00201: pvrdma-Fix-the-ring-init-error-flow-CVE-.patch Patch00202: esp-always-check-current_req-is-not-NULL.patch Patch00203: esp-ensure-cmdfifo-is-not-empty-and-curr.patch Patch00204: esp-don-t-reset-async_len-directly-in-es.patch Patch00205: esp-ensure-that-do_cmd-is-set-to-zero-be.patch Patch00206: hw-scsi-megasas-check-for-NULL-frame-in-.patch Patch00207: net-eepro100-validate-various-address-va.patch Patch00208: hw-usb-host-stub-Remove-unused-header.patch Patch00209: usb-hid-avoid-dynamic-stack-allocation.patch Patch00210: usb-redir-avoid-dynamic-stack-allocation.patch Patch00211: usb-mtp-avoid-dynamic-stack-allocation.patch Patch00212: usb-limit-combined-packets-to-1-MiB-CVE-.patch Patch00213: usbredir-fix-free-call.patch Patch00214: xen-remove-BlockBackend-object-reference.patch Patch00215: file-posix-fix-max_iov-for-dev-sg-device.patch Patch00216: scsi-generic-pass-max_segments-via-max_i.patch Patch00217: osdep-provide-ROUND_DOWN-macro.patch Patch00218: block-backend-align-max_transfer-to-requ.patch Patch00219: block-add-max_hw_transfer-to-BlockLimits.patch Patch00220: file-posix-try-BLKSECTGET-on-block-devic.patch Patch00221: virtio-net-fix-use-after-unmap-free-for-.patch Patch00222: uas-add-stream-number-sanity-checks.patch Patch00223: qga-fix-assert-regression-on-guest-shutd.patch Patch00224: build-no-pie-is-no-functional-linker-fla.patch Patch00225: hw-block-fdc-Extract-blk_create_empty_dr.patch Patch00226: hw-block-fdc-Kludge-missing-floppy-drive.patch Patch00227: hw-sd-sdcard-Update-coding-style-to-make.patch Patch00228: hw-sd-sdcard-Do-not-switch-to-ReceivingD.patch Patch00229: hw-usb-hcd-ehci-fix-writeback-order.patch Patch00230: softmmu-Always-initialize-xlat-in-addres.patch Patch00231: scsi-lsi53c895a-fix-use-after-free-in-ls.patch Patch00232: display-qxl-render-fix-race-condition-in.patch Patch00233: ui-cursor-fix-integer-overflow-in-cursor.patch Patch00234: hw-sd-sdhci-Don-t-transfer-any-data-when.patch Patch00235: hw-sd-sdhci-Don-t-write-to-SDHC_SYSAD-re.patch Patch00236: hw-sd-sdhci-Correctly-set-the-controller.patch Patch00237: hw-sd-sdhci-Limit-block-size-only-when-S.patch Patch00238: hw-sd-sdhci-Reset-the-data-pointer-of-s-.patch Patch00239: block-introduce-max_hw_iov-for-use-in-sc.patch Patch00240: block-scsi-correctly-emulate-the-VPD-blo.patch Patch00241: scsi-generic-Fix-emulated-block-limits-V.patch Patch00242: hw-scsi-scsi-generic-Fixup-VPD-block-lim.patch Patch00243: hw-block-fdc-Prevent-end-of-track-overru.patch Patch00244: hw-display-qxl-Have-qxl_log_command-Retu.patch Patch00245: hw-display-qxl-Document-qxl_phys2virt.patch Patch00246: hw-display-qxl-Pass-requested-buffer-siz.patch Patch00247: hw-display-qxl-Avoid-buffer-overrun-in-q.patch Patch00248: hw-display-qxl-Assert-memory-slot-fits-i.patch # Patches applied in roms/seabios/: Patch01000: seabios-use-python2-explicitly-as-needed.patch Patch01001: seabios-switch-to-python3-as-needed.patch Patch01002: enable-cross-compilation-on-ARM.patch Patch01003: vga-fix-cirrus-bios.patch Patch01004: ldnoexec-Add-script-to-remove-ET_EXEC-fl.patch Patch01005: vgasrc-ignore-.node.gnu.property-binutil.patch # Patches applied in roms/ipxe/: Patch02000: stub-out-the-SAN-req-s-in-int13.patch Patch02001: ipxe-Makefile-fix-issues-of-build-reprod.patch Patch02002: Fix-s-directive-argument-is-null-error.patch Patch02003: Workaround-compilation-error-with-gcc-9..patch Patch02004: Do-not-apply-WORKAROUND_CFLAGS-for-host-.patch # Patches applied in roms/sgabios/: Patch03000: sgabios-Makefile-fix-issues-of-build-rep.patch Patch03001: roms-sgabios-Fix-csum8-to-be-built-by-ho.patch # Patches applied in ui/keycodemapdb/: Patch08000: Make-keycode-gen-output-reproducible-use.patch # Patches applied in slirp/: Patch09000: slirp-check-pkt_len-before-reading-proto.patch Patch09001: Drop-bogus-IPv6-messages.patch Patch09002: Add-mtod_check.patch Patch09003: bootp-limit-vendor-specific-area-to-inpu.patch Patch09004: bootp-check-bootp_input-buffer-size.patch Patch09005: upd6-check-udp6_input-buffer-size.patch Patch09006: tftp-check-tftp_input-buffer-size.patch Patch09007: tftp-introduce-a-header-structure.patch Patch09008: udp-check-upd_input-buffer-size.patch Patch09009: dhcp-Always-send-DHCP_OPT_LEN-bytes-in-o.patch # Patches applied in roms/qboot/: Patch12000: ensure-headers-included-are-compatible-w.patch Patch12001: Enable-cross-compile-prefix-for-C-compil.patch # Please do not add patches manually here. BuildRoot: %{_tmppath}/%{name}-%{version}-build %if "%{name}" == "qemu-linux-user" BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: glib2-devel-static BuildRequires: glibc-devel-static BuildRequires: makeinfo BuildRequires: pcre-devel-static BuildRequires: python3-base BuildRequires: zlib-devel-static # we must not install the qemu-linux-user package when under QEMU build %if 0%{?qemu_user_space_build:1} #!BuildIgnore: post-build-checks %endif %description QEMU provides CPU emulation along with other related capabilities. This package provides programs to run user space binaries and libraries meant for another architecture. The syscall interface is intercepted and execution below the syscall layer occurs on the native hardware and operating system. # above section is for qemu-linux-user # ------------------------------------------------------------------------ %else %if %{build_x86_firmware_from_source} BuildRequires: acpica %endif BuildRequires: alsa-devel %if %{build_x86_firmware_from_source} BuildRequires: binutils-devel %endif BuildRequires: bison BuildRequires: bluez-devel BuildRequires: brlapi-devel %ifnarch %{ix86} aarch64 %arm BuildRequires: cross-aarch64-binutils BuildRequires: cross-aarch64-gcc%gcc_version %endif %ifnarch %{ix86} %arm BuildRequires: cross-arm-binutils BuildRequires: cross-arm-gcc%gcc_version %endif %if %{build_x86_firmware_from_source} %ifnarch %{ix86} x86_64 # We must cross-compile on non-x86* BuildRequires: cross-i386-binutils BuildRequires: cross-i386-gcc%gcc_version BuildRequires: cross-x86_64-binutils BuildRequires: cross-x86_64-gcc%gcc_version %endif %endif BuildRequires: curl-devel BuildRequires: cyrus-sasl-devel %if %{build_x86_firmware_from_source} BuildRequires: dos2unix %endif BuildRequires: fdupes BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: glib2-devel >= 2.48 %if %{build_x86_firmware_from_source} BuildRequires: glibc-devel-32bit %endif %if 0%{?with_glusterfs} BuildRequires: glusterfs-devel >= 3 %endif BuildRequires: gtk3-devel >= 3.16 BuildRequires: libaio-devel BuildRequires: libattr-devel BuildRequires: libbz2-devel %if 0%{?is_opensuse} BuildRequires: libcacard-devel >= 2.5.1 %endif BuildRequires: libcap-devel BuildRequires: libcap-ng-devel BuildRequires: libdrm-devel BuildRequires: libepoxy-devel BuildRequires: libfdt-devel >= 1.4.2 BuildRequires: libgbm-devel BuildRequires: libgcrypt-devel >= 1.5.0 BuildRequires: libgnutls-devel >= 3.1.18 BuildRequires: libiscsi-devel >= 1.9.0 BuildRequires: libjpeg-devel %if 0%{?is_opensuse} BuildRequires: libnfs-devel >= 1.9.3 %endif %ifnarch %arm s390x BuildRequires: libnuma-devel %endif BuildRequires: libpixman-1-0-devel >= 0.21.8 %ifarch x86_64 BuildRequires: libpmem-devel %endif BuildRequires: libpng-devel BuildRequires: libpulse-devel %if 0%{?with_rbd} BuildRequires: librbd-devel %endif %if 0%{?is_opensuse} BuildRequires: libSDL2-devel BuildRequires: libSDL2_image-devel %endif BuildRequires: libseccomp-devel >= 2.3.0 BuildRequires: libspice-server-devel >= 0.12.5 BuildRequires: libssh-devel >= 0.8 BuildRequires: libusb-1_0-devel >= 1.0.13 BuildRequires: libvdeplug-devel BuildRequires: pkgconfig(libudev) %if 0%{?is_opensuse} BuildRequires: lzfse-devel %endif BuildRequires: Mesa-devel BuildRequires: libxkbcommon-devel BuildRequires: lzo-devel BuildRequires: makeinfo BuildRequires: multipath-tools-devel %if %{build_x86_firmware_from_source} BuildRequires: nasm %endif BuildRequires: ncurses-devel BuildRequires: pkgconfig BuildRequires: pwdutils BuildRequires: python-base BuildRequires: python3-Sphinx BuildRequires: python3-base BuildRequires: rdma-core-devel BuildRequires: snappy-devel BuildRequires: spice-protocol-devel >= 0.12.3 BuildRequires: pkgconfig(systemd) %{?systemd_ordering} %if %{kvm_available} BuildRequires: pkgconfig(udev) %endif BuildRequires: usbredir-devel >= 0.6 BuildRequires: virglrenderer-devel >= 0.4.1 BuildRequires: vte-devel %ifarch x86_64 BuildRequires: xen-devel >= 4.2 %endif BuildRequires: xfsprogs-devel %if %{build_x86_firmware_from_source} BuildRequires: xz-devel %endif BuildRequires: zlib-devel %if "%{name}" == "qemu-testsuite" BuildRequires: bc BuildRequires: python-base BuildRequires: qemu-arm = %{qemuver} BuildRequires: qemu-audio-alsa = %{qemuver} BuildRequires: qemu-audio-pa = %{qemuver} %if 0%{?is_opensuse} BuildRequires: qemu-audio-sdl = %{qemuver} %endif BuildRequires: qemu-block-curl = %{qemuver} BuildRequires: qemu-block-dmg = %{qemuver} %if 0%{?with_glusterfs} BuildRequires: qemu-block-gluster = %{qemuver} %endif BuildRequires: qemu-block-iscsi = %{qemuver} %if 0%{?is_opensuse} BuildRequires: qemu-block-nfs = %{qemuver} %endif %if 0%{?with_rbd} BuildRequires: qemu-block-rbd = %{qemuver} %endif BuildRequires: qemu-block-ssh = %{qemuver} %if %{provide_edk2_firmware} BuildRequires: qemu-edk2 = %{qemuver} %endif BuildRequires: qemu-extra = %{qemuver} BuildRequires: qemu-guest-agent = %{qemuver} BuildRequires: qemu-ipxe = 1.0.0+ %if 0%{?is_opensuse} BuildRequires: qemu-ksm = %{qemuver} %endif BuildRequires: qemu-lang = %{qemuver} BuildRequires: qemu-ppc = %{qemuver} BuildRequires: qemu-s390 = %{qemuver} BuildRequires: qemu-seabios = %{sbver} BuildRequires: qemu-sgabios = 8 BuildRequires: qemu-tools = %{qemuver} BuildRequires: qemu-ui-curses = %{qemuver} BuildRequires: qemu-ui-gtk = %{qemuver} %if 0%{?is_opensuse} BuildRequires: qemu-ui-sdl = %{qemuver} %endif BuildRequires: qemu-ui-spice-app = %{qemuver} BuildRequires: qemu-vgabios = %{sbver} BuildRequires: qemu-x86 = %{qemuver} %endif Requires(pre): shadow Requires(post): coreutils %if %{kvm_available} Requires(post): acl Requires(post): udev %ifarch s390x Requires(post): procps %endif Recommends: kvm_stat %endif Recommends: qemu-block-curl Recommends: qemu-tools Recommends: qemu-ui-curses Recommends: qemu-ui-gtk %if 0%{?is_opensuse} Recommends: qemu-ui-sdl %else Obsoletes: qemu-audio-sdl <= %{qemuver} Obsoletes: qemu-ui-sdl <= %{qemuver} %endif Recommends: qemu-ui-spice-app Recommends: qemu-x86 %ifarch ppc ppc64 ppc64le Recommends: qemu-ppc %else Suggests: qemu-ppc %endif %ifarch s390x Recommends: qemu-s390 %else Suggests: qemu-s390 %endif %ifarch %arm aarch64 Recommends: qemu-arm %else Suggests: qemu-arm %endif Suggests: qemu-block-dmg %if 0%{?with_glusterfs} Suggests: qemu-block-gluster %endif Suggests: qemu-block-iscsi %if 0%{?is_opensuse} Suggests: qemu-block-nfs %endif %if 0%{?with_rbd} Suggests: qemu-block-rbd %endif Suggests: qemu-block-ssh Suggests: qemu-extra Suggests: qemu-lang %if 0%{?is_opensuse} Recommends: qemu-ksm = %{qemuver} %endif Suggests: qemu-microvm Suggests: qemu-vhost-user-gpu Provides: qemu-audio-oss = %{qemuver} Obsoletes: qemu-audio-oss < %{qemuver} %define generic_qemu_description QEMU provides full machine emulation and cross architecture usage. It closely\ integrates with KVM and Xen virtualization, allowing for excellent performance.\ Many options are available for defining the emulated environment, including\ traditional devices, direct host device access, and interfaces specific to\ virtualization. %description %{generic_qemu_description} This package acts as an umbrella package to the other QEMU sub-packages. %if "%{name}" != "qemu-testsuite" %package x86 Summary: Machine emulator and virtualizer for x86 architectures Group: System/Emulators/PC Version: %{qemuver} Release: 0 Requires: %name = %{qemuver} Requires: qemu-ipxe Requires: qemu-seabios Requires: qemu-sgabios Requires: qemu-vgabios Recommends: ovmf Recommends: qemu-microvm Recommends: qemu-ovmf-x86_64 %description x86 %{generic_qemu_description} This package provides i386 and x86_64 emulation. %package ppc Summary: Machine emulator and virtualizer for Power architectures Group: System/Emulators/PC Version: %{qemuver} Release: 0 Requires: %name = %{qemuver} Recommends: qemu-ipxe Recommends: qemu-vgabios %description ppc %{generic_qemu_description} This package provides ppc and ppc64 emulation. %package s390 Summary: Machine emulator and virtualizer for S/390 architectures Group: System/Emulators/PC Version: %{qemuver} Release: 0 Requires: %name = %{qemuver} %description s390 %{generic_qemu_description} This package provides s390x emulation. %package arm Summary: Machine emulator and virtualizer for ARM architectures Group: System/Emulators/PC Version: %{qemuver} Release: 0 Requires: %name = %{qemuver} Recommends: ovmf Recommends: qemu-ipxe Recommends: qemu-uefi-aarch64 Recommends: qemu-vgabios %description arm %{generic_qemu_description} This package provides arm emulation. %package extra Summary: Machine emulator and virtualizer for "extra" architectures Group: System/Emulators/PC Version: %{qemuver} Release: 0 Requires: %name = %{qemuver} Recommends: qemu-ipxe Recommends: qemu-vgabios %description extra %{generic_qemu_description} This package provides some lesser used emulations, including alpha, m68k, mips, moxie, sparc, and xtensa. (The term "extra" is juxtapositioned against more popular QEMU packages which are dedicated to a single architecture.) %if %{legacy_qemu_kvm} %package kvm Summary: Wrapper to enable KVM acceleration under QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %ifarch %ix86 x86_64 Requires: qemu-x86 = %{qemuver} %endif %ifarch s390x Requires: qemu-s390 = %{qemuver} %endif Provides: kvm = %{qemuver} Obsoletes: kvm < %{qemuver} %description kvm %{generic_qemu_description} This package simply provides a shell script wrapper for the QEMU program which does the actual machine emulation and virtualization for this architecture. The wrapper simply adds command-line parameters to ensure that the KVM accelerator is invoked. It provides no additional benefit, and is considered deprecated. %endif %package lang Summary: Translations for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %description lang This package contains a few language translations, particularly for the graphical user interface components that come with QEMU. The bulk of strings in QEMU are not localized. # Modules need to match {qemu-system-*,qemu-img} version. # We cannot have qemu and qemu-tools require them in the right version, # as that would drag in the dependencies the modules are supposed to avoid. # Nor can we have modules require the right version of qemu and qemu-tools # as Xen reuses our qemu-tools but does not want our qemu and qemu-x86. %define qemu_module_conflicts \ Conflicts: %name < %{qemuver}-%{release} \ Conflicts: %name > %{qemuver}-%{release} \ Conflicts: qemu-tools < %{qemuver}-%{release} \ Conflicts: qemu-tools > %{qemuver}-%{release} %package block-curl Summary: cURL block support for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 Provides: %name:%_libdir/%name/block-curl.so %{qemu_module_conflicts} %description block-curl This package contains a module for accessing network-based image files over a network connection from qemu-img tool and QEMU system emulation. %package block-dmg Summary: DMG block support for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %{qemu_module_conflicts} %description block-dmg This package contains a module for accessing Mac OS X image files from qemu-img tool and QEMU system emulation. %if 0%{?with_glusterfs} %package block-gluster Summary: GlusterFS block support for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %{qemu_module_conflicts} %description block-gluster This package contains a module for accessing network-based image files over a GlusterFS network connection from qemu-img tool and QEMU system emulation. %endif %package block-iscsi Summary: iSCSI block support for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %{qemu_module_conflicts} %description block-iscsi This package contains a module for accessing network-based image files over an iSCSI network connection from qemu-img tool and QEMU system emulation. %if 0%{?is_opensuse} %package block-nfs Summary: direct Network File System support for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %{qemu_module_conflicts} %description block-nfs This package contains a module for directly accessing nfs based image files. %endif %if 0%{?with_rbd} %package block-rbd Summary: Rados Block Device (Ceph) support for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %{qemu_module_conflicts} %description block-rbd This package contains a module for accessing ceph (rbd,rados) image files. %endif %package block-ssh Summary: SSH (SFTP) block support for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %{qemu_module_conflicts} %description block-ssh This package contains a module for accessing network-based image files over an SSH network connection from qemu-img tool and QEMU system emulation. %package ui-curses Summary: Curses based UI support for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %{qemu_module_conflicts} %description ui-curses This package contains a module for doing curses based UI for QEMU. %package ui-gtk Summary: GTK based UI support for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %{qemu_module_conflicts} %description ui-gtk This package contains a module for doing GTK based UI for QEMU. %if 0%{?is_opensuse} %package ui-sdl Summary: SDL based UI support for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %{qemu_module_conflicts} %description ui-sdl This package contains a module for doing SDL based UI for QEMU. %endif %package ui-spice-app Summary: Spice UI support for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %{qemu_module_conflicts} %description ui-spice-app This package contains a module for doing Spice based UI for QEMU. %package audio-alsa Summary: ALSA based audio support for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %{qemu_module_conflicts} %description audio-alsa This package contains a module for ALSA based audio support for QEMU. %package audio-pa Summary: Pulse Audio based audio support for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %{qemu_module_conflicts} %description audio-pa This package contains a module for Pulse Audio based audio support for QEMU. %if 0%{?is_opensuse} %package audio-sdl Summary: SDL based audio support for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %{qemu_module_conflicts} %description audio-sdl This package contains a module for SDL based audio support for QEMU. %endif %package vhost-user-gpu Summary: Vhost user mode virtio-gpu 2D/3D rendering backend for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 %{qemu_module_conflicts} %description vhost-user-gpu This package contains a vhost user mode virtio-gpu 2D/3D rendering backend for QEMU %package tools Summary: Tools for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 Provides: %name:%_libexecdir/qemu-bridge-helper Requires(pre): permissions Requires(pre): shadow Recommends: multipath-tools Recommends: qemu-block-curl %if 0%{?with_rbd} Recommends: qemu-block-rbd %endif %description tools This package contains various QEMU related tools, including a bridge helper, a virtfs helper, ivshmem, disk utilities and scripts for various purposes. %package guest-agent Summary: Guest agent for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 Provides: %name:%_bindir/qemu-ga Requires(pre): shadow Requires(post): udev Supplements: modalias(acpi*:QEMU0002%3A*) Supplements: modalias(pci:v00005853d00000001sv*sd*bc*sc*i*) Supplements: modalias(pci:v0000FFFDd00000101sv*sd*bc*sc*i*) %{?systemd_ordering} %description guest-agent This package contains the QEMU guest agent. It is installed in the linux guest to provide information and control at the guest OS level. %ifarch %{build_rom_arch} %package microvm Summary: x86 MicroVM firmware for QEMU Group: System/Emulators/PC Version: %{qemuver} Release: 0 BuildArch: noarch %description microvm This package provides minimal x86 firmware for booting certain guests. qboot based bios-microvm provides the minimum resources needed to boot PVH and bzImages. %package seabios Summary: x86 Legacy BIOS for QEMU Group: System/Emulators/PC Version: %{sbver} Release: 0 BuildArch: noarch Conflicts: %name < 1.6.0 %description seabios SeaBIOS is an open source implementation of a 16bit x86 BIOS. SeaBIOS is the default and legacy BIOS for QEMU. %package vgabios Summary: VGA BIOSes for QEMU Group: System/Emulators/PC Version: %{sbver} Release: 0 BuildArch: noarch Conflicts: %name < 1.6.0 %description vgabios VGABIOS provides the video ROM BIOSes for the following variants of VGA emulated devices: Std VGA, QXL, Cirrus CLGD 5446 and VMware emulated video card. %package sgabios Summary: Serial Graphics Adapter BIOS for QEMU Group: System/Emulators/PC Version: 8 Release: 0 BuildArch: noarch Conflicts: %name < 1.6.0 %description sgabios The Google Serial Graphics Adapter BIOS or SGABIOS provides a means for legacy x86 software to communicate with an attached serial console as if a video card were attached. %package ipxe Summary: PXE ROMs for QEMU NICs Group: System/Emulators/PC Version: 1.0.0+ Release: 0 BuildArch: noarch Conflicts: %name < 1.6.0 %description ipxe Provides Preboot Execution Environment (PXE) ROM support for various emulated network adapters available with QEMU. %endif %if %{provide_edk2_firmware} %package edk2 Summary: EDK II based firmware Group: System/Emulators/PC Version: %{qemuver} Release: 0 BuildArch: noarch %description edk2 Provides EDK II based firmware. %endif %if 0%{?is_opensuse} %package ksm Summary: Kernel Samepage Merging services Group: System/Emulators/PC Version: %{qemuver} Release: 0 Requires(pre): coreutils Requires(post): coreutils %description ksm Kernel Samepage Merging (KSM) is a memory-saving de-duplication feature, that merges anonymous (private) pages (not pagecache ones). This package provides a service file for starting and stopping KSM. %endif # above is for qemu %endif # above section is for qemu and qemu-testsuite %endif # ======================================================================== %prep %setup -q -n %{srcname}-%{expand:%%(SV=%{srcver};echo ${SV%%%%+git*})} %patch00000 -p1 %patch00001 -p1 %patch00002 -p1 %patch00003 -p1 %patch00004 -p1 %patch00005 -p1 %patch00006 -p1 %patch00007 -p1 %patch00008 -p1 %patch00009 -p1 %patch00010 -p1 %patch00011 -p1 %patch00012 -p1 %patch00013 -p1 %patch00014 -p1 %patch00015 -p1 %patch00016 -p1 %patch00017 -p1 %patch00018 -p1 %patch00019 -p1 %patch00020 -p1 %patch00021 -p1 %patch00022 -p1 %patch00023 -p1 %patch00024 -p1 %patch00025 -p1 %patch00026 -p1 %patch00027 -p1 %patch00028 -p1 %patch00029 -p1 %patch00030 -p1 %patch00031 -p1 %patch00032 -p1 %patch00033 -p1 %patch00034 -p1 %patch00035 -p1 %patch00036 -p1 %patch00037 -p1 %patch00038 -p1 %patch00039 -p1 %patch00040 -p1 %patch00041 -p1 %patch00042 -p1 %patch00043 -p1 %patch00044 -p1 %patch00045 -p1 %patch00046 -p1 %patch00047 -p1 %patch00048 -p1 %patch00049 -p1 %patch00050 -p1 %patch00051 -p1 %patch00052 -p1 %patch00053 -p1 %patch00054 -p1 %patch00055 -p1 %patch00056 -p1 %patch00057 -p1 %patch00058 -p1 %patch00059 -p1 %patch00060 -p1 %patch00061 -p1 %patch00062 -p1 %patch00063 -p1 %patch00064 -p1 %patch00065 -p1 %patch00066 -p1 %patch00067 -p1 %patch00068 -p1 %patch00069 -p1 %patch00070 -p1 %patch00071 -p1 %patch00072 -p1 %patch00073 -p1 %patch00074 -p1 %patch00075 -p1 %patch00076 -p1 %patch00077 -p1 %patch00078 -p1 %patch00079 -p1 %patch00080 -p1 %patch00081 -p1 %patch00082 -p1 %patch00083 -p1 %patch00084 -p1 %patch00085 -p1 %patch00086 -p1 %patch00087 -p1 %patch00088 -p1 %patch00089 -p1 %patch00090 -p1 %patch00091 -p1 %patch00092 -p1 %patch00093 -p1 %patch00094 -p1 %patch00095 -p1 %patch00096 -p1 %patch00097 -p1 %patch00098 -p1 %patch00099 -p1 %patch00100 -p1 %patch00101 -p1 %patch00102 -p1 %patch00103 -p1 %patch00104 -p1 %patch00105 -p1 %patch00106 -p1 %patch00107 -p1 %patch00108 -p1 %patch00109 -p1 %patch00110 -p1 %patch00111 -p1 %patch00112 -p1 %patch00113 -p1 %patch00114 -p1 %patch00115 -p1 %patch00116 -p1 %patch00117 -p1 %patch00118 -p1 %patch00119 -p1 %patch00120 -p1 %patch00121 -p1 %patch00122 -p1 %patch00123 -p1 %patch00124 -p1 %patch00125 -p1 %patch00126 -p1 %patch00127 -p1 %patch00128 -p1 %patch00129 -p1 %patch00130 -p1 %patch00131 -p1 %patch00132 -p1 %patch00133 -p1 %patch00134 -p1 %patch00135 -p1 %patch00136 -p1 %patch00137 -p1 %patch00138 -p1 %patch00139 -p1 %patch00140 -p1 %patch00141 -p1 %patch00142 -p1 %patch00143 -p1 %patch00144 -p1 %patch00145 -p1 %patch00146 -p1 %patch00147 -p1 %patch00148 -p1 %patch00149 -p1 %patch00150 -p1 %patch00151 -p1 %patch00152 -p1 %patch00153 -p1 %patch00154 -p1 %patch00155 -p1 %patch00156 -p1 %patch00157 -p1 %patch00158 -p1 %patch00159 -p1 %patch00160 -p1 %patch00161 -p1 %patch00162 -p1 %patch00163 -p1 %patch00164 -p1 %patch00165 -p1 %patch00166 -p1 %patch00167 -p1 %patch00168 -p1 %patch00169 -p1 %patch00170 -p1 %patch00171 -p1 %patch00172 -p1 %patch00173 -p1 %patch00174 -p1 %patch00175 -p1 %patch00176 -p1 %patch00177 -p1 %patch00178 -p1 %patch00179 -p1 %patch00180 -p1 %patch00181 -p1 %patch00182 -p1 %patch00183 -p1 %patch00184 -p1 %patch00185 -p1 %patch00186 -p1 %patch00187 -p1 %patch00188 -p1 %patch00189 -p1 %patch00190 -p1 %patch00191 -p1 %patch00192 -p1 %patch00193 -p1 %patch00194 -p1 %patch00195 -p1 %patch00196 -p1 %patch00197 -p1 %patch00198 -p1 %patch00199 -p1 %patch00200 -p1 %patch00201 -p1 %patch00202 -p1 %patch00203 -p1 %patch00204 -p1 %patch00205 -p1 %patch00206 -p1 %patch00207 -p1 %patch00208 -p1 %patch00209 -p1 %patch00210 -p1 %patch00211 -p1 %patch00212 -p1 %patch00213 -p1 %patch00214 -p1 %patch00215 -p1 %patch00216 -p1 %patch00217 -p1 %patch00218 -p1 %patch00219 -p1 %patch00220 -p1 %patch00221 -p1 %patch00222 -p1 %patch00223 -p1 %patch00224 -p1 %patch00225 -p1 %patch00226 -p1 %patch00227 -p1 %patch00228 -p1 %patch00229 -p1 %patch00230 -p1 %patch00231 -p1 %patch00232 -p1 %patch00233 -p1 %patch00234 -p1 %patch00235 -p1 %patch00236 -p1 %patch00237 -p1 %patch00238 -p1 %patch00239 -p1 %patch00240 -p1 %patch00241 -p1 %patch00242 -p1 %patch00243 -p1 %patch00244 -p1 %patch00245 -p1 %patch00246 -p1 %patch00247 -p1 %patch00248 -p1 %patch01000 -p1 %patch01001 -p1 %patch01002 -p1 %patch01003 -p1 %patch01004 -p1 %patch01005 -p1 %if 0%{?patch-possibly-applied-elsewhere} %patch02000 -p1 %endif %patch02001 -p1 %patch02002 -p1 %patch02003 -p1 %ifarch aarch64 %patch02004 -p1 %endif %patch03000 -p1 %patch03001 -p1 %patch08000 -p1 %patch09000 -p1 %patch09001 -p1 %patch09002 -p1 %patch09003 -p1 %patch09004 -p1 %patch09005 -p1 %patch09006 -p1 %patch09007 -p1 %patch09008 -p1 %patch09009 -p1 %patch12000 -p1 %patch12001 -p1 %if "%{name}" != "qemu-linux-user" # for the record, this set of firmware files is installed, but we don't # build (yet): bamboo.dtb canyonlands.dtb hppa-firmware.img openbios-ppc openbios-sparc32 # openbios-sparc64 palcode-clipper petalogix-ml605.dtb petalogix-s3adsp1800.dtb ppc_rom.bin # QEMU,cgthree.bin QEMU,tcx.bin qemu_vga.ndrv u-boot.e500 u-boot-sam460-20100605.bin # opensbi-riscv32-virt-fw_jump.bin # This first list group isn't specific to what this instance builds %define ppc_default_firmware {%nil} %define ppc_extra_firmware {skiboot.lid slof.bin} %define ppc64_only_default_firmware {%nil} %define ppc64_only_extra_firmware {%nil} %define riscv64_default_firmware {opensbi-riscv64-sifive_u-fw_jump.bin \ opensbi-riscv64-virt-fw_jump.bin} %define riscv64_extra_firmware {%nil} %define s390x_default_firmware {s390-ccw.img s390-netboot.img} %define s390x_extra_firmware {%nil} %define x86_default_firmware {linuxboot.bin linuxboot_dma.bin multiboot.bin \ kvmvapic.bin pvh.bin} %define x86_extra_firmware {bios.bin bios-256k.bin bios-microvm.bin \ pxe-e1000.rom pxe-eepro100.rom pxe-ne2k_pci.rom pxe-pcnet.rom pxe-rtl8139.rom \ pxe-virtio.rom sgabios.bin vgabios-ati.bin vgabios-bochs-display.bin \ vgabios.bin vgabios-cirrus.bin vgabios-qxl.bin vgabios-ramfb.bin \ vgabios-stdvga.bin vgabios-virtio.bin vgabios-vmware.bin} %define x86_64_only_default_firmware {%nil} %define x86_64_only_extra_firmware {edk2-aarch64-code.fd.bz2 \ edk2-arm-code.fd.bz2 edk2-arm-vars.fd.bz2 edk2-i386-code.fd.bz2 \ edk2-i386-secure-code.fd.bz2 edk2-i386-vars.fd.bz2 edk2-x86_64-code.fd.bz2 \ edk2-x86_64-secure-code.fd.bz2 efi-e1000.rom efi-e1000e.rom efi-eepro100.rom \ efi-ne2k_pci.rom efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom efi-vmxnet3.rom} %define firmware { \ %{?ppc_default_firmware} %{?ppc_extra_firmware} \ %{?ppc64_only_default_firmware} %{?ppc64_only_extra_firmware} \ %{?riscv64_default_firmware} %{?riscv64_extra_firmware} \ %{?s390x_default_firmware} %{?s390x_extra_firmware} \ %{?x86_default_firmware} %{?x86_extra_firmware} \ %{?x86_64_only_default_firmware} %{?x86_64_only_extra_firmware} } # This second list group is specific to what this instance builds %define ppc_default_built_firmware %{ppc_default_firmware} %if %{build_skiboot_from_source} && %{build_slof_from_source} %define ppc_extra_built_firmware %{ppc_extra_firmware} %else %if %{build_skiboot_from_source} %define ppc_extra_built_firmware {skiboot.lid} %endif %if %{build_slof_from_source} %define ppc_extra_built_firmware {slof.bin} %endif %endif %ifarch ppc64 %define ppc64_only_default_built_firmware %{ppc64_only_default_firmware} %define ppc64_only_extra_built_firmware %{ppc64_only_extra_firmware} %endif %ifarch riscv64 %define riscv64_default_built_firmware %{riscv64_default_firmware} %define riscv64_extra_built_firmware %{riscv64_extra_firmware} %endif %ifarch s390x %define s390x_default_built_firmware %{s390x_default_firmware} %define s390x_extra_built_firmware %{s390x_extra_firmware} %endif %ifarch %ix86 x86_64 %define x86_default_built_firmware %{x86_default_firmware} %ifarch x86_64 %define x86_64_only_default_built_firmware %{x86_64_only_default_firmware} %endif %endif %if %{build_x86_firmware_from_source} %define x86_extra_built_firmware %{x86_extra_firmware} %ifarch x86_64 %define x86_64_only_extra_built_firmware %{x86_64_only_extra_firmware} %endif %endif %define built_firmware { \ %{?ppc_default_built_firmware} %{?ppc_extra_built_firmware} \ %{?ppc64_only_default_built_firmware} %{?ppc64_only_extra_built_firmware} \ %{?riscv64_default_built_firmware} %{?riscv64_extra_built_firmware} \ %{?s390x_default_built_firmware} %{?s390x_extra_built_firmware} \ %{?x86_default_built_firmware} %{?x86_extra_built_firmware} \ %{?x86_64_only_default_built_firmware} %{?x86_64_only_extra_built_firmware} } %if "%{name}" != "qemu-testsuite" # delete the firmware files that we intend to build for i in %built_firmware do unlink pc-bios/$i done # ------------------------------------------------------------------------ %else # delete the firmware files that we intend to link from built packages for i in %firmware do if [[ $i =~ .*[.]bz2 ]]; then echo "Skipping %i" else unlink pc-bios/$i fi done %endif # above section is for qemu and qemu-testsuite %endif # ======================================================================== %build %define _lto_cflags %{nil} %if %build_in_tree %define mybuilddir %{_builddir}/%buildsubdir %else %define mybuilddir %{_builddir}/mybuilddir mkdir -p %mybuilddir cd %mybuilddir %endif ../%buildsubdir/configure \ --prefix=%_prefix \ --sysconfdir=%_sysconfdir \ --libdir=%_libdir \ --libexecdir=%_libexecdir \ --localstatedir=%_localstatedir \ --docdir=%_docdir/%name \ --firmwarepath=%_datadir/%name \ --python=%_bindir/python3 \ --extra-cflags="%{optflags}" \ --disable-stack-protector \ --disable-strip \ %if "%{name}" != "qemu-linux-user" --with-pkgversion="%(echo '%{distro}' | sed 's/ (.*)//')" \ --with-default-devices \ --enable-system --disable-linux-user \ --enable-tools --enable-guest-agent \ --enable-modules \ --enable-pie \ --enable-docs \ %if 0%{?is_opensuse} --audio-drv-list="pa alsa sdl" \ %else --audio-drv-list="pa alsa" \ %endif --enable-attr \ --disable-auth-pam \ --enable-bluez \ --enable-bochs \ --enable-brlapi \ --enable-bzip2 \ --enable-cap-ng \ --disable-capstone \ --enable-cloop \ --enable-coroutine-pool \ --disable-crypto-afalg \ --enable-curl \ --enable-curses \ --enable-dmg \ --enable-fdt \ --enable-gcrypt \ %if 0%{?with_glusterfs} --enable-glusterfs \ %else --disable-glusterfs \ %endif --enable-gnutls \ --enable-gtk \ --disable-hax \ --disable-hvf \ --enable-iconv \ --disable-jemalloc \ %if %{kvm_available} --enable-kvm \ %else --disable-kvm \ %endif --enable-libiscsi \ %if 0%{?is_opensuse} --enable-libnfs \ %else --disable-libnfs \ %endif %ifarch x86_64 --enable-libpmem \ %else --disable-libpmem \ %endif --enable-libssh \ --enable-libusb \ --disable-libxml2 \ --enable-linux-aio \ %if 0%{?is_opensuse} --enable-lzfse \ %else --disable-lzfse \ %endif --enable-lzo \ --disable-malloc-trim \ %if %{with system_membarrier} --enable-membarrier \ %else --disable-membarrier \ %endif --enable-mpath \ --disable-netmap \ --disable-nettle \ %ifarch %arm s390x --disable-numa \ %else --enable-numa \ %endif --enable-opengl \ --enable-parallels \ --disable-plugins \ --enable-pvrdma \ --enable-qcow1 \ --enable-qed \ %if 0%{?with_rbd} --enable-rbd \ %else --disable-rbd \ %endif --enable-rdma \ --enable-replication \ --disable-sanitizers \ %if 0%{?is_opensuse} --enable-sdl \ --enable-sdl-image \ %else --disable-sdl \ --disable-sdl-image \ %endif --enable-seccomp \ --enable-sheepdog \ %if 0%{?is_opensuse} --enable-smartcard \ %else --disable-smartcard \ %endif --enable-snappy \ --enable-spice \ --disable-tcmalloc \ --enable-tpm \ --enable-usb-redir \ --enable-vde \ --enable-vdi \ --enable-vhost-crypto \ --enable-vhost-kernel \ --enable-vhost-net \ --enable-vhost-scsi \ --enable-vhost-user \ --enable-vhost-user-fs \ --enable-vhost-vsock \ --enable-virglrenderer \ --enable-virtfs \ --enable-vnc \ --enable-vnc-jpeg \ --enable-vnc-png \ --enable-vnc-sasl \ --enable-vte \ --enable-vvfat \ --enable-werror \ --disable-whpx \ %ifarch x86_64 --enable-xen \ --enable-xen-pci-passthrough \ %else --disable-xen \ %endif --enable-xfsctl \ --enable-xkbcommon \ # above section is for qemu and qemu-testsuite # ------------------------------------------------------------------------ %else --without-default-devices \ --disable-system --enable-linux-user \ --disable-tools --disable-guest-agent \ --static \ --disable-modules \ --disable-pie \ --disable-docs \ --audio-drv-list="" \ --disable-blobs \ --disable-bochs \ --disable-capstone \ --disable-cloop \ --enable-coroutine-pool \ --disable-dmg \ --disable-fdt \ --disable-iconv \ --disable-kvm \ --disable-malloc-trim \ %if %{with system_membarrier} --enable-membarrier \ %else --disable-membarrier \ %endif --disable-parallels \ --disable-plugins \ --disable-qcow1 \ --disable-qed \ --disable-replication \ --disable-sheepdog \ --disable-slirp \ --disable-tpm \ --disable-vdi \ --disable-vhost-crypto \ --disable-vhost-kernel \ --disable-vhost-net \ --disable-vhost-scsi \ --disable-vhost-user \ --disable-vhost-user-fs \ --disable-vhost-vsock \ --disable-vnc \ --disable-vvfat \ --disable-xkbcommon \ # above section is for qemu-linux-user %endif %if "%{name}" == "qemu" make %{?_smp_mflags} V=1 # Firmware %ifarch s390x for i in %s390x_default_built_firmware do cp pc-bios/s390-ccw/$i %{_builddir}/%buildsubdir/pc-bios/ done %endif %ifarch ppc64 for i in %ppc64_only_default_built_firmware do cp pc-bios/spapr-rtas/$i %{_builddir}/%buildsubdir/pc-bios/ done %endif %ifarch %ix86 x86_64 for i in %x86_default_built_firmware do cp pc-bios/optionrom/$i %{_builddir}/%buildsubdir/pc-bios/ done %ifarch x86_64 for i in %x86_64_only_default_built_firmware do cp pc-bios/optionrom/$i %{_builddir}/%buildsubdir/pc-bios/ done %endif %endif %if %{build_x86_firmware_from_source} %ifnarch %{ix86} x86_64 export CC=x86_64-suse-linux-gcc export LD=x86_64-suse-linux-ld %endif make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms bios \ SEABIOS_EXTRAVERSION="-rebuilt.opensuse.org" \ %ifnarch %ix86 x86_64 HOSTCC=cc \ %endif make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms bios-microvm %ifnarch %ix86 %if %{provide_edk2_firmware} make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms efi \ EDK2_BASETOOLS_OPTFLAGS='-fPIE' %endif %endif make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms seavgabios \ %ifnarch %ix86 x86_64 HOSTCC=cc \ %endif make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms seavgabios-ati \ %ifnarch %ix86 x86_64 HOSTCC=cc \ %endif make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms pxerom %ifnarch %ix86 make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms efirom \ EDK2_BASETOOLS_OPTFLAGS='-fPIE' %endif make -C %{_builddir}/%buildsubdir/roms sgabios \ HOSTCC=cc %if %{force_fit_virtio_pxe_rom} pushd %{_builddir}/%buildsubdir patch -p1 < %_sourcedir/stub-out-the-SAN-req-s-in-int13.patch popd make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms pxerom_variants=virtio pxerom_targets=1af41000 pxerom %endif # enforce pxe rom sizes for migration compatability from SLE 11 SP3 forward # the following need to be > 64K %define supported_nics_large {e1000 rtl8139} # the following need to be <= 64K %define supported_nics_small {virtio} # Though not required, make unsupported pxe roms migration compatable as well %define unsupported_nics {eepro100 ne2k_pci pcnet} for i in %supported_nics_large %unsupported_nics do if test "`stat -c '%s' %{_builddir}/%buildsubdir/pc-bios/pxe-$i.rom`" -gt "131072" ; then echo "pxe rom is too large" exit 1 fi if test "`stat -c '%s' %{_builddir}/%buildsubdir/pc-bios/pxe-$i.rom`" -le "65536" ; then ./%{_builddir}/%buildsubdir/roms/ipxe/src/util/padimg.pl %{_builddir}/%buildsubdir/pc-bios/pxe-$i.rom -s 65536 -b 255 echo -ne "SEGMENT OVERAGE\0" >> %{_builddir}/%buildsubdir/pc-bios/pxe-$i.rom fi done for i in %supported_nics_small do if test "`stat -c '%s' %{_builddir}/%buildsubdir/pc-bios/pxe-$i.rom`" -gt "65536" ; then echo "pxe rom is too large" exit 1 fi done %ifnarch %{ix86} x86_64 unset CC unset LD %endif %endif %if %{build_skiboot_from_source} make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms skiboot CROSS= %endif %if %{build_slof_from_source} make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms slof %endif %if %{build_opensbi_from_source} make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms opensbi64-virt CROSS_COMPILE= make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms opensbi64-sifive_u CROSS_COMPILE= %endif # above section is for qemu %endif # ------------------------------------------------------------------------ %if "%{name}" == "qemu-testsuite" # TODO: Some of these are actually overwritten during the following make's ln -s %_bindir/qemu-img qemu-img ln -s %_bindir/qemu-ga qemu-ga ln -s %_bindir/qemu-io qemu-io ln -s %_bindir/elf2map elf2map ln -s %_bindir/qemu-nbd qemu-nbd ln -s %_bindir/qemu-edid qemu-edid ln -s %_bindir/qemu-keymap qemu-keymap ln -s %_bindir/ivshmem-client ivshmem-client ln -s %_bindir/ivshmem-server ivshmem-server ln -s %_bindir/qemu-pr-helper scsi/qemu-pr-helper ln -s %_bindir/virtfs-proxy-helper fsdev/virtfs-proxy-helper for i in %firmware do if [[ $i =~ .*[.]bz2 ]]; then echo "Skipping $i" else ln -s %_datadir/qemu/$i pc-bios/$i fi done for conf in %{_builddir}/%buildsubdir/default-configs/*-softmmu.mak; do arch=`echo "$conf" | sed -e 's|%{_builddir}/%buildsubdir/default-configs/\(.*\)-softmmu.mak|\1|g'` ln -s %_bindir/qemu-system-$arch $arch-softmmu/qemu-system-$arch done # Compile the QOM test binary first, so that ... touch -r config-host.mak pc-bios make %{?_smp_mflags} tests/qom-test %{?_smp_mflags} V=1 # ... make comes in fresh and has lots of address space (needed for 32bit, bsc#957379) make %{?_smp_mflags} check-report.tap V=1 %endif # ------------------------------------------------------------------------ %if "%{name}" == "qemu-linux-user" make %{?_smp_mflags} V=1 %ifarch %ix86 %define qemu_arch i386 %endif %ifarch x86_64 %define qemu_arch x86_64 %endif %ifarch %arm %define qemu_arch arm %endif %ifarch aarch64 %define qemu_arch aarch64 %endif %ifarch ppc %define qemu_arch ppc %endif %ifarch ppc64 %define qemu_arch ppc64 %endif %ifarch ppc64le %define qemu_arch ppc64le %endif %ifarch s390x %define qemu_arch s390x %endif %endif # ======================================================================== %check cd %mybuilddir %if "%{name}" == "qemu-testsuite" export QEMU_PROG=%_bindir/qemu-system-x86_64 export QEMU_IMG_PROG=%_bindir/qemu-img export QEMU_IO_PROG=%_bindir/qemu-io export QEMU_NBD_PROG=%_bindir/qemu-nbd make %{?_smp_mflags} check-block V=1 %endif # ------------------------------------------------------------------------ %if "%{name}" == "qemu-linux-user" %ifarch %ix86 x86_64 %arm aarch64 ppc ppc64 ppc64le s390x %{qemu_arch}-linux-user/qemu-%{qemu_arch} %_bindir/ls > /dev/null make %{?_smp_mflags} check-softfloat %endif %endif # ======================================================================== %install cd %mybuilddir %if "%{name}" == "qemu-testsuite" install -D -m 0644 check-report.tap %{buildroot}%_datadir/qemu/check-report.tap %endif # ------------------------------------------------------------------------ %if "%{name}" == "qemu-linux-user" make %{?_smp_mflags} install DESTDIR=%{buildroot} rm -rf %{buildroot}%_datadir/qemu/keymaps unlink %{buildroot}%_datadir/qemu/trace-events-all install -d -m 755 %{buildroot}%_sbindir install -m 755 scripts/qemu-binfmt-conf.sh %{buildroot}%_sbindir %fdupes -s %{buildroot} %endif # ------------------------------------------------------------------------ %if "%{name}" == "qemu" make %{?_smp_mflags} install DESTDIR=%{buildroot} %ifnarch %{build_rom_arch} for f in %{x86_extra_firmware} \ %{x86_64_only_extra_firmware}; do unlink %{buildroot}%_datadir/%name/${f%.bz2} done %define do_more_edk2_unlinks 1 %else %ifarch %ix86 aarch64 unlink %{buildroot}%_datadir/%name/edk2-aarch64-code.fd unlink %{buildroot}%_datadir/%name/edk2-arm-code.fd unlink %{buildroot}%_datadir/%name/edk2-arm-vars.fd unlink %{buildroot}%_datadir/%name/edk2-i386-code.fd unlink %{buildroot}%_datadir/%name/edk2-i386-secure-code.fd unlink %{buildroot}%_datadir/%name/edk2-i386-vars.fd unlink %{buildroot}%_datadir/%name/edk2-licenses.txt || true unlink %{buildroot}%_datadir/%name/edk2-x86_64-code.fd unlink %{buildroot}%_datadir/%name/edk2-x86_64-secure-code.fd %endif install -D -m 0644 %{SOURCE14} %{buildroot}%_datadir/%name/firmware/50-seabios-256k.json install -D -m 0644 %{SOURCE15} %{buildroot}%_datadir/%name/firmware/60-seabios-128k.json %endif %if 0%{?do_more_edk2_unlinks} || %{provide_edk2_firmware} == 0 unlink %{buildroot}%_datadir/%name/edk2-licenses.txt || true unlink %{buildroot}%_datadir/%name/firmware/50-edk2-i386-secure.json unlink %{buildroot}%_datadir/%name/firmware/50-edk2-x86_64-secure.json unlink %{buildroot}%_datadir/%name/firmware/60-edk2-aarch64.json unlink %{buildroot}%_datadir/%name/firmware/60-edk2-arm.json unlink %{buildroot}%_datadir/%name/firmware/60-edk2-i386.json unlink %{buildroot}%_datadir/%name/firmware/60-edk2-x86_64.json %endif %find_lang %name install -d -m 0755 %{buildroot}%_datadir/%name/firmware install -d -m 0755 %{buildroot}%_libexecdir/supportconfig/plugins install -d -m 0755 %{buildroot}%_sysconfdir/%name/firmware install -D -m 0644 %{SOURCE4} %{buildroot}%_sysconfdir/%name/bridge.conf install -D -m 0755 %{SOURCE3} %{buildroot}%_datadir/%name/qemu-ifup install -D -p -m 0644 %{SOURCE8} %{buildroot}/usr/lib/udev/rules.d/80-qemu-ga.rules install -D -m 0755 scripts/analyze-migration.py %{buildroot}%_bindir/analyze-migration.py install -D -m 0755 scripts/vmstate-static-checker.py %{buildroot}%_bindir/vmstate-static-checker.py install -D -m 0755 %{SOURCE9} %{buildroot}%_libexecdir/supportconfig/plugins/%name %if 0%{?is_opensuse} == 0 install -D -m 0644 %{SOURCE10} %{buildroot}%_docdir/qemu-arm/supported.txt install -D -m 0644 %{SOURCE11} %{buildroot}%_docdir/qemu-ppc/supported.txt install -D -m 0644 %{SOURCE12} %{buildroot}%_docdir/qemu-x86/supported.txt install -D -m 0644 %{SOURCE13} %{buildroot}%_docdir/qemu-s390/supported.txt %endif %if %{legacy_qemu_kvm} cat > %{buildroot}%_bindir/qemu-kvm << 'EOF' #!/bin/sh %ifarch s390x exec %_bindir/qemu-system-s390x -machine accel=kvm "$@" %else exec %_bindir/qemu-system-x86_64 -machine accel=kvm "$@" %endif EOF chmod 755 %{buildroot}%_bindir/qemu-kvm install -D -m 0644 %{SOURCE5} %{buildroot}%_mandir/man1/qemu-kvm.1.gz %if 0%{?is_opensuse} == 0 install -d %{buildroot}%_docdir/qemu-kvm %ifarch s390x ln -s ../qemu-s390/supported.txt %{buildroot}%_docdir/qemu-kvm/kvm-supported.txt %else ln -s ../qemu-x86/supported.txt %{buildroot}%_docdir/qemu-kvm/kvm-supported.txt %endif %endif %endif %if %{kvm_available} install -D -m 0644 %{SOURCE1} %{buildroot}/usr/lib/udev/rules.d/80-kvm.rules %endif install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/qemu-ga@.service %if 0%{?is_opensuse} install -D -p -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/ksm.service %endif %ifarch s390x install -D -m 0644 %{SOURCE2} %{buildroot}%_libexecdir/modules-load.d/kvm.conf %endif install -D -m 0644 %{SOURCE201} %{buildroot}%_datadir/%name/forsplits/pkg-split.txt for X in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 do ln -s pkg-split.txt %{buildroot}%_datadir/%name/forsplits/$X done %fdupes -s %{buildroot} # ======================================================================== # (qemu alone has pre* and post* sections for itself and subpackages): %pre %_bindir/getent group kvm >/dev/null || %_sbindir/groupadd -r kvm %_bindir/getent group qemu >/dev/null || %_sbindir/groupadd -r qemu %_bindir/getent passwd qemu >/dev/null || %_sbindir/useradd -r -g qemu -G kvm -d / -s /sbin/nologin \ -c "qemu user" qemu %if %{kvm_available} %post # Do not execute operations affecting host devices while running in a chroot if [ $(stat -L -c "%i" /proc/1/root/) = $(stat -L -c "%i" /) ]; then setfacl --remove-all /dev/kvm &> /dev/null || : %ifarch s390x if [ -c /dev/kvm ]; then %_bindir/chmod 0666 /dev/kvm %_bindir/chgrp kvm /dev/kvm fi %endif %udev_rules_update %_bindir/udevadm trigger -y kvm || : %ifarch s390x sysctl vm.allocate_pgste=1 || : %endif fi %endif %pre tools %_bindir/getent group kvm >/dev/null || %_sbindir/groupadd -r kvm %post tools %set_permissions %_libexecdir/qemu-bridge-helper %verifyscript tools %verify_permissions %_libexecdir/qemu-bridge-helper %pre guest-agent %_bindir/getent group kvm >/dev/null || %_sbindir/groupadd -r kvm %service_add_pre qemu-ga@.service %post guest-agent %service_add_post qemu-ga@.service if [ -e /dev/virtio-ports/org.qemu.guest_agent.0 ]; then /usr/bin/systemctl start qemu-ga@virtio\\x2dports-org.qemu.guest_agent.0.service || : fi %preun guest-agent if [ -e /dev/virtio-ports/org.qemu.guest_agent.0 ]; then /usr/bin/systemctl stop qemu-ga@virtio\\x2dports-org.qemu.guest_agent.0.service || : fi %postun guest-agent %service_del_postun_without_restart qemu-ga@.service if [ "$1" = "1" ] ; then if [ -e /dev/virtio-ports/org.qemu.guest_agent.0 ]; then /usr/bin/systemctl restart qemu-ga@virtio\\x2dports-org.qemu.guest_agent.0.service || : fi fi %if 0%{?is_opensuse} %pre ksm %service_add_pre ksm.service %post ksm %service_add_post ksm.service %preun ksm %service_del_preun ksm.service %postun ksm %service_del_postun ksm.service %endif # above section is for qemu %endif # ======================================================================== %files %defattr(-, root, root) %doc Changelog README.rst VERSION %license COPYING COPYING.LIB LICENSE %if "%{name}" == "qemu" %dir %_docdir/%name/interop %dir %_docdir/%name/interop/_static %dir %_docdir/%name/specs %dir %_docdir/%name/specs/_static %_docdir/%name/interop/.buildinfo %_docdir/%name/interop/_static/* %_docdir/%name/interop/bitmaps.html %_docdir/%name/interop/genindex.html %_docdir/%name/interop/index.html %_docdir/%name/interop/live-block-operations.html %_docdir/%name/interop/objects.inv %_docdir/%name/interop/pr-helper.html %_docdir/%name/interop/search.html %_docdir/%name/interop/searchindex.js %_docdir/%name/interop/vhost-user.html %_docdir/%name/specs/.buildinfo %_docdir/%name/specs/_static/* %_docdir/%name/specs/acpi_hw_reduced_hotplug.html %_docdir/%name/specs/genindex.html %_docdir/%name/specs/index.html %_docdir/%name/specs/objects.inv %_docdir/%name/specs/ppc-spapr-xive.html %_docdir/%name/specs/ppc-xive.html %_docdir/%name/specs/search.html %_docdir/%name/specs/searchindex.js %_docdir/%name/qemu-doc.txt %_docdir/%name/qemu-doc.html %_docdir/%name/qemu-qmp-ref.txt %_docdir/%name/qemu-qmp-ref.html %_docdir/%name/qemu-ga-ref.txt %_docdir/%name/qemu-ga-ref.html %_mandir/man1/%name.1.gz %_mandir/man7/qemu-block-drivers.7.gz %_mandir/man7/qemu-cpu-models.7.gz %_mandir/man7/qemu-qmp-ref.7.gz %_mandir/man7/qemu-ga-ref.7.gz %dir %_datadir/%name %dir %_datadir/%name/firmware %dir %_datadir/%name/forsplits %_datadir/%name/forsplits/pkg-split.txt %_datadir/%name/forsplits/00 %_datadir/%name/forsplits/01 %_datadir/%name/forsplits/02 %_datadir/%name/forsplits/03 %_datadir/%name/forsplits/04 %_datadir/%name/forsplits/05 %_datadir/%name/forsplits/06 %_datadir/%name/forsplits/07 %_datadir/%name/forsplits/08 %_datadir/%name/forsplits/09 %_datadir/%name/forsplits/10 %_datadir/%name/forsplits/11 %_datadir/%name/forsplits/12 %_datadir/%name/forsplits/13 %_datadir/%name/keymaps %_datadir/%name/qemu-nsis.bmp %_datadir/%name/trace-events-all %dir %_sysconfdir/%name %dir %_sysconfdir/%name/firmware %_datadir/%name/qemu-ifup %dir %_libexecdir/supportconfig %dir %_libexecdir/supportconfig/plugins %_libexecdir/supportconfig/plugins/%name %if %{kvm_available} /usr/lib/udev/rules.d/80-kvm.rules %ifarch s390x %_libexecdir/modules-load.d/kvm.conf %endif %endif %dir %_datadir/icons/hicolor %dir %_datadir/icons/hicolor/*/ %dir %_datadir/icons/hicolor/*/apps %_datadir/icons/hicolor/16x16/apps/qemu.png %_datadir/icons/hicolor/24x24/apps/qemu.png %_datadir/icons/hicolor/32x32/apps/qemu.bmp %_datadir/icons/hicolor/32x32/apps/qemu.png %_datadir/icons/hicolor/48x48/apps/qemu.png %_datadir/icons/hicolor/64x64/apps/qemu.png %_datadir/icons/hicolor/128x128/apps/qemu.png %_datadir/icons/hicolor/256x256/apps/qemu.png %_datadir/icons/hicolor/512x512/apps/qemu.png %_datadir/icons/hicolor/scalable/apps/qemu.svg %_datadir/applications/qemu.desktop %files x86 %defattr(-, root, root) %_bindir/qemu-system-i386 %_bindir/qemu-system-x86_64 %_datadir/%name/kvmvapic.bin %_datadir/%name/linuxboot.bin %_datadir/%name/linuxboot_dma.bin %_datadir/%name/multiboot.bin %_datadir/%name/pvh.bin %if 0%{?is_opensuse} == 0 %dir %_docdir/qemu-x86 %_docdir/qemu-x86/supported.txt %endif %files ppc %defattr(-, root, root) %_bindir/qemu-system-ppc %_bindir/qemu-system-ppc64 %_datadir/%name/bamboo.dtb %_datadir/%name/canyonlands.dtb %_datadir/%name/openbios-ppc %_datadir/%name/ppc_rom.bin %_datadir/%name/qemu_vga.ndrv %_datadir/%name/skiboot.lid %_datadir/%name/slof.bin %_datadir/%name/u-boot.e500 %_datadir/%name/u-boot-sam460-20100605.bin %if 0%{?is_opensuse} == 0 %dir %_docdir/qemu-ppc %_docdir/qemu-ppc/supported.txt %endif %files s390 %defattr(-, root, root) %_bindir/qemu-system-s390x %_datadir/%name/s390-ccw.img %_datadir/%name/s390-netboot.img %if 0%{?is_opensuse} == 0 %dir %_docdir/qemu-s390 %_docdir/qemu-s390/supported.txt %endif %files arm %defattr(-, root, root) %_bindir/qemu-system-arm %_bindir/qemu-system-aarch64 %if 0%{?is_opensuse} == 0 %dir %_docdir/qemu-arm %_docdir/qemu-arm/supported.txt %endif %files extra %defattr(-, root, root) %_bindir/qemu-system-alpha %_bindir/qemu-system-cris %_bindir/qemu-system-hppa %_bindir/qemu-system-lm32 %_bindir/qemu-system-m68k %_bindir/qemu-system-microblaze %_bindir/qemu-system-microblazeel %_bindir/qemu-system-mips %_bindir/qemu-system-mipsel %_bindir/qemu-system-mips64 %_bindir/qemu-system-mips64el %_bindir/qemu-system-moxie %_bindir/qemu-system-nios2 %_bindir/qemu-system-or1k %_bindir/qemu-system-riscv32 %_bindir/qemu-system-riscv64 %_bindir/qemu-system-sh4 %_bindir/qemu-system-sh4eb %_bindir/qemu-system-sparc %_bindir/qemu-system-sparc64 %_bindir/qemu-system-tricore %_bindir/qemu-system-unicore32 %_bindir/qemu-system-xtensa %_bindir/qemu-system-xtensaeb %_datadir/%name/hppa-firmware.img %_datadir/%name/opensbi-riscv32-virt-fw_jump.bin %_datadir/%name/opensbi-riscv64-sifive_u-fw_jump.bin %_datadir/%name/opensbi-riscv64-virt-fw_jump.bin %_datadir/%name/openbios-sparc32 %_datadir/%name/openbios-sparc64 %_datadir/%name/palcode-clipper %_datadir/%name/petalogix-ml605.dtb %_datadir/%name/petalogix-s3adsp1800.dtb %_datadir/%name/QEMU,cgthree.bin %_datadir/%name/QEMU,tcx.bin %if %{legacy_qemu_kvm} %files kvm %defattr(-,root,root) %_bindir/qemu-kvm %_mandir/man1/qemu-kvm.1.gz %if 0%{?is_opensuse} == 0 %dir %_docdir/qemu-kvm %_docdir/qemu-kvm/kvm-supported.txt %endif %endif %files block-curl %defattr(-, root, root) %dir %_libdir/%name %_libdir/%name/block-curl.so %files block-dmg %defattr(-, root, root) %dir %_libdir/%name %_libdir/%name/block-dmg-bz2.so %if 0%{?is_opensuse} %_libdir/%name/block-dmg-lzfse.so %endif %if 0%{?with_glusterfs} %files block-gluster %defattr(-, root, root) %dir %_libdir/%name %_libdir/%name/block-gluster.so %endif %files block-iscsi %defattr(-, root, root) %dir %_libdir/%name %_libdir/%name/block-iscsi.so %if 0%{?is_opensuse} %files block-nfs %defattr(-, root, root) %dir %_libdir/%name %_libdir/%name/block-nfs.so %endif %if 0%{?with_rbd} %files block-rbd %defattr(-, root, root) %dir %_libdir/%name %_libdir/%name/block-rbd.so %endif %files block-ssh %defattr(-, root, root) %dir %_libdir/%name %_libdir/%name/block-ssh.so %files ui-curses %defattr(-, root, root) %dir %_libdir/%name %_libdir/%name/ui-curses.so %files ui-gtk %defattr(-, root, root) %dir %_libdir/%name %_libdir/%name/ui-gtk.so %if 0%{?is_opensuse} %files ui-sdl %defattr(-, root, root) %dir %_libdir/%name %_libdir/%name/ui-sdl.so %endif %files ui-spice-app %defattr(-, root, root) %dir %_libdir/%name %_libdir/%name/ui-spice-app.so %files audio-alsa %defattr(-, root, root) %dir %_libdir/%name %_libdir/%name/audio-alsa.so %files audio-pa %defattr(-, root, root) %dir %_libdir/%name %_libdir/%name/audio-pa.so %if 0%{?is_opensuse} %files audio-sdl %defattr(-, root, root) %dir %_libdir/%name %_libdir/%name/audio-sdl.so %endif %files lang -f %mybuilddir/%name.lang %defattr(-, root, root) %ifarch %{build_rom_arch} %files seabios %defattr(-, root, root) %dir %_datadir/%name %_datadir/%name/bios.bin %_datadir/%name/bios-256k.bin %_datadir/%name/firmware/50-seabios-256k.json %_datadir/%name/firmware/60-seabios-128k.json %files microvm %defattr(-, root, root) %dir %_datadir/%name %_datadir/%name/bios-microvm.bin %files vgabios %defattr(-, root, root) %dir %_datadir/%name %_datadir/%name/vgabios.bin %_datadir/%name/vgabios-ati.bin %_datadir/%name/vgabios-bochs-display.bin %_datadir/%name/vgabios-cirrus.bin %_datadir/%name/vgabios-qxl.bin %_datadir/%name/vgabios-ramfb.bin %_datadir/%name/vgabios-stdvga.bin %_datadir/%name/vgabios-virtio.bin %_datadir/%name/vgabios-vmware.bin %files sgabios %defattr(-, root, root) %dir %_datadir/%name %_datadir/%name/sgabios.bin %files ipxe %defattr(-, root, root) %dir %_datadir/%name %_datadir/%name/efi-e1000.rom %_datadir/%name/efi-e1000e.rom %_datadir/%name/efi-eepro100.rom %_datadir/%name/efi-ne2k_pci.rom %_datadir/%name/efi-pcnet.rom %_datadir/%name/efi-rtl8139.rom %_datadir/%name/efi-virtio.rom %_datadir/%name/efi-vmxnet3.rom %_datadir/%name/pxe-e1000.rom %_datadir/%name/pxe-eepro100.rom %_datadir/%name/pxe-ne2k_pci.rom %_datadir/%name/pxe-pcnet.rom %_datadir/%name/pxe-rtl8139.rom %_datadir/%name/pxe-virtio.rom %if %{provide_edk2_firmware} %files edk2 %dir %_datadir/%name %dir %_datadir/%name/firmware %_datadir/%name/edk2-aarch64-code.fd %_datadir/%name/edk2-arm-code.fd %_datadir/%name/edk2-arm-vars.fd %_datadir/%name/edk2-i386-code.fd %_datadir/%name/edk2-i386-secure-code.fd %_datadir/%name/edk2-i386-vars.fd %_datadir/%name/edk2-licenses.txt %_datadir/%name/edk2-x86_64-code.fd %_datadir/%name/edk2-x86_64-secure-code.fd %_datadir/%name/firmware/50-edk2-i386-secure.json %_datadir/%name/firmware/50-edk2-x86_64-secure.json %_datadir/%name/firmware/60-edk2-aarch64.json %_datadir/%name/firmware/60-edk2-arm.json %_datadir/%name/firmware/60-edk2-i386.json %_datadir/%name/firmware/60-edk2-x86_64.json %endif %endif %files vhost-user-gpu %defattr(-, root, root) %_libexecdir/vhost-user-gpu %_docdir/%name/interop/vhost-user-gpu.html %dir %_datadir/%name/vhost-user %_datadir/%name/vhost-user/50-qemu-gpu.json %files tools %defattr(-, root, root) %_mandir/man1/qemu-img.1.gz %_mandir/man1/virtfs-proxy-helper.1.gz %_mandir/man8/qemu-nbd.8.gz %_bindir/elf2dmp %_bindir/ivshmem-client %_bindir/ivshmem-server %_bindir/qemu-edid %_bindir/qemu-img %_bindir/qemu-io %_bindir/qemu-keymap %_bindir/qemu-nbd %_bindir/qemu-pr-helper %_bindir/virtfs-proxy-helper %verify(not mode) %attr(4750,root,kvm) %_libexecdir/qemu-bridge-helper %dir %_sysconfdir/%name %config %_sysconfdir/%name/bridge.conf %_bindir/analyze-migration.py %_bindir/vmstate-static-checker.py %files guest-agent %defattr(-, root, root) %dir %_docdir/%name/interop %_docdir/%name/interop/qemu-ga.html %_mandir/man8/qemu-ga.8.gz %attr(0755,root,kvm) %_bindir/qemu-ga %{_unitdir}/qemu-ga@.service /usr/lib/udev/rules.d/80-qemu-ga.rules %if 0%{?is_opensuse} %files ksm %defattr(-, root, root) %{_unitdir}/ksm.service %endif # above section is for qemu %endif # ------------------------------------------------------------------------ %if "%{name}" == "qemu-linux-user" %_bindir/qemu-aarch64 %_bindir/qemu-aarch64_be %_bindir/qemu-alpha %_bindir/qemu-arm %_bindir/qemu-armeb %_bindir/qemu-cris %_bindir/qemu-hppa %_bindir/qemu-i386 %_bindir/qemu-m68k %_bindir/qemu-microblaze %_bindir/qemu-microblazeel %_bindir/qemu-mips %_bindir/qemu-mipsel %_bindir/qemu-mipsn32 %_bindir/qemu-mipsn32el %_bindir/qemu-mips64 %_bindir/qemu-mips64el %_bindir/qemu-nios2 %_bindir/qemu-or1k %_bindir/qemu-ppc64 %_bindir/qemu-ppc64abi32 %_bindir/qemu-ppc64le %_bindir/qemu-ppc %_bindir/qemu-riscv32 %_bindir/qemu-riscv64 %_bindir/qemu-s390x %_bindir/qemu-sh4 %_bindir/qemu-sh4eb %_bindir/qemu-sparc32plus %_bindir/qemu-sparc64 %_bindir/qemu-sparc %_bindir/qemu-tilegx %_bindir/qemu-x86_64 %_bindir/qemu-xtensa %_bindir/qemu-xtensaeb %_bindir/qemu-*-binfmt %_sbindir/qemu-binfmt-conf.sh %endif # ------------------------------------------------------------------------ %if "%{name}" == "qemu-testsuite" %_datadir/qemu/check-report.tap %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor