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
|
|
|
|
2017-04-12 21:10:15 +02:00
|
|
|
%define build_x86_firmware_from_source 0
|
2017-10-16 17:47:06 +02:00
|
|
|
%define build_skiboot_from_source 0
|
2015-10-08 18:14:43 +02:00
|
|
|
%define build_slof_from_source 0
|
2017-03-15 20:38:55 +01:00
|
|
|
%define kvm_available 0
|
|
|
|
%define legacy_qemu_kvm 0
|
2017-08-31 00:22:50 +02:00
|
|
|
%define force_fit_virtio_pxe_rom 1
|
2017-03-15 20:38:55 +01:00
|
|
|
|
2017-10-03 05:16:40 +02:00
|
|
|
%if "%{?distribution}" == ""
|
|
|
|
%define distro private-build
|
|
|
|
%else
|
|
|
|
%define distro %{distribution}
|
|
|
|
%endif
|
|
|
|
|
2013-09-13 23:59:15 +02:00
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
# choice of building all from source or using provided binary x86 blobs
|
2017-05-05 17:05:43 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
2017-04-12 21:10:15 +02:00
|
|
|
%define build_x86_firmware_from_source 1
|
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
|
2018-03-15 18:39:43 +01:00
|
|
|
License: BSD-3-Clause AND GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
|
2017-12-15 16:18:16 +01:00
|
|
|
Group: System/Emulators/PC
|
2018-12-11 21:47:06 +01:00
|
|
|
%define qemuver 3.1.0
|
|
|
|
%define srcver 3.1.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
|
2018-08-22 16:58:18 +02:00
|
|
|
Source2: 71-sev.rules
|
|
|
|
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
|
2016-07-15 17:50:58 +02:00
|
|
|
Source10: kvm.conf
|
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
|
|
|
|
Source14: supported.arm.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
|
|
|
|
Patch0010: 0010-Remove-problematic-evdev-86-key-fro.patch
|
|
|
|
Patch0011: 0011-linux-user-use-target_ulong.patch
|
|
|
|
Patch0012: 0012-Make-char-muxer-more-robust-wrt-sma.patch
|
|
|
|
Patch0013: 0013-linux-user-lseek-explicitly-cast-no.patch
|
|
|
|
Patch0014: 0014-AIO-Reduce-number-of-threads-for-32.patch
|
|
|
|
Patch0015: 0015-xen_disk-Add-suse-specific-flush-di.patch
|
|
|
|
Patch0016: 0016-qemu-bridge-helper-reduce-security-.patch
|
|
|
|
Patch0017: 0017-qemu-binfmt-conf-use-qemu-ARCH-binf.patch
|
|
|
|
Patch0018: 0018-linux-user-properly-test-for-infini.patch
|
|
|
|
Patch0019: 0019-roms-Makefile-pass-a-packaging-time.patch
|
|
|
|
Patch0020: 0020-Raise-soft-address-space-limit-to-h.patch
|
|
|
|
Patch0021: 0021-increase-x86_64-physical-bits-to-42.patch
|
|
|
|
Patch0022: 0022-vga-Raise-VRAM-to-16-MiB-for-pc-0.1.patch
|
|
|
|
Patch0023: 0023-i8254-Fix-migration-from-SLE11-SP2.patch
|
|
|
|
Patch0024: 0024-acpi_piix4-Fix-migration-from-SLE11.patch
|
|
|
|
Patch0025: 0025-Fix-tigervnc-long-press-issue.patch
|
|
|
|
Patch0026: 0026-string-input-visitor-Fix-uint64-par.patch
|
|
|
|
Patch0027: 0027-test-string-input-visitor-Add-int-t.patch
|
|
|
|
Patch0028: 0028-test-string-input-visitor-Add-uint6.patch
|
|
|
|
Patch0029: 0029-tests-Add-QOM-property-unit-tests.patch
|
|
|
|
Patch0030: 0030-tests-Add-scsi-disk-test.patch
|
|
|
|
Patch0031: 0031-Switch-order-of-libraries-for-mpath.patch
|
|
|
|
Patch0032: 0032-Make-installed-scripts-explicitly-p.patch
|
2018-12-06 22:20:59 +01:00
|
|
|
Patch0033: 0033-smbios-Add-1-terminator-if-any-stri.patch
|
|
|
|
Patch0034: 0034-qemu-io-tests-comment-out-problemat.patch
|
|
|
|
Patch0035: 0035-tests-test-thread-pool-is-racy-add-.patch
|
|
|
|
Patch0036: 0036-xen-add-block-resize-support-for-xe.patch
|
|
|
|
Patch0037: 0037-tests-qemu-iotests-Triple-timeout-o.patch
|
|
|
|
Patch0038: 0038-tests-block-io-test-130-needs-some-.patch
|
2018-12-12 22:38:58 +01:00
|
|
|
Patch0039: 0039-xen_disk-Avoid-repeated-memory-allo.patch
|
2019-01-08 15:53:44 +01:00
|
|
|
Patch0040: 0040-xen-ignore-live-parameter-from-xen-.patch
|
2019-01-10 22:10:49 +01:00
|
|
|
Patch0041: 0041-vfio-ap-flag-as-compatible-with-bal.patch
|
|
|
|
Patch0042: 0042-hw-s390x-Fix-bad-mask-in-time2tod.patch
|
|
|
|
Patch0043: 0043-pcie-set-link-state-inactive-active.patch
|
|
|
|
Patch0044: 0044-pc-piix4-Update-smbus-I-O-space-aft.patch
|
|
|
|
Patch0045: 0045-hw-usb-fix-mistaken-de-initializati.patch
|
|
|
|
Patch0046: 0046-usb-mtp-use-O_NOFOLLOW-and-O_CLOEXE.patch
|
|
|
|
Patch0047: 0047-pvrdma-release-device-resources-in-.patch
|
|
|
|
Patch0048: 0048-rdma-check-num_sge-does-not-exceed-.patch
|
|
|
|
Patch0049: 0049-pvrdma-add-uar_read-routine.patch
|
|
|
|
Patch0050: 0050-pvrdma-check-number-of-pages-when-c.patch
|
|
|
|
Patch0051: 0051-pvrdma-check-return-value-from-pvrd.patch
|
|
|
|
Patch0052: 0052-pvrdma-release-ring-object-in-case-.patch
|
|
|
|
Patch0053: 0053-block-Fix-hangs-in-synchronous-APIs.patch
|
2019-01-15 21:55:09 +01:00
|
|
|
Patch0054: 0054-linux-user-make-pwrite64-pread64-fd.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
|
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
|
2018-04-26 20:53:21 +02:00
|
|
|
Patch1202: ipxe-efi-guard-strncpy-with-gcc-warning-ignore-pragma.patch
|
2018-07-31 16:50:24 +02:00
|
|
|
Patch1203: ipxe-fix-build.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
|
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
|
|
|
|
2018-12-06 22:20:59 +01:00
|
|
|
# skiboot - path: roms/skiboot (patch range 1500-1599)
|
2018-07-05 22:55:09 +02:00
|
|
|
Patch1500: skiboot-hdata-i2c.c-fix-building-with-gcc8.patch
|
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
|
2017-03-15 20:38:55 +01:00
|
|
|
#!BuildIgnore: gcc-PIE
|
2017-12-14 01:53:24 +01:00
|
|
|
BuildRequires: Mesa-devel
|
2017-11-29 22:55:00 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2011-05-17 00:37:59 +02:00
|
|
|
BuildRequires: SDL-devel
|
2016-05-31 23:05:30 +02:00
|
|
|
%if 0%{?suse_version} >= 1320
|
|
|
|
BuildRequires: SDL2-devel
|
|
|
|
%endif
|
2017-11-29 22:55:00 +01:00
|
|
|
%endif
|
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
|
|
|
|
%endif
|
2011-05-17 00:37:59 +02:00
|
|
|
BuildRequires: bluez-devel
|
2013-05-24 19:25:32 +02:00
|
|
|
BuildRequires: brlapi-devel
|
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
|
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
|
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
|
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
|
|
|
|
BuildRequires: multipath-tools-devel
|
2012-09-13 19:39:42 +02:00
|
|
|
%endif
|
2011-05-17 00:37:59 +02:00
|
|
|
BuildRequires: ncurses-devel
|
2017-04-12 21:10:15 +02:00
|
|
|
%if %{build_x86_firmware_from_source}
|
2016-05-31 23:05:30 +02:00
|
|
|
BuildRequires: ovmf-tools
|
|
|
|
%endif
|
2015-04-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
|
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
|
2018-09-21 23:17:21 +02:00
|
|
|
BuildRequires: qemu-arm = %{qemuver}
|
|
|
|
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}
|
|
|
|
BuildRequires: qemu-ppc = %{qemuver}
|
|
|
|
BuildRequires: qemu-s390 = %{qemuver}
|
|
|
|
BuildRequires: qemu-tools = %{qemuver}
|
|
|
|
BuildRequires: qemu-ui-curses = %{qemuver}
|
|
|
|
BuildRequires: qemu-ui-gtk = %{qemuver}
|
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
BuildRequires: qemu-ui-sdl = %{qemuver}
|
2017-04-12 21:10:15 +02:00
|
|
|
%endif
|
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
|
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
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
|
2007-01-16 00:34:41 +01:00
|
|
|
|
2017-04-12 21:10:15 +02:00
|
|
|
%define ppc_default_built_firmware {%nil}
|
2017-10-16 17:47:06 +02:00
|
|
|
%if %{build_skiboot_from_source} && %{build_slof_from_source}
|
|
|
|
%define ppc_extra_built_firmware {skiboot.lid slof.bin}
|
|
|
|
%else
|
|
|
|
%if %{build_skiboot_from_source}
|
|
|
|
%define ppc_extra_built_firmware {skiboot.lid}
|
|
|
|
%endif
|
|
|
|
%if %{build_slof_from_source}
|
2017-04-12 21:10:15 +02:00
|
|
|
%define ppc_extra_built_firmware {slof.bin}
|
|
|
|
%endif
|
2017-10-16 17:47:06 +02:00
|
|
|
%endif
|
2017-04-12 21:10:15 +02:00
|
|
|
|
|
|
|
%ifarch ppc64
|
|
|
|
%define ppc64_only_default_built_firmware {spapr-rtas.bin}
|
|
|
|
%define ppc64_only_extra_built_firmware {%nil}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch s390x
|
2018-09-25 17:06:25 +02:00
|
|
|
%define s390x_default_built_firmware {s390-ccw.img s390-netboot.img}
|
2017-04-12 21:10:15 +02:00
|
|
|
%define s390x_extra_built_firmware {%nil}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
%define x86_default_built_firmware {linuxboot.bin linuxboot_dma.bin \
|
|
|
|
multiboot.bin kvmvapic.bin}
|
2016-05-31 23:05:30 +02:00
|
|
|
%ifarch x86_64
|
2017-04-12 21:10:15 +02:00
|
|
|
%define x86_64_only_default_built_firmware {%nil}
|
|
|
|
%endif
|
2016-05-31 23:05:30 +02:00
|
|
|
%endif
|
2017-04-12 21:10:15 +02:00
|
|
|
|
2018-12-06 22:20:59 +01:00
|
|
|
%define x86_extra_built_firmware_list {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}
|
2017-04-12 21:10:15 +02:00
|
|
|
%define x86_64_only_extra_built_firmware_list {efi-e1000.rom efi-e1000e.rom \
|
2018-12-06 22:20:59 +01:00
|
|
|
efi-eepro100.rom efi-ne2k_pci.rom efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom \
|
2017-04-12 21:10:15 +02:00
|
|
|
efi-vmxnet3.rom}
|
|
|
|
|
|
|
|
%if %{build_x86_firmware_from_source}
|
|
|
|
%define x86_extra_built_firmware %{x86_extra_built_firmware_list}
|
|
|
|
%ifarch x86_64
|
|
|
|
%define x86_64_only_extra_built_firmware %{x86_64_only_extra_built_firmware_list}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%define built_firmware { \
|
|
|
|
%{?ppc_default_built_firmware} %{?ppc_extra_built_firmware} \
|
|
|
|
%{?ppc64_only_default_built_firmware} %{?ppc64_only_extra_built_firmware} \
|
|
|
|
%{?s390x_default_built_firmware} %{?s390x_extra_built_firmware} \
|
|
|
|
%{?x86_default_built_firmware} %{?x86_extra_built_firmware} \
|
|
|
|
%{?x86_64_only_default_built_firmware} %{?x86_64_only_extra_built_firmware} }
|
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.
|
|
|
|
|
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
%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-oss
|
|
|
|
Summary: OSS 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-oss
|
|
|
|
This package contains a module for OSS 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.
|
|
|
|
|
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
%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
|
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
|
|
|
|
2014-06-02 20:08:59 +02:00
|
|
|
%ifarch %ix86 x86_64
|
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
|
2018-12-06 22:20:59 +01:00
|
|
|
Version: 1.12.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 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
|
2018-12-06 22:20:59 +01:00
|
|
|
Version: 1.12.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 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
|
|
|
|
%patch0036 -p1
|
|
|
|
%patch0037 -p1
|
|
|
|
%patch0038 -p1
|
2018-12-12 22:38:58 +01:00
|
|
|
%patch0039 -p1
|
2019-01-08 15:53:44 +01:00
|
|
|
%patch0040 -p1
|
2019-01-10 22:10:49 +01:00
|
|
|
%patch0041 -p1
|
|
|
|
%patch0042 -p1
|
|
|
|
%patch0043 -p1
|
|
|
|
%patch0044 -p1
|
|
|
|
%patch0045 -p1
|
|
|
|
%patch0046 -p1
|
|
|
|
%patch0047 -p1
|
|
|
|
%patch0048 -p1
|
|
|
|
%patch0049 -p1
|
|
|
|
%patch0050 -p1
|
|
|
|
%patch0051 -p1
|
|
|
|
%patch0052 -p1
|
|
|
|
%patch0053 -p1
|
2019-01-15 21:55:09 +01:00
|
|
|
%patch0054 -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
|
2016-11-21 18:05:46 +01:00
|
|
|
popd
|
2017-04-12 21:10:15 +02:00
|
|
|
|
2018-01-26 14:19:10 +01:00
|
|
|
pushd roms/ipxe
|
2016-11-21 18:05:46 +01:00
|
|
|
%patch1200 -p1
|
2018-01-26 14:19:10 +01:00
|
|
|
%if 0%{?suse_version} <= 1320
|
|
|
|
%patch1201 -p1
|
|
|
|
%endif
|
2018-04-26 20:53:21 +02:00
|
|
|
%patch1202 -p1
|
2018-07-31 16:50:24 +02:00
|
|
|
%patch1203 -p1
|
2018-01-26 14:19:10 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
pushd roms/sgabios
|
|
|
|
%patch1300 -p1
|
2016-11-21 18:05:46 +01:00
|
|
|
popd
|
|
|
|
|
2017-04-12 21:10:15 +02:00
|
|
|
pushd roms/SLOF
|
|
|
|
popd
|
|
|
|
|
2017-10-16 17:47:06 +02:00
|
|
|
pushd roms/skiboot
|
2018-07-05 22:55:09 +02:00
|
|
|
%patch1500 -p1
|
2017-10-16 17:47:06 +02:00
|
|
|
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
|
|
|
|
|
2013-09-13 23:59:15 +02:00
|
|
|
# as a safeguard, delete the firmware files that we intend to build
|
2017-04-12 21:10:15 +02:00
|
|
|
for i in %built_firmware
|
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
|
2018-12-12 18:43:22 +01:00
|
|
|
XC_COMPAT="
|
|
|
|
-DXC_WANT_COMPAT_DEVICEMODEL_API=1
|
|
|
|
-DXC_WANT_COMPAT_EVTCHN_API=1
|
|
|
|
-DXC_WANT_COMPAT_GNTTAB_API=1
|
|
|
|
-DXC_WANT_COMPAT_MAP_FOREIGN_API=1
|
|
|
|
"
|
|
|
|
XC_COMPAT="`echo ${XC_COMPAT} | xargs`"
|
|
|
|
sed -i~ /undef/d include/hw/xen/xen_common.h
|
|
|
|
diff -u include/hw/xen/xen_common.h~ include/hw/xen/xen_common.h || :
|
2016-04-05 15:18:15 +02:00
|
|
|
./configure \
|
|
|
|
--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
|
2018-12-12 18:43:22 +01:00
|
|
|
--extra-cflags="%{optflags} ${XC_COMPAT}" \
|
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/ (.*)//')" \
|
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 \
|
2017-11-29 22:55:00 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2013-12-08 06:19:09 +01:00
|
|
|
--audio-drv-list="pa alsa sdl oss" \
|
2017-11-29 22:55:00 +01:00
|
|
|
%else
|
|
|
|
--audio-drv-list="pa alsa oss" \
|
|
|
|
%endif
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-attr \
|
|
|
|
--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 \
|
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 \
|
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 \
|
2017-11-29 22:55:00 +01:00
|
|
|
%if 0%{?is_opensuse}
|
2013-05-25 20:15:40 +02:00
|
|
|
--enable-sdl \
|
2016-05-31 23:05:30 +02:00
|
|
|
%if 0%{?suse_version} >= 1320
|
|
|
|
--with-sdlabi=2.0 \
|
|
|
|
%else
|
2014-03-20 01:26:56 +01:00
|
|
|
--with-sdlabi=1.2 \
|
2016-05-31 23:05:30 +02:00
|
|
|
%endif
|
2017-11-29 22:55:00 +01:00
|
|
|
%else
|
|
|
|
--disable-sdl \
|
|
|
|
%endif
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?with_seccomp}
|
2015-04-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 \
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-vhost-net \
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} >= 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
|
|
|
--enable-virglrenderer \
|
2016-05-31 23:05:30 +02:00
|
|
|
%endif
|
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 \
|
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 \
|
2016-04-05 15:18:15 +02:00
|
|
|
--enable-xen-pv-domain-build \
|
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
|
|
|
|
cp pc-bios/s390-ccw/$i pc-bios/
|
|
|
|
done
|
2017-04-12 21:10:15 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch ppc64
|
2017-05-05 17:05:43 +02:00
|
|
|
for i in %ppc64_only_default_built_firmware
|
|
|
|
do
|
|
|
|
cp pc-bios/spapr-rtas/$i pc-bios/
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
for i in %x86_default_built_firmware
|
|
|
|
do
|
|
|
|
cp pc-bios/optionrom/$i pc-bios/
|
|
|
|
done
|
|
|
|
%ifarch x86_64
|
|
|
|
for i in %x86_64_only_default_built_firmware
|
|
|
|
do
|
|
|
|
cp pc-bios/optionrom/$i pc-bios/
|
|
|
|
done
|
|
|
|
%endif
|
2017-04-12 21:10:15 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{build_x86_firmware_from_source}
|
2016-04-05 15:18:15 +02:00
|
|
|
make %{?_smp_mflags} -C roms bios
|
2017-04-12 21:10:15 +02:00
|
|
|
|
2016-04-05 15:18:15 +02:00
|
|
|
make %{?_smp_mflags} -C roms seavgabios
|
|
|
|
make %{?_smp_mflags} -C roms pxerom
|
2016-05-31 23:05:30 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
make %{?_smp_mflags} -C roms efirom
|
|
|
|
%endif
|
2016-04-05 15:18:15 +02:00
|
|
|
make -C roms sgabios
|
2017-08-31 00:22:50 +02:00
|
|
|
|
|
|
|
%if %{force_fit_virtio_pxe_rom}
|
|
|
|
pushd roms/ipxe
|
|
|
|
patch -p1 < %{SOURCE301}
|
|
|
|
popd
|
2018-05-01 17:20:58 +02:00
|
|
|
make %{?_smp_mflags} -C 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
|
|
|
|
if test "`stat -c '%s' pc-bios/pxe-$i.rom`" -gt "131072" ; then
|
|
|
|
echo "pxe rom is too large"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
if test "`stat -c '%s' pc-bios/pxe-$i.rom`" -le "65536" ; then
|
|
|
|
./roms/ipxe/src/util/padimg.pl pc-bios/pxe-$i.rom -s 65536 -b 255
|
|
|
|
echo -ne "SEGMENT OVERAGE\0" >> pc-bios/pxe-$i.rom
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for i in %supported_nics_small
|
|
|
|
do
|
|
|
|
if test "`stat -c '%s' pc-bios/pxe-$i.rom`" -gt "65536" ; then
|
|
|
|
echo "pxe rom is too large"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
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}
|
2018-12-06 22:20:59 +01:00
|
|
|
make %{?_smp_mflags} -C 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}
|
2016-04-05 15:18:15 +02:00
|
|
|
make %{?_smp_mflags} -C 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
|
2016-01-19 19:31:32 +01:00
|
|
|
|
2017-04-12 21:10:15 +02:00
|
|
|
for i in %built_firmware
|
2016-01-19 19:31:32 +01:00
|
|
|
do
|
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
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
for conf in default-configs/*-softmmu.mak; do
|
|
|
|
arch=`echo "$conf" | sed -e 's|default-configs/\(.*\)-softmmu.mak|\1|g'`
|
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
|
2016-08-04 15:09:24 +02:00
|
|
|
make tests/qom-test %{?_smp_mflags} V=1
|
2017-04-12 21:10:15 +02:00
|
|
|
# Firmware
|
2015-12-01 23:04:40 +01:00
|
|
|
# ... make comes in fresh and has lots of address space (needed for 32bit, bsc#957379)
|
2015-04-12 11:13:49 +02:00
|
|
|
make check-report.html V=1
|
2015-10-13 18:39:07 +02:00
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%check
|
|
|
|
%if "%{name}" == "qemu-testsuite"
|
|
|
|
|
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
|
2018-05-01 17:20:58 +02:00
|
|
|
make 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
|
2015-04-12 11:13:49 +02:00
|
|
|
%if "%{name}" != "qemu-testsuite"
|
2015-10-13 18:39:07 +02:00
|
|
|
|
2017-04-12 21:10:15 +02:00
|
|
|
touch -r config-host.mak pc-bios
|
2017-03-15 20:38:55 +01:00
|
|
|
make install DESTDIR=%{buildroot}
|
2017-04-12 21:10:15 +02:00
|
|
|
%ifnarch %ix86 x86_64
|
2018-05-01 17:20:58 +02:00
|
|
|
for f in %{x86_extra_built_firmware_list} \
|
2017-04-12 21:10:15 +02:00
|
|
|
%{x86_64_only_extra_built_firmware_list}; 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
|
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
|
|
|
|
mkdir -p %{buildroot}%_libexecdir/supportconfig/plugins
|
|
|
|
install -D -m 0755 %{SOURCE9} %{buildroot}%_libexecdir/supportconfig/plugins/%name
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} == 0
|
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
|
|
|
|
install -D -m 0644 %{SOURCE14} %{buildroot}%_docdir/qemu-arm/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}
|
2018-08-09 05:51:57 +02:00
|
|
|
%ifarch %ix86 x86_64
|
2018-08-22 16:58:18 +02:00
|
|
|
install -D -m 0644 %{SOURCE2} %{buildroot}%{_udevrulesdir}/71-sev.rules
|
2018-08-09 05:51:57 +02:00
|
|
|
%endif
|
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
|
2018-09-21 23:17:21 +02:00
|
|
|
install -D -m 0644 %{SOURCE10} %{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
|
|
|
|
|
2018-09-21 23:17:21 +02:00
|
|
|
install -D -m 0644 check-report.html %{buildroot}%_datadir/qemu/check-report.html
|
|
|
|
install -D -m 0644 check-report.xml %{buildroot}%_datadir/qemu/check-report.xml
|
2015-10-13 18:39:07 +02:00
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{name}" != "qemu-testsuite"
|
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
|
2018-08-09 05:51:57 +02:00
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
%_bindir/udevadm trigger -y sev || :
|
|
|
|
%endif
|
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
|
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
|
|
|
|
%_datadir/%name/keymaps
|
2016-09-19 19:06:58 +02:00
|
|
|
%_datadir/%name/trace-events-all
|
2015-02-12 02:06:33 +01:00
|
|
|
%_datadir/%name/qemu-icon.bmp
|
|
|
|
%_datadir/%name/qemu_logo_no_text.svg
|
2011-05-17 00:37:59 +02:00
|
|
|
%dir %_sysconfdir/%name
|
2017-03-15 20:38:55 +01:00
|
|
|
%_datadir/%name/qemu-ifup
|
2017-08-31 20:04:33 +02:00
|
|
|
%dir %_libexecdir/supportconfig
|
|
|
|
%dir %_libexecdir/supportconfig/plugins
|
2018-09-21 23:17:21 +02:00
|
|
|
%_libexecdir/supportconfig/plugins/%name
|
2014-05-13 10:09:26 +02:00
|
|
|
%if %{kvm_available}
|
2018-08-09 05:51:57 +02:00
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
%{_udevrulesdir}/71-sev.rules
|
|
|
|
%endif
|
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
|
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
|
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
|
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
|
|
|
|
|
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
%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-oss
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %_libdir/%name
|
|
|
|
%_libdir/%name/audio-oss.so
|
|
|
|
|
|
|
|
%files audio-pa
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %_libdir/%name
|
|
|
|
%_libdir/%name/audio-pa.so
|
|
|
|
|
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
%files audio-sdl
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %_libdir/%name
|
|
|
|
%_libdir/%name/audio-sdl.so
|
|
|
|
%endif
|
|
|
|
|
2013-05-21 19:08:29 +02:00
|
|
|
%files lang -f %name.lang
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
2017-05-05 17:05:43 +02:00
|
|
|
%ifarch %ix86 x86_64
|
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
|
2018-12-06 22:20:59 +01:00
|
|
|
%_bindir/qemu-edid
|
2016-01-19 19:31:32 +01:00
|
|
|
%_bindir/ivshmem-client
|
|
|
|
%_bindir/ivshmem-server
|
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
|
2017-04-12 21:10:15 +02:00
|
|
|
%_datadir/qemu/check-report.xml
|
|
|
|
%_datadir/qemu/check-report.html
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
|
2007-02-26 11:44:43 +01:00
|
|
|
%changelog
|