2011-12-14 02:35:41 +01:00
|
|
|
#
|
|
|
|
# spec file for package qemu
|
|
|
|
#
|
2019-01-04 22:08:16 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-12-14 02:35:41 +01: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/
|
2011-12-14 02:35:41 +01:00
|
|
|
#
|
|
|
|
|
2017-08-18 18:25:16 +02:00
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
# !! IMPORTANT !! See README.PACKAGING before modifying package in any way
|
|
|
|
|
2019-10-02 18:04:56 +02:00
|
|
|
%define _buildshell /bin/bash
|
|
|
|
|
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
|
2019-09-12 17:54:03 +02:00
|
|
|
%define build_opensbi_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
|
2019-09-12 17:54:03 +02:00
|
|
|
%define provide_edk2_firmware 0
|
2017-03-15 20:38:55 +01:00
|
|
|
|
2019-02-22 15:07:03 +01:00
|
|
|
%define build_rom_arch %ix86 x86_64 aarch64
|
|
|
|
|
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-04-12 21:10:15 +02:00
|
|
|
%define build_x86_firmware_from_source 1
|
2013-09-13 23:59:15 +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
|
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
|
2019-09-12 17:54:03 +02:00
|
|
|
|
|
|
|
%ifarch riscv64
|
|
|
|
%define build_opensbi_from_source 1
|
2015-10-21 18:53:14 +02:00
|
|
|
%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
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
%if 0%{?is_opensuse}
|
2017-10-16 17:47:06 +02:00
|
|
|
%define with_glusterfs 1
|
|
|
|
%endif
|
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
%ifarch x86_64 aarch64 ppc64le s390x
|
2016-07-12 22:12:45 +02:00
|
|
|
%define with_rbd 1
|
|
|
|
%endif
|
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
# qemu, qemu-linux-user, and qemu-testsuite "flavors" enabled via OBS Multibuild
|
|
|
|
%define flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%flavor" == ""
|
|
|
|
%define name_suffix %{nil}
|
|
|
|
%else
|
|
|
|
%define name_suffix -%flavor
|
2016-07-15 17:50:58 +02:00
|
|
|
%endif
|
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
%if "%flavor" == "linux-user"
|
|
|
|
%define summary_string CPU emulator for user space
|
2017-03-15 20:38:55 +01:00
|
|
|
%else
|
2019-09-12 17:54:03 +02:00
|
|
|
%define summary_string Machine emulator and virtualizer
|
2016-11-21 18:35:32 +01:00
|
|
|
%endif
|
|
|
|
|
2018-09-21 23:17:21 +02:00
|
|
|
%define srcname qemu
|
2019-09-12 17:54:03 +02:00
|
|
|
Name: qemu%{name_suffix}
|
2018-09-21 23:17:21 +02:00
|
|
|
Url: https://www.qemu.org/
|
2019-09-12 17:54:03 +02:00
|
|
|
Summary: %{summary_string}
|
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
|
2014-03-20 01:26:56 +01:00
|
|
|
QEMU_VERSION
|
2011-12-14 02:35:41 +01:00
|
|
|
Release: 0
|
2018-12-06 22:20:59 +01:00
|
|
|
Source: https://wiki.qemu.org/download/%{srcname}-%{srcver}.tar.xz
|
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
|
2019-10-02 04:17:15 +02:00
|
|
|
Source200: qemu-rpmlintrc
|
|
|
|
Source300: bundles.tar.xz
|
|
|
|
Source301: update_git.sh
|
|
|
|
Source302: config.sh
|
|
|
|
Source303: README.PACKAGING
|
2018-12-06 22:20:59 +01:00
|
|
|
# Upstream First -- https://wiki.qemu.org/Contribute/SubmitAPatch
|
2019-09-12 17:54:03 +02:00
|
|
|
# This patch queue is auto-generated - see README.PACKAGING for process
|
2015-03-21 12:46:36 +01:00
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
PATCH_FILES
|
2019-08-07 23:16:47 +02:00
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
# Please do not add patches manually here.
|
2018-01-26 00:50:30 +01:00
|
|
|
|
2011-12-14 02:35:41 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2019-09-12 17:54:03 +02:00
|
|
|
|
2019-09-26 21:33:33 +02:00
|
|
|
# ========================================================================
|
2019-09-12 17:54:03 +02:00
|
|
|
%if "%{name}" == "qemu-linux-user"
|
|
|
|
BuildRequires: e2fsprogs-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: glib2-devel-static
|
|
|
|
BuildRequires: glibc-devel-static
|
|
|
|
BuildRequires: makeinfo
|
|
|
|
BuildRequires: pcre-devel-static
|
|
|
|
BuildRequires: python3-base
|
|
|
|
BuildRequires: zlib-devel-static
|
|
|
|
# we must not install the qemu-linux-user package when under QEMU build
|
|
|
|
%if 0%{?qemu_user_space_build:1}
|
|
|
|
#!BuildIgnore: post-build-checks
|
|
|
|
%endif
|
2019-09-26 21:33:33 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
QEMU provides CPU emulation along with other related capabilities. This package
|
|
|
|
provides programs to run user space binaries and libraries meant for another
|
|
|
|
architecture. The syscall interface is intercepted and execution below the
|
|
|
|
syscall layer occurs on the native hardware and operating system.
|
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
# ------------------------------------------------------------------------
|
|
|
|
%else # ! qemu-linux-user
|
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 22:12:17 +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
|
2019-09-12 17:54:03 +02:00
|
|
|
%ifnarch %{ix86} aarch64
|
|
|
|
BuildRequires: cross-aarch64-binutils
|
2019-10-28 03:04:18 +01:00
|
|
|
BuildRequires: cross-aarch64-gcc%gcc_version
|
2019-09-12 17:54:03 +02:00
|
|
|
%endif
|
|
|
|
%ifnarch %{ix86} armv7hl
|
|
|
|
BuildRequires: cross-arm-binutils
|
2019-10-28 03:04:18 +01:00
|
|
|
BuildRequires: cross-arm-gcc%gcc_version
|
2019-09-12 17:54:03 +02:00
|
|
|
%endif
|
2019-05-02 00:51:10 +02:00
|
|
|
%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*
|
2019-09-12 17:54:03 +02:00
|
|
|
BuildRequires: cross-i386-binutils
|
2019-10-28 03:04:18 +01:00
|
|
|
BuildRequires: cross-i386-gcc%gcc_version
|
2019-02-22 15:07:03 +01:00
|
|
|
BuildRequires: cross-x86_64-binutils
|
2019-10-28 03:04:18 +01:00
|
|
|
BuildRequires: cross-x86_64-gcc%gcc_version
|
2019-02-22 15:07:03 +01:00
|
|
|
%endif
|
2016-05-31 23:05:30 +02:00
|
|
|
%endif
|
2011-12-14 02:35:41 +01:00
|
|
|
BuildRequires: curl-devel
|
|
|
|
BuildRequires: cyrus-sasl-devel
|
2019-09-12 17:54:03 +02:00
|
|
|
%if build_x86_firmware_from_source
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
%endif
|
2011-12-14 02:35:41 +01:00
|
|
|
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++
|
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-12-14 02:35:41 +01:00
|
|
|
BuildRequires: libaio-devel
|
|
|
|
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
|
|
|
|
BuildRequires: libepoxy-devel
|
2017-03-15 20:38:55 +01:00
|
|
|
BuildRequires: libfdt-devel
|
2016-05-31 23:05:30 +02:00
|
|
|
BuildRequires: libgbm-devel
|
2016-01-27 17:31:12 +01:00
|
|
|
BuildRequires: libgcrypt-devel
|
2011-12-14 02:35:41 +01:00
|
|
|
BuildRequires: libgnutls-devel
|
2016-04-28 18:36:38 +02:00
|
|
|
BuildRequires: libiscsi-devel
|
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
|
2015-05-13 02:20:26 +02:00
|
|
|
%ifnarch %arm s390x
|
2015-04-09 15:38:04 +02:00
|
|
|
BuildRequires: libnuma-devel
|
|
|
|
%endif
|
2011-12-14 02:35:41 +01: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}
|
|
|
|
BuildRequires: librbd-devel
|
|
|
|
%endif
|
2019-09-12 17:54:03 +02:00
|
|
|
%if 0%{?is_opensuse}
|
2019-05-02 00:51:10 +02:00
|
|
|
BuildRequires: libSDL2-devel
|
|
|
|
BuildRequires: libSDL2_image-devel
|
|
|
|
%endif
|
2015-04-09 15:38:04 +02:00
|
|
|
BuildRequires: libseccomp-devel
|
2016-11-21 18:35:32 +01:00
|
|
|
BuildRequires: libspice-server-devel
|
2019-09-12 17:54:03 +02:00
|
|
|
BuildRequires: libssh-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
|
|
|
BuildRequires: libvdeplug-devel
|
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-10-09 21:59:49 +02:00
|
|
|
BuildRequires: makeinfo
|
2017-12-14 01:53:24 +01:00
|
|
|
BuildRequires: multipath-tools-devel
|
2019-09-12 17:54:03 +02:00
|
|
|
%if build_x86_firmware_from_source
|
|
|
|
BuildRequires: nasm
|
2012-10-09 21:59:49 +02:00
|
|
|
%endif
|
2011-12-14 02:35:41 +01:00
|
|
|
BuildRequires: ncurses-devel
|
2015-04-09 19:17:53 +02:00
|
|
|
BuildRequires: pkgconfig
|
2013-05-24 21:22:32 +02:00
|
|
|
BuildRequires: pwdutils
|
2019-09-12 17:54:03 +02:00
|
|
|
BuildRequires: python-base
|
2019-06-07 16:38:32 +02:00
|
|
|
BuildRequires: python3-Sphinx
|
2018-01-26 14:19:10 +01:00
|
|
|
BuildRequires: python3-base
|
2017-08-31 22:04:54 +02:00
|
|
|
BuildRequires: rdma-core-devel
|
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-05-31 23:05:30 +02:00
|
|
|
BuildRequires: virglrenderer-devel >= 0.4.1
|
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-12-14 02:35:41 +01:00
|
|
|
BuildRequires: zlib-devel
|
2015-04-12 11:13:49 +02:00
|
|
|
%if "%{name}" == "qemu-testsuite"
|
|
|
|
BuildRequires: bc
|
2019-09-12 17:54:03 +02:00
|
|
|
BuildRequires: python-base
|
2019-05-02 00:51:10 +02:00
|
|
|
BuildRequires: qemu-arm = %{qemuver}
|
|
|
|
BuildRequires: qemu-audio-alsa = %{qemuver}
|
|
|
|
BuildRequires: qemu-audio-pa = %{qemuver}
|
2019-09-12 17:54:03 +02:00
|
|
|
%if 0%{?is_opensuse}
|
2019-05-02 00:51:10 +02:00
|
|
|
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
|
2018-09-21 23:17:21 +02:00
|
|
|
BuildRequires: qemu-block-iscsi = %{qemuver}
|
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}
|
2019-09-12 17:54:03 +02:00
|
|
|
%if %{provide_edk2_firmware}
|
|
|
|
BuildRequires: qemu-edk2 = %{qemuver}
|
|
|
|
%endif
|
2018-09-21 23:17:21 +02:00
|
|
|
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-09-12 17:54:03 +02:00
|
|
|
%if 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
|
2017-03-15 20:38:55 +01: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-09-12 17:54:03 +02:00
|
|
|
%if 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
|
|
|
|
Suggests: qemu-block-iscsi
|
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-09-12 17:54:03 +02:00
|
|
|
Suggests: qemu-vhost-user-gpu
|
2019-05-07 23:38:21 +02:00
|
|
|
Provides: qemu-audio-oss = %{qemuver}
|
|
|
|
Obsoletes: qemu-audio-oss < %{qemuver}
|
2011-12-14 02:35:41 +01:00
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
# ------------------------------------------------------------------------
|
2019-09-26 21:33:33 +02:00
|
|
|
%define generic_qemu_description QEMU provides full machine emulation and cross architecture usage. It closely\
|
|
|
|
integrates with KVM and Xen virtualization, allowing for excellent performance.\
|
|
|
|
Many options are available for defining the emulated environment, including\
|
|
|
|
traditional devices, direct host device access, and interfaces specific to\
|
|
|
|
virtualization.
|
2019-09-12 17:54:03 +02:00
|
|
|
|
2011-12-14 02:35:41 +01:00
|
|
|
%description
|
2019-09-26 21:33:33 +02:00
|
|
|
%{generic_qemu_description}
|
2017-12-14 01:53:24 +01:00
|
|
|
|
|
|
|
This package acts as an umbrella package to the other QEMU sub-packages.
|
2011-12-14 02:35: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
|
2019-09-26 21:33:33 +02:00
|
|
|
%{generic_qemu_description}
|
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
|
2019-09-26 21:33:33 +02:00
|
|
|
%{generic_qemu_description}
|
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
|
2019-09-26 21:33:33 +02:00
|
|
|
%{generic_qemu_description}
|
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
|
2019-09-26 21:33:33 +02:00
|
|
|
%{generic_qemu_description}
|
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
|
2019-09-26 21:33:33 +02:00
|
|
|
%{generic_qemu_description}
|
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
|
2019-09-26 21:33:33 +02:00
|
|
|
%{generic_qemu_description}
|
2017-12-14 01:53:24 +01:00
|
|
|
|
|
|
|
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-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
|
|
|
|
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-09-12 17:54:03 +02:00
|
|
|
%if 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-09-12 17:54:03 +02:00
|
|
|
%if 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
|
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
%package vhost-user-gpu
|
|
|
|
Summary: Vhost user mode virtio-gpu 2D/3D rendering backend for QEMU
|
|
|
|
Group: System/Emulators/PC
|
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
|
|
|
%{qemu_module_conflicts}
|
|
|
|
|
|
|
|
%description vhost-user-gpu
|
|
|
|
This package contains a vhost user mode virtio-gpu 2D/3D rendering backend for QEMU
|
|
|
|
|
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 04:57:07 +01:00
|
|
|
Recommends: multipath-tools
|
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
|
2014-04-01 17:08:49 +02:00
|
|
|
SEABIOS_VERSION
|
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
|
2014-04-01 17:08:49 +02:00
|
|
|
SEABIOS_VERSION
|
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
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
%if %{provide_edk2_firmware}
|
|
|
|
%package edk2
|
|
|
|
Summary: EDK II based firmware
|
|
|
|
Group: System/Emulators/PC
|
|
|
|
Version: %{qemuver}
|
|
|
|
Release: 0
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description edk2
|
|
|
|
Provides EDK II based firmware.
|
|
|
|
%endif
|
|
|
|
|
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
|
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
%endif # ! qemu-testsuite
|
2019-09-26 21:33:33 +02:00
|
|
|
%endif # ! qemu-linux-user
|
2018-12-06 22:20:59 +01:00
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
# ========================================================================
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{srcname}-%{expand:%%(SV=%{srcver};echo ${SV%%%%+git*})}
|
|
|
|
PATCH_EXEC
|
2019-08-07 23:16:47 +02:00
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
%if "%{name}" != "qemu-linux-user"
|
2019-09-26 21:33:33 +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
|
|
|
|
# opensbi-riscv32-virt-fw_jump.bin
|
|
|
|
|
|
|
|
# This first list group isn't specific to what this instance builds
|
|
|
|
%define ppc_default_firmware {%nil}
|
|
|
|
%define ppc_extra_firmware {skiboot.lid slof.bin}
|
|
|
|
%define ppc64_only_default_firmware {spapr-rtas.bin}
|
|
|
|
%define ppc64_only_extra_firmware {%nil}
|
|
|
|
%define riscv64_default_firmware {opensbi-riscv64-sifive_u-fw_jump.bin opensbi-riscv64-virt-fw_jump.bin}
|
|
|
|
%define riscv64_extra_firmware {%nil}
|
|
|
|
%define s390x_default_firmware {s390-ccw.img s390-netboot.img}
|
|
|
|
%define s390x_extra_firmware {%nil}
|
|
|
|
%define x86_default_firmware {linuxboot.bin linuxboot_dma.bin multiboot.bin \
|
|
|
|
kvmvapic.bin pvh.bin}
|
|
|
|
%define x86_extra_firmware {bios.bin bios-256k.bin pxe-e1000.rom \
|
|
|
|
pxe-eepro100.rom pxe-ne2k_pci.rom pxe-pcnet.rom pxe-rtl8139.rom pxe-virtio.rom \
|
|
|
|
sgabios.bin vgabios-ati.bin vgabios-bochs-display.bin vgabios.bin \
|
|
|
|
vgabios-cirrus.bin vgabios-qxl.bin vgabios-ramfb.bin vgabios-stdvga.bin \
|
|
|
|
vgabios-virtio.bin vgabios-vmware.bin}
|
|
|
|
%define x86_64_only_default_firmware {%nil}
|
|
|
|
%define x86_64_only_extra_firmware {edk2-aarch64-code.fd.bz2 \
|
|
|
|
edk2-arm-code.fd.bz2 edk2-arm-vars.fd.bz2 edk2-i386-code.fd.bz2 \
|
|
|
|
edk2-i386-secure-code.fd.bz2 edk2-i386-vars.fd.bz2 edk2-x86_64-code.fd.bz2 \
|
|
|
|
edk2-x86_64-secure-code.fd.bz2 efi-e1000.rom efi-e1000e.rom efi-eepro100.rom \
|
|
|
|
efi-ne2k_pci.rom efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom efi-vmxnet3.rom}
|
|
|
|
|
|
|
|
%define firmware { \
|
|
|
|
%{?ppc_default_firmware} %{?ppc_extra_firmware} \
|
|
|
|
%{?ppc64_only_default_firmware} %{?ppc64_only_extra_firmware} \
|
|
|
|
%{?riscv64_default_firmware} %{?riscv64_extra_firmware} \
|
|
|
|
%{?s390x_default_firmware} %{?s390x_extra_firmware} \
|
|
|
|
%{?x86_default_firmware} %{?x86_extra_firmware} \
|
|
|
|
%{?x86_64_only_default_firmware} %{?x86_64_only_extra_firmware} }
|
|
|
|
|
|
|
|
# This second list group is specific to what this instance builds
|
|
|
|
%define ppc_default_built_firmware %{ppc_default_firmware}
|
|
|
|
%if %{build_skiboot_from_source} && %{build_slof_from_source}
|
|
|
|
%define ppc_extra_built_firmware %{ppc_extra_firmware}
|
|
|
|
%else
|
|
|
|
%if %{build_skiboot_from_source}
|
|
|
|
%define ppc_extra_built_firmware {skiboot.lid}
|
|
|
|
%endif
|
|
|
|
%if %{build_slof_from_source}
|
|
|
|
%define ppc_extra_built_firmware {slof.bin}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch ppc64
|
|
|
|
%define ppc64_only_default_built_firmware %{ppc64_only_default_firmware}
|
|
|
|
%define ppc64_only_extra_built_firmware %{ppc64_only_extra_firmware}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch riscv64
|
|
|
|
%define riscv64_default_built_firmware %{riscv64_default_firmware}
|
|
|
|
%define riscv64_extra_built_firmware %{riscv64_extra_firmware}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch s390x
|
|
|
|
%define s390x_default_built_firmware %{s390x_default_firmware}
|
|
|
|
%define s390x_extra_built_firmware %{s390x_extra_firmware}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
%define x86_default_built_firmware %{x86_default_firmware}
|
|
|
|
%ifarch x86_64
|
|
|
|
%define x86_64_only_default_built_firmware %{x86_64_only_default_firmware}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{build_x86_firmware_from_source}
|
|
|
|
%define x86_extra_built_firmware %{x86_extra_firmware}
|
|
|
|
%ifarch x86_64
|
|
|
|
%define x86_64_only_extra_built_firmware %{x86_64_only_extra_firmware}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%define built_firmware { \
|
|
|
|
%{?ppc_default_built_firmware} %{?ppc_extra_built_firmware} \
|
|
|
|
%{?ppc64_only_default_built_firmware} %{?ppc64_only_extra_built_firmware} \
|
|
|
|
%{?riscv64_default_built_firmware} %{?riscv64_extra_built_firmware} \
|
|
|
|
%{?s390x_default_built_firmware} %{?s390x_extra_built_firmware} \
|
|
|
|
%{?x86_default_built_firmware} %{?x86_extra_built_firmware} \
|
|
|
|
%{?x86_64_only_default_built_firmware} %{?x86_64_only_extra_built_firmware} }
|
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
%if "%{name}" != "qemu-testsuite"
|
2019-09-12 17:54:03 +02:00
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
# delete the firmware files that we intend to build
|
2017-04-12 21:10:15 +02:00
|
|
|
for i in %built_firmware
|
2019-09-12 17:54:03 +02:00
|
|
|
do
|
|
|
|
unlink pc-bios/$i
|
|
|
|
done
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------
|
|
|
|
%else # qemu-testsuite
|
|
|
|
|
2019-05-02 00:51:10 +02:00
|
|
|
# delete the firmware files that we intend to link from built packages
|
|
|
|
for i in %firmware
|
2013-09-13 23:59:15 +02:00
|
|
|
do
|
2019-09-12 17:54:03 +02:00
|
|
|
if [[ $i =~ .*[.]bz2 ]]; then
|
|
|
|
echo "Skipping %i"
|
|
|
|
else
|
|
|
|
unlink pc-bios/$i
|
|
|
|
fi
|
2013-09-13 23:59:15 +02:00
|
|
|
done
|
2015-10-08 18:14:43 +02:00
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
%endif # qemu-testsuite
|
|
|
|
%endif # ! qemu-linux-user
|
|
|
|
|
|
|
|
# ========================================================================
|
2011-12-14 02:35: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
|
|
|
--python=%_bindir/python3 \
|
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 \
|
2019-09-12 17:54:03 +02:00
|
|
|
%if "%{name}" != "qemu-linux-user"
|
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-09-12 17:54:03 +02:00
|
|
|
%if 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-04-28 18:36:38 +02:00
|
|
|
--enable-libiscsi \
|
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
|
2019-09-12 17:54:03 +02:00
|
|
|
--enable-libssh \
|
2015-04-09 15:38:04 +02:00
|
|
|
--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
|
|
|
--enable-mpath \
|
2015-04-09 15:38:04 +02:00
|
|
|
--disable-netmap \
|
2017-12-14 01:53:24 +01:00
|
|
|
--disable-nettle \
|
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
|
2016-07-15 17:50:58 +02:00
|
|
|
--enable-opengl \
|
2018-12-06 22:20:59 +01:00
|
|
|
--enable-parallels \
|
|
|
|
--enable-pvrdma \
|
|
|
|
--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
|
|
|
--enable-rdma \
|
2017-03-29 06:22:10 +02:00
|
|
|
--enable-replication \
|
2018-05-01 17:20:58 +02:00
|
|
|
--disable-sanitizers \
|
2019-09-12 17:54:03 +02:00
|
|
|
%if 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
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-seccomp \
|
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
|
|
|
--enable-virglrenderer \
|
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-01-27 17:31:12 +01:00
|
|
|
--enable-vte \
|
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 \
|
2019-09-12 17:54:03 +02:00
|
|
|
# ------------------------------------------------------------------------
|
|
|
|
%else # qemu-linux-user
|
|
|
|
--without-default-devices \
|
|
|
|
--disable-system --enable-linux-user \
|
|
|
|
--disable-tools --disable-guest-agent \
|
|
|
|
--static \
|
|
|
|
--disable-modules \
|
|
|
|
--disable-pie \
|
|
|
|
--disable-docs \
|
|
|
|
--audio-drv-list="" \
|
|
|
|
--disable-blobs \
|
|
|
|
--disable-bochs \
|
|
|
|
--disable-capstone \
|
|
|
|
--disable-cloop \
|
|
|
|
--enable-coroutine-pool \
|
|
|
|
--disable-dmg \
|
|
|
|
--disable-fdt \
|
|
|
|
--disable-iconv \
|
|
|
|
--disable-kvm \
|
|
|
|
--disable-malloc-trim \
|
|
|
|
--enable-membarrier \
|
|
|
|
--disable-parallels \
|
|
|
|
--disable-qcow1 \
|
|
|
|
--disable-qed \
|
|
|
|
--disable-replication \
|
|
|
|
--disable-sheepdog \
|
|
|
|
--disable-slirp \
|
|
|
|
--disable-tpm \
|
|
|
|
--disable-vdi \
|
|
|
|
--disable-vhost-crypto \
|
|
|
|
--disable-vhost-kernel \
|
|
|
|
--disable-vhost-net \
|
|
|
|
--disable-vhost-scsi \
|
|
|
|
--disable-vhost-user \
|
|
|
|
--disable-vhost-vsock \
|
|
|
|
--disable-vnc \
|
|
|
|
--disable-vvfat \
|
|
|
|
%endif # qemu-linux-user
|
|
|
|
|
|
|
|
%if "%{name}" == "qemu"
|
2015-04-12 11:13:49 +02:00
|
|
|
|
2013-05-24 19:25:32 +02:00
|
|
|
make %{?_smp_mflags} V=1
|
2011-12-14 02:35: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-09-12 17:54:03 +02:00
|
|
|
%if 0%{?is_opensuse} == 0
|
|
|
|
SEABIOS_EXTRAVERSION="-rebuilt.suse.com" \
|
|
|
|
%else
|
|
|
|
SEABIOS_EXTRAVERSION="-rebuilt.opensuse.org" \
|
|
|
|
%endif
|
2019-02-22 15:07:03 +01:00
|
|
|
%ifnarch %ix86 x86_64
|
|
|
|
HOSTCC=cc \
|
|
|
|
%endif
|
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
%ifnarch %ix86
|
|
|
|
%if %{provide_edk2_firmware}
|
|
|
|
make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms efi \
|
|
|
|
EDK2_BASETOOLS_OPTFLAGS='-fPIE'
|
|
|
|
%endif
|
|
|
|
%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-09-12 17:54:03 +02:00
|
|
|
make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms seavgabios-ati \
|
|
|
|
%ifnarch %ix86 x86_64
|
|
|
|
HOSTCC=cc \
|
|
|
|
%endif
|
|
|
|
|
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-09-12 17:54:03 +02:00
|
|
|
patch -p1 < %_sourcedir/stub-out-the-SAN-req-s-in-int13.patch
|
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
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
%if %{build_opensbi_from_source}
|
|
|
|
make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms opensbi64-virt CROSS_COMPILE=
|
|
|
|
make %{?_smp_mflags} -C %{_builddir}/%buildsubdir/roms opensbi64-sifive_u CROSS_COMPILE=
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif # qemu
|
|
|
|
# ------------------------------------------------------------------------
|
|
|
|
%if "%{name}" == "qemu-testsuite"
|
2015-08-12 18:17:59 +02:00
|
|
|
|
2019-10-10 04:07:57 +02:00
|
|
|
# TODO: Some of these are actually overwritten during the following make's
|
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-10-10 04:07:57 +02:00
|
|
|
ln -s %_bindir/elf2map elf2map
|
|
|
|
ln -s %_bindir/qemu-nbd qemu-nbd
|
|
|
|
ln -s %_bindir/qemu-edid qemu-edid
|
|
|
|
ln -s %_bindir/qemu-keymap qemu-keymap
|
|
|
|
ln -s %_bindir/ivshmem-client ivshmem-client
|
|
|
|
ln -s %_bindir/ivshmem-server ivshmem-server
|
|
|
|
ln -s %_bindir/qemu-pr-helper scsi/qemu-pr-helper
|
|
|
|
ln -s %_bindir/virtfs-proxy-helper fsdev/virtfs-proxy-helper
|
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
|
2019-09-12 17:54:03 +02:00
|
|
|
if [[ $i =~ .*[.]bz2 ]]; then
|
|
|
|
echo "Skipping $i"
|
|
|
|
else
|
|
|
|
ln -s %_datadir/qemu/$i pc-bios/$i
|
|
|
|
fi
|
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
|
|
|
|
2019-10-10 04:07:57 +02:00
|
|
|
%endif # qemu-testsuite
|
2019-09-12 17:54:03 +02:00
|
|
|
# ------------------------------------------------------------------------
|
|
|
|
%if "%{name}" == "qemu-linux-user"
|
|
|
|
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
%ifarch %ix86
|
|
|
|
%define qemu_arch i386
|
|
|
|
%endif
|
|
|
|
%ifarch x86_64
|
|
|
|
%define qemu_arch x86_64
|
|
|
|
%endif
|
|
|
|
%ifarch %arm
|
|
|
|
%define qemu_arch arm
|
|
|
|
%endif
|
|
|
|
%ifarch aarch64
|
|
|
|
%define qemu_arch aarch64
|
|
|
|
%endif
|
|
|
|
%ifarch ppc
|
|
|
|
%define qemu_arch ppc
|
|
|
|
%endif
|
|
|
|
%ifarch ppc64
|
|
|
|
%define qemu_arch ppc64
|
|
|
|
%endif
|
|
|
|
%ifarch ppc64le
|
|
|
|
%define qemu_arch ppc64le
|
|
|
|
%endif
|
|
|
|
%ifarch s390x
|
|
|
|
%define qemu_arch s390x
|
2015-10-13 18:39:07 +02:00
|
|
|
%endif
|
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
%endif # qemu-linux-user
|
|
|
|
|
|
|
|
# ========================================================================
|
2015-10-13 18:39:07 +02:00
|
|
|
%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
|
2019-09-12 17:54:03 +02:00
|
|
|
# ------------------------------------------------------------------------
|
|
|
|
%if "%{name}" == "qemu-linux-user"
|
|
|
|
|
|
|
|
%ifarch %ix86 x86_64 %arm aarch64 ppc ppc64 ppc64le s390x
|
|
|
|
%{qemu_arch}-linux-user/qemu-%{qemu_arch} %_bindir/ls > /dev/null
|
|
|
|
make %{?_smp_mflags} check-softfloat
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif # qemu-linux-user
|
2014-02-14 17:13:17 +01:00
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
# ========================================================================
|
2019-09-26 21:33:33 +02:00
|
|
|
|
2011-12-14 02:35:41 +01:00
|
|
|
%install
|
2019-05-02 00:51:10 +02:00
|
|
|
cd %mybuilddir
|
2019-09-12 17:54:03 +02:00
|
|
|
|
2019-09-26 21:33:33 +02:00
|
|
|
%if "%{name}" == "qemu-testsuite"
|
|
|
|
|
|
|
|
install -D -m 0644 check-report.tap %{buildroot}%_datadir/qemu/check-report.tap
|
|
|
|
|
|
|
|
%endif # qemu-testsuite
|
|
|
|
# ------------------------------------------------------------------------
|
|
|
|
%if "%{name}" == "qemu-linux-user"
|
|
|
|
|
|
|
|
make %{?_smp_mflags} install DESTDIR=%{buildroot}
|
|
|
|
rm -rf %{buildroot}%_datadir/qemu/keymaps
|
|
|
|
unlink %{buildroot}%_datadir/qemu/trace-events-all
|
|
|
|
install -d -m 755 %{buildroot}%_sbindir
|
|
|
|
install -m 755 scripts/qemu-binfmt-conf.sh %{buildroot}%_sbindir
|
|
|
|
%fdupes -s %{buildroot}
|
|
|
|
|
|
|
|
%endif # qemu-linux-user
|
|
|
|
# ------------------------------------------------------------------------
|
2019-09-12 17:54:03 +02:00
|
|
|
%if "%{name}" == "qemu"
|
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
|
2019-09-12 17:54:03 +02:00
|
|
|
unlink %{buildroot}%_datadir/%name/${f%.bz2}
|
2015-02-12 02:06:33 +01:00
|
|
|
done
|
2019-09-12 17:54:03 +02:00
|
|
|
%define do_more_edk2_unlinks 1
|
|
|
|
%else
|
|
|
|
%ifarch %ix86 aarch64
|
|
|
|
unlink %{buildroot}%_datadir/%name/edk2-aarch64-code.fd
|
|
|
|
unlink %{buildroot}%_datadir/%name/edk2-arm-code.fd
|
|
|
|
unlink %{buildroot}%_datadir/%name/edk2-arm-vars.fd
|
|
|
|
unlink %{buildroot}%_datadir/%name/edk2-i386-code.fd
|
|
|
|
unlink %{buildroot}%_datadir/%name/edk2-i386-secure-code.fd
|
|
|
|
unlink %{buildroot}%_datadir/%name/edk2-i386-vars.fd
|
|
|
|
unlink %{buildroot}%_datadir/%name/edk2-licenses.txt || true
|
|
|
|
unlink %{buildroot}%_datadir/%name/edk2-x86_64-code.fd
|
|
|
|
unlink %{buildroot}%_datadir/%name/edk2-x86_64-secure-code.fd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if 0%{?do_more_edk2_unlinks} || %{provide_edk2_firmware} == 0
|
|
|
|
unlink %{buildroot}%_datadir/%name/edk2-licenses.txt || true
|
|
|
|
unlink %{buildroot}%_datadir/%name/firmware/50-edk2-i386-secure.json
|
|
|
|
unlink %{buildroot}%_datadir/%name/firmware/50-edk2-x86_64-secure.json
|
|
|
|
unlink %{buildroot}%_datadir/%name/firmware/60-edk2-aarch64.json
|
|
|
|
unlink %{buildroot}%_datadir/%name/firmware/60-edk2-arm.json
|
|
|
|
unlink %{buildroot}%_datadir/%name/firmware/60-edk2-i386.json
|
|
|
|
unlink %{buildroot}%_datadir/%name/firmware/60-edk2-x86_64.json
|
2015-02-12 02:06:33 +01:00
|
|
|
%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
|
2019-09-26 21:33:33 +02:00
|
|
|
install -D -p -m 0644 %{SOURCE8} %{buildroot}/usr/lib/udev/rules.d/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}
|
2019-09-26 21:33:33 +02:00
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}/usr/lib/udev/rules.d/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
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
# ========================================================================
|
2019-09-26 21:33:33 +02:00
|
|
|
# (qemu alone has pre* and post* sections for itself and subpackages):
|
2011-12-14 02:35: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
|
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
%endif # qemu
|
2015-04-12 11:13:49 +02:00
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
# ========================================================================
|
2011-12-14 02:35:41 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
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-09-26 21:33:33 +02:00
|
|
|
|
|
|
|
%if "%{name}" == "qemu"
|
2019-05-02 00:51:10 +02:00
|
|
|
%dir %_docdir/%name/interop
|
|
|
|
%dir %_docdir/%name/interop/_static
|
2019-09-12 17:54:03 +02:00
|
|
|
%dir %_docdir/%name/specs
|
|
|
|
%dir %_docdir/%name/specs/_static
|
2019-05-02 00:51:10 +02:00
|
|
|
%_docdir/%name/interop/.buildinfo
|
2019-06-10 19:46:42 +02:00
|
|
|
%_docdir/%name/interop/_static/*
|
2019-05-02 00:51:10 +02:00
|
|
|
%_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
|
2019-09-12 17:54:03 +02:00
|
|
|
%_docdir/%name/interop/vhost-user.html
|
|
|
|
%_docdir/%name/specs/.buildinfo
|
|
|
|
%_docdir/%name/specs/_static/*
|
|
|
|
%_docdir/%name/specs/genindex.html
|
|
|
|
%_docdir/%name/specs/index.html
|
|
|
|
%_docdir/%name/specs/objects.inv
|
|
|
|
%_docdir/%name/specs/ppc-spapr-xive.html
|
|
|
|
%_docdir/%name/specs/ppc-xive.html
|
|
|
|
%_docdir/%name/specs/search.html
|
|
|
|
%_docdir/%name/specs/searchindex.js
|
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
|
2019-09-12 17:54:03 +02:00
|
|
|
%_datadir/%name/qemu-nsis.bmp
|
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}
|
2019-09-26 21:33:33 +02:00
|
|
|
/usr/lib/udev/rules.d/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-18 00:21:50 +02:00
|
|
|
%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
|
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
|
2019-09-12 17:54:03 +02:00
|
|
|
%_datadir/%name/opensbi-riscv32-virt-fw_jump.bin
|
|
|
|
%_datadir/%name/opensbi-riscv64-sifive_u-fw_jump.bin
|
|
|
|
%_datadir/%name/opensbi-riscv64-virt-fw_jump.bin
|
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
|
2011-12-14 02:35:41 +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-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
|
|
|
|
|
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-09-12 17:54:03 +02:00
|
|
|
%if 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-09-12 17:54:03 +02:00
|
|
|
%if 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
|
2019-09-12 17:54:03 +02:00
|
|
|
%_datadir/%name/vgabios-ati.bin
|
|
|
|
%_datadir/%name/vgabios-bochs-display.bin
|
2013-09-13 23:59:15 +02:00
|
|
|
%_datadir/%name/vgabios-cirrus.bin
|
|
|
|
%_datadir/%name/vgabios-qxl.bin
|
2019-09-12 17:54:03 +02:00
|
|
|
%_datadir/%name/vgabios-ramfb.bin
|
2013-09-13 23:59:15 +02:00
|
|
|
%_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
|
|
|
|
|
|
|
|
%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
|
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
|
2019-09-26 21:33:33 +02:00
|
|
|
%_datadir/%name/pxe-e1000.rom
|
|
|
|
%_datadir/%name/pxe-eepro100.rom
|
|
|
|
%_datadir/%name/pxe-ne2k_pci.rom
|
|
|
|
%_datadir/%name/pxe-pcnet.rom
|
|
|
|
%_datadir/%name/pxe-rtl8139.rom
|
|
|
|
%_datadir/%name/pxe-virtio.rom
|
2019-09-12 17:54:03 +02:00
|
|
|
|
|
|
|
%if %{provide_edk2_firmware}
|
|
|
|
|
|
|
|
%files edk2
|
|
|
|
%dir %_datadir/%name
|
|
|
|
%dir %_datadir/%name/firmware
|
|
|
|
%_datadir/%name/edk2-aarch64-code.fd
|
|
|
|
%_datadir/%name/edk2-arm-code.fd
|
|
|
|
%_datadir/%name/edk2-arm-vars.fd
|
|
|
|
%_datadir/%name/edk2-i386-code.fd
|
|
|
|
%_datadir/%name/edk2-i386-secure-code.fd
|
|
|
|
%_datadir/%name/edk2-i386-vars.fd
|
|
|
|
%_datadir/%name/edk2-licenses.txt
|
|
|
|
%_datadir/%name/edk2-x86_64-code.fd
|
|
|
|
%_datadir/%name/edk2-x86_64-secure-code.fd
|
|
|
|
%_datadir/%name/firmware/50-edk2-i386-secure.json
|
|
|
|
%_datadir/%name/firmware/50-edk2-x86_64-secure.json
|
|
|
|
%_datadir/%name/firmware/60-edk2-aarch64.json
|
|
|
|
%_datadir/%name/firmware/60-edk2-arm.json
|
|
|
|
%_datadir/%name/firmware/60-edk2-i386.json
|
|
|
|
%_datadir/%name/firmware/60-edk2-x86_64.json
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files vhost-user-gpu
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%_libexecdir/vhost-user-gpu
|
|
|
|
%_docdir/%name/interop/vhost-user-gpu.html
|
|
|
|
%dir %_datadir/%name/vhost-user
|
|
|
|
%_datadir/%name/vhost-user/50-qemu-gpu.json
|
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-26 10:33:26 +02:00
|
|
|
%_bindir/qemu-img
|
2019-09-26 21:33:33 +02:00
|
|
|
%_bindir/qemu-io
|
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
|
2019-09-26 21:33:33 +02:00
|
|
|
/usr/lib/udev/rules.d/80-qemu-ga.rules
|
2015-11-19 14:51:50 +01:00
|
|
|
|
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
|
|
|
|
|
2019-09-12 17:54:03 +02:00
|
|
|
%endif # qemu
|
|
|
|
# ------------------------------------------------------------------------
|
|
|
|
%if "%{name}" == "qemu-linux-user"
|
|
|
|
|
|
|
|
%_bindir/qemu-aarch64
|
|
|
|
%_bindir/qemu-aarch64_be
|
|
|
|
%_bindir/qemu-alpha
|
|
|
|
%_bindir/qemu-arm
|
|
|
|
%_bindir/qemu-armeb
|
|
|
|
%_bindir/qemu-cris
|
|
|
|
%_bindir/qemu-hppa
|
|
|
|
%_bindir/qemu-i386
|
|
|
|
%_bindir/qemu-m68k
|
|
|
|
%_bindir/qemu-microblaze
|
|
|
|
%_bindir/qemu-microblazeel
|
|
|
|
%_bindir/qemu-mips
|
|
|
|
%_bindir/qemu-mipsel
|
|
|
|
%_bindir/qemu-mipsn32
|
|
|
|
%_bindir/qemu-mipsn32el
|
|
|
|
%_bindir/qemu-mips64
|
|
|
|
%_bindir/qemu-mips64el
|
|
|
|
%_bindir/qemu-nios2
|
|
|
|
%_bindir/qemu-or1k
|
|
|
|
%_bindir/qemu-ppc64
|
2019-09-26 21:33:33 +02:00
|
|
|
%_bindir/qemu-ppc64abi32
|
2019-09-12 17:54:03 +02:00
|
|
|
%_bindir/qemu-ppc64le
|
|
|
|
%_bindir/qemu-ppc
|
|
|
|
%_bindir/qemu-riscv32
|
|
|
|
%_bindir/qemu-riscv64
|
|
|
|
%_bindir/qemu-s390x
|
|
|
|
%_bindir/qemu-sh4
|
|
|
|
%_bindir/qemu-sh4eb
|
|
|
|
%_bindir/qemu-sparc32plus
|
|
|
|
%_bindir/qemu-sparc64
|
|
|
|
%_bindir/qemu-sparc
|
|
|
|
%_bindir/qemu-tilegx
|
|
|
|
%_bindir/qemu-x86_64
|
|
|
|
%_bindir/qemu-xtensa
|
|
|
|
%_bindir/qemu-xtensaeb
|
|
|
|
%_bindir/qemu-*-binfmt
|
|
|
|
%_sbindir/qemu-binfmt-conf.sh
|
|
|
|
|
|
|
|
%endif # qemu-linux-user
|
2019-09-26 21:33:33 +02:00
|
|
|
# ------------------------------------------------------------------------
|
|
|
|
%if "%{name}" == "qemu-testsuite"
|
|
|
|
|
|
|
|
%_datadir/qemu/check-report.tap
|
|
|
|
|
|
|
|
%endif # qemu-testsuite
|
2015-04-12 11:13:49 +02:00
|
|
|
|
2011-12-14 02:35:41 +01:00
|
|
|
%changelog
|