2011-12-14 02:35:41 +01:00
|
|
|
#
|
|
|
|
# spec file for package qemu
|
|
|
|
#
|
2018-01-04 18:05:29 +01:00
|
|
|
# Copyright (c) 2018 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2017-08-18 18:25:16 +02: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
|
|
|
|
2017-10-16 17:47:06 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?is_opensuse} )
|
|
|
|
%define with_glusterfs 1
|
|
|
|
%endif
|
|
|
|
|
2016-07-12 22:12:45 +02:00
|
|
|
%ifarch x86_64
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && ( 0%{?is_opensuse} == 0 || 0%{?sle_version} > 120100 ) )
|
2016-07-12 22:12:45 +02:00
|
|
|
%define with_rbd 1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2016-07-14 17:50:35 +02:00
|
|
|
%ifarch aarch64
|
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?is_opensuse} == 0 && 0%{?sle_version} > 120100 )
|
|
|
|
%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
|
|
|
|
|
2011-12-14 02:35:41 +01:00
|
|
|
Name: qemu
|
2012-05-15 14:58:40 +02:00
|
|
|
Url: http://www.qemu.org/
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Machine emulator and virtualizer
|
2017-11-29 22:55:00 +01:00
|
|
|
License: BSD-3-Clause AND GPL-2.0 AND GPL-2.0+ AND LGPL-2.1+ 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
|
2017-12-14 01:53:24 +01:00
|
|
|
Source: http://wiki.qemu.org/download/qemu-2.11.0.tar.xz
|
|
|
|
Source99: http://wiki.qemu.org/download/qemu-2.11.0.tar.xz.sig
|
2014-02-13 14:36:37 +01:00
|
|
|
Source1: 80-kvm.rules
|
|
|
|
Source2: qemu-ifup
|
|
|
|
Source3: kvm_stat
|
2017-12-14 01:53:24 +01:00
|
|
|
Source4: kvm_stat.1.gz
|
|
|
|
Source5: qemu-kvm.1.gz
|
2014-03-19 15:11:16 +01:00
|
|
|
Source6: ksm.service
|
2017-12-14 01:53:24 +01:00
|
|
|
Source7: qemu-ga.service
|
2015-11-19 14:51:50 +01:00
|
|
|
Source8: 80-qemu-ga.rules
|
2017-12-14 01:53:24 +01:00
|
|
|
Source9: qemu-supportconfig
|
2016-07-15 17:50:58 +02:00
|
|
|
Source10: kvm.conf
|
2017-12-14 01:53:24 +01:00
|
|
|
Source11: bridge.conf
|
2017-03-15 20:38:55 +01:00
|
|
|
Source12: supported.x86.txt
|
|
|
|
Source13: supported.s390.txt
|
|
|
|
Source14: supported.arm.txt
|
|
|
|
Source15: supported.ppc.txt
|
2015-03-23 03:43:53 +01:00
|
|
|
# Upstream First -- http://wiki.qemu-project.org/Contribute/SubmitAPatch
|
2013-07-22 13:46:11 +02:00
|
|
|
# This patch queue is auto-generated from https://github.com/openSUSE/qemu
|
2011-12-14 02:35:41 +01:00
|
|
|
PATCH_FILES
|
2015-03-21 12:46:36 +01:00
|
|
|
# Please do not add QEMU patches manually here.
|
|
|
|
# Run update_git.sh to regenerate this queue.
|
|
|
|
|
2017-03-29 06:22:10 +02:00
|
|
|
# SeaBIOS / SeaVGABIOS (Currently no patches)
|
2016-06-01 23:35:28 +02:00
|
|
|
|
|
|
|
# ipxe
|
2016-11-28 19:24:03 +01:00
|
|
|
# PATCH-FIX-OPENSUSE ipxe-stable-buildid.patch brogers@suse.com -- reproducible builds
|
2016-11-21 19:03:09 +01:00
|
|
|
Patch1100: ipxe-stable-buildid.patch
|
2017-03-15 20:38:55 +01:00
|
|
|
Patch1101: ipxe-use-gcc6-for-more-compact-code.patch
|
2016-11-21 18:05:46 +01:00
|
|
|
|
|
|
|
# sgabios
|
2016-11-28 19:24:03 +01:00
|
|
|
# PATCH-FIX-OPENSUSE sgabios-stable-buildid.patch brogers@suse.com -- reproducible builds
|
2016-11-21 19:03:09 +01:00
|
|
|
Patch1200: sgabios-stable-buildid.patch
|
2016-11-21 18:05:46 +01:00
|
|
|
|
2017-03-15 20:38:55 +01:00
|
|
|
# SLOF (Currently no patches)
|
2013-09-13 23:59:15 +02:00
|
|
|
|
2017-10-16 17:47:06 +02:00
|
|
|
# skiboot
|
|
|
|
Patch1400: skiboot-GCC7-fixes-for-Wimplicit-fallthr.patch
|
|
|
|
Patch1401: skiboot-libc-stdio-vsnprintf.c-add-expli.patch
|
2017-11-29 22:55:00 +01:00
|
|
|
Patch1402: skiboot-build-LDFLAGS-pass-pie-flag-explicitly-to-ld.patch
|
2017-10-16 17:47:06 +02:00
|
|
|
|
2011-12-14 02:35:41 +01:00
|
|
|
# this is to make lint happy
|
2014-07-31 15:40:23 +02:00
|
|
|
Source300: qemu-rpmlintrc
|
2017-08-31 00:22:50 +02:00
|
|
|
Source301: ipxe-stub-out-the-SAN-req-s-in-int13.patch
|
2012-02-28 05:13:32 +01:00
|
|
|
Source400: update_git.sh
|
2017-03-15 20:38:55 +01:00
|
|
|
ExcludeArch: s390
|
|
|
|
%if "%{name}" == "qemu-testsuite"
|
|
|
|
ExcludeArch: s390x
|
|
|
|
%endif
|
2011-12-14 02:35: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-12-14 02:35:41 +01: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 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
|
|
|
|
%endif
|
2011-12-14 02:35:41 +01:00
|
|
|
BuildRequires: bluez-devel
|
2013-05-24 19:25:32 +02:00
|
|
|
BuildRequires: brlapi-devel
|
2011-12-14 02:35:41 +01: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-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
|
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-12-14 02:35:41 +01:00
|
|
|
BuildRequires: libgnutls-devel
|
2016-07-12 22:12:45 +02:00
|
|
|
%if 0%{?with_rbd}
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} || 0%{?sle_version} > 120100
|
2016-07-12 22:12:45 +02:00
|
|
|
BuildRequires: librbd-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: ceph-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
2016-07-15 17:50:58 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
2016-04-28 18:36:38 +02:00
|
|
|
BuildRequires: libiscsi-devel
|
|
|
|
%endif
|
2012-09-09 19:55:25 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
2017-05-05 17:05:43 +02:00
|
|
|
%ifarch %ix86 x86_64
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
|
2015-04-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-12-14 02:35:41 +01:00
|
|
|
BuildRequires: libpcap-devel
|
2013-05-24 21:22:32 +02:00
|
|
|
BuildRequires: libpixman-1-0-devel
|
2012-09-09 19:55:25 +02:00
|
|
|
BuildRequires: libpng-devel
|
2013-05-25 20:15:40 +02:00
|
|
|
BuildRequires: libpulse-devel
|
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-10-09 21:59:49 +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-10-09 21:59:49 +02:00
|
|
|
%endif
|
2011-12-14 02:35:41 +01: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
|
|
|
|
BuildRequires: python
|
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-12-14 02:35:41 +01:00
|
|
|
BuildRequires: zlib-devel
|
2015-04-12 11:13:49 +02:00
|
|
|
%if "%{name}" == "qemu-testsuite"
|
|
|
|
BuildRequires: bc
|
|
|
|
BuildRequires: qemu-arm = %version
|
2017-07-25 22:21:37 +02:00
|
|
|
BuildRequires: qemu-block-curl = %version
|
|
|
|
BuildRequires: qemu-block-dmg = %version
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: qemu-extra = %version
|
2016-01-19 19:31:32 +01:00
|
|
|
BuildRequires: qemu-guest-agent = %version
|
2015-04-12 11:13:49 +02:00
|
|
|
BuildRequires: qemu-ppc = %version
|
|
|
|
BuildRequires: qemu-s390 = %version
|
|
|
|
BuildRequires: qemu-tools = %version
|
|
|
|
BuildRequires: qemu-x86 = %version
|
2017-10-13 18:07:37 +02:00
|
|
|
%if 0%{?with_glusterfs}
|
2017-04-12 21:10:15 +02:00
|
|
|
BuildRequires: qemu-block-gluster = %version
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1320 || ( 0%{?suse_version} == 1315 && 0%{?sle_version} > 120100 )
|
|
|
|
BuildRequires: qemu-block-iscsi = %version
|
|
|
|
%endif
|
|
|
|
%if 0%{?with_rbd}
|
|
|
|
BuildRequires: qemu-block-rbd = %version
|
|
|
|
%endif
|
|
|
|
BuildRequires: qemu-block-ssh = %version
|
|
|
|
%endif
|
2017-08-18 18:25:16 +02:00
|
|
|
Requires(pre): shadow
|
2017-03-15 20:38:55 +01:00
|
|
|
Requires(post): coreutils
|
2016-05-31 23:05:30 +02:00
|
|
|
%if %{kvm_available}
|
2017-08-18 18:25:16 +02:00
|
|
|
Requires(post): acl
|
2016-05-31 23:05:30 +02:00
|
|
|
Requires(post): udev
|
2016-06-02 20:18:10 +02:00
|
|
|
%ifarch s390x
|
|
|
|
Requires(post): procps
|
|
|
|
%endif
|
2016-09-19 19:06:58 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
2017-03-15 20:38:55 +01:00
|
|
|
Recommends: kvm_stat
|
|
|
|
%else
|
|
|
|
Recommends: python-curses
|
2016-09-19 19:06:58 +02:00
|
|
|
%endif
|
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
|
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
|
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}
|
2014-03-20 01:26:56 +01:00
|
|
|
Recommends: qemu-ksm = %{version}
|
2014-02-24 18:02:42 +01:00
|
|
|
%endif
|
2011-12-14 02:35: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
|
|
|
|
%define s390x_default_built_firmware {s390-ccw.img}
|
|
|
|
%define s390x_extra_built_firmware {%nil}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
%define x86_default_built_firmware {linuxboot.bin linuxboot_dma.bin \
|
|
|
|
multiboot.bin kvmvapic.bin}
|
2016-05-31 23:05:30 +02:00
|
|
|
%ifarch x86_64
|
2017-04-12 21:10:15 +02:00
|
|
|
%define x86_64_only_default_built_firmware {%nil}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%define x86_extra_built_firmware_list {bios.bin bios-256k.bin sgabios.bin \
|
|
|
|
vgabios.bin vgabios-cirrus.bin vgabios-stdvga.bin vgabios-virtio.bin \
|
|
|
|
vgabios-vmware.bin vgabios-qxl.bin pxe-e1000.rom pxe-pcnet.rom \
|
|
|
|
pxe-ne2k_pci.rom pxe-rtl8139.rom pxe-eepro100.rom pxe-virtio.rom}
|
|
|
|
%define x86_64_only_extra_built_firmware_list {efi-e1000.rom efi-e1000e.rom \
|
|
|
|
efi-eepro100.rom efi-pcnet.rom efi-ne2k_pci.rom efi-rtl8139.rom efi-virtio.rom \
|
|
|
|
efi-vmxnet3.rom}
|
|
|
|
|
|
|
|
%if %{build_x86_firmware_from_source}
|
|
|
|
%define x86_extra_built_firmware %{x86_extra_built_firmware_list}
|
|
|
|
%ifarch x86_64
|
|
|
|
%define x86_64_only_extra_built_firmware %{x86_64_only_extra_built_firmware_list}
|
|
|
|
%endif
|
2016-05-31 23:05:30 +02:00
|
|
|
%endif
|
2017-04-12 21:10:15 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
2011-12-14 02:35: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.
|
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
|
|
|
|
Requires: qemu = %version
|
|
|
|
Requires: qemu-ipxe
|
|
|
|
Requires: qemu-seabios
|
|
|
|
Requires: qemu-sgabios
|
|
|
|
Requires: qemu-vgabios
|
2017-10-04 21:17:03 +02:00
|
|
|
Recommends: ovmf
|
|
|
|
Recommends: qemu-ovmf-x86_64
|
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
|
|
|
|
Requires: qemu = %version
|
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
|
|
|
|
Requires: qemu = %version
|
|
|
|
|
|
|
|
%description s390
|
2017-12-14 01:53:24 +01:00
|
|
|
QEMU provides full machine emulation and cross architecture usage. It closely
|
|
|
|
integrates with KVM and Xen virtualization, allowing for excellent performance.
|
|
|
|
Many options are available for defining the emulated environment, including
|
|
|
|
traditional devices, direct host device access, and interfaces specific to
|
|
|
|
virtualization.
|
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
|
|
|
|
Requires: qemu = %version
|
2016-11-28 19:24:03 +01:00
|
|
|
Recommends: qemu-ipxe
|
|
|
|
Recommends: qemu-vgabios
|
2017-10-04 21:17:03 +02:00
|
|
|
Recommends: ovmf
|
|
|
|
Recommends: qemu-uefi-aarch64
|
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
|
|
|
|
Requires: qemu = %version
|
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
|
|
|
|
Url: http://www.linux-kvm.org
|
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
|
2014-02-24 18:02:42 +01:00
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
Requires: qemu-x86 = %version
|
|
|
|
%endif
|
|
|
|
%ifarch s390x
|
|
|
|
Requires: qemu-s390 = %version
|
|
|
|
%endif
|
2014-02-14 01:45:10 +01:00
|
|
|
Provides: kvm = %version
|
|
|
|
Obsoletes: kvm < %version
|
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
|
|
|
|
|
|
|
|
%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 \
|
2016-04-29 19:51:01 +02:00
|
|
|
Conflicts: qemu < %version-%release \
|
|
|
|
Conflicts: qemu > %version-%release \
|
|
|
|
Conflicts: qemu-tools < %version-%release \
|
|
|
|
Conflicts: qemu-tools > %version-%release
|
2015-04-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
|
|
|
|
Provides: qemu:%_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
|
|
|
|
%{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
|
|
|
|
%{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
|
|
|
|
%{qemu_module_conflicts}
|
|
|
|
|
|
|
|
%description block-iscsi
|
2017-12-14 01:53:24 +01:00
|
|
|
This package contains a module for accessing network-based image files over an
|
|
|
|
iSCSI network connection from qemu-img tool and QEMU system emulation.
|
2016-04-28 18:36:38 +02:00
|
|
|
%endif
|
|
|
|
|
2016-07-12 22:12:45 +02:00
|
|
|
%if 0%{?with_rbd}
|
|
|
|
%package block-rbd
|
2017-12-14 01:53:24 +01:00
|
|
|
Summary: Rados Block Device (Ceph) support for QEMU
|
2016-07-12 22:12:45 +02:00
|
|
|
Group: System/Emulators/PC
|
|
|
|
%{qemu_module_conflicts}
|
|
|
|
|
|
|
|
%description block-rbd
|
2017-12-14 01:53:24 +01:00
|
|
|
This package contains a module for accessing ceph (rbd,rados) image files.
|
2016-07-12 22:12:45 +02:00
|
|
|
%endif
|
|
|
|
|
2015-04-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
|
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
|
|
|
|
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
|
|
|
|
Provides: qemu:%_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
|
|
|
|
Provides: qemu:%_bindir/qemu-ga
|
2017-08-18 18:25:16 +02:00
|
|
|
Requires(pre): shadow
|
2016-05-31 23:05:30 +02:00
|
|
|
Requires(post): udev
|
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
|
2014-04-01 17:08:49 +02:00
|
|
|
SEABIOS_VERSION
|
2013-09-13 23:59:15 +02:00
|
|
|
Release: 0
|
|
|
|
BuildArch: noarch
|
2013-10-08 20:29:33 +02:00
|
|
|
Conflicts: qemu < 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
|
2013-10-08 20:29:33 +02:00
|
|
|
Conflicts: qemu < 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
|
2013-10-08 20:29:33 +02:00
|
|
|
Conflicts: qemu < 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
|
|
|
|
Version: 1.0.0
|
|
|
|
Release: 0
|
|
|
|
BuildArch: noarch
|
2013-10-08 20:29:33 +02:00
|
|
|
Conflicts: qemu < 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-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
|
|
|
|
|
2011-12-14 02:35:41 +01:00
|
|
|
%prep
|
2017-12-14 01:53:24 +01:00
|
|
|
%setup -q -n qemu-2.11.0
|
2011-12-14 02:35:41 +01:00
|
|
|
PATCH_EXEC
|
|
|
|
|
2016-06-01 23:35:28 +02:00
|
|
|
pushd roms/ipxe
|
2016-11-21 18:05:46 +01:00
|
|
|
%patch1100 -p1
|
2017-06-21 03:27:18 +02: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-06-01 23:35:28 +02:00
|
|
|
popd
|
2017-04-12 21:10:15 +02:00
|
|
|
|
2016-11-21 18:05:46 +01:00
|
|
|
pushd roms/sgabios
|
|
|
|
%patch1200 -p1
|
|
|
|
popd
|
|
|
|
|
2017-04-12 21:10:15 +02:00
|
|
|
pushd roms/SLOF
|
|
|
|
popd
|
|
|
|
|
2017-10-16 17:47:06 +02:00
|
|
|
pushd roms/skiboot
|
|
|
|
%patch1400 -p1
|
|
|
|
%patch1401 -p1
|
2017-11-29 22:55:00 +01:00
|
|
|
%patch1402 -p1
|
2017-10-16 17:47:06 +02:00
|
|
|
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
|
|
|
|
2011-12-14 02:35:41 +01:00
|
|
|
%build
|
2016-11-16 20:50:57 +01:00
|
|
|
echo '%{version}' > roms/seabios/.version
|
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 \
|
2013-05-25 20:15:40 +02:00
|
|
|
--extra-cflags="%{optflags}" \
|
2016-07-15 17:50:58 +02:00
|
|
|
--disable-stack-protector \
|
2016-04-22 17:05:53 +02:00
|
|
|
--disable-strip \
|
2017-10-03 05:16:40 +02:00
|
|
|
--with-pkgversion="%(echo '%{distro}' | sed 's/ (.*)//')" \
|
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 \
|
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 \
|
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 \
|
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 \
|
2014-01-17 23:04:30 +01:00
|
|
|
--with-gtkabi=3.0 \
|
2017-03-29 06:22:10 +02:00
|
|
|
--disable-hax \
|
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
|
2015-04-09 15:38:04 +02:00
|
|
|
--disable-libnfs \
|
|
|
|
--enable-libssh2 \
|
|
|
|
--enable-libusb \
|
2013-05-25 20:15:40 +02:00
|
|
|
--enable-linux-aio \
|
2015-04-09 15:38:04 +02:00
|
|
|
--enable-lzo \
|
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
|
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 \
|
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
|
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 \
|
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
|
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 \
|
2016-05-31 23:05:30 +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
|
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
|
|
|
|
cp pc-bios/s390-ccw/$i pc-bios/
|
|
|
|
done
|
2017-04-12 21:10:15 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch ppc64
|
2017-05-05 17:05:43 +02:00
|
|
|
for i in %ppc64_only_default_built_firmware
|
|
|
|
do
|
|
|
|
cp pc-bios/spapr-rtas/$i pc-bios/
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
for i in %x86_default_built_firmware
|
|
|
|
do
|
|
|
|
cp pc-bios/optionrom/$i pc-bios/
|
|
|
|
done
|
|
|
|
%ifarch x86_64
|
|
|
|
for i in %x86_64_only_default_built_firmware
|
|
|
|
do
|
|
|
|
cp pc-bios/optionrom/$i pc-bios/
|
|
|
|
done
|
|
|
|
%endif
|
2017-04-12 21:10:15 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{build_x86_firmware_from_source}
|
2016-04-05 15:18:15 +02:00
|
|
|
make %{?_smp_mflags} -C roms bios
|
2017-04-12 21:10:15 +02:00
|
|
|
|
2016-04-05 15:18:15 +02:00
|
|
|
make %{?_smp_mflags} -C roms seavgabios
|
|
|
|
make %{?_smp_mflags} -C roms pxerom
|
2016-05-31 23:05:30 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
make %{?_smp_mflags} -C roms efirom
|
|
|
|
%endif
|
2016-04-05 15:18:15 +02:00
|
|
|
make -C roms sgabios
|
2017-08-31 00:22:50 +02:00
|
|
|
|
|
|
|
%if %{force_fit_virtio_pxe_rom}
|
|
|
|
pushd roms/ipxe
|
|
|
|
patch -p1 < %{SOURCE301}
|
|
|
|
popd
|
|
|
|
make %{?_smp_mflags} -C roms pxerom_variants=virtio pxerom_targets=1af41000 NO_WERROR=1 pxerom
|
|
|
|
%endif
|
|
|
|
|
2017-03-15 20:38:55 +01:00
|
|
|
# enforce pxe rom sizes for migration compatability from SLE 11 SP3 forward
|
|
|
|
# the following need to be > 64K
|
|
|
|
%define supported_nics_large {e1000 rtl8139}
|
|
|
|
# the following need to be <= 64K
|
|
|
|
%define supported_nics_small {virtio}
|
|
|
|
# Though not required, make unsupported pxe roms migration compatable as well
|
|
|
|
%define unsupported_nics {eepro100 ne2k_pci pcnet}
|
|
|
|
|
|
|
|
for i in %supported_nics_large %unsupported_nics
|
|
|
|
do
|
|
|
|
if test "`stat -c '%s' pc-bios/pxe-$i.rom`" -gt "131072" ; then
|
|
|
|
echo "pxe rom is too large"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
if test "`stat -c '%s' pc-bios/pxe-$i.rom`" -le "65536" ; then
|
|
|
|
./roms/ipxe/src/util/padimg.pl pc-bios/pxe-$i.rom -s 65536 -b 255
|
|
|
|
echo -ne "SEGMENT OVERAGE\0" >> pc-bios/pxe-$i.rom
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for i in %supported_nics_small
|
|
|
|
do
|
|
|
|
if test "`stat -c '%s' pc-bios/pxe-$i.rom`" -gt "65536" ; then
|
|
|
|
echo "pxe rom is too large"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|
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}
|
2017-12-14 01:53:24 +01:00
|
|
|
make %{?_smp_mflags} -C roms skiboot SKIBOOT_VERSION=skiboot-5.3.7 CROSS=
|
2017-10-16 17:47:06 +02:00
|
|
|
%endif
|
|
|
|
|
2015-10-08 18:14:43 +02:00
|
|
|
%if %{build_slof_from_source}
|
2016-04-05 15:18:15 +02:00
|
|
|
make %{?_smp_mflags} -C roms slof
|
2015-10-08 18:14:43 +02:00
|
|
|
%endif
|
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
|
|
|
|
|
|
|
ln -s %{_bindir}/qemu-img qemu-img
|
2016-01-19 19:31:32 +01:00
|
|
|
ln -s %{_bindir}/qemu-ga qemu-ga
|
2017-04-12 21:10:15 +02:00
|
|
|
ln -s %{_bindir}/qemu-io qemu-io
|
2016-01-19 19:31:32 +01:00
|
|
|
|
2017-04-12 21:10:15 +02:00
|
|
|
for i in %built_firmware
|
2016-01-19 19:31:32 +01:00
|
|
|
do
|
|
|
|
ln -s %{_datadir}/qemu/$i pc-bios/$i
|
|
|
|
done
|
2015-08-12 18:17:59 +02:00
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
for conf in default-configs/*-softmmu.mak; do
|
|
|
|
arch=`echo "$conf" | sed -e 's|default-configs/\(.*\)-softmmu.mak|\1|g'`
|
|
|
|
ln -s %{_bindir}/qemu-system-$arch $arch-softmmu/qemu-system-$arch
|
|
|
|
done
|
2015-08-12 18:17:59 +02:00
|
|
|
|
2015-12-01 23:04:40 +01:00
|
|
|
# Compile the QOM test binary first, so that ...
|
2017-04-12 21:10:15 +02:00
|
|
|
|
|
|
|
touch -r config-host.mak pc-bios
|
2016-08-04 15:09:24 +02:00
|
|
|
make tests/qom-test %{?_smp_mflags} V=1
|
2017-04-12 21:10:15 +02:00
|
|
|
# Firmware
|
2015-12-01 23:04:40 +01:00
|
|
|
# ... make comes in fresh and has lots of address space (needed for 32bit, bsc#957379)
|
2015-04-12 11:13:49 +02:00
|
|
|
make check-report.html V=1
|
2015-10-13 18:39:07 +02:00
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%check
|
|
|
|
%if "%{name}" == "qemu-testsuite"
|
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%ifnarch %ix86 x64_64
|
|
|
|
export QEMU_PROG=%{_bindir}/qemu-system-x86_64
|
|
|
|
%endif
|
|
|
|
export QEMU_IMG_PROG=%{_bindir}/qemu-img
|
|
|
|
export QEMU_IO_PROG=%{_bindir}/qemu-io
|
|
|
|
export QEMU_NBD_PROG=%{_bindir}/qemu-nbd
|
|
|
|
# make check-block would rebuild qemu-img and qemu-io
|
|
|
|
make tests/qemu-iotests/socket_scm_helper V=1
|
|
|
|
pushd tests/qemu-iotests
|
|
|
|
# -qcow 001 seems to hang?
|
2015-04-29 18:23:43 +02:00
|
|
|
# TODO investigate hangs and failures
|
|
|
|
#for fmt in -raw -bochs -cloop -parallels -qcow2 -qed -vdi -vpc -vhdx -vmdk; do
|
|
|
|
# ./check -v -T $fmt -file -g quick || true
|
|
|
|
#done
|
2015-04-12 11:13:49 +02:00
|
|
|
popd
|
2015-10-13 18:39:07 +02:00
|
|
|
|
|
|
|
# Create minimal gzip format file
|
|
|
|
echo "Test" > test.txt
|
|
|
|
cat test.txt | gzip - > test.gz
|
|
|
|
# Check qemu-img info output (bsc#945778)
|
|
|
|
format=`qemu-img info test.gz | grep "file format:" | cut -d ':' -f 2 | tr -d '[:space:]'`
|
|
|
|
[ "$format" == "raw" ] || false
|
|
|
|
|
|
|
|
# Create minimal tar format file
|
|
|
|
tar cf test.tar test.txt
|
|
|
|
# Check qemu-img info output (bsc#945778)
|
|
|
|
format=`qemu-img info test.tar | grep "file format:" | cut -d ':' -f 2 | tr -d '[:space:]'`
|
|
|
|
[ "$format" == "raw" ] || false
|
|
|
|
|
|
|
|
%endif # qemu-testsuite
|
2014-02-14 17:13:17 +01:00
|
|
|
|
2011-12-14 02:35: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
|
|
|
|
for f in acpi-dsdt.aml %{x86_extra_built_firmware_list} \
|
|
|
|
%{x86_64_only_extra_built_firmware_list}; do
|
|
|
|
unlink %{buildroot}%{_datadir}/%name/$f
|
2015-02-12 02:06:33 +01:00
|
|
|
done
|
|
|
|
%endif
|
2013-05-21 19:08:29 +02:00
|
|
|
%find_lang %name
|
2017-12-14 01:53:24 +01:00
|
|
|
install -D -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/qemu/bridge.conf
|
|
|
|
install -D -m 0755 %{SOURCE2} %{buildroot}/usr/share/qemu/qemu-ifup
|
2017-03-15 20:38:55 +01:00
|
|
|
install -D -p -m 0644 %{SOURCE8} %{buildroot}%{_udevrulesdir}/80-qemu-ga.rules
|
2017-12-14 01:53:24 +01:00
|
|
|
install -D -m 0755 scripts/analyze-migration.py %{buildroot}%{_bindir}/analyze-migration.py
|
|
|
|
install -D -m 0755 scripts/vmstate-static-checker.py %{buildroot}%{_bindir}/vmstate-static-checker.py
|
2017-10-26 19:10:00 +02:00
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/supportconfig/plugins
|
2017-12-14 01:53:24 +01:00
|
|
|
install -D -m 0755 %{SOURCE9} %{buildroot}%{_libexecdir}/supportconfig/plugins/qemu
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} == 0
|
|
|
|
install -D -m 0644 %{SOURCE12} %{buildroot}%{_docdir}/qemu-x86/supported.txt
|
|
|
|
install -D -m 0644 %{SOURCE13} %{buildroot}%{_docdir}/qemu-s390/supported.txt
|
|
|
|
install -D -m 0644 %{SOURCE14} %{buildroot}%{_docdir}/qemu-arm/supported.txt
|
|
|
|
install -D -m 0644 %{SOURCE15} %{buildroot}%{_docdir}/qemu-ppc/supported.txt
|
|
|
|
%endif
|
2014-05-13 10:09:26 +02:00
|
|
|
%if %{legacy_qemu_kvm}
|
2014-02-13 14:36:37 +01: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
|
2014-03-27 00:48:29 +01:00
|
|
|
exec %{_bindir}/qemu-system-s390x -machine accel=kvm "$@"
|
2014-02-13 14:36:37 +01:00
|
|
|
%else
|
2014-03-27 00:48:29 +01:00
|
|
|
exec %{_bindir}/qemu-system-x86_64 -machine accel=kvm "$@"
|
2014-02-13 14:36:37 +01:00
|
|
|
%endif
|
|
|
|
EOF
|
|
|
|
chmod 755 %{buildroot}%{_bindir}/qemu-kvm
|
2017-12-14 01:53:24 +01:00
|
|
|
install -D -m 0644 %{SOURCE5} %{buildroot}%{_mandir}/man1/qemu-kvm.1.gz
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} == 0
|
|
|
|
install -d %{buildroot}%{_docdir}/qemu-kvm
|
2017-12-14 01:53:24 +01:00
|
|
|
%ifarch s390x
|
2017-03-15 20:38:55 +01:00
|
|
|
ln -s ../qemu-s390/supported.txt %{buildroot}%{_docdir}/qemu-kvm/kvm-supported.txt
|
|
|
|
%else
|
|
|
|
ln -s ../qemu-x86/supported.txt %{buildroot}%{_docdir}/qemu-kvm/kvm-supported.txt
|
2016-06-02 20:18:10 +02:00
|
|
|
%endif
|
2016-09-19 19:06:58 +02:00
|
|
|
%endif
|
2014-05-13 10:09:26 +02:00
|
|
|
%endif
|
|
|
|
%if %{kvm_available}
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?suse_version} <= 1320
|
2017-12-14 01:53:24 +01:00
|
|
|
install -D -m 0755 %{SOURCE3} %{buildroot}%{_bindir}/kvm_stat
|
|
|
|
install -D -m 0644 %{SOURCE4} %{buildroot}%{_mandir}/man1/kvm_stat.1.gz
|
2014-02-13 14:36:37 +01: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
|
2017-12-14 01:53:24 +01:00
|
|
|
install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/qemu-ga.service
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
install -D -p -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/ksm.service
|
|
|
|
%endif
|
2016-07-15 17:50:58 +02:00
|
|
|
%ifarch s390x
|
|
|
|
install -D -m 0644 %{SOURCE10} %{buildroot}%{_libexecdir}/modules-load.d/kvm.conf
|
|
|
|
%endif
|
2017-03-15 20:38:55 +01:00
|
|
|
%fdupes -s %{buildroot}
|
2015-10-13 18:39:07 +02:00
|
|
|
|
|
|
|
%else # qemu-testsuite
|
|
|
|
|
2017-12-14 01:53:24 +01:00
|
|
|
install -D -m 0644 check-report.html %{buildroot}%{_datadir}/qemu/check-report.html
|
|
|
|
install -D -m 0644 check-report.xml %{buildroot}%{_datadir}/qemu/check-report.xml
|
2015-10-13 18:39:07 +02:00
|
|
|
|
2015-04-12 11:13:49 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{name}" != "qemu-testsuite"
|
2011-12-14 02:35:41 +01:00
|
|
|
|
2012-06-10 14:13:56 +02:00
|
|
|
%pre
|
2017-12-14 01:53:24 +01:00
|
|
|
%{_bindir}/getent group kvm >/dev/null || %{_sbindir}/groupadd -r kvm
|
|
|
|
%{_bindir}/getent group qemu >/dev/null || %{_sbindir}/groupadd -r qemu
|
2012-06-10 14:13:56 +02:00
|
|
|
%{_bindir}/getent passwd qemu >/dev/null || \
|
|
|
|
%{_sbindir}/useradd -r -g qemu -G kvm -d / -s /sbin/nologin \
|
|
|
|
-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
|
2017-12-14 01:53:24 +01:00
|
|
|
%{_bindir}/chmod 0666 /dev/kvm
|
2017-03-15 20:38:55 +01:00
|
|
|
%{_bindir}/chgrp kvm /dev/kvm
|
|
|
|
fi
|
|
|
|
%endif
|
2016-07-26 16:22:29 +02:00
|
|
|
%udev_rules_update
|
2017-03-15 20:38:55 +01:00
|
|
|
%_bindir/udevadm trigger -y kvm || :
|
2016-06-02 20:18:10 +02:00
|
|
|
%ifarch s390x
|
2016-07-26 16:22:29 +02:00
|
|
|
sysctl vm.allocate_pgste=1 || :
|
2016-06-02 20:18:10 +02:00
|
|
|
%endif
|
2016-07-26 16:22:29 +02:00
|
|
|
fi
|
2015-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
|
2017-12-14 01:53:24 +01: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
|
2017-12-14 01:53:24 +01:00
|
|
|
%{_bindir}/getent group kvm >/dev/null || %{_sbindir}/groupadd -r kvm
|
2015-11-19 14:51:50 +01:00
|
|
|
%service_add_pre qemu-ga.service
|
|
|
|
|
|
|
|
%preun guest-agent
|
|
|
|
%service_del_preun qemu-ga.service
|
|
|
|
|
|
|
|
%post guest-agent
|
|
|
|
%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
|
|
|
|
/usr/bin/systemctl start qemu-ga.service || :
|
|
|
|
fi
|
2015-11-19 14:51:50 +01:00
|
|
|
|
|
|
|
%postun guest-agent
|
|
|
|
%service_del_postun qemu-ga.service
|
|
|
|
|
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
|
|
|
|
|
2011-12-14 02:35:41 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2015-04-12 11:13:49 +02:00
|
|
|
%if "%{name}" != "qemu-testsuite"
|
2017-12-14 01:53:24 +01:00
|
|
|
%doc COPYING COPYING.LIB COPYING.PYTHON Changelog README VERSION LICENSE
|
2017-04-12 21:10:15 +02:00
|
|
|
%_docdir/%name/qemu-doc.txt
|
|
|
|
%_docdir/%name/qemu-doc.html
|
|
|
|
%_docdir/%name/qemu-qmp-ref.txt
|
|
|
|
%_docdir/%name/qemu-qmp-ref.html
|
|
|
|
%_docdir/%name/qemu-ga-ref.txt
|
|
|
|
%_docdir/%name/qemu-ga-ref.html
|
|
|
|
%_mandir/man1/qemu.1.gz
|
2017-12-14 01:53:24 +01:00
|
|
|
%_mandir/man7/qemu-block-drivers.7.gz
|
2017-04-12 21:10:15 +02:00
|
|
|
%_mandir/man7/qemu-qmp-ref.7.gz
|
|
|
|
%_mandir/man7/qemu-ga-ref.7.gz
|
2015-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-12-14 02:35:41 +01: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
|
|
|
|
%_libexecdir/supportconfig/plugins/qemu
|
2014-05-13 10:09:26 +02:00
|
|
|
%if %{kvm_available}
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?suse_version} <= 1320
|
|
|
|
%_bindir/kvm_stat
|
|
|
|
%doc %_mandir/man1/kvm_stat.1.gz
|
|
|
|
%endif
|
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
|
2014-05-13 10:09:26 +02:00
|
|
|
%_bindir/qemu-system-ppcemb
|
2014-02-24 18:02:42 +01:00
|
|
|
%_datadir/%name/ppc_rom.bin
|
|
|
|
%_datadir/%name/openbios-ppc
|
|
|
|
%_datadir/%name/slof.bin
|
|
|
|
%_datadir/%name/spapr-rtas.bin
|
2016-01-27 17:31:12 +01:00
|
|
|
%_datadir/%name/u-boot.e500
|
2014-02-24 18:02:42 +01:00
|
|
|
%_datadir/%name/bamboo.dtb
|
|
|
|
%_datadir/%name/petalogix-ml605.dtb
|
2017-03-15 20:38:55 +01:00
|
|
|
%_datadir/%name/skiboot.lid
|
2017-08-31 00:22:50 +02:00
|
|
|
%_datadir/%name/qemu_vga.ndrv
|
2017-03-15 20:38:55 +01:00
|
|
|
%if 0%{?is_opensuse} == 0
|
|
|
|
%dir %_docdir/qemu-ppc
|
|
|
|
%_docdir/qemu-ppc/supported.txt
|
|
|
|
%endif
|
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
|
|
|
|
%_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
|
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
|
2014-02-24 18:02:42 +01:00
|
|
|
%_datadir/%name/palcode-clipper
|
|
|
|
%_datadir/%name/openbios-sparc32
|
|
|
|
%_datadir/%name/openbios-sparc64
|
|
|
|
%_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
|
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
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
%_datadir/%name/acpi-dsdt.aml
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%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-pcnet.rom
|
|
|
|
%_datadir/%name/pxe-ne2k_pci.rom
|
|
|
|
%_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-pcnet.rom
|
|
|
|
%_datadir/%name/efi-ne2k_pci.rom
|
|
|
|
%_datadir/%name/efi-rtl8139.rom
|
|
|
|
%_datadir/%name/efi-virtio.rom
|
2016-09-19 19:06:58 +02:00
|
|
|
%_datadir/%name/efi-vmxnet3.rom
|
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
|
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
|
2015-11-19 14:51:50 +01:00
|
|
|
%{_unitdir}/qemu-ga.service
|
|
|
|
%{_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
|
|
|
|
|
2011-12-14 02:35:41 +01:00
|
|
|
%changelog
|