2015-04-12 11:13:49 +02:00
|
|
|
#
|
|
|
|
# spec file for package qemu-testsuite
|
|
|
|
#
|
2018-01-04 18:05:29 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-04-12 11:13:49 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-04-12 21:10:15 +02:00
|
|
|
%define build_x86_firmware_from_source 0
|
2017-10-16 17:47:06 +02:00
|
|
|
%define build_skiboot_from_source 0
|
2015-10-08 18:14:43 +02:00
|
|
|
%define build_slof_from_source 0
|
2017-03-15 20:38:55 +01:00
|
|
|
%define kvm_available 0
|
|
|
|
%define legacy_qemu_kvm 0
|
2017-08-31 00:22:50 +02:00
|
|
|
%define force_fit_virtio_pxe_rom 1
|
2017-03-15 20:38:55 +01:00
|
|
|
|
2017-10-03 05:16:40 +02:00
|
|
|
%if "%{?distribution}" == ""
|
|
|
|
%define distro private-build
|
|
|
|
%else
|
|
|
|
%define distro %{distribution}
|
|
|
|
%endif
|
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
# choice of building all from source or using provided binary x86 blobs
|
2017-05-05 17:05:43 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
2017-04-12 21:10:15 +02:00
|
|
|
%define build_x86_firmware_from_source 1
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
%endif
|
2017-03-15 20:38:55 +01:00
|
|
|
|
2015-10-08 18:14:43 +02:00
|
|
|
%ifarch ppc64
|
2017-10-16 17:47:06 +02:00
|
|
|
%define build_skiboot_from_source 1
|
2015-10-08 18:14:43 +02:00
|
|
|
%define build_slof_from_source 1
|
|
|
|
%endif
|
2017-03-15 20:38:55 +01:00
|
|
|
|
2015-10-21 18:53:14 +02:00
|
|
|
%ifarch ppc64le
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
|
2017-10-16 17:47:06 +02:00
|
|
|
%define build_skiboot_from_source 1
|
2015-10-21 18:53:14 +02:00
|
|
|
%define build_slof_from_source 1
|
|
|
|
%endif
|
|
|
|
%endif
|
2017-03-15 20:38:55 +01:00
|
|
|
|
2015-10-08 18:14:43 +02:00
|
|
|
%ifarch %ix86 x86_64 ppc ppc64 ppc64le s390x armv7hl aarch64
|
2015-04-12 11:13:49 +02:00
|
|
|
%define kvm_available 1
|
|
|
|
%endif
|
2017-03-15 20:38:55 +01:00
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%ifarch %ix86 x86_64 s390x
|
|
|
|
%define legacy_qemu_kvm 1
|
|
|
|
%endif
|
2017-03-15 20:38:55 +01:00
|
|
|
|
2017-10-16 17:47:06 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?is_opensuse} )
|
|
|
|
%define with_glusterfs 1
|
|
|
|
%endif
|
|
|
|
|
2016-07-12 22:12:45 +02:00
|
|
|
%ifarch x86_64
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && ( 0%{?is_opensuse} == 0 || 0%{?sle_version} > 120100 ) )
|
|
|
|
%define with_rbd 1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch aarch64
|
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?is_opensuse} == 0 && 0%{?sle_version} > 120100 )
|
2016-07-12 22:12:45 +02:00
|
|
|
%define with_rbd 1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2017-04-12 21:10:15 +02:00
|
|
|
%ifarch ppc64le
|
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?is_opensuse} == 0 && 0%{?sle_version} > 120200 )
|
|
|
|
%define with_rbd 1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch s390x
|
|
|
|
%if 0%{?is_opensuse} == 0 && 0%{?sle_version} > 120200
|
|
|
|
%define with_rbd 1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch ppc64
|
|
|
|
%if 0%{?is_opensuse} && 0%{?sle_version} > 120200
|
|
|
|
%define with_rbd 1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
%define with_seccomp 1
|
|
|
|
%endif
|
|
|
|
|
2017-08-31 22:04:54 +02:00
|
|
|
%ifarch %ix86 x86_64 s390x aarch64 ppc64le
|
2016-07-15 17:50:58 +02:00
|
|
|
%define with_seccomp 1
|
|
|
|
%endif
|
|
|
|
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%( pkg-config --exists 'udev > 190' && echo '1' ) == 01
|
|
|
|
%define _udevrulesdir /usr/lib/udev/rules.d
|
|
|
|
%else
|
|
|
|
%define _udevrulesdir /lib/udev/rules.d
|
2016-11-21 18:35:32 +01:00
|
|
|
%endif
|
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
Name: qemu-testsuite
|
|
|
|
Url: http://www.qemu.org/
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Machine emulator and virtualizer
|
2018-03-15 18:39:43 +01:00
|
|
|
License: BSD-3-Clause AND GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
|
2017-12-15 16:18:16 +01:00
|
|
|
Group: System/Emulators/PC
|
2018-02-22 23:01:24 +01:00
|
|
|
Version: 2.11.1
|
2015-04-12 11:13:49 +02:00
|
|
|
Release: 0
|
2018-02-22 23:01:24 +01:00
|
|
|
Source: http://wiki.qemu.org/download/qemu-2.11.1.tar.xz
|
|
|
|
Source99: http://wiki.qemu.org/download/qemu-2.11.1.tar.xz.sig
|
2015-04-12 11:13:49 +02:00
|
|
|
Source1: 80-kvm.rules
|
|
|
|
Source2: qemu-ifup
|
|
|
|
Source3: kvm_stat
|
2017-12-14 01:53:24 +01:00
|
|
|
Source4: kvm_stat.1.gz
|
|
|
|
Source5: qemu-kvm.1.gz
|
2015-04-12 11:13:49 +02:00
|
|
|
Source6: ksm.service
|
2018-02-08 18:43:16 +01:00
|
|
|
Source7: qemu-ga@.service
|
2015-11-19 14:51:50 +01:00
|
|
|
Source8: 80-qemu-ga.rules
|
2017-12-14 01:53:24 +01:00
|
|
|
Source9: qemu-supportconfig
|
2016-07-15 17:50:58 +02:00
|
|
|
Source10: kvm.conf
|
2017-12-14 01:53:24 +01:00
|
|
|
Source11: bridge.conf
|
2017-03-15 20:38:55 +01:00
|
|
|
Source12: supported.x86.txt
|
|
|
|
Source13: supported.s390.txt
|
|
|
|
Source14: supported.arm.txt
|
|
|
|
Source15: supported.ppc.txt
|
2015-04-12 11:13:49 +02:00
|
|
|
# Upstream First -- http://wiki.qemu-project.org/Contribute/SubmitAPatch
|
|
|
|
# This patch queue is auto-generated from https://github.com/openSUSE/qemu
|
|
|
|
Patch0001: 0001-XXX-dont-dump-core-on-sigabort.patch
|
2016-09-19 19:06:58 +02:00
|
|
|
Patch0002: 0002-qemu-binfmt-conf-Modify-default-pat.patch
|
2017-08-31 00:22:50 +02:00
|
|
|
Patch0003: 0003-qemu-cvs-gettimeofday.patch
|
|
|
|
Patch0004: 0004-qemu-cvs-ioctl_debug.patch
|
|
|
|
Patch0005: 0005-qemu-cvs-ioctl_nodirection.patch
|
|
|
|
Patch0006: 0006-linux-user-add-binfmt-wrapper-for-a.patch
|
|
|
|
Patch0007: 0007-PPC-KVM-Disable-mmu-notifier-check.patch
|
|
|
|
Patch0008: 0008-linux-user-fix-segfault-deadlock.patch
|
|
|
|
Patch0009: 0009-linux-user-binfmt-support-host-bina.patch
|
|
|
|
Patch0010: 0010-linux-user-Fake-proc-cpuinfo.patch
|
|
|
|
Patch0011: 0011-linux-user-XXX-disable-fiemap.patch
|
|
|
|
Patch0012: 0012-linux-user-use-target_ulong.patch
|
2017-12-14 01:53:24 +01:00
|
|
|
Patch0013: 0013-Make-char-muxer-more-robust-wrt-sma.patch
|
|
|
|
Patch0014: 0014-linux-user-lseek-explicitly-cast-no.patch
|
|
|
|
Patch0015: 0015-AIO-Reduce-number-of-threads-for-32.patch
|
|
|
|
Patch0016: 0016-xen_disk-Add-suse-specific-flush-di.patch
|
|
|
|
Patch0017: 0017-qemu-bridge-helper-reduce-security-.patch
|
|
|
|
Patch0018: 0018-qemu-binfmt-conf-use-qemu-ARCH-binf.patch
|
|
|
|
Patch0019: 0019-linux-user-properly-test-for-infini.patch
|
|
|
|
Patch0020: 0020-roms-Makefile-pass-a-packaging-time.patch
|
|
|
|
Patch0021: 0021-Raise-soft-address-space-limit-to-h.patch
|
|
|
|
Patch0022: 0022-increase-x86_64-physical-bits-to-42.patch
|
|
|
|
Patch0023: 0023-vga-Raise-VRAM-to-16-MiB-for-pc-0.1.patch
|
|
|
|
Patch0024: 0024-i8254-Fix-migration-from-SLE11-SP2.patch
|
|
|
|
Patch0025: 0025-acpi_piix4-Fix-migration-from-SLE11.patch
|
|
|
|
Patch0026: 0026-Fix-tigervnc-long-press-issue.patch
|
|
|
|
Patch0027: 0027-string-input-visitor-Fix-uint64-par.patch
|
|
|
|
Patch0028: 0028-test-string-input-visitor-Add-int-t.patch
|
|
|
|
Patch0029: 0029-test-string-input-visitor-Add-uint6.patch
|
|
|
|
Patch0030: 0030-tests-Add-QOM-property-unit-tests.patch
|
|
|
|
Patch0031: 0031-tests-Add-scsi-disk-test.patch
|
2018-01-26 00:50:30 +01:00
|
|
|
Patch0032: 0032-Switch-order-of-libraries-for-mpath.patch
|
2018-02-22 23:01:24 +01:00
|
|
|
Patch0033: 0033-memfd-fix-configure-test.patch
|
2018-01-26 00:50:30 +01:00
|
|
|
Patch0034: 0034-qapi-use-items-values-intead-of-ite.patch
|
|
|
|
Patch0035: 0035-qapi-Use-OrderedDict-from-standard-.patch
|
|
|
|
Patch0036: 0036-qapi-adapt-to-moved-location-of-Str.patch
|
|
|
|
Patch0037: 0037-qapi-Adapt-to-moved-location-of-mak.patch
|
|
|
|
Patch0038: 0038-qapi-remove-q-arg-to-diff-when-comp.patch
|
|
|
|
Patch0039: 0039-qapi-ensure-stable-sort-ordering-wh.patch
|
|
|
|
Patch0040: 0040-qapi-force-a-UTF-8-locale-for-runni.patch
|
|
|
|
Patch0041: 0041-scripts-ensure-signrom-treats-data-.patch
|
|
|
|
Patch0042: 0042-configure-allow-use-of-python-3.patch
|
|
|
|
Patch0043: 0043-input-add-missing-JIS-keys-to-virti.patch
|
|
|
|
Patch0044: 0044-Make-installed-scripts-explicitly-p.patch
|
2018-01-30 00:38:40 +01:00
|
|
|
Patch0045: 0045-pc-fail-memory-hot-plug-unplug-with.patch
|
2018-02-08 20:55:31 +01:00
|
|
|
Patch0046: 0046-memattrs-add-debug-attribute.patch
|
|
|
|
Patch0047: 0047-exec-add-ram_debug_ops-support.patch
|
|
|
|
Patch0048: 0048-exec-add-debug-version-of-physical-.patch
|
|
|
|
Patch0049: 0049-monitor-i386-use-debug-APIs-when-ac.patch
|
2018-02-22 23:01:24 +01:00
|
|
|
Patch0050: 0050-machine-add-memory-encryption-prope.patch
|
|
|
|
Patch0051: 0051-kvm-update-kvm.h-to-include-memory-.patch
|
|
|
|
Patch0052: 0052-docs-add-AMD-Secure-Encrypted-Virtu.patch
|
|
|
|
Patch0053: 0053-target-i386-add-Secure-Encrypted-Vi.patch
|
|
|
|
Patch0054: 0054-qmp-add-query-sev-command.patch
|
|
|
|
Patch0055: 0055-sev-i386-add-command-to-initialize-.patch
|
|
|
|
Patch0056: 0056-qmp-populate-SevInfo-fields-with-SE.patch
|
|
|
|
Patch0057: 0057-sev-i386-register-the-guest-memory-.patch
|
|
|
|
Patch0058: 0058-kvm-introduce-memory-encryption-API.patch
|
2018-02-08 20:55:31 +01:00
|
|
|
Patch0059: 0059-hmp-add-info-sev-command.patch
|
2018-02-22 23:01:24 +01:00
|
|
|
Patch0060: 0060-sev-i386-add-command-to-create-laun.patch
|
|
|
|
Patch0061: 0061-sev-i386-add-command-to-encrypt-gue.patch
|
2018-02-08 20:55:31 +01:00
|
|
|
Patch0062: 0062-target-i386-encrypt-bios-rom.patch
|
2018-02-22 23:01:24 +01:00
|
|
|
Patch0063: 0063-sev-i386-add-support-to-LAUNCH_MEAS.patch
|
|
|
|
Patch0064: 0064-sev-i386-finalize-the-SEV-guest-lau.patch
|
2018-02-08 20:55:31 +01:00
|
|
|
Patch0065: 0065-hw-i386-set-ram_debug_ops-when-memo.patch
|
2018-02-22 23:01:24 +01:00
|
|
|
Patch0066: 0066-sev-i386-add-debug-encrypt-and-decr.patch
|
2018-02-08 20:55:31 +01:00
|
|
|
Patch0067: 0067-target-i386-clear-C-bit-when-walkin.patch
|
|
|
|
Patch0068: 0068-include-add-psp-sev.h-header-file.patch
|
2018-02-22 23:01:24 +01:00
|
|
|
Patch0069: 0069-sev-i386-add-support-to-query-PLATF.patch
|
|
|
|
Patch0070: 0070-sev-i386-add-support-to-KVM_SEV_GUE.patch
|
2018-02-08 20:55:31 +01:00
|
|
|
Patch0071: 0071-qmp-add-query-sev-launch-measure-co.patch
|
2018-02-22 23:01:24 +01:00
|
|
|
Patch0072: 0072-tests-qmp-test-blacklist-query-sev-.patch
|
|
|
|
Patch0073: 0073-sev-i386-add-migration-blocker.patch
|
|
|
|
Patch0074: 0074-cpu-i386-populate-CPUID-0x8000_001F.patch
|
|
|
|
Patch0075: 0075-migration-warn-about-inconsistent-s.patch
|
2018-03-09 23:01:22 +01:00
|
|
|
Patch0076: 0076-smbios-support-setting-OEM-strings-.patch
|
2018-03-14 15:38:58 +01:00
|
|
|
Patch0077: 0077-smbios-Add-1-terminator-if-any-stri.patch
|
2018-03-15 18:39:43 +01:00
|
|
|
Patch0078: 0078-Remove-problematic-evdev-86-key-fro.patch
|
2018-04-05 22:59:57 +02:00
|
|
|
Patch0079: 0079-tpm-lookup-cancel-path-under-tpm-de.patch
|
2018-04-06 00:27:33 +02:00
|
|
|
Patch0080: 0080-vga-fix-region-calculation.patch
|
2015-04-12 11:13:49 +02:00
|
|
|
# Please do not add QEMU patches manually here.
|
|
|
|
# Run update_git.sh to regenerate this queue.
|
|
|
|
|
2018-01-26 00:50:30 +01:00
|
|
|
# If for any reason we have base QEMU patches which are conditionally applied,
|
|
|
|
# include them here
|
|
|
|
Patch1000: Make-installed-scripts-explicitly-python3.patch
|
|
|
|
|
2018-01-26 14:19:10 +01:00
|
|
|
# SeaBIOS / SeaVGABIOS
|
|
|
|
Patch1100: seabios-use-python2-explicitly-as-needed.patch
|
|
|
|
Patch1101: seabios-switch-to-python3-as-needed.patch
|
2016-06-01 23:35:28 +02:00
|
|
|
|
|
|
|
# ipxe
|
2016-11-28 19:24:03 +01:00
|
|
|
# PATCH-FIX-OPENSUSE ipxe-stable-buildid.patch brogers@suse.com -- reproducible builds
|
2018-01-26 14:19:10 +01:00
|
|
|
Patch1200: ipxe-stable-buildid.patch
|
|
|
|
Patch1201: ipxe-use-gcc6-for-more-compact-code.patch
|
2018-04-26 20:53:21 +02:00
|
|
|
Patch1202: ipxe-efi-guard-strncpy-with-gcc-warning-ignore-pragma.patch
|
2016-11-21 18:05:46 +01:00
|
|
|
|
|
|
|
# sgabios
|
2016-11-28 19:24:03 +01:00
|
|
|
# PATCH-FIX-OPENSUSE sgabios-stable-buildid.patch brogers@suse.com -- reproducible builds
|
2018-01-26 14:19:10 +01:00
|
|
|
Patch1300: sgabios-stable-buildid.patch
|
2016-11-21 18:05:46 +01:00
|
|
|
|
2017-03-15 20:38:55 +01:00
|
|
|
# SLOF (Currently no patches)
|
2015-04-12 11:13:49 +02:00
|
|
|
|
2017-10-16 17:47:06 +02:00
|
|
|
# skiboot
|
2018-01-26 14:19:10 +01:00
|
|
|
Patch1500: skiboot-GCC7-fixes-for-Wimplicit-fallthr.patch
|
|
|
|
Patch1501: skiboot-libc-stdio-vsnprintf.c-add-expli.patch
|
|
|
|
Patch1502: skiboot-build-LDFLAGS-pass-pie-flag-explicitly-to-ld.patch
|
2017-10-16 17:47:06 +02:00
|
|
|
|
2018-01-26 02:09:47 +01:00
|
|
|
# ui/keycodemapdb
|
2018-01-26 14:19:10 +01:00
|
|
|
Patch1600: ui-keycodemapdb-Add-missing-QKeyCode-val.patch
|
|
|
|
Patch1601: ui-keycodemapdb-Fix-compat-with-py3-dict.patch
|
2018-01-26 00:50:30 +01:00
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
# this is to make lint happy
|
|
|
|
Source300: qemu-rpmlintrc
|
2017-08-31 00:22:50 +02:00
|
|
|
Source301: ipxe-stub-out-the-SAN-req-s-in-int13.patch
|
2015-04-12 11:13:49 +02:00
|
|
|
Source400: update_git.sh
|
2017-03-15 20:38:55 +01:00
|
|
|
ExcludeArch: s390
|
|
|
|
%if "%{name}" == "qemu-testsuite"
|
|
|
|
ExcludeArch: s390x
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-03-15 20:38:55 +01:00
|
|
|
#!BuildIgnore: gcc-PIE
|
2017-12-14 01:53:24 +01:00
|
|
|
BuildRequires: Mesa-devel
|
2017-11-29 22:55:00 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: SDL-devel
|
2016-05-31 23:05:30 +02:00
|
|
|
%if 0%{?suse_version} >= 1320
|
|
|
|
BuildRequires: SDL2-devel
|
|
|
|
%endif
|
2017-11-29 22:55:00 +01:00
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: alsa-devel
|
2017-04-12 21:10:15 +02:00
|
|
|
%if %{build_x86_firmware_from_source}
|
2016-05-31 23:05:30 +02:00
|
|
|
BuildRequires: binutils-devel
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: bluez-devel
|
|
|
|
BuildRequires: brlapi-devel
|
|
|
|
BuildRequires: curl-devel
|
|
|
|
BuildRequires: cyrus-sasl-devel
|
|
|
|
BuildRequires: e2fsprogs-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2017-04-12 21:10:15 +02:00
|
|
|
%if %{build_x86_firmware_from_source}
|
2017-06-21 03:27:18 +02:00
|
|
|
%if 0%{?suse_version} <= 1320
|
2017-03-15 20:38:55 +01:00
|
|
|
BuildRequires: gcc6
|
|
|
|
%endif
|
2017-06-21 03:27:18 +02:00
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: glib2-devel
|
2017-10-16 17:47:06 +02:00
|
|
|
%if 0%{?with_glusterfs}
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: glusterfs-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: gtk3-devel
|
|
|
|
BuildRequires: libaio-devel
|
|
|
|
BuildRequires: libattr-devel
|
|
|
|
BuildRequires: libbz2-devel
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2016-01-27 17:31:12 +01:00
|
|
|
BuildRequires: libcacard-devel
|
2017-03-15 20:38:55 +01:00
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libcap-ng-devel
|
2016-05-31 23:05:30 +02:00
|
|
|
BuildRequires: libdrm-devel
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} >= 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
2016-05-31 23:05:30 +02:00
|
|
|
BuildRequires: libepoxy-devel
|
|
|
|
%endif
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120200 )
|
|
|
|
BuildRequires: libfdt-devel
|
|
|
|
%else
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: libfdt1-devel
|
|
|
|
%endif
|
2016-05-31 23:05:30 +02:00
|
|
|
BuildRequires: libgbm-devel
|
2016-01-27 17:31:12 +01:00
|
|
|
BuildRequires: libgcrypt-devel
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: libgnutls-devel
|
2016-07-12 22:12:45 +02:00
|
|
|
%if 0%{?with_rbd}
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} || 0%{?sle_version} > 120100
|
2016-07-12 22:12:45 +02:00
|
|
|
BuildRequires: librbd-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: ceph-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
2016-04-28 18:36:38 +02:00
|
|
|
BuildRequires: libiscsi-devel
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
2017-05-05 17:05:43 +02:00
|
|
|
%ifarch %ix86 x86_64
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: libnuma-devel
|
|
|
|
%endif
|
|
|
|
%else
|
2017-05-05 17:05:43 +02:00
|
|
|
%ifarch aarch64
|
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
|
|
|
BuildRequires: libnuma-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%else
|
2015-05-13 02:20:26 +02:00
|
|
|
%ifnarch %arm s390x
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: libnuma-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: libpcap-devel
|
|
|
|
BuildRequires: libpixman-1-0-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libpulse-devel
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?with_seccomp}
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: libseccomp-devel
|
|
|
|
%endif
|
2016-11-21 18:35:32 +01:00
|
|
|
BuildRequires: libspice-server-devel
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: libssh2-devel
|
2017-12-14 01:53:24 +01:00
|
|
|
BuildRequires: libudev-devel
|
2015-07-05 12:37:11 +02:00
|
|
|
BuildRequires: libusb-1_0-devel
|
2017-07-25 22:21:37 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
BuildRequires: libvdeplug-devel
|
|
|
|
%else
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: libvdeplug3-devel
|
2017-07-25 22:21:37 +02:00
|
|
|
%endif
|
2017-12-14 01:53:24 +01:00
|
|
|
BuildRequires: libxkbcommon-devel
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: lzo-devel
|
|
|
|
BuildRequires: makeinfo
|
2017-12-14 01:53:24 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
BuildRequires: multipath-tools
|
|
|
|
BuildRequires: multipath-tools-devel
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
BuildRequires: ncurses-devel
|
2017-04-12 21:10:15 +02:00
|
|
|
%if %{build_x86_firmware_from_source}
|
2016-05-31 23:05:30 +02:00
|
|
|
BuildRequires: ovmf-tools
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pwdutils
|
2018-01-26 14:19:10 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
BuildRequires: python3-base
|
|
|
|
%else
|
|
|
|
BuildRequires: python-base
|
|
|
|
%endif
|
2017-08-31 22:04:54 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
|
|
|
BuildRequires: rdma-core-devel
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: snappy-devel
|
2016-11-21 18:35:32 +01:00
|
|
|
BuildRequires: spice-protocol-devel
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: systemd
|
|
|
|
%{?systemd_requires}
|
|
|
|
%if %{kvm_available}
|
2016-05-31 23:05:30 +02:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
BuildRequires: usbredir-devel
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} >= 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
2016-05-31 23:05:30 +02:00
|
|
|
BuildRequires: virglrenderer-devel >= 0.4.1
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: vte-devel
|
|
|
|
%ifarch x86_64
|
|
|
|
BuildRequires: xen-devel
|
|
|
|
%endif
|
2016-05-31 23:05:30 +02:00
|
|
|
BuildRequires: xfsprogs-devel
|
2017-04-12 21:10:15 +02:00
|
|
|
%if %{build_x86_firmware_from_source}
|
2016-01-19 19:31:32 +01:00
|
|
|
BuildRequires: xz-devel
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
%if "%{name}" == "qemu-testsuite"
|
|
|
|
BuildRequires: bc
|
|
|
|
BuildRequires: qemu-arm = %version
|
2017-04-12 21:10:15 +02:00
|
|
|
BuildRequires: qemu-block-curl = %version
|
|
|
|
BuildRequires: qemu-block-dmg = %version
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: qemu-extra = %version
|
2016-01-19 19:31:32 +01:00
|
|
|
BuildRequires: qemu-guest-agent = %version
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: qemu-ppc = %version
|
|
|
|
BuildRequires: qemu-s390 = %version
|
|
|
|
BuildRequires: qemu-tools = %version
|
|
|
|
BuildRequires: qemu-x86 = %version
|
2017-10-16 17:47:06 +02:00
|
|
|
%if 0%{?with_glusterfs}
|
2017-04-12 21:10:15 +02:00
|
|
|
BuildRequires: qemu-block-gluster = %version
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
|
|
|
BuildRequires: qemu-block-iscsi = %version
|
|
|
|
%endif
|
|
|
|
%if 0%{?with_rbd}
|
|
|
|
BuildRequires: qemu-block-rbd = %version
|
|
|
|
%endif
|
|
|
|
BuildRequires: qemu-block-ssh = %version
|
|
|
|
%endif
|
2017-08-18 18:25:16 +02:00
|
|
|
Requires(pre): shadow
|
2017-03-15 20:38:55 +01:00
|
|
|
Requires(post): coreutils
|
2016-05-31 23:05:30 +02:00
|
|
|
%if %{kvm_available}
|
2017-08-18 18:25:16 +02:00
|
|
|
Requires(post): acl
|
2016-05-31 23:05:30 +02:00
|
|
|
Requires(post): udev
|
2016-06-02 20:18:10 +02:00
|
|
|
%ifarch s390x
|
|
|
|
Requires(post): procps
|
|
|
|
%endif
|
2016-09-19 19:06:58 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
Recommends: kvm_stat
|
2017-03-15 20:38:55 +01:00
|
|
|
%else
|
|
|
|
Recommends: python-curses
|
2016-09-19 19:06:58 +02:00
|
|
|
%endif
|
2016-05-31 23:05:30 +02:00
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
Recommends: qemu-block-curl
|
|
|
|
Recommends: qemu-tools
|
|
|
|
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
|
2015-08-12 18:17:59 +02:00
|
|
|
Suggests: qemu-block-dmg
|
2017-10-16 17:47:06 +02:00
|
|
|
%if 0%{?with_glusterfs}
|
2016-04-29 19:51:01 +02:00
|
|
|
Suggests: qemu-block-gluster
|
|
|
|
%endif
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
2016-04-29 19:51:01 +02:00
|
|
|
Suggests: qemu-block-iscsi
|
|
|
|
%endif
|
2016-07-12 22:12:45 +02:00
|
|
|
%if 0%{?with_rbd}
|
|
|
|
Suggests: qemu-block-rbd
|
|
|
|
%endif
|
2016-04-29 19:51:01 +02:00
|
|
|
Suggests: qemu-block-ssh
|
2015-04-12 11:13:49 +02:00
|
|
|
Suggests: qemu-extra
|
|
|
|
Suggests: qemu-lang
|
2017-12-14 01:53:24 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2015-04-12 11:13:49 +02:00
|
|
|
Recommends: qemu-ksm = %{version}
|
|
|
|
%endif
|
|
|
|
|
2017-04-12 21:10:15 +02:00
|
|
|
%define ppc_default_built_firmware {%nil}
|
2017-10-16 17:47:06 +02:00
|
|
|
%if %{build_skiboot_from_source} && %{build_slof_from_source}
|
|
|
|
%define ppc_extra_built_firmware {skiboot.lid slof.bin}
|
|
|
|
%else
|
|
|
|
%if %{build_skiboot_from_source}
|
|
|
|
%define ppc_extra_built_firmware {skiboot.lid}
|
|
|
|
%endif
|
|
|
|
%if %{build_slof_from_source}
|
2017-04-12 21:10:15 +02:00
|
|
|
%define ppc_extra_built_firmware {slof.bin}
|
|
|
|
%endif
|
2017-10-16 17:47:06 +02:00
|
|
|
%endif
|
2017-04-12 21:10:15 +02:00
|
|
|
|
|
|
|
%ifarch ppc64
|
|
|
|
%define ppc64_only_default_built_firmware {spapr-rtas.bin}
|
|
|
|
%define ppc64_only_extra_built_firmware {%nil}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch s390x
|
|
|
|
%define s390x_default_built_firmware {s390-ccw.img}
|
|
|
|
%define s390x_extra_built_firmware {%nil}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
%define x86_default_built_firmware {linuxboot.bin linuxboot_dma.bin \
|
|
|
|
multiboot.bin kvmvapic.bin}
|
2016-05-31 23:05:30 +02:00
|
|
|
%ifarch x86_64
|
2017-04-12 21:10:15 +02:00
|
|
|
%define x86_64_only_default_built_firmware {%nil}
|
|
|
|
%endif
|
2016-05-31 23:05:30 +02:00
|
|
|
%endif
|
2017-04-12 21:10:15 +02:00
|
|
|
|
|
|
|
%define x86_extra_built_firmware_list {bios.bin bios-256k.bin sgabios.bin \
|
|
|
|
vgabios.bin vgabios-cirrus.bin vgabios-stdvga.bin vgabios-virtio.bin \
|
|
|
|
vgabios-vmware.bin vgabios-qxl.bin pxe-e1000.rom pxe-pcnet.rom \
|
|
|
|
pxe-ne2k_pci.rom pxe-rtl8139.rom pxe-eepro100.rom pxe-virtio.rom}
|
|
|
|
%define x86_64_only_extra_built_firmware_list {efi-e1000.rom efi-e1000e.rom \
|
|
|
|
efi-eepro100.rom efi-pcnet.rom efi-ne2k_pci.rom efi-rtl8139.rom efi-virtio.rom \
|
|
|
|
efi-vmxnet3.rom}
|
|
|
|
|
|
|
|
%if %{build_x86_firmware_from_source}
|
|
|
|
%define x86_extra_built_firmware %{x86_extra_built_firmware_list}
|
|
|
|
%ifarch x86_64
|
|
|
|
%define x86_64_only_extra_built_firmware %{x86_64_only_extra_built_firmware_list}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%define built_firmware { \
|
|
|
|
%{?ppc_default_built_firmware} %{?ppc_extra_built_firmware} \
|
|
|
|
%{?ppc64_only_default_built_firmware} %{?ppc64_only_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} }
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%description
|
2017-12-14 01:53:24 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
This package acts as an umbrella package to the other QEMU sub-packages.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%if "%{name}" != "qemu-testsuite"
|
|
|
|
|
|
|
|
%package x86
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Machine emulator and virtualizer for x86 architectures
|
2015-04-12 11:13:49 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
Requires: qemu = %version
|
|
|
|
Requires: qemu-ipxe
|
|
|
|
Requires: qemu-seabios
|
|
|
|
Requires: qemu-sgabios
|
|
|
|
Requires: qemu-vgabios
|
2017-10-04 21:17:03 +02:00
|
|
|
Recommends: ovmf
|
|
|
|
Recommends: qemu-ovmf-x86_64
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%description x86
|
2017-12-14 01:53:24 +01:00
|
|
|
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.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
2017-12-14 01:53:24 +01:00
|
|
|
This package provides i386 and x86_64 emulation.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%package ppc
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Machine emulator and virtualizer for Power architectures
|
2015-04-12 11:13:49 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
Requires: qemu = %version
|
2016-11-28 19:24:03 +01:00
|
|
|
Recommends: qemu-ipxe
|
|
|
|
Recommends: qemu-vgabios
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%description ppc
|
2017-12-14 01:53:24 +01:00
|
|
|
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.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
2017-12-14 01:53:24 +01:00
|
|
|
This package provides ppc and ppc64 emulation.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%package s390
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Machine emulator and virtualizer for S/390 architectures
|
2015-04-12 11:13:49 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
Requires: qemu = %version
|
|
|
|
|
|
|
|
%description s390
|
2017-12-14 01:53:24 +01:00
|
|
|
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.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
2017-12-14 01:53:24 +01:00
|
|
|
This package provides s390x emulation.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%package arm
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Machine emulator and virtualizer for ARM architectures
|
2015-04-12 11:13:49 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
Requires: qemu = %version
|
2016-11-28 19:24:03 +01:00
|
|
|
Recommends: qemu-ipxe
|
|
|
|
Recommends: qemu-vgabios
|
2017-10-04 21:17:03 +02:00
|
|
|
Recommends: ovmf
|
|
|
|
Recommends: qemu-uefi-aarch64
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%description arm
|
2017-12-14 01:53:24 +01:00
|
|
|
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.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
2017-12-14 01:53:24 +01:00
|
|
|
This package provides arm emulation.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%package extra
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Machine emulator and virtualizer for "extra" architectures
|
2015-04-12 11:13:49 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
Requires: qemu = %version
|
2016-11-28 19:24:03 +01:00
|
|
|
Recommends: qemu-ipxe
|
|
|
|
Recommends: qemu-vgabios
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%description extra
|
2017-12-14 01:53:24 +01:00
|
|
|
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.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
2017-12-14 01:53:24 +01:00
|
|
|
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.)
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%if %{legacy_qemu_kvm}
|
|
|
|
%package kvm
|
|
|
|
Url: http://www.linux-kvm.org
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Wrapper to enable KVM acceleration under QEMU
|
2015-04-12 11:13:49 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
Requires: qemu-x86 = %version
|
|
|
|
%endif
|
|
|
|
%ifarch s390x
|
|
|
|
Requires: qemu-s390 = %version
|
|
|
|
%endif
|
|
|
|
Provides: kvm = %version
|
|
|
|
Obsoletes: kvm < %version
|
|
|
|
|
|
|
|
%description kvm
|
2017-12-14 01:53:24 +01:00
|
|
|
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.
|
|
|
|
|
|
|
|
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.
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%package lang
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Translations for QEMU
|
2015-04-12 11:13:49 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
|
|
|
|
%description lang
|
2017-12-14 01:53:24 +01:00
|
|
|
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.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
# 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 \
|
2016-04-29 19:51:01 +02:00
|
|
|
Conflicts: qemu < %version-%release \
|
|
|
|
Conflicts: qemu > %version-%release \
|
|
|
|
Conflicts: qemu-tools < %version-%release \
|
|
|
|
Conflicts: qemu-tools > %version-%release
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%package block-curl
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: cURL block support for QEMU
|
2015-04-12 11:13:49 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
Provides: qemu:%_libdir/%name/block-curl.so
|
|
|
|
%{qemu_module_conflicts}
|
|
|
|
|
|
|
|
%description block-curl
|
2017-12-14 01:53:24 +01:00
|
|
|
This package contains a module for accessing network-based image files over
|
|
|
|
a network connection from qemu-img tool and QEMU system emulation.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
2015-07-24 15:54:26 +02:00
|
|
|
%package block-dmg
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: DMG block support for QEMU
|
2015-07-24 15:54:26 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
%{qemu_module_conflicts}
|
|
|
|
|
|
|
|
%description block-dmg
|
2017-12-14 01:53:24 +01:00
|
|
|
This package contains a module for accessing Mac OS X image files from
|
|
|
|
qemu-img tool and QEMU system emulation.
|
2015-07-24 15:54:26 +02:00
|
|
|
|
2017-10-16 17:47:06 +02:00
|
|
|
%if 0%{?with_glusterfs}
|
2015-04-12 11:13:49 +02:00
|
|
|
%package block-gluster
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: GlusterFS block support for QEMU
|
2015-04-12 11:13:49 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
%{qemu_module_conflicts}
|
|
|
|
|
|
|
|
%description block-gluster
|
2017-12-14 01:53:24 +01:00
|
|
|
This package contains a module for accessing network-based image files over a
|
|
|
|
GlusterFS network connection from qemu-img tool and QEMU system emulation.
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
2016-04-28 18:36:38 +02:00
|
|
|
%package block-iscsi
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: iSCSI block support for QEMU
|
2016-04-28 18:36:38 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
%{qemu_module_conflicts}
|
|
|
|
|
|
|
|
%description block-iscsi
|
2017-12-14 01:53:24 +01:00
|
|
|
This package contains a module for accessing network-based image files over an
|
|
|
|
iSCSI network connection from qemu-img tool and QEMU system emulation.
|
2016-04-28 18:36:38 +02:00
|
|
|
%endif
|
|
|
|
|
2016-07-12 22:12:45 +02:00
|
|
|
%if 0%{?with_rbd}
|
|
|
|
%package block-rbd
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Rados Block Device (Ceph) support for QEMU
|
2016-07-12 22:12:45 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
%{qemu_module_conflicts}
|
|
|
|
|
|
|
|
%description block-rbd
|
2017-12-14 01:53:24 +01:00
|
|
|
This package contains a module for accessing ceph (rbd,rados) image files.
|
2016-07-12 22:12:45 +02:00
|
|
|
%endif
|
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%package block-ssh
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: SSH (SFTP) block support for QEMU
|
2015-04-12 11:13:49 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
%{qemu_module_conflicts}
|
|
|
|
|
|
|
|
%description block-ssh
|
2017-12-14 01:53:24 +01:00
|
|
|
This package contains a module for accessing network-based image files over an
|
|
|
|
SSH network connection from qemu-img tool and QEMU system emulation.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%package tools
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Tools for QEMU
|
2015-04-12 11:13:49 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
Provides: qemu:%_libexecdir/qemu-bridge-helper
|
2017-08-18 18:25:16 +02:00
|
|
|
Requires(pre): permissions
|
|
|
|
Requires(pre): shadow
|
2015-04-12 11:13:49 +02:00
|
|
|
Recommends: qemu-block-curl
|
2016-07-12 22:12:45 +02:00
|
|
|
%if 0%{?with_rbd}
|
|
|
|
Recommends: qemu-block-rbd
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%description tools
|
2017-12-14 01:53:24 +01:00
|
|
|
This package contains various QEMU related tools, including a bridge helper,
|
|
|
|
a virtfs helper, ivshmem, disk utilities and scripts for various purposes.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%package guest-agent
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Guest agent for QEMU
|
2015-04-12 11:13:49 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
Provides: qemu:%_bindir/qemu-ga
|
2017-08-18 18:25:16 +02:00
|
|
|
Requires(pre): shadow
|
2016-05-31 23:05:30 +02:00
|
|
|
Requires(post): udev
|
2018-02-22 23:01:24 +01:00
|
|
|
Supplements: modalias(acpi*:QEMU0002:*)
|
|
|
|
Supplements: modalias(pci:v0000FFFDd00000101sv*sd*bc*sc*i*)
|
|
|
|
Supplements: modalias(pci:v00005853d00000001sv*sd*bc*sc*i*)
|
2015-11-19 14:51:50 +01:00
|
|
|
%{?systemd_requires}
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%description guest-agent
|
2017-12-14 01:53:24 +01:00
|
|
|
This package contains the QEMU guest agent. It is installed in the linux guest
|
|
|
|
to provide information and control at the guest OS level.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
%package seabios
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: x86 Legacy BIOS for QEMU
|
2015-04-12 11:13:49 +02:00
|
|
|
Group: System/Emulators/PC
|
2017-12-14 01:53:24 +01:00
|
|
|
Version: 1.11.0
|
2015-04-12 11:13:49 +02:00
|
|
|
Release: 0
|
|
|
|
BuildArch: noarch
|
|
|
|
Conflicts: qemu < 1.6.0
|
|
|
|
|
|
|
|
%description seabios
|
|
|
|
SeaBIOS is an open source implementation of a 16bit x86 BIOS. SeaBIOS
|
2017-12-14 01:53:24 +01:00
|
|
|
is the default and legacy BIOS for QEMU.
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%package vgabios
|
|
|
|
Summary: VGA BIOSes for QEMU
|
|
|
|
Group: System/Emulators/PC
|
2017-12-14 01:53:24 +01:00
|
|
|
Version: 1.11.0
|
2015-04-12 11:13:49 +02:00
|
|
|
Release: 0
|
|
|
|
BuildArch: noarch
|
|
|
|
Conflicts: qemu < 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: qemu < 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: qemu < 1.6.0
|
|
|
|
|
|
|
|
%description ipxe
|
2017-12-14 01:53:24 +01:00
|
|
|
Provides Preboot Execution Environment (PXE) ROM support for various emulated
|
|
|
|
network adapters available with QEMU.
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
|
2017-12-14 01:53:24 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2015-04-12 11:13:49 +02:00
|
|
|
%package ksm
|
|
|
|
Summary: Kernel Samepage Merging services
|
|
|
|
Group: System/Emulators/PC
|
2018-01-15 21:21:37 +01:00
|
|
|
Requires(pre): coreutils
|
|
|
|
Requires(post): coreutils
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%description ksm
|
2017-12-14 01:53:24 +01:00
|
|
|
Kernel Samepage Merging (KSM) is a memory-saving de-duplication feature, that
|
|
|
|
merges anonymous (private) pages (not pagecache ones).
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
This package provides a service file for starting and stopping KSM.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif # !qemu-testsuite
|
|
|
|
|
|
|
|
%prep
|
2018-02-22 23:01:24 +01:00
|
|
|
%setup -q -n qemu-2.11.1
|
2015-04-12 11:13:49 +02:00
|
|
|
%patch0001 -p1
|
|
|
|
%patch0002 -p1
|
|
|
|
%patch0003 -p1
|
|
|
|
%patch0004 -p1
|
|
|
|
%patch0005 -p1
|
|
|
|
%patch0006 -p1
|
|
|
|
%patch0007 -p1
|
|
|
|
%patch0008 -p1
|
|
|
|
%patch0009 -p1
|
|
|
|
%patch0010 -p1
|
|
|
|
%patch0011 -p1
|
|
|
|
%patch0012 -p1
|
|
|
|
%patch0013 -p1
|
|
|
|
%patch0014 -p1
|
|
|
|
%patch0015 -p1
|
|
|
|
%patch0016 -p1
|
|
|
|
%patch0017 -p1
|
|
|
|
%patch0018 -p1
|
|
|
|
%patch0019 -p1
|
|
|
|
%patch0020 -p1
|
|
|
|
%patch0021 -p1
|
|
|
|
%patch0022 -p1
|
|
|
|
%patch0023 -p1
|
|
|
|
%patch0024 -p1
|
|
|
|
%patch0025 -p1
|
|
|
|
%patch0026 -p1
|
|
|
|
%patch0027 -p1
|
|
|
|
%patch0028 -p1
|
|
|
|
%patch0029 -p1
|
|
|
|
%patch0030 -p1
|
|
|
|
%patch0031 -p1
|
|
|
|
%patch0032 -p1
|
|
|
|
%patch0033 -p1
|
2018-01-04 18:05:29 +01:00
|
|
|
%patch0034 -p1
|
2018-01-26 00:50:30 +01:00
|
|
|
%patch0035 -p1
|
|
|
|
%patch0036 -p1
|
|
|
|
%patch0037 -p1
|
|
|
|
%patch0038 -p1
|
|
|
|
%patch0039 -p1
|
|
|
|
%patch0040 -p1
|
|
|
|
%patch0041 -p1
|
|
|
|
%patch0042 -p1
|
|
|
|
%patch0043 -p1
|
|
|
|
%patch0044 -p1
|
2018-01-30 00:38:40 +01:00
|
|
|
%patch0045 -p1
|
2018-02-08 20:55:31 +01:00
|
|
|
%patch0046 -p1
|
|
|
|
%patch0047 -p1
|
|
|
|
%patch0048 -p1
|
|
|
|
%patch0049 -p1
|
|
|
|
%patch0050 -p1
|
|
|
|
%patch0051 -p1
|
|
|
|
%patch0052 -p1
|
|
|
|
%patch0053 -p1
|
|
|
|
%patch0054 -p1
|
|
|
|
%patch0055 -p1
|
|
|
|
%patch0056 -p1
|
|
|
|
%patch0057 -p1
|
|
|
|
%patch0058 -p1
|
|
|
|
%patch0059 -p1
|
|
|
|
%patch0060 -p1
|
|
|
|
%patch0061 -p1
|
|
|
|
%patch0062 -p1
|
|
|
|
%patch0063 -p1
|
|
|
|
%patch0064 -p1
|
|
|
|
%patch0065 -p1
|
|
|
|
%patch0066 -p1
|
|
|
|
%patch0067 -p1
|
|
|
|
%patch0068 -p1
|
|
|
|
%patch0069 -p1
|
|
|
|
%patch0070 -p1
|
|
|
|
%patch0071 -p1
|
|
|
|
%patch0072 -p1
|
2018-02-22 23:01:24 +01:00
|
|
|
%patch0073 -p1
|
|
|
|
%patch0074 -p1
|
|
|
|
%patch0075 -p1
|
2018-03-09 23:01:22 +01:00
|
|
|
%patch0076 -p1
|
2018-03-14 15:38:58 +01:00
|
|
|
%patch0077 -p1
|
2018-03-15 18:39:43 +01:00
|
|
|
%patch0078 -p1
|
2018-04-05 22:59:57 +02:00
|
|
|
%patch0079 -p1
|
2018-04-06 00:27:33 +02:00
|
|
|
%patch0080 -p1
|
2018-01-26 00:50:30 +01:00
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
%patch1000 -p1
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
|
2018-01-26 14:19:10 +01:00
|
|
|
pushd roms/seabios
|
2016-11-21 18:05:46 +01:00
|
|
|
%patch1100 -p1
|
2018-01-26 14:19:10 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
2017-03-15 20:38:55 +01:00
|
|
|
%patch1101 -p1
|
2017-06-21 03:27:18 +02:00
|
|
|
%endif
|
2016-11-21 18:05:46 +01:00
|
|
|
popd
|
2017-04-12 21:10:15 +02:00
|
|
|
|
2018-01-26 14:19:10 +01:00
|
|
|
pushd roms/ipxe
|
2016-11-21 18:05:46 +01:00
|
|
|
%patch1200 -p1
|
2018-01-26 14:19:10 +01:00
|
|
|
%if 0%{?suse_version} <= 1320
|
|
|
|
%patch1201 -p1
|
|
|
|
%endif
|
2018-04-26 20:53:21 +02:00
|
|
|
%patch1202 -p1
|
2018-01-26 14:19:10 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
pushd roms/sgabios
|
|
|
|
%patch1300 -p1
|
2016-11-21 18:05:46 +01:00
|
|
|
popd
|
|
|
|
|
2017-04-12 21:10:15 +02:00
|
|
|
pushd roms/SLOF
|
|
|
|
popd
|
|
|
|
|
2017-10-16 17:47:06 +02:00
|
|
|
pushd roms/skiboot
|
2018-01-26 14:19:10 +01:00
|
|
|
%patch1500 -p1
|
|
|
|
%patch1501 -p1
|
|
|
|
%patch1502 -p1
|
2017-10-16 17:47:06 +02:00
|
|
|
popd
|
|
|
|
|
2018-01-26 00:50:30 +01:00
|
|
|
pushd ui/keycodemapdb
|
2018-01-26 14:19:10 +01:00
|
|
|
%patch1600 -p1
|
|
|
|
%patch1601 -p1
|
2018-01-26 00:50:30 +01:00
|
|
|
popd
|
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
# as a safeguard, delete the firmware files that we intend to build
|
2017-04-12 21:10:15 +02:00
|
|
|
for i in %built_firmware
|
2015-04-12 11:13:49 +02:00
|
|
|
do
|
2017-04-12 21:10:15 +02:00
|
|
|
unlink pc-bios/$i
|
2015-04-12 11:13:49 +02:00
|
|
|
done
|
2015-10-08 18:14:43 +02:00
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%build
|
2016-11-21 18:05:46 +01:00
|
|
|
echo '%{version}' > roms/seabios/.version
|
2016-04-05 15:18:15 +02:00
|
|
|
./configure \
|
|
|
|
--prefix=%_prefix \
|
|
|
|
--sysconfdir=%_sysconfdir \
|
2015-04-12 11:13:49 +02:00
|
|
|
--libdir=%_libdir \
|
|
|
|
--libexecdir=%_libexecdir \
|
|
|
|
--localstatedir=%_localstatedir \
|
2017-12-14 01:53:24 +01:00
|
|
|
--docdir=%_docdir/%name \
|
|
|
|
--firmwarepath=%_datadir/%name \
|
2018-01-26 00:50:30 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
--python=%_bindir/python3 \
|
|
|
|
%else
|
|
|
|
--python=%_bindir/python2 \
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
--extra-cflags="%{optflags}" \
|
2016-07-15 17:50:58 +02:00
|
|
|
--disable-stack-protector \
|
2016-04-22 17:05:53 +02:00
|
|
|
--disable-strip \
|
2017-10-03 05:16:40 +02:00
|
|
|
--with-pkgversion="%(echo '%{distro}' | sed 's/ (.*)//')" \
|
2015-04-12 11:13:49 +02:00
|
|
|
--enable-system --disable-linux-user \
|
|
|
|
--enable-tools --enable-guest-agent \
|
|
|
|
--enable-modules \
|
|
|
|
--enable-pie \
|
|
|
|
--enable-docs \
|
2017-11-29 22:55:00 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2015-04-12 11:13:49 +02:00
|
|
|
--audio-drv-list="pa alsa sdl oss" \
|
2017-11-29 22:55:00 +01:00
|
|
|
%else
|
|
|
|
--audio-drv-list="pa alsa oss" \
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
--enable-attr \
|
|
|
|
--enable-bluez \
|
|
|
|
--enable-brlapi \
|
|
|
|
--enable-bzip2 \
|
|
|
|
--enable-cap-ng \
|
2017-12-14 01:53:24 +01:00
|
|
|
--disable-capstone \
|
2016-01-27 17:31:12 +01:00
|
|
|
--enable-coroutine-pool \
|
2017-12-14 01:53:24 +01:00
|
|
|
--disable-crypto-afalg \
|
2015-04-12 11:13:49 +02:00
|
|
|
--enable-curl \
|
|
|
|
--enable-curses \
|
|
|
|
--enable-fdt \
|
2016-01-27 17:31:12 +01:00
|
|
|
--enable-gcrypt \
|
2017-10-16 17:47:06 +02:00
|
|
|
%if 0%{?with_glusterfs}
|
2015-04-12 11:13:49 +02:00
|
|
|
--enable-glusterfs \
|
|
|
|
%else
|
|
|
|
--disable-glusterfs \
|
|
|
|
%endif
|
2016-01-27 17:31:12 +01:00
|
|
|
--enable-gnutls \
|
2015-04-12 11:13:49 +02:00
|
|
|
--enable-gtk \
|
|
|
|
--with-gtkabi=3.0 \
|
2017-03-29 06:22:10 +02:00
|
|
|
--disable-hax \
|
2016-09-22 16:28:43 +02:00
|
|
|
--disable-jemalloc \
|
2015-04-12 11:13:49 +02:00
|
|
|
%if %{kvm_available}
|
|
|
|
--enable-kvm \
|
|
|
|
%else
|
|
|
|
--disable-kvm \
|
|
|
|
%endif
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
2016-04-28 18:36:38 +02:00
|
|
|
--enable-libiscsi \
|
|
|
|
%else
|
2015-04-12 11:13:49 +02:00
|
|
|
--disable-libiscsi \
|
2016-04-28 18:36:38 +02:00
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
--disable-libnfs \
|
|
|
|
--enable-libssh2 \
|
|
|
|
--enable-libusb \
|
|
|
|
--enable-linux-aio \
|
|
|
|
--enable-lzo \
|
2017-12-14 01:53:24 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
--enable-mpath \
|
|
|
|
%else
|
|
|
|
--disable-mpath \
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
--disable-netmap \
|
2017-12-14 01:53:24 +01:00
|
|
|
--disable-nettle \
|
2017-05-05 17:05:43 +02:00
|
|
|
%ifarch %ix86 x86_64
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
|
2015-04-12 11:13:49 +02:00
|
|
|
--enable-numa \
|
|
|
|
%else
|
|
|
|
--disable-numa \
|
|
|
|
%endif
|
|
|
|
%else
|
2017-05-05 17:05:43 +02:00
|
|
|
%ifarch aarch64
|
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
|
|
|
--enable-numa \
|
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
--disable-numa \
|
|
|
|
%endif
|
|
|
|
%else
|
2015-05-13 02:20:26 +02:00
|
|
|
%ifarch %arm s390x
|
2015-04-12 11:13:49 +02:00
|
|
|
--disable-numa \
|
|
|
|
%else
|
|
|
|
--enable-numa \
|
|
|
|
%endif
|
|
|
|
%endif
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} >= 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
|
|
|
--enable-opengl \
|
|
|
|
%endif
|
2016-07-12 22:12:45 +02:00
|
|
|
%if 0%{?with_rbd}
|
|
|
|
--enable-rbd \
|
|
|
|
%else
|
2015-04-12 11:13:49 +02:00
|
|
|
--disable-rbd \
|
2016-07-12 22:12:45 +02:00
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
|
|
|
--enable-rdma \
|
|
|
|
%else
|
|
|
|
--disable-rdma \
|
|
|
|
%endif
|
2017-03-29 06:22:10 +02:00
|
|
|
--enable-replication \
|
2017-11-29 22:55:00 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2015-04-12 11:13:49 +02:00
|
|
|
--enable-sdl \
|
2016-05-31 23:05:30 +02:00
|
|
|
%if 0%{?suse_version} >= 1320
|
|
|
|
--with-sdlabi=2.0 \
|
|
|
|
%else
|
2015-04-12 11:13:49 +02:00
|
|
|
--with-sdlabi=1.2 \
|
2016-05-31 23:05:30 +02:00
|
|
|
%endif
|
2017-11-29 22:55:00 +01:00
|
|
|
%else
|
|
|
|
--disable-sdl \
|
|
|
|
%endif
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?with_seccomp}
|
2015-04-12 11:13:49 +02:00
|
|
|
--enable-seccomp \
|
|
|
|
%else
|
|
|
|
--disable-seccomp \
|
|
|
|
%endif
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2016-01-27 17:31:12 +01:00
|
|
|
--enable-smartcard \
|
2017-03-15 20:38:55 +01:00
|
|
|
%else
|
|
|
|
--disable-smartcard \
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
--enable-snappy \
|
|
|
|
--enable-spice \
|
2016-09-22 16:28:43 +02:00
|
|
|
--disable-tcmalloc \
|
2015-04-12 11:13:49 +02:00
|
|
|
--enable-tpm \
|
2017-03-15 20:38:55 +01:00
|
|
|
--enable-usb-redir \
|
2015-04-12 11:13:49 +02:00
|
|
|
--enable-vde \
|
|
|
|
--enable-vhost-net \
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} >= 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
|
|
|
--enable-virglrenderer \
|
2016-05-31 23:05:30 +02:00
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
--enable-virtfs \
|
|
|
|
--enable-vnc \
|
|
|
|
--enable-vnc-jpeg \
|
|
|
|
--enable-vnc-png \
|
|
|
|
--enable-vnc-sasl \
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} == 1320
|
|
|
|
--disable-vte \
|
|
|
|
%else
|
2016-01-27 17:31:12 +01:00
|
|
|
--enable-vte \
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
--enable-xen \
|
|
|
|
--enable-xen-pci-passthrough \
|
2016-04-05 15:18:15 +02:00
|
|
|
--enable-xen-pv-domain-build \
|
2015-04-12 11:13:49 +02:00
|
|
|
%else
|
|
|
|
--disable-xen \
|
|
|
|
%endif
|
2016-07-15 17:50:58 +02:00
|
|
|
--enable-xfsctl \
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%if "%{name}" != "qemu-testsuite"
|
|
|
|
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
# Firmware
|
2017-04-12 21:10:15 +02:00
|
|
|
|
|
|
|
%ifarch s390x
|
2017-05-05 17:05:43 +02:00
|
|
|
for i in %s390x_default_built_firmware
|
|
|
|
do
|
|
|
|
cp pc-bios/s390-ccw/$i pc-bios/
|
|
|
|
done
|
2017-04-12 21:10:15 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch ppc64
|
2017-05-05 17:05:43 +02:00
|
|
|
for i in %ppc64_only_default_built_firmware
|
|
|
|
do
|
|
|
|
cp pc-bios/spapr-rtas/$i pc-bios/
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
for i in %x86_default_built_firmware
|
|
|
|
do
|
|
|
|
cp pc-bios/optionrom/$i pc-bios/
|
|
|
|
done
|
|
|
|
%ifarch x86_64
|
|
|
|
for i in %x86_64_only_default_built_firmware
|
|
|
|
do
|
|
|
|
cp pc-bios/optionrom/$i pc-bios/
|
|
|
|
done
|
|
|
|
%endif
|
2017-04-12 21:10:15 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{build_x86_firmware_from_source}
|
2016-04-05 15:18:15 +02:00
|
|
|
make %{?_smp_mflags} -C roms bios
|
2017-04-12 21:10:15 +02:00
|
|
|
|
2016-04-05 15:18:15 +02:00
|
|
|
make %{?_smp_mflags} -C roms seavgabios
|
|
|
|
make %{?_smp_mflags} -C roms pxerom
|
2016-05-31 23:05:30 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
make %{?_smp_mflags} -C roms efirom
|
|
|
|
%endif
|
2016-04-05 15:18:15 +02:00
|
|
|
make -C roms sgabios
|
2017-08-31 00:22:50 +02:00
|
|
|
|
|
|
|
%if %{force_fit_virtio_pxe_rom}
|
|
|
|
pushd roms/ipxe
|
|
|
|
patch -p1 < %{SOURCE301}
|
|
|
|
popd
|
|
|
|
make %{?_smp_mflags} -C roms pxerom_variants=virtio pxerom_targets=1af41000 NO_WERROR=1 pxerom
|
|
|
|
%endif
|
|
|
|
|
2017-03-15 20:38:55 +01:00
|
|
|
# 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' pc-bios/pxe-$i.rom`" -gt "131072" ; then
|
|
|
|
echo "pxe rom is too large"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
if test "`stat -c '%s' pc-bios/pxe-$i.rom`" -le "65536" ; then
|
|
|
|
./roms/ipxe/src/util/padimg.pl pc-bios/pxe-$i.rom -s 65536 -b 255
|
|
|
|
echo -ne "SEGMENT OVERAGE\0" >> pc-bios/pxe-$i.rom
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for i in %supported_nics_small
|
|
|
|
do
|
|
|
|
if test "`stat -c '%s' pc-bios/pxe-$i.rom`" -gt "65536" ; then
|
|
|
|
echo "pxe rom is too large"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
2017-04-12 21:10:15 +02:00
|
|
|
|
2017-10-16 17:47:06 +02:00
|
|
|
%if %{build_skiboot_from_source}
|
2017-12-14 01:53:24 +01:00
|
|
|
make %{?_smp_mflags} -C roms skiboot SKIBOOT_VERSION=skiboot-5.3.7 CROSS=
|
2017-10-16 17:47:06 +02:00
|
|
|
%endif
|
|
|
|
|
2015-10-08 18:14:43 +02:00
|
|
|
%if %{build_slof_from_source}
|
2016-04-05 15:18:15 +02:00
|
|
|
make %{?_smp_mflags} -C roms slof
|
2015-10-08 18:14:43 +02:00
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%else # qemu-testsuite
|
2015-08-12 18:17:59 +02:00
|
|
|
|
|
|
|
ln -s %{_bindir}/qemu-img qemu-img
|
2016-01-19 19:31:32 +01:00
|
|
|
ln -s %{_bindir}/qemu-ga qemu-ga
|
2017-04-12 21:10:15 +02:00
|
|
|
ln -s %{_bindir}/qemu-io qemu-io
|
2016-01-19 19:31:32 +01:00
|
|
|
|
2017-04-12 21:10:15 +02:00
|
|
|
for i in %built_firmware
|
2016-01-19 19:31:32 +01:00
|
|
|
do
|
|
|
|
ln -s %{_datadir}/qemu/$i pc-bios/$i
|
|
|
|
done
|
2015-08-12 18:17:59 +02:00
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
for conf in default-configs/*-softmmu.mak; do
|
|
|
|
arch=`echo "$conf" | sed -e 's|default-configs/\(.*\)-softmmu.mak|\1|g'`
|
|
|
|
ln -s %{_bindir}/qemu-system-$arch $arch-softmmu/qemu-system-$arch
|
|
|
|
done
|
2015-08-12 18:17:59 +02:00
|
|
|
|
2015-12-01 23:04:40 +01:00
|
|
|
# Compile the QOM test binary first, so that ...
|
2017-04-12 21:10:15 +02:00
|
|
|
|
|
|
|
touch -r config-host.mak pc-bios
|
2016-08-04 15:09:24 +02:00
|
|
|
make tests/qom-test %{?_smp_mflags} V=1
|
2017-04-12 21:10:15 +02:00
|
|
|
# Firmware
|
2015-12-01 23:04:40 +01:00
|
|
|
# ... make comes in fresh and has lots of address space (needed for 32bit, bsc#957379)
|
2015-04-12 11:13:49 +02:00
|
|
|
make check-report.html V=1
|
2015-10-13 18:39:07 +02:00
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%check
|
|
|
|
%if "%{name}" == "qemu-testsuite"
|
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%ifnarch %ix86 x64_64
|
|
|
|
export QEMU_PROG=%{_bindir}/qemu-system-x86_64
|
|
|
|
%endif
|
|
|
|
export QEMU_IMG_PROG=%{_bindir}/qemu-img
|
|
|
|
export QEMU_IO_PROG=%{_bindir}/qemu-io
|
|
|
|
export QEMU_NBD_PROG=%{_bindir}/qemu-nbd
|
|
|
|
# make check-block would rebuild qemu-img and qemu-io
|
|
|
|
make tests/qemu-iotests/socket_scm_helper V=1
|
|
|
|
pushd tests/qemu-iotests
|
|
|
|
# -qcow 001 seems to hang?
|
2015-04-29 18:23:43 +02:00
|
|
|
# TODO investigate hangs and failures
|
|
|
|
#for fmt in -raw -bochs -cloop -parallels -qcow2 -qed -vdi -vpc -vhdx -vmdk; do
|
|
|
|
# ./check -v -T $fmt -file -g quick || true
|
|
|
|
#done
|
2015-04-12 11:13:49 +02:00
|
|
|
popd
|
2015-10-13 18:39:07 +02:00
|
|
|
|
|
|
|
# Create minimal gzip format file
|
|
|
|
echo "Test" > test.txt
|
|
|
|
cat test.txt | gzip - > test.gz
|
|
|
|
# Check qemu-img info output (bsc#945778)
|
|
|
|
format=`qemu-img info test.gz | grep "file format:" | cut -d ':' -f 2 | tr -d '[:space:]'`
|
|
|
|
[ "$format" == "raw" ] || false
|
|
|
|
|
|
|
|
# Create minimal tar format file
|
|
|
|
tar cf test.tar test.txt
|
|
|
|
# Check qemu-img info output (bsc#945778)
|
|
|
|
format=`qemu-img info test.tar | grep "file format:" | cut -d ':' -f 2 | tr -d '[:space:]'`
|
|
|
|
[ "$format" == "raw" ] || false
|
|
|
|
|
|
|
|
%endif # qemu-testsuite
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%if "%{name}" != "qemu-testsuite"
|
2015-10-13 18:39:07 +02:00
|
|
|
|
2017-04-12 21:10:15 +02:00
|
|
|
touch -r config-host.mak pc-bios
|
2017-03-15 20:38:55 +01:00
|
|
|
make install DESTDIR=%{buildroot}
|
2017-04-12 21:10:15 +02:00
|
|
|
%ifnarch %ix86 x86_64
|
|
|
|
for f in acpi-dsdt.aml %{x86_extra_built_firmware_list} \
|
|
|
|
%{x86_64_only_extra_built_firmware_list}; do
|
|
|
|
unlink %{buildroot}%{_datadir}/%name/$f
|
2015-04-12 11:13:49 +02:00
|
|
|
done
|
|
|
|
%endif
|
|
|
|
%find_lang %name
|
2017-12-14 01:53:24 +01:00
|
|
|
install -D -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/qemu/bridge.conf
|
|
|
|
install -D -m 0755 %{SOURCE2} %{buildroot}/usr/share/qemu/qemu-ifup
|
2017-03-15 20:38:55 +01:00
|
|
|
install -D -p -m 0644 %{SOURCE8} %{buildroot}%{_udevrulesdir}/80-qemu-ga.rules
|
2017-12-14 01:53:24 +01:00
|
|
|
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
|
2017-10-26 19:10:00 +02:00
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/supportconfig/plugins
|
2017-12-14 01:53:24 +01:00
|
|
|
install -D -m 0755 %{SOURCE9} %{buildroot}%{_libexecdir}/supportconfig/plugins/qemu
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} == 0
|
|
|
|
install -D -m 0644 %{SOURCE12} %{buildroot}%{_docdir}/qemu-x86/supported.txt
|
|
|
|
install -D -m 0644 %{SOURCE13} %{buildroot}%{_docdir}/qemu-s390/supported.txt
|
|
|
|
install -D -m 0644 %{SOURCE14} %{buildroot}%{_docdir}/qemu-arm/supported.txt
|
|
|
|
install -D -m 0644 %{SOURCE15} %{buildroot}%{_docdir}/qemu-ppc/supported.txt
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
%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
|
2017-12-14 01:53:24 +01:00
|
|
|
install -D -m 0644 %{SOURCE5} %{buildroot}%{_mandir}/man1/qemu-kvm.1.gz
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} == 0
|
|
|
|
install -d %{buildroot}%{_docdir}/qemu-kvm
|
2017-12-14 01:53:24 +01:00
|
|
|
%ifarch s390x
|
2017-03-15 20:38:55 +01:00
|
|
|
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
|
2016-06-02 20:18:10 +02:00
|
|
|
%endif
|
2016-09-19 19:06:58 +02:00
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
%if %{kvm_available}
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?suse_version} <= 1320
|
2017-12-14 01:53:24 +01:00
|
|
|
install -D -m 0755 %{SOURCE3} %{buildroot}%{_bindir}/kvm_stat
|
|
|
|
install -D -m 0644 %{SOURCE4} %{buildroot}%{_mandir}/man1/kvm_stat.1.gz
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
2017-12-14 01:53:24 +01:00
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/80-kvm.rules
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
2018-04-11 21:20:00 +02:00
|
|
|
install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/qemu-ga@.service
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
install -D -p -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/ksm.service
|
|
|
|
%endif
|
2016-07-15 17:50:58 +02:00
|
|
|
%ifarch s390x
|
|
|
|
install -D -m 0644 %{SOURCE10} %{buildroot}%{_libexecdir}/modules-load.d/kvm.conf
|
|
|
|
%endif
|
2017-03-15 20:38:55 +01:00
|
|
|
%fdupes -s %{buildroot}
|
2015-10-13 18:39:07 +02:00
|
|
|
|
|
|
|
%else # qemu-testsuite
|
|
|
|
|
2017-12-14 01:53:24 +01:00
|
|
|
install -D -m 0644 check-report.html %{buildroot}%{_datadir}/qemu/check-report.html
|
|
|
|
install -D -m 0644 check-report.xml %{buildroot}%{_datadir}/qemu/check-report.xml
|
2015-10-13 18:39:07 +02:00
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{name}" != "qemu-testsuite"
|
|
|
|
|
|
|
|
%pre
|
2017-12-14 01:53:24 +01:00
|
|
|
%{_bindir}/getent group kvm >/dev/null || %{_sbindir}/groupadd -r kvm
|
|
|
|
%{_bindir}/getent group qemu >/dev/null || %{_sbindir}/groupadd -r qemu
|
2015-04-12 11:13:49 +02:00
|
|
|
%{_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
|
2016-07-26 16:22:29 +02:00
|
|
|
# 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
|
2016-07-15 17:50:58 +02:00
|
|
|
setfacl --remove-all /dev/kvm &> /dev/null || :
|
2017-03-15 20:38:55 +01:00
|
|
|
%ifarch s390x
|
|
|
|
if [ -c /dev/kvm ]; then
|
2017-12-14 01:53:24 +01:00
|
|
|
%{_bindir}/chmod 0666 /dev/kvm
|
2017-03-15 20:38:55 +01:00
|
|
|
%{_bindir}/chgrp kvm /dev/kvm
|
|
|
|
fi
|
|
|
|
%endif
|
2016-07-26 16:22:29 +02:00
|
|
|
%udev_rules_update
|
2017-03-15 20:38:55 +01:00
|
|
|
%_bindir/udevadm trigger -y kvm || :
|
2016-06-02 20:18:10 +02:00
|
|
|
%ifarch s390x
|
2016-07-26 16:22:29 +02:00
|
|
|
sysctl vm.allocate_pgste=1 || :
|
2016-06-02 20:18:10 +02:00
|
|
|
%endif
|
2016-07-26 16:22:29 +02:00
|
|
|
fi
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
|
2017-08-09 22:07:29 +02:00
|
|
|
%pre tools
|
2017-12-14 01:53:24 +01:00
|
|
|
%{_bindir}/getent group kvm >/dev/null || %{_sbindir}/groupadd -r kvm
|
2015-04-12 11:13:49 +02:00
|
|
|
%post tools
|
|
|
|
%set_permissions %_libexecdir/qemu-bridge-helper
|
|
|
|
|
|
|
|
%verifyscript tools
|
|
|
|
%verify_permissions %_libexecdir/qemu-bridge-helper
|
|
|
|
|
2015-11-19 14:51:50 +01:00
|
|
|
%pre guest-agent
|
2017-12-14 01:53:24 +01:00
|
|
|
%{_bindir}/getent group kvm >/dev/null || %{_sbindir}/groupadd -r kvm
|
2018-04-11 21:20:00 +02:00
|
|
|
%service_add_pre qemu-ga@.service
|
2015-11-19 14:51:50 +01:00
|
|
|
|
|
|
|
%preun guest-agent
|
2018-04-11 21:20:00 +02:00
|
|
|
%service_del_preun qemu-ga@.service
|
2015-11-19 14:51:50 +01:00
|
|
|
|
|
|
|
%post guest-agent
|
2018-04-11 21:20:00 +02:00
|
|
|
%service_add_post qemu-ga@.service
|
2017-03-15 20:38:55 +01:00
|
|
|
if [ -e /dev/virtio-ports/org.qemu.guest_agent.0 ]; then
|
2018-04-11 21:20:00 +02:00
|
|
|
/usr/bin/systemctl start qemu-ga@virtio\\x2dports-org.qemu.guest_agent.0.service || :
|
2017-03-15 20:38:55 +01:00
|
|
|
fi
|
2015-11-19 14:51:50 +01:00
|
|
|
|
|
|
|
%postun guest-agent
|
2018-04-11 21:20:00 +02:00
|
|
|
%service_del_postun qemu-ga@.service
|
2015-11-19 14:51:50 +01:00
|
|
|
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2015-04-12 11:13:49 +02:00
|
|
|
%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
|
|
|
|
|
|
|
|
%endif # !qemu-testsuite
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%if "%{name}" != "qemu-testsuite"
|
2017-12-14 01:53:24 +01:00
|
|
|
%doc COPYING COPYING.LIB COPYING.PYTHON Changelog README VERSION LICENSE
|
2017-04-12 21:10:15 +02:00
|
|
|
%_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/qemu.1.gz
|
2017-12-14 01:53:24 +01:00
|
|
|
%_mandir/man7/qemu-block-drivers.7.gz
|
2017-04-12 21:10:15 +02:00
|
|
|
%_mandir/man7/qemu-qmp-ref.7.gz
|
|
|
|
%_mandir/man7/qemu-ga-ref.7.gz
|
2015-04-12 11:13:49 +02:00
|
|
|
%dir %_datadir/%name
|
|
|
|
%_datadir/%name/keymaps
|
2016-09-19 19:06:58 +02:00
|
|
|
%_datadir/%name/trace-events-all
|
2015-04-12 11:13:49 +02:00
|
|
|
%_datadir/%name/qemu-icon.bmp
|
|
|
|
%_datadir/%name/qemu_logo_no_text.svg
|
|
|
|
%dir %_sysconfdir/%name
|
2017-03-15 20:38:55 +01:00
|
|
|
%_datadir/%name/qemu-ifup
|
2017-08-31 20:04:33 +02:00
|
|
|
%dir %_libexecdir/supportconfig
|
|
|
|
%dir %_libexecdir/supportconfig/plugins
|
|
|
|
%_libexecdir/supportconfig/plugins/qemu
|
2015-04-12 11:13:49 +02:00
|
|
|
%if %{kvm_available}
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?suse_version} <= 1320
|
|
|
|
%_bindir/kvm_stat
|
|
|
|
%doc %_mandir/man1/kvm_stat.1.gz
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
%{_udevrulesdir}/80-kvm.rules
|
2016-06-02 20:18:10 +02:00
|
|
|
%ifarch s390x
|
2016-07-15 17:50:58 +02:00
|
|
|
%_libexecdir/modules-load.d/kvm.conf
|
|
|
|
%endif
|
2016-06-02 20:18:10 +02:00
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%files x86
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%_bindir/qemu-system-i386
|
|
|
|
%_bindir/qemu-system-x86_64
|
|
|
|
%_datadir/%name/kvmvapic.bin
|
|
|
|
%_datadir/%name/linuxboot.bin
|
2016-09-19 19:06:58 +02:00
|
|
|
%_datadir/%name/linuxboot_dma.bin
|
2015-04-12 11:13:49 +02:00
|
|
|
%_datadir/%name/multiboot.bin
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} == 0
|
|
|
|
%dir %_docdir/qemu-x86
|
|
|
|
%_docdir/qemu-x86/supported.txt
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%files ppc
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%_bindir/qemu-system-ppc
|
|
|
|
%_bindir/qemu-system-ppc64
|
|
|
|
%_bindir/qemu-system-ppcemb
|
|
|
|
%_datadir/%name/ppc_rom.bin
|
|
|
|
%_datadir/%name/openbios-ppc
|
|
|
|
%_datadir/%name/slof.bin
|
|
|
|
%_datadir/%name/spapr-rtas.bin
|
2016-01-27 17:31:12 +01:00
|
|
|
%_datadir/%name/u-boot.e500
|
2015-04-12 11:13:49 +02:00
|
|
|
%_datadir/%name/bamboo.dtb
|
|
|
|
%_datadir/%name/petalogix-ml605.dtb
|
2017-03-15 20:38:55 +01:00
|
|
|
%_datadir/%name/skiboot.lid
|
2017-08-31 00:22:50 +02:00
|
|
|
%_datadir/%name/qemu_vga.ndrv
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} == 0
|
|
|
|
%dir %_docdir/qemu-ppc
|
|
|
|
%_docdir/qemu-ppc/supported.txt
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%files s390
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%_bindir/qemu-system-s390x
|
|
|
|
%_datadir/%name/s390-ccw.img
|
2017-10-04 21:17:03 +02:00
|
|
|
%_datadir/%name/s390-netboot.img
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} == 0
|
|
|
|
%dir %_docdir/qemu-s390
|
|
|
|
%_docdir/qemu-s390/supported.txt
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%files arm
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%_bindir/qemu-system-arm
|
|
|
|
%_bindir/qemu-system-aarch64
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} == 0
|
|
|
|
%dir %_docdir/qemu-arm
|
|
|
|
%_docdir/qemu-arm/supported.txt
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%files extra
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%_bindir/qemu-system-alpha
|
|
|
|
%_bindir/qemu-system-cris
|
|
|
|
%_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
|
2017-03-29 06:22:10 +02:00
|
|
|
%_bindir/qemu-system-nios2
|
|
|
|
%_bindir/qemu-system-or1k
|
2015-04-12 11:13:49 +02:00
|
|
|
%_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/palcode-clipper
|
|
|
|
%_datadir/%name/openbios-sparc32
|
|
|
|
%_datadir/%name/openbios-sparc64
|
|
|
|
%_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
|
2017-04-12 21:10:15 +02:00
|
|
|
%_mandir/man1/qemu-kvm.1.gz
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} == 0
|
|
|
|
%dir %_docdir/qemu-kvm
|
|
|
|
%_docdir/qemu-kvm/kvm-supported.txt
|
2016-09-19 19:06:58 +02:00
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files block-curl
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_libdir/%name
|
2015-04-12 11:13:49 +02:00
|
|
|
%_libdir/%name/block-curl.so
|
|
|
|
|
2015-07-24 15:54:26 +02:00
|
|
|
%files block-dmg
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_libdir/%name
|
|
|
|
%_libdir/%name/block-dmg-bz2.so
|
2015-07-24 15:54:26 +02:00
|
|
|
|
2017-10-16 17:47:06 +02:00
|
|
|
%if 0%{?with_glusterfs}
|
2015-04-12 11:13:49 +02:00
|
|
|
%files block-gluster
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_libdir/%name
|
2015-04-12 11:13:49 +02:00
|
|
|
%_libdir/%name/block-gluster.so
|
|
|
|
%endif
|
|
|
|
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
2016-04-28 18:36:38 +02:00
|
|
|
%files block-iscsi
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_libdir/%name
|
2016-04-28 18:36:38 +02:00
|
|
|
%_libdir/%name/block-iscsi.so
|
|
|
|
%endif
|
|
|
|
|
2016-07-12 22:12:45 +02:00
|
|
|
%if 0%{?with_rbd}
|
|
|
|
%files block-rbd
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %_libdir/%name
|
|
|
|
%_libdir/%name/block-rbd.so
|
|
|
|
%endif
|
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%files block-ssh
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_libdir/%name
|
2015-04-12 11:13:49 +02:00
|
|
|
%_libdir/%name/block-ssh.so
|
|
|
|
|
|
|
|
%files lang -f %name.lang
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
2017-05-05 17:05:43 +02:00
|
|
|
%ifarch %ix86 x86_64
|
2015-04-12 11:13:49 +02:00
|
|
|
%files seabios
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_datadir/%name
|
2015-04-12 11:13:49 +02:00
|
|
|
%_datadir/%name/bios.bin
|
|
|
|
%_datadir/%name/bios-256k.bin
|
|
|
|
%_datadir/%name/acpi-dsdt.aml
|
|
|
|
|
|
|
|
%files vgabios
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_datadir/%name
|
2015-04-12 11:13:49 +02:00
|
|
|
%_datadir/%name/vgabios.bin
|
|
|
|
%_datadir/%name/vgabios-cirrus.bin
|
|
|
|
%_datadir/%name/vgabios-qxl.bin
|
|
|
|
%_datadir/%name/vgabios-stdvga.bin
|
2015-07-24 15:54:26 +02:00
|
|
|
%_datadir/%name/vgabios-virtio.bin
|
2015-04-12 11:13:49 +02:00
|
|
|
%_datadir/%name/vgabios-vmware.bin
|
|
|
|
|
|
|
|
%files sgabios
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_datadir/%name
|
2015-04-12 11:13:49 +02:00
|
|
|
%_datadir/%name/sgabios.bin
|
|
|
|
|
|
|
|
%files ipxe
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_datadir/%name
|
2015-04-12 11:13:49 +02:00
|
|
|
%_datadir/%name/pxe-e1000.rom
|
|
|
|
%_datadir/%name/pxe-eepro100.rom
|
|
|
|
%_datadir/%name/pxe-pcnet.rom
|
|
|
|
%_datadir/%name/pxe-ne2k_pci.rom
|
|
|
|
%_datadir/%name/pxe-rtl8139.rom
|
|
|
|
%_datadir/%name/pxe-virtio.rom
|
|
|
|
%_datadir/%name/efi-e1000.rom
|
2016-09-19 19:06:58 +02:00
|
|
|
%_datadir/%name/efi-e1000e.rom
|
2015-04-12 11:13:49 +02:00
|
|
|
%_datadir/%name/efi-eepro100.rom
|
|
|
|
%_datadir/%name/efi-pcnet.rom
|
|
|
|
%_datadir/%name/efi-ne2k_pci.rom
|
|
|
|
%_datadir/%name/efi-rtl8139.rom
|
|
|
|
%_datadir/%name/efi-virtio.rom
|
2016-09-19 19:06:58 +02:00
|
|
|
%_datadir/%name/efi-vmxnet3.rom
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-, root, root)
|
2017-04-12 21:10:15 +02:00
|
|
|
%_mandir/man1/qemu-img.1.gz
|
|
|
|
%_mandir/man1/virtfs-proxy-helper.1.gz
|
|
|
|
%_mandir/man8/qemu-nbd.8.gz
|
2016-01-19 19:31:32 +01:00
|
|
|
%_bindir/ivshmem-client
|
|
|
|
%_bindir/ivshmem-server
|
2015-04-12 11:13:49 +02:00
|
|
|
%_bindir/qemu-io
|
|
|
|
%_bindir/qemu-img
|
2017-12-14 01:53:24 +01:00
|
|
|
%_bindir/qemu-keymap
|
2015-04-12 11:13:49 +02:00
|
|
|
%_bindir/qemu-nbd
|
2017-12-14 01:53:24 +01:00
|
|
|
%_bindir/qemu-pr-helper
|
2015-04-12 11:13:49 +02:00
|
|
|
%_bindir/virtfs-proxy-helper
|
2016-08-04 15:09:24 +02:00
|
|
|
%verify(not mode) %attr(4750,root,kvm) %_libexecdir/qemu-bridge-helper
|
2015-04-12 11:13:49 +02:00
|
|
|
%dir %_sysconfdir/%name
|
|
|
|
%config %_sysconfdir/%name/bridge.conf
|
2017-10-26 19:10:00 +02:00
|
|
|
%_bindir/analyze-migration.py
|
|
|
|
%_bindir/vmstate-static-checker.py
|
2015-04-12 11:13:49 +02:00
|
|
|
|
|
|
|
%files guest-agent
|
|
|
|
%defattr(-, root, root)
|
2017-04-12 21:10:15 +02:00
|
|
|
%_mandir/man8/qemu-ga.8.gz
|
2017-12-14 01:53:24 +01:00
|
|
|
%attr(0755,root,kvm) %_bindir/qemu-ga
|
2018-04-11 21:20:00 +02:00
|
|
|
%{_unitdir}/qemu-ga@.service
|
2015-11-19 14:51:50 +01:00
|
|
|
%{_udevrulesdir}/80-qemu-ga.rules
|
|
|
|
|
2017-12-14 01:53:24 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2015-04-12 11:13:49 +02:00
|
|
|
%files ksm
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_unitdir}/ksm.service
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%else # qemu-testsuite
|
2017-04-12 21:10:15 +02:00
|
|
|
%_datadir/qemu/check-report.xml
|
|
|
|
%_datadir/qemu/check-report.html
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|