2007-01-16 00:34:41 +01:00
|
|
|
#
|
2011-02-18 13:27:31 +01:00
|
|
|
# spec file for package qemu
|
2007-01-16 00:34:41 +01:00
|
|
|
#
|
2019-01-04 22:08:16 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:34:41 +01:00
|
|
|
#
|
2008-10-08 18:35:55 +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.
|
|
|
|
|
Accepting request 635823 from home:bfrogers:branches:Virtualization
- Remove BuildRequires for libattr-devel-static since it's not needed.
- Re-sync openSUSE and SUSE SLE qemu-linux-user package. This changes
file is the openSUSE one with this entry providing the intervening
SLE CVE, FATE, and bugzilla references, which are still addressed
in this package, and not yet called out in this changes file.
* <none>
* Patches added:
0040-linux-headers-update.patch
0041-s390x-kvm-add-etoken-facility.patch
- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-3.0
- Re-sync openSUSE and SUSE SLE qemu packages. This changes file
is the openSUSE one with this entry providing the intervening
SLE CVE, FATE, and bugzilla references, which are still addressed
in this package, and not yet called out in this changes file.
* CVE-2018-11806 CVE-2018-12617 CVE-2018-7550 CVE-2018-15746
* fate#325467
* bsc#1091695 bsc#1094725 bsc#1094913 bsc#1096223 bsc#1098735
bsc#1103628 bsc#1105279 bsc#1106222 bsc#1106222 bsc#1107489
* Patches added:
* only enable glusterfs for openSUSE
0040-linux-headers-update.patch
0041-s390x-kvm-add-etoken-facility.patch
- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-3.0
- Re-sync openSUSE and SUSE SLE qemu packages. This changes file
is the openSUSE one with this entry providing the intervening
SLE CVE, FATE, and bugzilla references, which are still addressed
in this package, and not yet called out in this changes file.
* CVE-2018-11806 CVE-2018-12617 CVE-2018-7550 CVE-2018-15746
* fate#325467
* bsc#1091695 bsc#1094725 bsc#1094913 bsc#1096223 bsc#1098735
bsc#1103628 bsc#1105279 bsc#1106222 bsc#1106222 bsc#1107489
* Patches added:
* only enable glusterfs for openSUSE
0040-linux-headers-update.patch
0041-s390x-kvm-add-etoken-facility.patch
- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-3.0
OBS-URL: https://build.opensuse.org/request/show/635823
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=427
2018-09-15 00:33:06 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:34:41 +01:00
|
|
|
#
|
|
|
|
|
2012-02-23 00:08:23 +01:00
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
%define build_in_tree 1
|
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
|
|
|
|
2019-02-22 15:07:03 +01:00
|
|
|
%if 0%{?suse_version} > 1315
|
|
|
|
# cross-x86_64-gcc7 is available from SLE15/Leap15.0
|
|
|
|
%define build_rom_arch %ix86 x86_64 aarch64
|
|
|
|
%else
|
|
|
|
%define build_rom_arch %ix86 x86_64
|
|
|
|
%endif
|
|
|
|
|
2017-10-03 05:16:40 +02:00
|
|
|
%if "%{?distribution}" == ""
|
|
|
|
%define distro private-build
|
|
|
|
%else
|
|
|
|
%define distro %{distribution}
|
|
|
|
%endif
|
|
|
|
|
2019-02-22 15:07:03 +01:00
|
|
|
%ifarch %{build_rom_arch}
|
2013-09-13 23:59:15 +02:00
|
|
|
# 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
|
2013-09-13 23:59:15 +02:00
|
|
|
%endif
|
2014-04-08 17:25:09 +02:00
|
|
|
%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
|
2014-05-13 10:09:26 +02:00
|
|
|
%define kvm_available 1
|
|
|
|
%endif
|
2017-03-15 20:38:55 +01:00
|
|
|
|
2014-05-13 10:09:26 +02:00
|
|
|
%ifarch %ix86 x86_64 s390x
|
|
|
|
%define legacy_qemu_kvm 1
|
|
|
|
%endif
|
2017-03-15 20:38:55 +01:00
|
|
|
|
Accepting request 635823 from home:bfrogers:branches:Virtualization
- Remove BuildRequires for libattr-devel-static since it's not needed.
- Re-sync openSUSE and SUSE SLE qemu-linux-user package. This changes
file is the openSUSE one with this entry providing the intervening
SLE CVE, FATE, and bugzilla references, which are still addressed
in this package, and not yet called out in this changes file.
* <none>
* Patches added:
0040-linux-headers-update.patch
0041-s390x-kvm-add-etoken-facility.patch
- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-3.0
- Re-sync openSUSE and SUSE SLE qemu packages. This changes file
is the openSUSE one with this entry providing the intervening
SLE CVE, FATE, and bugzilla references, which are still addressed
in this package, and not yet called out in this changes file.
* CVE-2018-11806 CVE-2018-12617 CVE-2018-7550 CVE-2018-15746
* fate#325467
* bsc#1091695 bsc#1094725 bsc#1094913 bsc#1096223 bsc#1098735
bsc#1103628 bsc#1105279 bsc#1106222 bsc#1106222 bsc#1107489
* Patches added:
* only enable glusterfs for openSUSE
0040-linux-headers-update.patch
0041-s390x-kvm-add-etoken-facility.patch
- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-3.0
- Re-sync openSUSE and SUSE SLE qemu packages. This changes file
is the openSUSE one with this entry providing the intervening
SLE CVE, FATE, and bugzilla references, which are still addressed
in this package, and not yet called out in this changes file.
* CVE-2018-11806 CVE-2018-12617 CVE-2018-7550 CVE-2018-15746
* fate#325467
* bsc#1091695 bsc#1094725 bsc#1094913 bsc#1096223 bsc#1098735
bsc#1103628 bsc#1105279 bsc#1106222 bsc#1106222 bsc#1107489
* Patches added:
* only enable glusterfs for openSUSE
0040-linux-headers-update.patch
0041-s390x-kvm-add-etoken-facility.patch
- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-3.0
OBS-URL: https://build.opensuse.org/request/show/635823
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=427
2018-09-15 00:33:06 +02:00
|
|
|
%if 0%{?suse_version} >= 1315 && 0%{?is_opensuse}
|
2017-10-16 17:47:06 +02:00
|
|
|
%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
|
|
|
|
|
2018-09-21 23:17:21 +02:00
|
|
|
%define srcname qemu
|
2007-01-16 00:34:41 +01:00
|
|
|
Name: qemu
|
2018-09-21 23:17:21 +02:00
|
|
|
Url: https://www.qemu.org/
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Machine emulator and virtualizer
|
2019-05-02 00:51:10 +02:00
|
|
|
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
|
2017-12-15 16:18:16 +01:00
|
|
|
Group: System/Emulators/PC
|
2019-05-02 00:51:10 +02:00
|
|
|
%define qemuver 4.0.0
|
|
|
|
%define srcver 4.0.0
|
2018-12-06 22:20:59 +01:00
|
|
|
Version: %qemuver
|
2011-12-11 03:42:09 +01:00
|
|
|
Release: 0
|
2018-12-06 22:20:59 +01:00
|
|
|
Source: https://wiki.qemu.org/download/%{srcname}-%{srcver}.tar.xz
|
|
|
|
Source99: https://wiki.qemu.org/download/%{srcname}-%{srcver}.tar.xz.sig
|
2018-09-21 23:17:21 +02:00
|
|
|
Source100: %{srcname}.keyring
|
2014-02-13 14:36:37 +01:00
|
|
|
Source1: 80-kvm.rules
|
2019-02-13 22:52:43 +01:00
|
|
|
Source2: kvm.conf
|
2018-08-22 16:58:18 +02:00
|
|
|
Source3: qemu-ifup
|
|
|
|
Source4: bridge.conf
|
2017-12-14 01:53:24 +01:00
|
|
|
Source5: qemu-kvm.1.gz
|
2014-03-19 15:11:16 +01: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
|
2019-02-13 22:52:43 +01:00
|
|
|
Source10: supported.arm.txt
|
2018-08-22 16:58:18 +02:00
|
|
|
Source11: supported.ppc.txt
|
2017-03-15 20:38:55 +01:00
|
|
|
Source12: supported.x86.txt
|
|
|
|
Source13: supported.s390.txt
|
2018-09-21 23:17:21 +02:00
|
|
|
# this is to make lint happy
|
|
|
|
Source300: qemu-rpmlintrc
|
|
|
|
Source301: ipxe-stub-out-the-SAN-req-s-in-int13.patch
|
|
|
|
Source400: update_git.sh
|
2018-12-06 22:20:59 +01:00
|
|
|
# Upstream First -- https://wiki.qemu.org/Contribute/SubmitAPatch
|
2013-07-22 13:46:11 +02:00
|
|
|
# This patch queue is auto-generated from https://github.com/openSUSE/qemu
|
2014-04-01 17:08:49 +02:00
|
|
|
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
|
2018-08-22 16:58:18 +02:00
|
|
|
Patch0008: 0008-linux-user-binfmt-support-host-bina.patch
|
|
|
|
Patch0009: 0009-linux-user-Fake-proc-cpuinfo.patch
|
2019-05-02 00:51:10 +02:00
|
|
|
Patch0010: 0010-linux-user-use-target_ulong.patch
|
|
|
|
Patch0011: 0011-Make-char-muxer-more-robust-wrt-sma.patch
|
|
|
|
Patch0012: 0012-linux-user-lseek-explicitly-cast-no.patch
|
|
|
|
Patch0013: 0013-AIO-Reduce-number-of-threads-for-32.patch
|
|
|
|
Patch0014: 0014-xen_disk-Add-suse-specific-flush-di.patch
|
|
|
|
Patch0015: 0015-qemu-bridge-helper-reduce-security-.patch
|
|
|
|
Patch0016: 0016-qemu-binfmt-conf-use-qemu-ARCH-binf.patch
|
|
|
|
Patch0017: 0017-linux-user-properly-test-for-infini.patch
|
|
|
|
Patch0018: 0018-roms-Makefile-pass-a-packaging-time.patch
|
|
|
|
Patch0019: 0019-Raise-soft-address-space-limit-to-h.patch
|
|
|
|
Patch0020: 0020-increase-x86_64-physical-bits-to-42.patch
|
|
|
|
Patch0021: 0021-vga-Raise-VRAM-to-16-MiB-for-pc-0.1.patch
|
|
|
|
Patch0022: 0022-i8254-Fix-migration-from-SLE11-SP2.patch
|
|
|
|
Patch0023: 0023-acpi_piix4-Fix-migration-from-SLE11.patch
|
|
|
|
Patch0024: 0024-Switch-order-of-libraries-for-mpath.patch
|
|
|
|
Patch0025: 0025-Make-installed-scripts-explicitly-p.patch
|
|
|
|
Patch0026: 0026-hw-smbios-handle-both-file-formats-.patch
|
|
|
|
Patch0027: 0027-tests-test-thread-pool-is-racy-add-.patch
|
|
|
|
Patch0028: 0028-xen-add-block-resize-support-for-xe.patch
|
|
|
|
Patch0029: 0029-tests-qemu-iotests-Triple-timeout-o.patch
|
|
|
|
Patch0030: 0030-tests-block-io-test-130-needs-some-.patch
|
|
|
|
Patch0031: 0031-xen-ignore-live-parameter-from-xen-.patch
|
|
|
|
Patch0032: 0032-tests-Fix-Makefile-handling-of-chec.patch
|
|
|
|
Patch0033: 0033-Conditionalize-ui-bitmap-installati.patch
|
|
|
|
Patch0034: 0034-Revert-target-i386-kvm-add-VMX-migr.patch
|
|
|
|
Patch0035: 0035-tests-change-error-message-in-test-.patch
|
2019-05-11 17:08:13 +02:00
|
|
|
Patch0036: 0036-sockets-avoid-string-truncation-war.patch
|
2019-05-07 23:38:21 +02:00
|
|
|
Patch0037: 0037-hw-usb-hcd-xhci-Fix-GCC-9-build-war.patch
|
|
|
|
Patch0038: 0038-hw-usb-dev-mtp-Fix-GCC-9-build-warn.patch
|
2019-05-11 17:08:13 +02:00
|
|
|
Patch0039: 0039-linux-user-avoid-string-truncation-.patch
|
2019-05-07 23:38:21 +02:00
|
|
|
Patch0040: 0040-linux-user-elfload-Fix-GCC-9-build-.patch
|
|
|
|
Patch0041: 0041-qxl-fix-Waddress-of-packed-member.patch
|
2015-03-21 12:46:36 +01:00
|
|
|
# Please do not add QEMU patches manually here.
|
|
|
|
# Run update_git.sh to regenerate this queue.
|
|
|
|
|
2018-12-06 22:20:59 +01:00
|
|
|
# SeaBIOS / SeaVGABIOS - path: roms/seabios (patch range 1100-1199)
|
2018-01-26 14:19:10 +01:00
|
|
|
Patch1100: seabios-use-python2-explicitly-as-needed.patch
|
|
|
|
Patch1101: seabios-switch-to-python3-as-needed.patch
|
2019-02-22 15:07:03 +01:00
|
|
|
Patch1102: seabios-fix_cross_compilation.patch
|
2016-06-01 23:35:28 +02:00
|
|
|
|
2018-12-06 22:20:59 +01:00
|
|
|
# ipxe - path: roms/ipxe (patch range 1200-1299)
|
2018-01-26 14:19:10 +01:00
|
|
|
Patch1200: ipxe-stable-buildid.patch
|
|
|
|
Patch1201: ipxe-use-gcc6-for-more-compact-code.patch
|
2019-05-02 00:51:10 +02:00
|
|
|
Patch1202: ipxe-efi-Simplify-diagnostic-for-NULL-handle.patch
|
|
|
|
Patch1203: ipxe-build-Disable-gcc-address-of-packed-member-warning.patch
|
|
|
|
Patch1204: ipxe-efi-Avoid-string-op-warning-with-cross-gcc-7-compile.patch
|
2016-11-21 18:05:46 +01:00
|
|
|
|
2018-12-06 22:20:59 +01:00
|
|
|
# sgabios - path: roms/sgabios (patch range 1300-1399)
|
2018-01-26 14:19:10 +01:00
|
|
|
Patch1300: sgabios-stable-buildid.patch
|
2019-02-22 15:07:03 +01:00
|
|
|
Patch1301: sgabios-fix-cross-build.patch
|
2016-11-21 18:05:46 +01:00
|
|
|
|
2018-12-06 22:20:59 +01:00
|
|
|
# SLOF - path: roms/SLOF (patch range 1400-1499) (Currently no patches)
|
2013-09-13 23:59:15 +02:00
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
# skiboot - path: roms/skiboot (patch range 1500-1599) (Currently no patches)
|
2017-10-16 17:47:06 +02:00
|
|
|
|
2018-12-06 22:20:59 +01:00
|
|
|
# keycodemapdb - path: ui/keycodemapdb (patch range 1600-1699) (Currently no patches)
|
|
|
|
|
|
|
|
# openBIOS - path: roms/openbios (patch range 1700-1799) (Currently no patches)
|
|
|
|
|
|
|
|
# If for any reason we have any QEMU patches which are conditionally applied,
|
|
|
|
# "manually" include them here:
|
2018-01-26 00:50:30 +01:00
|
|
|
|
2017-03-15 20:38:55 +01:00
|
|
|
ExcludeArch: s390
|
2007-01-16 00:34:41 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2019-05-02 00:51:10 +02:00
|
|
|
%if %{build_x86_firmware_from_source}
|
|
|
|
BuildRequires: acpica
|
2017-11-29 22:55:00 +01:00
|
|
|
%endif
|
2013-04-22 20:53:01 +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
|
2019-05-02 00:51:10 +02:00
|
|
|
%endif
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: bluez-devel
|
|
|
|
BuildRequires: brlapi-devel
|
|
|
|
%if %{build_x86_firmware_from_source}
|
2019-02-22 15:07:03 +01:00
|
|
|
%ifnarch %{ix86} x86_64
|
|
|
|
# We must cross-compile on non-x86*
|
|
|
|
BuildRequires: cross-x86_64-binutils
|
|
|
|
BuildRequires: cross-x86_64-gcc7
|
|
|
|
%endif
|
2016-05-31 23:05:30 +02:00
|
|
|
%endif
|
2011-05-17 00:37:59 +02:00
|
|
|
BuildRequires: curl-devel
|
|
|
|
BuildRequires: cyrus-sasl-devel
|
|
|
|
BuildRequires: e2fsprogs-devel
|
2013-05-24 21:22:32 +02:00
|
|
|
BuildRequires: fdupes
|
2019-05-02 00:51:10 +02:00
|
|
|
BuildRequires: flex
|
2014-03-20 01:26:56 +01:00
|
|
|
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
|
2013-05-24 21:22:32 +02:00
|
|
|
BuildRequires: glib2-devel
|
2017-10-13 18:07:37 +02:00
|
|
|
%if 0%{?with_glusterfs}
|
2015-04-09 15:38:04 +02:00
|
|
|
BuildRequires: glusterfs-devel
|
|
|
|
%endif
|
2013-05-21 19:08:29 +02:00
|
|
|
BuildRequires: gtk3-devel
|
2011-05-17 00:37:59 +02:00
|
|
|
BuildRequires: libaio-devel
|
2011-10-05 17:26:05 +02:00
|
|
|
BuildRequires: libattr-devel
|
2015-04-09 15:38:04 +02:00
|
|
|
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
|
2012-09-09 19:55:25 +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
|
2013-05-24 21:22:32 +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
|
2011-05-17 00:37:59 +02:00
|
|
|
BuildRequires: libgnutls-devel
|
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
|
2012-09-09 19:55:25 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
2018-12-06 22:20:59 +01:00
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
BuildRequires: libnfs-devel
|
|
|
|
%endif
|
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-09 15:38:04 +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-09 15:38:04 +02:00
|
|
|
BuildRequires: libnuma-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
2011-05-17 00:37:59 +02:00
|
|
|
BuildRequires: libpcap-devel
|
2013-05-24 21:22:32 +02:00
|
|
|
BuildRequires: libpixman-1-0-devel
|
2018-12-06 22:20:59 +01:00
|
|
|
%ifarch x86_64
|
|
|
|
BuildRequires: libpmem-devel
|
|
|
|
%endif
|
2012-09-09 19:55:25 +02:00
|
|
|
BuildRequires: libpng-devel
|
2013-05-25 20:15:40 +02:00
|
|
|
BuildRequires: libpulse-devel
|
2018-12-06 22:20:59 +01:00
|
|
|
%if 0%{?with_rbd}
|
|
|
|
%if 0%{?is_opensuse} || 0%{?sle_version} > 120100
|
|
|
|
BuildRequires: librbd-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: ceph-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
2019-05-02 00:51:10 +02:00
|
|
|
%if 0%{?suse_version} >= 1320 && 0%{?is_opensuse}
|
|
|
|
BuildRequires: libSDL2-devel
|
|
|
|
BuildRequires: libSDL2_image-devel
|
|
|
|
%endif
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?with_seccomp}
|
2015-04-09 15:38:04 +02:00
|
|
|
BuildRequires: libseccomp-devel
|
|
|
|
%endif
|
2016-11-21 18:35:32 +01:00
|
|
|
BuildRequires: libspice-server-devel
|
2015-04-09 15:38:04 +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
|
2013-05-24 21:22:32 +02:00
|
|
|
BuildRequires: libvdeplug3-devel
|
2017-07-25 22:21:37 +02:00
|
|
|
%endif
|
2019-05-02 00:51:10 +02:00
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
BuildRequires: lzfse-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: Mesa-devel
|
2017-12-14 01:53:24 +01:00
|
|
|
BuildRequires: libxkbcommon-devel
|
2015-04-09 15:38:04 +02:00
|
|
|
BuildRequires: lzo-devel
|
2012-09-13 19:34:07 +02:00
|
|
|
BuildRequires: makeinfo
|
2017-12-14 01:53:24 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
BuildRequires: multipath-tools-devel
|
2012-09-13 19:39:42 +02:00
|
|
|
%endif
|
2011-05-17 00:37:59 +02:00
|
|
|
BuildRequires: ncurses-devel
|
2015-04-09 19:17:53 +02:00
|
|
|
BuildRequires: pkgconfig
|
2013-05-24 21:22:32 +02:00
|
|
|
BuildRequires: pwdutils
|
2018-01-26 14:19:10 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
BuildRequires: python3-base
|
|
|
|
%else
|
|
|
|
BuildRequires: python-base
|
|
|
|
%endif
|
2019-05-02 00:51:10 +02:00
|
|
|
BuildRequires: python-Sphinx
|
2017-08-31 22:04:54 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
|
|
|
BuildRequires: rdma-core-devel
|
|
|
|
%endif
|
2015-04-09 15:38:04 +02:00
|
|
|
BuildRequires: snappy-devel
|
2016-11-21 18:35:32 +01:00
|
|
|
BuildRequires: spice-protocol-devel
|
2014-03-19 15:11:16 +01:00
|
|
|
BuildRequires: systemd
|
|
|
|
%{?systemd_requires}
|
2014-05-13 10:09:26 +02:00
|
|
|
%if %{kvm_available}
|
2016-05-31 23:05:30 +02:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2014-05-13 10:09:26 +02:00
|
|
|
%endif
|
2014-03-20 01:26:56 +01:00
|
|
|
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
|
2014-01-17 23:04:30 +01:00
|
|
|
BuildRequires: vte-devel
|
2014-01-14 13:48:29 +01:00
|
|
|
%ifarch x86_64
|
2013-08-17 21:01:06 +02:00
|
|
|
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
|
2011-05-17 05:31:07 +02:00
|
|
|
BuildRequires: zlib-devel
|
2015-04-12 11:13:49 +02:00
|
|
|
%if "%{name}" == "qemu-testsuite"
|
2018-05-01 17:20:58 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
BuildRequires: python-base
|
|
|
|
%endif
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: bc
|
2019-05-02 00:51:10 +02:00
|
|
|
BuildRequires: qemu-arm = %{qemuver}
|
|
|
|
BuildRequires: qemu-audio-alsa = %{qemuver}
|
|
|
|
BuildRequires: qemu-audio-pa = %{qemuver}
|
|
|
|
%if 0%{?suse_version} >= 1320 && 0%{?is_opensuse}
|
|
|
|
BuildRequires: qemu-audio-sdl = %{qemuver}
|
|
|
|
%endif
|
2018-09-21 23:17:21 +02:00
|
|
|
BuildRequires: qemu-block-curl = %{qemuver}
|
|
|
|
BuildRequires: qemu-block-dmg = %{qemuver}
|
2017-10-13 18:07:37 +02:00
|
|
|
%if 0%{?with_glusterfs}
|
2018-09-21 23:17:21 +02:00
|
|
|
BuildRequires: qemu-block-gluster = %{qemuver}
|
2017-04-12 21:10:15 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
2018-09-21 23:17:21 +02:00
|
|
|
BuildRequires: qemu-block-iscsi = %{qemuver}
|
2017-04-12 21:10:15 +02:00
|
|
|
%endif
|
2018-12-06 22:20:59 +01:00
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
BuildRequires: qemu-block-nfs = %{qemuver}
|
|
|
|
%endif
|
2017-04-12 21:10:15 +02:00
|
|
|
%if 0%{?with_rbd}
|
2018-09-21 23:17:21 +02:00
|
|
|
BuildRequires: qemu-block-rbd = %{qemuver}
|
|
|
|
%endif
|
|
|
|
BuildRequires: qemu-block-ssh = %{qemuver}
|
|
|
|
BuildRequires: qemu-extra = %{qemuver}
|
|
|
|
BuildRequires: qemu-guest-agent = %{qemuver}
|
2019-05-02 00:51:10 +02:00
|
|
|
BuildRequires: qemu-ipxe = 1.0.0+
|
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
BuildRequires: qemu-ksm = %{qemuver}
|
|
|
|
%endif
|
|
|
|
BuildRequires: qemu-lang = %{qemuver}
|
2018-09-21 23:17:21 +02:00
|
|
|
BuildRequires: qemu-ppc = %{qemuver}
|
|
|
|
BuildRequires: qemu-s390 = %{qemuver}
|
2019-05-02 00:51:10 +02:00
|
|
|
BuildRequires: qemu-seabios = 1.12.1
|
|
|
|
BuildRequires: qemu-sgabios = 8
|
2018-09-21 23:17:21 +02:00
|
|
|
BuildRequires: qemu-tools = %{qemuver}
|
|
|
|
BuildRequires: qemu-ui-curses = %{qemuver}
|
|
|
|
BuildRequires: qemu-ui-gtk = %{qemuver}
|
2019-05-02 00:51:10 +02:00
|
|
|
%if 0%{?suse_version} >= 1320 && 0%{?is_opensuse}
|
2018-09-21 23:17:21 +02:00
|
|
|
BuildRequires: qemu-ui-sdl = %{qemuver}
|
2017-04-12 21:10:15 +02:00
|
|
|
%endif
|
2019-05-02 00:51:10 +02:00
|
|
|
BuildRequires: qemu-vgabios = 1.12.1
|
2018-09-21 23:17:21 +02:00
|
|
|
BuildRequires: qemu-x86 = %{qemuver}
|
2017-04-12 21:10:15 +02:00
|
|
|
%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
|
|
|
Recommends: kvm_stat
|
2016-05-31 23:05:30 +02:00
|
|
|
%endif
|
2014-07-03 15:15:40 +02:00
|
|
|
Recommends: qemu-block-curl
|
2012-06-26 10:33:26 +02:00
|
|
|
Recommends: qemu-tools
|
2018-05-01 17:20:58 +02:00
|
|
|
Recommends: qemu-ui-curses
|
|
|
|
Recommends: qemu-ui-gtk
|
2019-05-02 00:51:10 +02:00
|
|
|
%if 0%{?suse_version} >= 1320 && 0%{?is_opensuse}
|
2018-05-01 17:20:58 +02:00
|
|
|
Recommends: qemu-ui-sdl
|
|
|
|
%endif
|
2014-02-24 18:02:42 +01:00
|
|
|
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-13 18:07:37 +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
|
2018-12-06 22:20:59 +01:00
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
Suggests: qemu-block-nfs
|
|
|
|
%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
|
2014-02-24 18:02:42 +01:00
|
|
|
Suggests: qemu-extra
|
2014-04-08 17:25:09 +02:00
|
|
|
Suggests: qemu-lang
|
2017-12-14 01:53:24 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2018-09-21 23:17:21 +02:00
|
|
|
Recommends: qemu-ksm = %{qemuver}
|
2014-02-24 18:02:42 +01:00
|
|
|
%endif
|
2019-05-07 23:38:21 +02:00
|
|
|
Provides: qemu-audio-oss = %{qemuver}
|
|
|
|
Obsoletes: qemu-audio-oss < %{qemuver}
|
2007-01-16 00:34:41 +01:00
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
# 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
|
|
|
|
|
|
|
|
# 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 {spapr-rtas.bin}
|
|
|
|
%define ppc64_only_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 pxe-e1000.rom pxe-eepro100.rom \
|
|
|
|
pxe-ne2k_pci.rom pxe-pcnet.rom pxe-rtl8139.rom pxe-virtio.rom sgabios.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 {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} \
|
|
|
|
%{?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}
|
2017-10-16 17:47:06 +02:00
|
|
|
%if %{build_skiboot_from_source} && %{build_slof_from_source}
|
2019-05-02 00:51:10 +02:00
|
|
|
%define ppc_extra_built_firmware %{ppc_extra_firmware}
|
2017-10-16 17:47:06 +02:00
|
|
|
%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
|
2019-05-02 00:51:10 +02:00
|
|
|
%define ppc64_only_default_built_firmware %{ppc64_only_default_firmware}
|
|
|
|
%define ppc64_only_extra_built_firmware %{ppc64_only_extra_firmware}
|
2017-04-12 21:10:15 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch s390x
|
2019-05-02 00:51:10 +02:00
|
|
|
%define s390x_default_built_firmware %{s390x_default_firmware}
|
|
|
|
%define s390x_extra_built_firmware %{s390x_extra_firmware}
|
2017-04-12 21:10:15 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch %ix86 x86_64
|
2019-05-02 00:51:10 +02:00
|
|
|
%define x86_default_built_firmware %{x86_default_firmware}
|
2016-05-31 23:05:30 +02:00
|
|
|
%ifarch x86_64
|
2019-05-02 00:51:10 +02:00
|
|
|
%define x86_64_only_default_built_firmware %{x86_64_only_default_firmware}
|
2017-04-12 21:10:15 +02:00
|
|
|
%endif
|
2016-05-31 23:05:30 +02:00
|
|
|
%endif
|
2017-04-12 21:10:15 +02:00
|
|
|
|
|
|
|
%if %{build_x86_firmware_from_source}
|
2019-05-02 00:51:10 +02:00
|
|
|
%define x86_extra_built_firmware %{x86_extra_firmware}
|
2017-04-12 21:10:15 +02:00
|
|
|
%ifarch x86_64
|
2019-05-02 00:51:10 +02:00
|
|
|
%define x86_64_only_extra_built_firmware %{x86_64_only_extra_firmware}
|
2017-04-12 21:10:15 +02:00
|
|
|
%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} }
|
2013-09-13 23:59:15 +02:00
|
|
|
|
2007-01-16 00:34:41 +01: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.
|
2007-01-16 00:34:41 +01:00
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%if "%{name}" != "qemu-testsuite"
|
|
|
|
|
2014-02-24 18:02:42 +01:00
|
|
|
%package x86
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Machine emulator and virtualizer for x86 architectures
|
2014-02-24 18:02:42 +01:00
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-09-21 23:17:21 +02:00
|
|
|
Requires: %name = %{qemuver}
|
2014-02-24 18:02:42 +01:00
|
|
|
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
|
2014-02-24 18:02:42 +01: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.
|
2014-02-24 18:02:42 +01:00
|
|
|
|
2017-12-14 01:53:24 +01:00
|
|
|
This package provides i386 and x86_64 emulation.
|
2014-02-24 18:02:42 +01:00
|
|
|
|
|
|
|
%package ppc
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Machine emulator and virtualizer for Power architectures
|
2014-02-24 18:02:42 +01:00
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-09-21 23:17:21 +02:00
|
|
|
Requires: %name = %{qemuver}
|
2016-11-28 19:24:03 +01:00
|
|
|
Recommends: qemu-ipxe
|
|
|
|
Recommends: qemu-vgabios
|
2014-02-24 18:02:42 +01: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.
|
2014-02-24 18:02:42 +01:00
|
|
|
|
2017-12-14 01:53:24 +01:00
|
|
|
This package provides ppc and ppc64 emulation.
|
2014-02-24 18:02:42 +01:00
|
|
|
|
|
|
|
%package s390
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Machine emulator and virtualizer for S/390 architectures
|
2014-02-24 18:02:42 +01:00
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-09-21 23:17:21 +02:00
|
|
|
Requires: %name = %{qemuver}
|
2014-02-24 18:02:42 +01:00
|
|
|
|
|
|
|
%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.
|
2014-02-24 18:02:42 +01:00
|
|
|
|
2017-12-14 01:53:24 +01:00
|
|
|
This package provides s390x emulation.
|
2014-02-24 18:02:42 +01:00
|
|
|
|
|
|
|
%package arm
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Machine emulator and virtualizer for ARM architectures
|
2014-02-24 18:02:42 +01:00
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-09-21 23:17:21 +02:00
|
|
|
Requires: %name = %{qemuver}
|
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
|
2014-02-24 18:02:42 +01: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.
|
2014-02-24 18:02:42 +01:00
|
|
|
|
2017-12-14 01:53:24 +01:00
|
|
|
This package provides arm emulation.
|
2014-02-24 18:02:42 +01:00
|
|
|
|
|
|
|
%package extra
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Machine emulator and virtualizer for "extra" architectures
|
2014-02-24 18:02:42 +01:00
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-09-21 23:17:21 +02:00
|
|
|
Requires: %name = %{qemuver}
|
2016-11-28 19:24:03 +01:00
|
|
|
Recommends: qemu-ipxe
|
|
|
|
Recommends: qemu-vgabios
|
2014-02-24 18:02:42 +01: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.
|
2014-02-24 18:02:42 +01: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.)
|
2014-02-24 18:02:42 +01:00
|
|
|
|
2014-05-13 10:09:26 +02:00
|
|
|
%if %{legacy_qemu_kvm}
|
2014-02-13 14:36:37 +01:00
|
|
|
%package kvm
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Wrapper to enable KVM acceleration under QEMU
|
2014-02-13 14:36:37 +01:00
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2014-02-24 18:02:42 +01:00
|
|
|
%ifarch %ix86 x86_64
|
2018-09-21 23:17:21 +02:00
|
|
|
Requires: qemu-x86 = %{qemuver}
|
2014-02-24 18:02:42 +01:00
|
|
|
%endif
|
|
|
|
%ifarch s390x
|
2018-09-21 23:17:21 +02:00
|
|
|
Requires: qemu-s390 = %{qemuver}
|
2014-02-24 18:02:42 +01:00
|
|
|
%endif
|
2018-09-21 23:17:21 +02:00
|
|
|
Provides: kvm = %{qemuver}
|
|
|
|
Obsoletes: kvm < %{qemuver}
|
2014-02-13 14:36:37 +01:00
|
|
|
|
|
|
|
%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.
|
2014-02-13 14:36:37 +01:00
|
|
|
%endif
|
|
|
|
|
2013-05-21 19:08:29 +02:00
|
|
|
%package lang
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Translations for QEMU
|
2013-05-21 19:08:29 +02:00
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2013-05-21 19:08:29 +02:00
|
|
|
|
|
|
|
%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.
|
2013-05-21 19:08:29 +02:00
|
|
|
|
2015-04-09 19:17:53 +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 \
|
2018-09-21 23:17:21 +02:00
|
|
|
Conflicts: %name < %{qemuver}-%{release} \
|
|
|
|
Conflicts: %name > %{qemuver}-%{release} \
|
|
|
|
Conflicts: qemu-tools < %{qemuver}-%{release} \
|
|
|
|
Conflicts: qemu-tools > %{qemuver}-%{release}
|
2015-04-09 19:17:53 +02:00
|
|
|
|
2014-07-03 15:15:40 +02:00
|
|
|
%package block-curl
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: cURL block support for QEMU
|
2014-07-03 15:15:40 +02:00
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-09-21 23:17:21 +02:00
|
|
|
Provides: %name:%_libdir/%name/block-curl.so
|
2015-04-09 19:17:53 +02:00
|
|
|
%{qemu_module_conflicts}
|
2014-07-03 15:15:40 +02:00
|
|
|
|
|
|
|
%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.
|
2014-07-03 15:15:40 +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
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2015-07-24 15:54:26 +02:00
|
|
|
%{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-13 18:07:37 +02:00
|
|
|
%if 0%{?with_glusterfs}
|
2015-04-09 19:17:53 +02:00
|
|
|
%package block-gluster
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: GlusterFS block support for QEMU
|
2015-04-09 19:17:53 +02:00
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2015-04-09 19:17:53 +02:00
|
|
|
%{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-09 19:17:53 +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
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2016-04-28 18:36:38 +02:00
|
|
|
%{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
|
|
|
|
|
2018-12-06 22:20:59 +01:00
|
|
|
%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
|
|
|
|
|
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
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2016-07-12 22:12:45 +02:00
|
|
|
%{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-09 15:38:04 +02:00
|
|
|
%package block-ssh
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: SSH (SFTP) block support for QEMU
|
2015-04-09 15:38:04 +02:00
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2015-04-09 19:17:53 +02:00
|
|
|
%{qemu_module_conflicts}
|
2015-04-09 15:38:04 +02:00
|
|
|
|
|
|
|
%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-09 15:38:04 +02:00
|
|
|
|
2018-05-01 17:20:58 +02:00
|
|
|
%package ui-curses
|
|
|
|
Summary: Curses based UI support for QEMU
|
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-05-01 17:20:58 +02:00
|
|
|
%{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
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-05-01 17:20:58 +02:00
|
|
|
%{qemu_module_conflicts}
|
|
|
|
|
|
|
|
%description ui-gtk
|
|
|
|
This package contains a module for doing GTK based UI for QEMU.
|
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
%if 0%{?suse_version} >= 1320 && 0%{?is_opensuse}
|
2018-05-01 17:20:58 +02:00
|
|
|
%package ui-sdl
|
|
|
|
Summary: SDL based UI support for QEMU
|
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-05-01 17:20:58 +02:00
|
|
|
%{qemu_module_conflicts}
|
|
|
|
|
|
|
|
%description ui-sdl
|
|
|
|
This package contains a module for doing SDL based UI for QEMU.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package audio-alsa
|
|
|
|
Summary: ALSA based audio support for QEMU
|
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-05-01 17:20:58 +02:00
|
|
|
%{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
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-05-01 17:20:58 +02:00
|
|
|
%{qemu_module_conflicts}
|
|
|
|
|
|
|
|
%description audio-pa
|
|
|
|
This package contains a module for Pulse Audio based audio support for QEMU.
|
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
%if 0%{?suse_version} >= 1320 && 0%{?is_opensuse}
|
2018-05-01 17:20:58 +02:00
|
|
|
%package audio-sdl
|
|
|
|
Summary: SDL based audio support for QEMU
|
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-05-01 17:20:58 +02:00
|
|
|
%{qemu_module_conflicts}
|
|
|
|
|
|
|
|
%description audio-sdl
|
|
|
|
This package contains a module for SDL based audio support for QEMU.
|
|
|
|
%endif
|
|
|
|
|
2014-03-26 22:08:55 +01:00
|
|
|
%package tools
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Tools for QEMU
|
2014-03-26 22:08:55 +01:00
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-09-21 23:17:21 +02:00
|
|
|
Provides: %name:%_libexecdir/qemu-bridge-helper
|
2017-08-18 18:25:16 +02:00
|
|
|
Requires(pre): permissions
|
|
|
|
Requires(pre): shadow
|
2019-03-27 18:35:55 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
2019-03-27 04:57:07 +01:00
|
|
|
Recommends: multipath-tools
|
2019-03-27 18:35:55 +01:00
|
|
|
%endif
|
2014-07-03 15:15:40 +02:00
|
|
|
Recommends: qemu-block-curl
|
2016-07-12 22:12:45 +02:00
|
|
|
%if 0%{?with_rbd}
|
|
|
|
Recommends: qemu-block-rbd
|
|
|
|
%endif
|
2014-03-26 22:08:55 +01: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.
|
2014-03-26 22:08:55 +01:00
|
|
|
|
|
|
|
%package guest-agent
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Guest agent for QEMU
|
2014-03-26 22:08:55 +01:00
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-09-21 23:17:21 +02:00
|
|
|
Provides: %name:%_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-04-27 22:58:41 +02:00
|
|
|
Supplements: modalias(acpi*:QEMU0002%3A*)
|
2018-02-22 23:01:24 +01:00
|
|
|
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}
|
2014-03-26 22:08:55 +01: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.
|
2014-03-26 22:08:55 +01:00
|
|
|
|
2019-02-22 15:07:03 +01:00
|
|
|
%ifarch %{build_rom_arch}
|
2013-09-13 23:59:15 +02:00
|
|
|
%package seabios
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: x86 Legacy BIOS for QEMU
|
2013-09-13 23:59:15 +02:00
|
|
|
Group: System/Emulators/PC
|
2019-05-02 00:51:10 +02:00
|
|
|
Version: 1.12.1
|
2013-09-13 23:59:15 +02:00
|
|
|
Release: 0
|
|
|
|
BuildArch: noarch
|
2018-09-21 23:17:21 +02:00
|
|
|
Conflicts: %name < 1.6.0
|
2013-09-13 23:59:15 +02:00
|
|
|
|
|
|
|
%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.
|
2013-09-13 23:59:15 +02:00
|
|
|
|
|
|
|
%package vgabios
|
|
|
|
Summary: VGA BIOSes for QEMU
|
|
|
|
Group: System/Emulators/PC
|
2019-05-02 00:51:10 +02:00
|
|
|
Version: 1.12.1
|
2013-09-13 23:59:15 +02:00
|
|
|
Release: 0
|
|
|
|
BuildArch: noarch
|
2018-09-21 23:17:21 +02:00
|
|
|
Conflicts: %name < 1.6.0
|
2013-09-13 23:59:15 +02:00
|
|
|
|
|
|
|
%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
|
2018-09-21 23:17:21 +02:00
|
|
|
Conflicts: %name < 1.6.0
|
2013-09-13 23:59:15 +02:00
|
|
|
|
|
|
|
%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
|
2018-09-21 23:17:21 +02:00
|
|
|
Version: 1.0.0+
|
2013-09-13 23:59:15 +02:00
|
|
|
Release: 0
|
|
|
|
BuildArch: noarch
|
2018-09-21 23:17:21 +02:00
|
|
|
Conflicts: %name < 1.6.0
|
2013-09-13 23:59:15 +02:00
|
|
|
|
|
|
|
%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.
|
2014-06-02 20:08:59 +02:00
|
|
|
%endif
|
2013-09-13 23:59:15 +02:00
|
|
|
|
2017-12-14 01:53:24 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2014-03-19 15:11:16 +01:00
|
|
|
%package ksm
|
|
|
|
Summary: Kernel Samepage Merging services
|
|
|
|
Group: System/Emulators/PC
|
2018-09-25 17:06:25 +02:00
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
2018-01-15 21:21:37 +01:00
|
|
|
Requires(pre): coreutils
|
|
|
|
Requires(post): coreutils
|
2014-03-19 15:11:16 +01: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).
|
2014-03-19 15:11:16 +01:00
|
|
|
|
|
|
|
This package provides a service file for starting and stopping KSM.
|
|
|
|
%endif
|
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif # !qemu-testsuite
|
|
|
|
|
2007-01-16 00:34:41 +01:00
|
|
|
%prep
|
2018-12-06 22:20:59 +01:00
|
|
|
%setup -q -n %{srcname}-%{expand:%%(SV=%{srcver};echo ${SV%%%%+git*})}
|
2011-12-14 02:35:41 +01: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
|
2012-05-29 17:35:15 +02:00
|
|
|
%patch0019 -p1
|
2012-05-30 20:19:53 +02:00
|
|
|
%patch0020 -p1
|
2012-05-31 19:37:49 +02:00
|
|
|
%patch0021 -p1
|
2012-06-10 14:13:56 +02:00
|
|
|
%patch0022 -p1
|
2012-06-13 10:19:32 +02:00
|
|
|
%patch0023 -p1
|
2012-06-25 19:40:49 +02:00
|
|
|
%patch0024 -p1
|
2012-07-05 18:39:32 +02:00
|
|
|
%patch0025 -p1
|
2012-07-10 20:44:07 +02:00
|
|
|
%patch0026 -p1
|
2012-07-11 16:55:34 +02:00
|
|
|
%patch0027 -p1
|
2012-08-21 10:26:43 +02:00
|
|
|
%patch0028 -p1
|
|
|
|
%patch0029 -p1
|
2012-08-21 14:29:30 +02:00
|
|
|
%patch0030 -p1
|
|
|
|
%patch0031 -p1
|
|
|
|
%patch0032 -p1
|
2012-12-13 11:49:19 +01:00
|
|
|
%patch0033 -p1
|
2018-01-04 18:05:29 +01:00
|
|
|
%patch0034 -p1
|
2018-01-26 00:50:30 +01:00
|
|
|
%patch0035 -p1
|
2019-05-07 23:38:21 +02:00
|
|
|
%patch0036 -p1
|
|
|
|
%patch0037 -p1
|
|
|
|
%patch0038 -p1
|
|
|
|
%patch0039 -p1
|
|
|
|
%patch0040 -p1
|
|
|
|
%patch0041 -p1
|
2013-09-13 23:59:15 +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
|
2019-02-22 15:07:03 +01:00
|
|
|
%patch1102 -p1
|
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
|
2019-05-11 17:08:13 +02:00
|
|
|
%endif
|
2018-04-26 20:53:21 +02:00
|
|
|
%patch1202 -p1
|
2018-07-31 16:50:24 +02:00
|
|
|
%patch1203 -p1
|
2019-05-02 00:51:10 +02:00
|
|
|
%ifarch aarch64
|
2019-01-25 21:55:31 +01:00
|
|
|
%patch1204 -p1
|
2019-05-02 00:51:10 +02:00
|
|
|
%endif
|
2018-01-26 14:19:10 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
pushd roms/sgabios
|
|
|
|
%patch1300 -p1
|
2019-02-22 15:07:03 +01:00
|
|
|
%patch1301 -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
|
|
|
|
popd
|
|
|
|
|
2018-01-26 00:50:30 +01:00
|
|
|
pushd ui/keycodemapdb
|
|
|
|
popd
|
|
|
|
|
2018-12-06 22:20:59 +01:00
|
|
|
pushd roms/openbios
|
|
|
|
popd
|
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
%if "%{name}" != "qemu-testsuite"
|
|
|
|
# delete the firmware files that we intend to build
|
2017-04-12 21:10:15 +02:00
|
|
|
for i in %built_firmware
|
2019-05-02 00:51:10 +02:00
|
|
|
%else
|
|
|
|
# delete the firmware files that we intend to link from built packages
|
|
|
|
for i in %firmware
|
|
|
|
%endif
|
2013-09-13 23:59:15 +02:00
|
|
|
do
|
2017-04-12 21:10:15 +02:00
|
|
|
unlink pc-bios/$i
|
2013-09-13 23:59:15 +02:00
|
|
|
done
|
2015-10-08 18:14:43 +02:00
|
|
|
|
2007-01-16 00:34:41 +01:00
|
|
|
%build
|
2019-05-07 23:38:21 +02:00
|
|
|
%define _lto_cflags %{nil}
|
2019-05-02 00:51:10 +02:00
|
|
|
|
|
|
|
%if %build_in_tree
|
|
|
|
%define mybuilddir %{_builddir}/%buildsubdir
|
|
|
|
%else
|
|
|
|
%define mybuilddir %{_builddir}/mybuilddir
|
|
|
|
mkdir -p %mybuilddir
|
|
|
|
cd %mybuilddir
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%{_builddir}/%buildsubdir/configure \
|
2016-04-05 15:18:15 +02:00
|
|
|
--prefix=%_prefix \
|
|
|
|
--sysconfdir=%_sysconfdir \
|
2014-03-26 22:08:55 +01:00
|
|
|
--libdir=%_libdir \
|
2012-06-10 14:13:56 +02:00
|
|
|
--libexecdir=%_libexecdir \
|
2014-03-27 00:48:29 +01:00
|
|
|
--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
|
2019-05-02 00:51:10 +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/ (.*)//')" \
|
2019-05-02 00:51:10 +02:00
|
|
|
--with-default-devices \
|
2013-05-25 20:15:40 +02:00
|
|
|
--enable-system --disable-linux-user \
|
|
|
|
--enable-tools --enable-guest-agent \
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-modules \
|
2013-10-10 09:40:10 +02:00
|
|
|
--enable-pie \
|
2013-05-25 20:15:40 +02:00
|
|
|
--enable-docs \
|
2019-05-02 00:51:10 +02:00
|
|
|
%if 0%{?suse_version} >= 1320 && 0%{?is_opensuse}
|
2019-05-07 23:38:21 +02:00
|
|
|
--audio-drv-list="pa alsa sdl" \
|
2017-11-29 22:55:00 +01:00
|
|
|
%else
|
2019-05-07 23:38:21 +02:00
|
|
|
--audio-drv-list="pa alsa" \
|
2017-11-29 22:55:00 +01:00
|
|
|
%endif
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-attr \
|
2019-05-02 00:51:10 +02:00
|
|
|
--disable-auth-pam \
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-bluez \
|
2018-12-06 22:20:59 +01:00
|
|
|
--enable-bochs \
|
2015-04-12 11:13:49 +02:00
|
|
|
--enable-brlapi \
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-bzip2 \
|
2013-05-25 20:15:40 +02:00
|
|
|
--enable-cap-ng \
|
2017-12-14 01:53:24 +01:00
|
|
|
--disable-capstone \
|
2018-12-06 22:20:59 +01:00
|
|
|
--enable-cloop \
|
2016-01-27 17:31:12 +01:00
|
|
|
--enable-coroutine-pool \
|
2017-12-14 01:53:24 +01:00
|
|
|
--disable-crypto-afalg \
|
2013-05-25 20:15:40 +02:00
|
|
|
--enable-curl \
|
|
|
|
--enable-curses \
|
2018-12-06 22:20:59 +01:00
|
|
|
--enable-dmg \
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-fdt \
|
2016-01-27 17:31:12 +01:00
|
|
|
--enable-gcrypt \
|
2017-10-13 18:07:37 +02:00
|
|
|
%if 0%{?with_glusterfs}
|
2015-04-09 19:17:53 +02:00
|
|
|
--enable-glusterfs \
|
2015-04-10 17:01:16 +02:00
|
|
|
%else
|
|
|
|
--disable-glusterfs \
|
2015-04-09 15:38:04 +02:00
|
|
|
%endif
|
2016-01-27 17:31:12 +01:00
|
|
|
--enable-gnutls \
|
2013-05-21 19:08:29 +02:00
|
|
|
--enable-gtk \
|
2017-03-29 06:22:10 +02:00
|
|
|
--disable-hax \
|
2018-05-01 17:20:58 +02:00
|
|
|
--disable-hvf \
|
2019-05-02 00:51:10 +02:00
|
|
|
--enable-iconv \
|
2016-09-22 16:28:43 +02:00
|
|
|
--disable-jemalloc \
|
2014-05-13 10:09:26 +02:00
|
|
|
%if %{kvm_available}
|
|
|
|
--enable-kvm \
|
2015-04-12 11:13:49 +02:00
|
|
|
%else
|
|
|
|
--disable-kvm \
|
2015-04-09 15:38:04 +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
|
|
|
--enable-libiscsi \
|
|
|
|
%else
|
2015-04-09 15:38:04 +02:00
|
|
|
--disable-libiscsi \
|
2016-04-28 18:36:38 +02:00
|
|
|
%endif
|
2018-12-06 22:20:59 +01:00
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
--enable-libnfs \
|
|
|
|
%else
|
2015-04-09 15:38:04 +02:00
|
|
|
--disable-libnfs \
|
2018-12-06 22:20:59 +01:00
|
|
|
%endif
|
|
|
|
%ifarch x86_64
|
|
|
|
--enable-libpmem \
|
|
|
|
%else
|
|
|
|
--disable-libpmem \
|
|
|
|
%endif
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-libssh2 \
|
|
|
|
--enable-libusb \
|
2018-05-01 17:20:58 +02:00
|
|
|
--disable-libxml2 \
|
2013-05-25 20:15:40 +02:00
|
|
|
--enable-linux-aio \
|
2019-05-02 00:51:10 +02:00
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
--enable-lzfse \
|
|
|
|
%else
|
|
|
|
--disable-lzfse \
|
|
|
|
%endif
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-lzo \
|
2018-05-01 17:20:58 +02:00
|
|
|
--disable-malloc-trim \
|
|
|
|
--enable-membarrier \
|
2017-12-14 01:53:24 +01:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
--enable-mpath \
|
|
|
|
%else
|
|
|
|
--disable-mpath \
|
|
|
|
%endif
|
2015-04-09 15:38:04 +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-09 15:38:04 +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-09 15:38:04 +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
|
2018-12-06 22:20:59 +01:00
|
|
|
--enable-parallels \
|
|
|
|
%if 0%{?suse_version} >= 1315
|
|
|
|
--enable-pvrdma \
|
|
|
|
%else
|
|
|
|
--disable-pvrdma \
|
|
|
|
%endif
|
|
|
|
--enable-qcow1 \
|
|
|
|
--enable-qed \
|
2016-07-12 22:12:45 +02:00
|
|
|
%if 0%{?with_rbd}
|
|
|
|
--enable-rbd \
|
|
|
|
%else
|
2015-04-09 15:38:04 +02:00
|
|
|
--disable-rbd \
|
2016-07-12 22:12:45 +02:00
|
|
|
%endif
|
2014-09-03 18:34:40 +02:00
|
|
|
%if 0%{?suse_version} >= 1315
|
|
|
|
--enable-rdma \
|
2015-04-12 11:13:49 +02:00
|
|
|
%else
|
|
|
|
--disable-rdma \
|
2014-09-03 18:34:40 +02:00
|
|
|
%endif
|
2017-03-29 06:22:10 +02:00
|
|
|
--enable-replication \
|
2018-05-01 17:20:58 +02:00
|
|
|
--disable-sanitizers \
|
2019-05-02 00:51:10 +02:00
|
|
|
%if 0%{?suse_version} >= 1320 && 0%{?is_opensuse}
|
2013-05-25 20:15:40 +02:00
|
|
|
--enable-sdl \
|
2019-05-02 00:51:10 +02:00
|
|
|
--enable-sdl-image \
|
2017-11-29 22:55:00 +01:00
|
|
|
%else
|
|
|
|
--disable-sdl \
|
2019-05-02 00:51:10 +02:00
|
|
|
--disable-sdl-image \
|
2017-11-29 22:55:00 +01:00
|
|
|
%endif
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?with_seccomp}
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-seccomp \
|
2015-04-10 17:01:16 +02:00
|
|
|
%else
|
|
|
|
--disable-seccomp \
|
2015-04-09 15:38:04 +02:00
|
|
|
%endif
|
2018-12-06 22:20:59 +01:00
|
|
|
--enable-sheepdog \
|
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-09 15:38:04 +02:00
|
|
|
--enable-snappy \
|
2013-05-25 20:15:40 +02:00
|
|
|
--enable-spice \
|
2016-09-22 16:28:43 +02:00
|
|
|
--disable-tcmalloc \
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-tpm \
|
2017-03-15 20:38:55 +01:00
|
|
|
--enable-usb-redir \
|
2013-05-25 20:15:40 +02:00
|
|
|
--enable-vde \
|
2018-12-06 22:20:59 +01:00
|
|
|
--enable-vdi \
|
|
|
|
--enable-vhost-crypto \
|
2019-05-02 00:51:10 +02:00
|
|
|
--enable-vhost-kernel \
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-vhost-net \
|
2019-05-02 00:51:10 +02:00
|
|
|
--enable-vhost-scsi \
|
|
|
|
--enable-vhost-user \
|
|
|
|
--enable-vhost-vsock \
|
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
|
2013-05-25 20:15:40 +02:00
|
|
|
--enable-virtfs \
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-vnc \
|
2013-05-25 20:15:40 +02:00
|
|
|
--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
|
2018-12-06 22:20:59 +01:00
|
|
|
--enable-vvfat \
|
2019-05-02 00:51:10 +02:00
|
|
|
--enable-werror \
|
2018-05-01 17:20:58 +02:00
|
|
|
--disable-whpx \
|
2014-01-14 13:48:29 +01:00
|
|
|
%ifarch x86_64
|
2013-08-17 21:01:06 +02:00
|
|
|
--enable-xen \
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-xen-pci-passthrough \
|
2015-04-12 11:13:49 +02:00
|
|
|
%else
|
|
|
|
--disable-xen \
|
2013-08-17 21:01:06 +02:00
|
|
|
%endif
|
2016-07-15 17:50:58 +02:00
|
|
|
--enable-xfsctl \
|
2013-05-25 20:15:40 +02:00
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%if "%{name}" != "qemu-testsuite"
|
|
|
|
|
2013-05-24 19:25:32 +02:00
|
|
|
make %{?_smp_mflags} V=1
|
2007-01-16 00:34:41 +01:00
|
|
|
|
2013-09-13 23:59:15 +02:00
|
|
|
# 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
|
2019-05-02 00:51:10 +02:00
|
|
|
cp pc-bios/s390-ccw/$i %{_builddir}/%buildsubdir/pc-bios/
|
2017-05-05 17:05:43 +02:00
|
|
|
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
|
2019-05-02 00:51:10 +02:00
|
|
|
cp pc-bios/spapr-rtas/$i %{_builddir}/%buildsubdir/pc-bios/
|
2017-05-05 17:05:43 +02:00
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
for i in %x86_default_built_firmware
|
|
|
|
do
|
2019-05-02 00:51:10 +02:00
|
|
|
cp pc-bios/optionrom/$i %{_builddir}/%buildsubdir/pc-bios/
|
2017-05-05 17:05:43 +02:00
|
|
|
done
|
|
|
|
%ifarch x86_64
|
|
|
|
for i in %x86_64_only_default_built_firmware
|
|
|
|
do
|
2019-05-02 00:51:10 +02:00
|
|
|
cp pc-bios/optionrom/$i %{_builddir}/%buildsubdir/pc-bios/
|
2017-05-05 17:05:43 +02:00
|
|
|
done
|
|
|
|
%endif
|
2017-04-12 21:10:15 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{build_x86_firmware_from_source}
|
2019-02-22 15:07:03 +01:00
|
|
|
%ifnarch %{ix86} x86_64
|
|
|
|
export CC=x86_64-suse-linux-gcc
|
|
|
|
export LD=x86_64-suse-linux-ld
|
|
|
|
%endif
|
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms bios \
|
2019-02-22 15:07:03 +01:00
|
|
|
%ifnarch %ix86 x86_64
|
|
|
|
HOSTCC=cc \
|
|
|
|
%endif
|
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms seavgabios \
|
2019-02-22 15:07:03 +01:00
|
|
|
%ifnarch %ix86 x86_64
|
|
|
|
HOSTCC=cc \
|
|
|
|
%endif
|
2017-04-12 21:10:15 +02:00
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms pxerom
|
2019-02-22 15:07:03 +01:00
|
|
|
|
|
|
|
%ifnarch %ix86
|
2019-05-02 00:51:10 +02:00
|
|
|
make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms efirom \
|
|
|
|
EDK2_BASETOOLS_OPTFLAGS='-fPIE'
|
2016-05-31 23:05:30 +02:00
|
|
|
%endif
|
2019-02-22 15:07:03 +01:00
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
make -C %{_builddir}/%buildsubdir/roms sgabios \
|
2019-02-22 15:07:03 +01:00
|
|
|
HOSTCC=cc
|
2017-08-31 00:22:50 +02:00
|
|
|
|
|
|
|
%if %{force_fit_virtio_pxe_rom}
|
2019-05-02 00:51:10 +02:00
|
|
|
pushd %{_builddir}/%buildsubdir/roms/ipxe
|
2017-08-31 00:22:50 +02:00
|
|
|
patch -p1 < %{SOURCE301}
|
|
|
|
popd
|
2019-05-02 00:51:10 +02:00
|
|
|
make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms pxerom_variants=virtio pxerom_targets=1af41000 pxerom
|
2017-08-31 00:22:50 +02:00
|
|
|
%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
|
2019-05-02 00:51:10 +02:00
|
|
|
if test "`stat -c '%s' %{_builddir}/%buildsubdir/pc-bios/pxe-$i.rom`" -gt "131072" ; then
|
2017-03-15 20:38:55 +01:00
|
|
|
echo "pxe rom is too large"
|
|
|
|
exit 1
|
|
|
|
fi
|
2019-05-02 00:51:10 +02:00
|
|
|
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
|
2017-03-15 20:38:55 +01:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
for i in %supported_nics_small
|
|
|
|
do
|
2019-05-02 00:51:10 +02:00
|
|
|
if test "`stat -c '%s' %{_builddir}/%buildsubdir/pc-bios/pxe-$i.rom`" -gt "65536" ; then
|
2017-03-15 20:38:55 +01:00
|
|
|
echo "pxe rom is too large"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
2019-05-02 00:51:10 +02:00
|
|
|
%ifnarch %{ix86} x86_64
|
|
|
|
unset CC
|
|
|
|
unset LD
|
|
|
|
%endif
|
2013-09-13 23:59:15 +02:00
|
|
|
%endif
|
2017-04-12 21:10:15 +02:00
|
|
|
|
2017-10-16 17:47:06 +02:00
|
|
|
%if %{build_skiboot_from_source}
|
2019-05-02 00:51:10 +02:00
|
|
|
make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms skiboot CROSS=
|
2017-10-16 17:47:06 +02:00
|
|
|
%endif
|
|
|
|
|
2015-10-08 18:14:43 +02:00
|
|
|
%if %{build_slof_from_source}
|
2019-05-02 00:51:10 +02:00
|
|
|
make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms slof
|
2015-10-08 18:14:43 +02:00
|
|
|
%endif
|
2013-09-13 23:59:15 +02:00
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%else # qemu-testsuite
|
2015-08-12 18:17:59 +02:00
|
|
|
|
2018-09-21 23:17:21 +02:00
|
|
|
ln -s %_bindir/qemu-img qemu-img
|
|
|
|
ln -s %_bindir/qemu-ga qemu-ga
|
|
|
|
ln -s %_bindir/qemu-io qemu-io
|
2019-05-02 00:51:10 +02:00
|
|
|
# And what about these binaries: qemu-nbd, elf2dmp, ivshmem-client, ivshmem-server, qemu-edid, qemu-keymap, qemu-pr-helper, virtfs-proxy-helper
|
2016-01-19 19:31:32 +01:00
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
for i in %firmware
|
2016-01-19 19:31:32 +01:00
|
|
|
do
|
2018-09-21 23:17:21 +02:00
|
|
|
ln -s %_datadir/%name/$i pc-bios/$i
|
2016-01-19 19:31:32 +01:00
|
|
|
done
|
2015-08-12 18:17:59 +02:00
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
for conf in %{_builddir}/%buildsubdir/default-configs/*-softmmu.mak; do
|
|
|
|
arch=`echo "$conf" | sed -e 's|%{_builddir}/%buildsubdir/default-configs/\(.*\)-softmmu.mak|\1|g'`
|
2018-09-21 23:17:21 +02:00
|
|
|
ln -s %_bindir/qemu-system-$arch $arch-softmmu/qemu-system-$arch
|
2015-04-12 11:13:49 +02:00
|
|
|
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
|
2019-05-02 00:51:10 +02:00
|
|
|
make %{?_smp_mflags} tests/qom-test %{?_smp_mflags} V=1
|
2015-12-01 23:04:40 +01:00
|
|
|
# ... make comes in fresh and has lots of address space (needed for 32bit, bsc#957379)
|
2019-05-02 00:51:10 +02:00
|
|
|
make %{?_smp_mflags} check-report.tap V=1
|
2015-10-13 18:39:07 +02:00
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%check
|
2019-05-02 00:51:10 +02:00
|
|
|
cd %mybuilddir
|
2015-10-13 18:39:07 +02:00
|
|
|
%if "%{name}" == "qemu-testsuite"
|
|
|
|
|
2018-09-21 23:17:21 +02:00
|
|
|
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
|
2019-05-02 00:51:10 +02:00
|
|
|
make %{?_smp_mflags} check-block V=1
|
2015-10-13 18:39:07 +02:00
|
|
|
|
|
|
|
%endif # qemu-testsuite
|
2014-02-14 17:13:17 +01:00
|
|
|
|
2007-01-16 00:34:41 +01:00
|
|
|
%install
|
2019-05-02 00:51:10 +02:00
|
|
|
cd %mybuilddir
|
2015-04-12 11:13:49 +02:00
|
|
|
%if "%{name}" != "qemu-testsuite"
|
2015-10-13 18:39:07 +02:00
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
make %{?_smp_mflags} install DESTDIR=%{buildroot}
|
2019-02-22 15:07:03 +01:00
|
|
|
%ifnarch %{build_rom_arch}
|
2019-05-02 00:51:10 +02:00
|
|
|
for f in %{x86_extra_firmware} \
|
|
|
|
%{x86_64_only_extra_firmware}; do
|
2018-09-21 23:17:21 +02:00
|
|
|
unlink %{buildroot}%_datadir/%name/$f
|
2015-02-12 02:06:33 +01:00
|
|
|
done
|
|
|
|
%endif
|
2013-05-21 19:08:29 +02:00
|
|
|
%find_lang %name
|
2019-05-11 20:47:35 +02:00
|
|
|
install -d -m 0755 %{buildroot}%_datadir/%name/firmware
|
|
|
|
install -d -m 0755 %{buildroot}%_libexecdir/supportconfig/plugins
|
|
|
|
install -d -m 0755 %{buildroot}%_sysconfdir/%name/firmware
|
2018-09-21 23:17:21 +02:00
|
|
|
install -D -m 0644 %{SOURCE4} %{buildroot}%_sysconfdir/%name/bridge.conf
|
|
|
|
install -D -m 0755 %{SOURCE3} %{buildroot}%_datadir/%name/qemu-ifup
|
2017-03-15 20:38:55 +01:00
|
|
|
install -D -p -m 0644 %{SOURCE8} %{buildroot}%{_udevrulesdir}/80-qemu-ga.rules
|
2018-09-21 23:17:21 +02: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
|
|
|
|
install -D -m 0755 %{SOURCE9} %{buildroot}%_libexecdir/supportconfig/plugins/%name
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} == 0
|
2019-02-13 22:52:43 +01:00
|
|
|
install -D -m 0644 %{SOURCE10} %{buildroot}%_docdir/qemu-arm/supported.txt
|
2018-09-21 23:17:21 +02:00
|
|
|
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
|
2017-03-15 20:38:55 +01:00
|
|
|
%endif
|
2014-05-13 10:09:26 +02:00
|
|
|
%if %{legacy_qemu_kvm}
|
2018-09-21 23:17:21 +02:00
|
|
|
cat > %{buildroot}%_bindir/qemu-kvm << 'EOF'
|
2014-02-15 17:13:29 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2014-04-08 17:25:09 +02:00
|
|
|
%ifarch s390x
|
2018-09-21 23:17:21 +02:00
|
|
|
exec %_bindir/qemu-system-s390x -machine accel=kvm "$@"
|
2014-02-13 14:36:37 +01:00
|
|
|
%else
|
2018-09-21 23:17:21 +02:00
|
|
|
exec %_bindir/qemu-system-x86_64 -machine accel=kvm "$@"
|
2014-02-13 14:36:37 +01:00
|
|
|
%endif
|
|
|
|
EOF
|
2018-09-21 23:17:21 +02:00
|
|
|
chmod 755 %{buildroot}%_bindir/qemu-kvm
|
|
|
|
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
|
2018-09-21 23:17:21 +02:00
|
|
|
install -d %{buildroot}%_docdir/qemu-kvm
|
2017-12-14 01:53:24 +01:00
|
|
|
%ifarch s390x
|
2018-09-21 23:17:21 +02:00
|
|
|
ln -s ../qemu-s390/supported.txt %{buildroot}%_docdir/qemu-kvm/kvm-supported.txt
|
2017-03-15 20:38:55 +01:00
|
|
|
%else
|
2018-09-21 23:17:21 +02:00
|
|
|
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
|
2014-05-13 10:09:26 +02:00
|
|
|
%endif
|
|
|
|
%if %{kvm_available}
|
2017-12-14 01:53:24 +01:00
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/80-kvm.rules
|
2014-02-13 14:36:37 +01: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
|
2019-02-13 22:52:43 +01:00
|
|
|
install -D -m 0644 %{SOURCE2} %{buildroot}%_libexecdir/modules-load.d/kvm.conf
|
2016-07-15 17:50:58 +02:00
|
|
|
%endif
|
2017-03-15 20:38:55 +01:00
|
|
|
%fdupes -s %{buildroot}
|
2015-10-13 18:39:07 +02:00
|
|
|
|
|
|
|
%else # qemu-testsuite
|
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
install -D -m 0644 check-report.tap %{buildroot}%_datadir/qemu/check-report.tap
|
2015-10-13 18:39:07 +02:00
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{name}" != "qemu-testsuite"
|
2007-01-16 00:34:41 +01:00
|
|
|
|
2012-06-10 14:13:56 +02:00
|
|
|
%pre
|
2018-09-21 23:17:21 +02:00
|
|
|
%_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 \
|
2012-06-10 14:13:56 +02:00
|
|
|
-c "qemu user" qemu
|
|
|
|
|
2014-05-13 10:09:26 +02:00
|
|
|
%if %{kvm_available}
|
2014-02-13 14:36:37 +01:00
|
|
|
%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
|
2018-09-21 23:17:21 +02:00
|
|
|
%_bindir/chmod 0666 /dev/kvm
|
|
|
|
%_bindir/chgrp kvm /dev/kvm
|
2017-03-15 20:38:55 +01:00
|
|
|
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-02-22 17:08:09 +01:00
|
|
|
%endif
|
2014-02-13 14:36:37 +01:00
|
|
|
|
2017-08-09 22:07:29 +02:00
|
|
|
%pre tools
|
2018-09-21 23:17:21 +02:00
|
|
|
%_bindir/getent group kvm >/dev/null || %_sbindir/groupadd -r kvm
|
2012-06-10 14:13:56 +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
|
2018-09-21 23:17:21 +02: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
|
|
|
|
|
|
|
%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
|
|
|
|
2018-05-25 20:04:13 +02:00
|
|
|
%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
|
|
|
|
|
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}
|
2014-03-19 15:11:16 +01: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
|
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif # !qemu-testsuite
|
|
|
|
|
2007-01-16 00:34:41 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2015-04-12 11:13:49 +02:00
|
|
|
%if "%{name}" != "qemu-testsuite"
|
2018-05-25 20:04:13 +02:00
|
|
|
%doc Changelog README VERSION
|
2018-08-22 16:58:18 +02:00
|
|
|
%license COPYING COPYING.LIB LICENSE
|
2019-05-02 00:51:10 +02:00
|
|
|
%dir %_docdir/%name/interop
|
|
|
|
%dir %_docdir/%name/interop/_static
|
|
|
|
%_docdir/%name/interop/.buildinfo
|
|
|
|
%_docdir/%name/interop/_static/ajax-loader.gif
|
|
|
|
%_docdir/%name/interop/_static/alabaster.css
|
|
|
|
%_docdir/%name/interop/_static/basic.css
|
|
|
|
%_docdir/%name/interop/_static/comment-bright.png
|
|
|
|
%_docdir/%name/interop/_static/comment-close.png
|
|
|
|
%_docdir/%name/interop/_static/comment.png
|
|
|
|
%_docdir/%name/interop/_static/custom.css
|
|
|
|
%_docdir/%name/interop/_static/doctools.js
|
|
|
|
%if 0%{?sle_version} != 150000
|
|
|
|
%_docdir/%name/interop/_static/documentation_options.js
|
|
|
|
%endif
|
|
|
|
%_docdir/%name/interop/_static/down-pressed.png
|
|
|
|
%_docdir/%name/interop/_static/down.png
|
|
|
|
%_docdir/%name/interop/_static/file.png
|
2019-05-07 23:38:21 +02:00
|
|
|
%if 0%{?sle_version} != 150000
|
2019-05-02 00:51:10 +02:00
|
|
|
%_docdir/%name/interop/_static/jquery-3.2.1.js
|
2019-05-07 23:38:21 +02:00
|
|
|
%else
|
|
|
|
%_docdir/%name/interop/_static/jquery-3.1.0.js
|
2019-05-02 00:51:10 +02:00
|
|
|
%endif
|
|
|
|
%_docdir/%name/interop/_static/jquery.js
|
2019-05-07 23:38:21 +02:00
|
|
|
%if 0%{?sle_version} != 150000 && 0%{?sle_version} != 150100
|
2019-05-02 00:51:10 +02:00
|
|
|
%_docdir/%name/interop/_static/language_data.js
|
|
|
|
%endif
|
|
|
|
%_docdir/%name/interop/_static/minus.png
|
|
|
|
%_docdir/%name/interop/_static/plus.png
|
|
|
|
%_docdir/%name/interop/_static/pygments.css
|
|
|
|
%_docdir/%name/interop/_static/searchtools.js
|
|
|
|
%_docdir/%name/interop/_static/underscore-1.3.1.js
|
|
|
|
%_docdir/%name/interop/_static/underscore.js
|
|
|
|
%_docdir/%name/interop/_static/up-pressed.png
|
|
|
|
%_docdir/%name/interop/_static/up.png
|
|
|
|
%_docdir/%name/interop/_static/websupport.js
|
|
|
|
%_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
|
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
|
2018-09-21 23:17:21 +02:00
|
|
|
%_mandir/man1/%name.1.gz
|
2017-12-14 01:53:24 +01:00
|
|
|
%_mandir/man7/qemu-block-drivers.7.gz
|
2018-12-06 22:20:59 +01:00
|
|
|
%_mandir/man7/qemu-cpu-models.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-02-12 02:06:33 +01:00
|
|
|
%dir %_datadir/%name
|
2019-05-11 17:08:13 +02:00
|
|
|
%dir %_datadir/%name/firmware
|
2015-02-12 02:06:33 +01:00
|
|
|
%_datadir/%name/keymaps
|
2016-09-19 19:06:58 +02:00
|
|
|
%_datadir/%name/trace-events-all
|
2019-05-11 20:47:35 +02:00
|
|
|
%dir %_sysconfdir/%name
|
2019-05-11 17:08:13 +02:00
|
|
|
%dir %_sysconfdir/%name/firmware
|
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
|
2018-09-21 23:17:21 +02:00
|
|
|
%_libexecdir/supportconfig/plugins/%name
|
2014-05-13 10:09:26 +02:00
|
|
|
%if %{kvm_available}
|
2014-02-13 14:36:37 +01: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
|
2019-05-02 00:51:10 +02:00
|
|
|
%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
|
2016-06-02 20:18:10 +02:00
|
|
|
%endif
|
2014-02-13 14:36:37 +01:00
|
|
|
|
2014-02-24 18:02:42 +01: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
|
2014-02-24 18:02:42 +01:00
|
|
|
%_datadir/%name/multiboot.bin
|
2019-05-02 00:51:10 +02:00
|
|
|
%_datadir/%name/pvh.bin
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} == 0
|
|
|
|
%dir %_docdir/qemu-x86
|
|
|
|
%_docdir/qemu-x86/supported.txt
|
|
|
|
%endif
|
2014-02-24 18:02:42 +01:00
|
|
|
|
|
|
|
%files ppc
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%_bindir/qemu-system-ppc
|
|
|
|
%_bindir/qemu-system-ppc64
|
2018-09-25 17:06:25 +02:00
|
|
|
%_datadir/%name/bamboo.dtb
|
|
|
|
%_datadir/%name/canyonlands.dtb
|
2014-02-24 18:02:42 +01:00
|
|
|
%_datadir/%name/openbios-ppc
|
2018-09-25 17:06:25 +02:00
|
|
|
%_datadir/%name/ppc_rom.bin
|
|
|
|
%_datadir/%name/qemu_vga.ndrv
|
|
|
|
%_datadir/%name/skiboot.lid
|
2014-02-24 18:02:42 +01:00
|
|
|
%_datadir/%name/slof.bin
|
|
|
|
%_datadir/%name/spapr-rtas.bin
|
2016-01-27 17:31:12 +01:00
|
|
|
%_datadir/%name/u-boot.e500
|
2018-05-01 17:20:58 +02:00
|
|
|
%_datadir/%name/u-boot-sam460-20100605.bin
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} == 0
|
|
|
|
%dir %_docdir/qemu-ppc
|
|
|
|
%_docdir/qemu-ppc/supported.txt
|
|
|
|
%endif
|
2014-02-24 18:02:42 +01: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
|
2014-02-24 18:02:42 +01:00
|
|
|
|
|
|
|
%files arm
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%_bindir/qemu-system-arm
|
2014-05-13 10:09:26 +02:00
|
|
|
%_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
|
2014-02-24 18:02:42 +01:00
|
|
|
|
|
|
|
%files extra
|
|
|
|
%defattr(-, root, root)
|
2014-05-14 20:43:09 +02:00
|
|
|
%_bindir/qemu-system-alpha
|
|
|
|
%_bindir/qemu-system-cris
|
2018-05-01 17:20:58 +02:00
|
|
|
%_bindir/qemu-system-hppa
|
2014-05-14 20:43:09 +02:00
|
|
|
%_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
|
2018-05-01 17:20:58 +02:00
|
|
|
%_bindir/qemu-system-riscv32
|
|
|
|
%_bindir/qemu-system-riscv64
|
2014-05-14 20:43:09 +02:00
|
|
|
%_bindir/qemu-system-sh4
|
|
|
|
%_bindir/qemu-system-sh4eb
|
|
|
|
%_bindir/qemu-system-sparc
|
|
|
|
%_bindir/qemu-system-sparc64
|
2015-01-12 19:27:43 +01:00
|
|
|
%_bindir/qemu-system-tricore
|
2014-05-14 20:43:09 +02:00
|
|
|
%_bindir/qemu-system-unicore32
|
|
|
|
%_bindir/qemu-system-xtensa
|
|
|
|
%_bindir/qemu-system-xtensaeb
|
2018-05-01 17:20:58 +02:00
|
|
|
%_datadir/%name/hppa-firmware.img
|
2014-02-24 18:02:42 +01:00
|
|
|
%_datadir/%name/openbios-sparc32
|
|
|
|
%_datadir/%name/openbios-sparc64
|
2018-09-25 17:06:25 +02:00
|
|
|
%_datadir/%name/palcode-clipper
|
|
|
|
%_datadir/%name/petalogix-ml605.dtb
|
2014-02-24 18:02:42 +01:00
|
|
|
%_datadir/%name/petalogix-s3adsp1800.dtb
|
2014-03-20 01:26:56 +01:00
|
|
|
%_datadir/%name/QEMU,cgthree.bin
|
|
|
|
%_datadir/%name/QEMU,tcx.bin
|
2014-02-24 18:02:42 +01:00
|
|
|
|
2014-05-13 10:09:26 +02:00
|
|
|
%if %{legacy_qemu_kvm}
|
2014-02-13 14:36:37 +01:00
|
|
|
%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
|
2014-02-13 14:36:37 +01:00
|
|
|
%endif
|
2007-12-11 00:34:25 +01:00
|
|
|
|
2014-07-03 15:15:40 +02:00
|
|
|
%files block-curl
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_libdir/%name
|
2014-07-03 15:15:40 +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
|
2019-05-02 00:51:10 +02:00
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
%_libdir/%name/block-dmg-lzfse.so
|
|
|
|
%endif
|
2015-07-24 15:54:26 +02:00
|
|
|
|
2017-10-13 18:07:37 +02:00
|
|
|
%if 0%{?with_glusterfs}
|
2015-04-09 19:17:53 +02:00
|
|
|
%files block-gluster
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_libdir/%name
|
2015-04-09 19:17:53 +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
|
|
|
|
|
2018-12-06 22:20:59 +01:00
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
%files block-nfs
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %_libdir/%name
|
|
|
|
%_libdir/%name/block-nfs.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-09 15:38:04 +02:00
|
|
|
%files block-ssh
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_libdir/%name
|
2015-04-09 15:38:04 +02:00
|
|
|
%_libdir/%name/block-ssh.so
|
|
|
|
|
2018-05-01 17:20:58 +02:00
|
|
|
%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
|
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
%if 0%{?suse_version} >= 1320 && 0%{?is_opensuse}
|
2018-05-01 17:20:58 +02:00
|
|
|
%files ui-sdl
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %_libdir/%name
|
|
|
|
%_libdir/%name/ui-sdl.so
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
%if 0%{?suse_version} >= 1320 && 0%{?is_opensuse}
|
2018-05-01 17:20:58 +02:00
|
|
|
%files audio-sdl
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %_libdir/%name
|
|
|
|
%_libdir/%name/audio-sdl.so
|
|
|
|
%endif
|
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
%files lang -f %mybuilddir/%name.lang
|
2013-05-21 19:08:29 +02:00
|
|
|
%defattr(-, root, root)
|
|
|
|
|
2019-02-22 15:07:03 +01:00
|
|
|
%ifarch %{build_rom_arch}
|
2013-09-13 23:59:15 +02:00
|
|
|
%files seabios
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_datadir/%name
|
2013-09-13 23:59:15 +02:00
|
|
|
%_datadir/%name/bios.bin
|
2014-03-20 01:26:56 +01:00
|
|
|
%_datadir/%name/bios-256k.bin
|
2013-09-13 23:59:15 +02:00
|
|
|
|
|
|
|
%files vgabios
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_datadir/%name
|
2013-09-13 23:59:15 +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
|
2013-09-13 23:59:15 +02:00
|
|
|
%_datadir/%name/vgabios-vmware.bin
|
2018-12-06 22:20:59 +01:00
|
|
|
%_datadir/%name/vgabios-bochs-display.bin
|
|
|
|
%_datadir/%name/vgabios-ramfb.bin
|
2013-09-13 23:59:15 +02:00
|
|
|
|
|
|
|
%files sgabios
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_datadir/%name
|
2013-09-13 23:59:15 +02:00
|
|
|
%_datadir/%name/sgabios.bin
|
|
|
|
|
|
|
|
%files ipxe
|
|
|
|
%defattr(-, root, root)
|
2017-03-15 20:38:55 +01:00
|
|
|
%dir %_datadir/%name
|
2013-09-13 23:59:15 +02:00
|
|
|
%_datadir/%name/pxe-e1000.rom
|
|
|
|
%_datadir/%name/pxe-eepro100.rom
|
|
|
|
%_datadir/%name/pxe-ne2k_pci.rom
|
2018-09-25 17:06:25 +02:00
|
|
|
%_datadir/%name/pxe-pcnet.rom
|
2013-09-13 23:59:15 +02:00
|
|
|
%_datadir/%name/pxe-rtl8139.rom
|
|
|
|
%_datadir/%name/pxe-virtio.rom
|
2014-03-20 01:26:56 +01:00
|
|
|
%_datadir/%name/efi-e1000.rom
|
2016-09-19 19:06:58 +02:00
|
|
|
%_datadir/%name/efi-e1000e.rom
|
2014-03-20 01:26:56 +01:00
|
|
|
%_datadir/%name/efi-eepro100.rom
|
|
|
|
%_datadir/%name/efi-ne2k_pci.rom
|
2018-09-25 17:06:25 +02:00
|
|
|
%_datadir/%name/efi-pcnet.rom
|
2014-03-20 01:26:56 +01:00
|
|
|
%_datadir/%name/efi-rtl8139.rom
|
|
|
|
%_datadir/%name/efi-virtio.rom
|
2016-09-19 19:06:58 +02:00
|
|
|
%_datadir/%name/efi-vmxnet3.rom
|
2014-06-02 20:08:59 +02:00
|
|
|
%endif
|
2013-09-13 23:59:15 +02:00
|
|
|
|
2012-06-10 14:13:56 +02:00
|
|
|
%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
|
2019-05-02 00:51:10 +02:00
|
|
|
%_bindir/elf2dmp
|
2016-01-19 19:31:32 +01:00
|
|
|
%_bindir/ivshmem-client
|
|
|
|
%_bindir/ivshmem-server
|
2019-05-02 00:51:10 +02:00
|
|
|
%_bindir/qemu-edid
|
2012-06-10 14:13:56 +02:00
|
|
|
%_bindir/qemu-io
|
2012-06-26 10:33:26 +02:00
|
|
|
%_bindir/qemu-img
|
2017-12-14 01:53:24 +01:00
|
|
|
%_bindir/qemu-keymap
|
2012-06-26 10:33:26 +02:00
|
|
|
%_bindir/qemu-nbd
|
2017-12-14 01:53:24 +01:00
|
|
|
%_bindir/qemu-pr-helper
|
2012-09-09 19:55:25 +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
|
2012-06-26 10:33:26 +02:00
|
|
|
%dir %_sysconfdir/%name
|
2012-06-10 14:13:56 +02:00
|
|
|
%config %_sysconfdir/%name/bridge.conf
|
2017-10-26 19:10:00 +02:00
|
|
|
%_bindir/analyze-migration.py
|
|
|
|
%_bindir/vmstate-static-checker.py
|
2012-06-10 14:13:56 +02:00
|
|
|
|
2012-06-26 10:33:26 +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}
|
2014-03-19 15:11:16 +01:00
|
|
|
%files ksm
|
2014-03-26 22:08:55 +01:00
|
|
|
%defattr(-, root, root)
|
2014-03-19 15:11:16 +01:00
|
|
|
%{_unitdir}/ksm.service
|
|
|
|
%endif
|
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%else # qemu-testsuite
|
2019-05-02 00:51:10 +02:00
|
|
|
%_datadir/qemu/check-report.tap
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
|
2007-02-26 11:44:43 +01:00
|
|
|
%changelog
|