summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2021-11-30 17:40:26 +0900
committerbiao716.wang <biao716.wang@samsung.com>2021-12-01 10:30:29 +0900
commit2e2b3bbb80cf78fc832782186e4e91fd7ca3ff6f (patch)
tree0ac2511c68c747887e5dd7ef467ce20bfa3f8d21
parentdf67ced0d6d61487b478cadd367c016dde652ced (diff)
downloadqemu-2e2b3bbb80cf78fc832782186e4e91fd7ca3ff6f.tar.gz
qemu-2e2b3bbb80cf78fc832782186e4e91fd7ca3ff6f.tar.bz2
qemu-2e2b3bbb80cf78fc832782186e4e91fd7ca3ff6f.zip
Applying pathces from tizen
1. packaging: mic-bootstrap link issue 5da1458d0040b2f758b3d5cd02218e10ac8e61b7 2. Add compatibility symlinks: 6b2685ec84dc5ab8a7eee3a3eb3df36f6ab93094 3. binfmt: translate symbolic links correctly with realpath: cac56c4878d27ef636188093ba133729519cc22e Change-Id: Ic8a28dc726825ec124a0a88d95a4b07a92fe7208 Signed-off-by: biao716.wang <biao716.wang@samsung.com>
-rw-r--r--linux-user/binfmt.c28
-rw-r--r--packaging/qemu-linux-user.spec1853
-rw-r--r--packaging/qemu.spec15
3 files changed, 51 insertions, 1845 deletions
diff --git a/linux-user/binfmt.c b/linux-user/binfmt.c
index 458f136fb..cfcaa1ee6 100644
--- a/linux-user/binfmt.c
+++ b/linux-user/binfmt.c
@@ -4,10 +4,8 @@
#include <libgen.h>
#include <string.h>
#include <stdlib.h>
+#include <limits.h>
-#ifdef __x86_64__
-#define ARCH_NAME "x86_64"
-#endif
int main(int argc, char **argv, char **envp)
{
@@ -31,19 +29,22 @@ int main(int argc, char **argv, char **envp)
binfmt[0] = '\0';
/* Now argv[0] is the real qemu binary name */
-#ifdef ARCH_NAME
{
- char *hostbin;
- char *guestarch;
+ int len;
int r;
+ char buf[PATH_MAX];
+ char *hostbin;
+ char *path;
- guestarch = strrchr(argv[0], '-') ;
- if (!guestarch) {
- goto skip;
+ /* Follow symbolic link if any. */
+ path = realpath(argv[1], buf);
+ if (path == NULL) {
+ /* Error occured, falling back to original argument */
+ path = argv[1];
}
- guestarch++;
- r = asprintf(&hostbin, "/emul/" ARCH_NAME "-for-%s/%s", guestarch, argv[1]);
- if ((r > 0) && !access(hostbin, X_OK)) {
+
+ r = asprintf(&hostbin, "/emul/%s", path);
+ if (!access(hostbin, X_OK) && (r > 0)) {
/*
* We found a host binary replacement for the non-host binary. Let's
* use that instead!
@@ -51,8 +52,6 @@ int main(int argc, char **argv, char **envp)
return execve(hostbin, &argv[2], envp);
}
}
-skip:
-#endif
new_argv = (char **)malloc((argc + 2) * sizeof(*new_argv));
if (argc > 3) {
@@ -66,3 +65,4 @@ skip:
return execve(new_argv[0], new_argv, envp);
}
+
diff --git a/packaging/qemu-linux-user.spec b/packaging/qemu-linux-user.spec
index 57bf3f281..89ce22016 100644
--- a/packaging/qemu-linux-user.spec
+++ b/packaging/qemu-linux-user.spec
@@ -90,6 +90,7 @@
%define sbver 1.14.0_0_g155821a
%define srcname qemu
Name: qemu%{name_suffix}
+VCS: platform/upstream/qemu#e3afe81113f21d526acd8e0e270b3964c330d618
URL: https://www.qemu.org/
Summary: %{summary_string}
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
@@ -120,6 +121,10 @@ Source300: bundles.tar.xz
Source301: update_git.sh
Source302: config.sh
Source303: README.PACKAGING
+# Patches auto-generated by git-buildpackage:
+Patch0: 0001-fix-spec-file.patch
+Patch1: 0002-Include-If-ifarch-aarch64-in-spec-file.patch
+Patch2: 0003-revert-the-patch-from-openSUSE15.3-qemu-roms-Makefil.patch
# Upstream First -- https://wiki.qemu.org/Contribute/SubmitAPatch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -131,7 +136,7 @@ BuildRequires: meson
BuildRequires: ninja >= 1.7
BuildRequires: python3-base >= 3.6
BuildRequires: python3-setuptools
-%if "%{name}" == "qemu-linux-user"
+
BuildRequires: glib2-devel-static
BuildRequires: glibc-devel-static
BuildRequires: pcre-devel-static
@@ -147,787 +152,6 @@ 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.
-# above section is for qemu-linux-user
-# ------------------------------------------------------------------------
-%else
-%if %{build_x86_firmware_from_source}
-BuildRequires: acpica
-%endif
-BuildRequires: pkgconfig(alsa)
-%if %{build_x86_firmware_from_source}
-BuildRequires: binutils-devel
-%endif
-BuildRequires: bison
-BuildRequires: brlapi-devel
-%if %{build_x86_firmware_from_source}
-%ifnarch %{ix86} x86_64
-# We must cross-compile on non-x86*
-BuildRequires: cross-i386-binutils
-BuildRequires: cross-i386-gcc%gcc_version
-BuildRequires: cross-x86_64-binutils
-BuildRequires: cross-x86_64-gcc%gcc_version
-%endif
-%endif
-BuildRequires: pkgconfig(libcurl)
-BuildRequires: pkgconfig(libsasl2)
-%if %{build_x86_firmware_from_source}
-BuildRequires: dos2unix
-%endif
-BuildRequires: flex
-BuildRequires: pkgconfig(glib-2.0) >= 2.48
-%if %{build_x86_firmware_from_source}
-BuildRequires: glibc-devel-32bit glibc-32bit
-%endif
-BuildRequires: libaio-devel
-BuildRequires: libattr-devel
-BuildRequires: libbz2-devel
-BuildRequires: libfdt-devel >= 1.4.2
-BuildRequires: libgcrypt-devel >= 1.5.0
-BuildRequires: pkgconfig(epoxy)
-BuildRequires: pkgconfig(gbm)
-BuildRequires: pkgconfig(glusterfs-api) >= 3
-BuildRequires: pkgconfig(gnutls) >= 3.1.18
-BuildRequires: pkgconfig(gtk+-3.0) >= 3.22
-BuildRequires: pkgconfig(libcacard) >= 2.5.1
-BuildRequires: pkgconfig(libcap-ng)
-BuildRequires: pkgconfig(libdrm)
-BuildRequires: pkgconfig(libiscsi) >= 1.9.0
-BuildRequires: pkgconfig(libjpeg)
-%if 0%{?with_daxctl}
-BuildRequires: pkgconfig(libndctl)
-%endif
-BuildRequires: pkgconfig(libnfs) >= 1.9.3
-%ifnarch %arm s390x
-BuildRequires: libnuma-devel
-%endif
-BuildRequires: pkgconfig(pixman-1) >= 0.21.8
-%ifarch x86_64
-BuildRequires: pkgconfig(libpmem)
-%endif
-BuildRequires: pkgconfig(libpng)
-BuildRequires: pkgconfig(libpulse)
-%if 0%{?with_rbd}
-BuildRequires: librbd-devel
-%endif
-BuildRequires: Mesa-devel
-BuildRequires: pkgconfig(libseccomp) >= 2.3.0
-BuildRequires: pkgconfig(libssh) >= 0.8
-#Use internal slirp.
-#BuildRequires: pkgconfig(slirp) >= 4.2.0
-BuildRequires: pkgconfig(spice-server) >= 0.12.5
-%if 0%{?with_uring}
-BuildRequires: pkgconfig(liburing) >= %liburing_min_version
-%endif
-BuildRequires: lzfse-devel
-BuildRequires: multipath-tools-devel
-BuildRequires: pkgconfig
-BuildRequires: python3-Sphinx
-BuildRequires: rdma-core-devel
-BuildRequires: snappy-devel
-BuildRequires: pkgconfig(libudev)
-BuildRequires: pkgconfig(libusb-1.0) >= 1.0.13
-BuildRequires: pkgconfig(lzo2)
-BuildRequires: pkgconfig(ncurses)
-BuildRequires: pkgconfig(spice-protocol) >= 0.12.3
-BuildRequires: pkgconfig(systemd)
-BuildRequires: pkgconfig(vdeplug)
-BuildRequires: pkgconfig(xkbcommon)
-%{?systemd_ordering}
-%if %{kvm_available}
-BuildRequires: pkgconfig(udev)
-%endif
-BuildRequires: update-desktop-files
-BuildRequires: usbredir-devel >= 0.6
-BuildRequires: pkgconfig(virglrenderer) >= 0.4.1
-BuildRequires: pkgconfig(vte-2.91)
-%ifarch x86_64
-BuildRequires: xen-devel >= 4.2
-%endif
-BuildRequires: xfsprogs-devel
-%if %{build_x86_firmware_from_source}
-BuildRequires: pkgconfig(liblzma)
-%endif
-BuildRequires: pkgconfig(libzstd)
-BuildRequires: pkgconfig(zlib)
-%if "%{name}" == "qemu"
-Requires: group(kvm)
-Requires: group(qemu)
-Requires: user(qemu)
-Requires(post): coreutils
-%if %{kvm_available}
-Requires(post): acl
-Requires(post): udev
-%ifarch s390x
-Requires(post): procps
-%endif
-Recommends: kvm_stat
-%endif
-Recommends: qemu-block-curl
-Recommends: qemu-ksm = %{qemuver}
-Recommends: qemu-tools
-Recommends: qemu-ui-curses
-%ifarch s390x
-Recommends: qemu-hw-s390x-virtio-gpu-ccw
-%else
-Recommends: qemu-hw-display-qxl
-Recommends: qemu-hw-display-virtio-gpu
-Recommends: qemu-hw-display-virtio-gpu-pci
-Recommends: qemu-hw-display-virtio-vga
-Recommends: qemu-hw-usb-redirect
-Recommends: qemu-hw-usb-smartcard
-Recommends: qemu-ui-gtk
-Recommends: qemu-ui-spice-app
-%endif
-%ifarch %{ix86} x86_64
-Recommends: qemu-x86
-%else
-Suggests: qemu-x86
-%endif
-%ifarch ppc ppc64 ppc64le
-Recommends: qemu-ppc
-%else
-Suggests: qemu-ppc
-%endif
-%ifarch s390x
-Recommends: qemu-s390x
-%else
-Suggests: qemu-s390x
-%endif
-%ifarch %arm aarch64
-Recommends: qemu-arm
-%else
-Suggests: qemu-arm
-%endif
-Suggests: qemu-block-dmg
-Suggests: qemu-block-gluster
-Suggests: qemu-block-iscsi
-Suggests: qemu-block-nfs
-%if 0%{?with_rbd}
-Suggests: qemu-block-rbd
-%endif
-Suggests: qemu-block-ssh
-Suggests: qemu-chardev-baum
-Suggests: qemu-extra
-Suggests: qemu-skiboot
-Suggests: qemu-lang
-Suggests: qemu-microvm
-Suggests: qemu-vhost-user-gpu
-Obsoletes: qemu-audio-oss < %{qemuver}
-Obsoletes: qemu-audio-sdl < %{qemuver}
-Obsoletes: qemu-ui-sdl < %{qemuver}
-
-%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.
-
-%description
-%{generic_qemu_description}
-
-This package acts as an umbrella package to the other QEMU sub-packages.
-
-%package x86
-Summary: Machine emulator and virtualizer for x86 architectures
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Requires: %name = %{qemuver}
-Requires: qemu-ipxe
-Requires: qemu-seabios
-Requires: qemu-sgabios
-Requires: qemu-vgabios
-Recommends: ovmf
-Recommends: qemu-microvm
-Recommends: qemu-ovmf-x86_64
-
-%description x86
-%{generic_qemu_description}
-
-This package provides i386 and x86_64 emulation.
-
-%package ppc
-Summary: Machine emulator and virtualizer for Power architectures
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Requires: %name = %{qemuver}
-Recommends: qemu-ipxe
-Recommends: qemu-vgabios
-
-%description ppc
-%{generic_qemu_description}
-
-This package provides ppc and ppc64 emulation.
-
-%package s390x
-Summary: Machine emulator and virtualizer for S/390 architectures
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Requires: %name = %{qemuver}
-Provides: qemu-s390 = %{qemuver}
-Obsoletes: qemu-s390 < %{qemuver}
-
-%description s390x
-%{generic_qemu_description}
-
-This package provides s390x emulation.
-
-%package arm
-Summary: Machine emulator and virtualizer for ARM architectures
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Requires: %name = %{qemuver}
-Recommends: ovmf
-Recommends: qemu-ipxe
-Recommends: qemu-uefi-aarch64
-Recommends: qemu-vgabios
-
-%description arm
-%{generic_qemu_description}
-
-This package provides arm emulation.
-
-%package extra
-Summary: Machine emulator and virtualizer for "extra" architectures
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Requires: %name = %{qemuver}
-Recommends: qemu-ipxe
-Recommends: qemu-skiboot
-Recommends: qemu-vgabios
-
-%description extra
-%{generic_qemu_description}
-
-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.)
-
-%if %{legacy_qemu_kvm}
-%package kvm
-Summary: Wrapper to enable KVM acceleration under QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-%ifarch %ix86 x86_64
-Requires: qemu-x86 = %{qemuver}
-%endif
-%ifarch s390x
-Requires: qemu-s390x = %{qemuver}
-%endif
-Provides: kvm = %{qemuver}
-Obsoletes: kvm < %{qemuver}
-
-%description kvm
-%{generic_qemu_description}
-
-This package provides a symlink to the main QEMU emulator used for KVM
-virtualization. The symlink is named qemu-kvm, which causes the QEMU program
-to enable the KVM accelerator, due to the name reference ending with 'kvm'.
-This package is an artifact of the early origins of QEMU, and is deprecated.
-%endif
-
-%package lang
-Summary: Translations for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-
-%description lang
-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.
-
-# 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 \
-Conflicts: %name < %{qemuver}-%{release} \
-Conflicts: %name > %{qemuver}-%{release} \
-Conflicts: qemu-tools < %{qemuver}-%{release} \
-Conflicts: qemu-tools > %{qemuver}-%{release}
-
-%package audio-alsa
-Summary: ALSA based audio support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-%{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
-Version: %{qemuver}
-Release: 20.1
-%{qemu_module_conflicts}
-
-%description audio-pa
-This package contains a module for Pulse Audio based audio support for QEMU.
-
-%package audio-spice
-Summary: Spice based audio support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Provides: %name:%_datadir/%name/forsplits/05
-Requires: qemu-ui-spice-core
-%{qemu_module_conflicts}
-
-%description audio-spice
-This package contains a module for Spice based audio support for QEMU.
-
-%package block-curl
-Summary: cURL block support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-%{qemu_module_conflicts}
-
-%description block-curl
-This package contains a module for accessing network-based image files over
-a network connection from qemu-img tool and QEMU system emulation.
-
-%package block-dmg
-Summary: DMG block support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-%{qemu_module_conflicts}
-
-%description block-dmg
-This package contains a module for accessing Mac OS X image files from
-qemu-img tool and QEMU system emulation.
-
-%package block-gluster
-Summary: GlusterFS block support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-%{qemu_module_conflicts}
-
-%description block-gluster
-This package contains a module for accessing network-based image files over a
-GlusterFS network connection from qemu-img tool and QEMU system emulation.
-
-%package block-iscsi
-Summary: iSCSI block support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-%{qemu_module_conflicts}
-
-%description block-iscsi
-This package contains a module for accessing network-based image files over an
-iSCSI network connection from qemu-img tool and QEMU system emulation.
-
-%package block-nfs
-Summary: direct Network File System support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-%{qemu_module_conflicts}
-
-%description block-nfs
-This package contains a module for directly accessing nfs based image files
-for QEMU.
-
-%if 0%{?with_rbd}
-%package block-rbd
-Summary: Rados Block Device (Ceph) support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-%{qemu_module_conflicts}
-
-%description block-rbd
-This package contains a module for accessing ceph (rbd,rados) image files
-for QEMU.
-%endif
-
-%package block-ssh
-Summary: SSH (SFTP) block support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-%{qemu_module_conflicts}
-
-%description block-ssh
-This package contains a module for accessing network-based image files over an
-SSH network connection from qemu-img tool and QEMU system emulation.
-
-%package chardev-baum
-Summary: Baum braille chardev support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Provides: %name:%_datadir/%name/forsplits/00
-%{qemu_module_conflicts}
-
-%description chardev-baum
-This package contains a module for baum braille chardev support for QEMU.
-
-%package chardev-spice
-Summary: Spice vmc and port chardev support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Provides: %name:%_datadir/%name/forsplits/08
-Requires: qemu-ui-spice-core
-%{qemu_module_conflicts}
-
-%description chardev-spice
-This package contains a module for Spice chardev support for QEMU.
-
-%package hw-display-qxl
-Summary: QXL display support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Provides: %name:%_datadir/%name/forsplits/01
-Requires: qemu-ui-spice-core
-%{qemu_module_conflicts}
-
-%description hw-display-qxl
-This package contains a module for QXL display support for QEMU.
-
-%package hw-display-virtio-gpu
-Summary: Virtio GPU display support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Provides: %name:%_datadir/%name/forsplits/04
-%{qemu_module_conflicts}
-
-%description hw-display-virtio-gpu
-This package contains a module for Virtio GPU display support for QEMU.
-
-%package hw-display-virtio-gpu-pci
-Summary: Virtio-gpu pci device for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Requires: qemu-hw-display-virtio-gpu
-Provides: %name:%_datadir/%name/forsplits/11
-%{qemu_module_conflicts}
-
-%description hw-display-virtio-gpu-pci
-This package contains a module providing the virtio gpu pci device for QEMU.
-
-%package hw-display-virtio-vga
-Summary: Virtio vga device for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Provides: %name:%_datadir/%name/forsplits/12
-%{qemu_module_conflicts}
-
-%description hw-display-virtio-vga
-This package contains a module providing the virtio vga device for QEMU.
-
-%package hw-s390x-virtio-gpu-ccw
-Summary: S390x virtio-gpu ccw device for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Requires: qemu-hw-display-virtio-gpu
-Provides: %name:%_datadir/%name/forsplits/13
-%{qemu_module_conflicts}
-
-%description hw-s390x-virtio-gpu-ccw
-This package contains a module providing the s390x virtio gpu ccw device for
-QEMU.
-
-%package hw-usb-redirect
-Summary: USB redirection support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Provides: %name:%_datadir/%name/forsplits/02
-%{qemu_module_conflicts}
-
-%description hw-usb-redirect
-This package contains a module for USB redirection support for QEMU.
-
-%package hw-usb-smartcard
-Summary: USB smartcard support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Provides: %name:%_datadir/%name/forsplits/03
-%{qemu_module_conflicts}
-
-%description hw-usb-smartcard
-This package contains a modules for USB smartcard support for QEMU.
-
-%package ui-curses
-Summary: Curses based UI support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-%{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
-Version: %{qemuver}
-Release: 20.1
-Requires: qemu-ui-opengl
-%{qemu_module_conflicts}
-
-%description ui-gtk
-This package contains a module for doing GTK based UI for QEMU.
-
-%package ui-opengl
-Summary: OpenGL based UI support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Provides: %name:%_datadir/%name/forsplits/10
-%{qemu_module_conflicts}
-
-%description ui-opengl
-This package contains a module for doing OpenGL based UI for QEMU.
-
-%package ui-spice-app
-Summary: Spice UI support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Requires: qemu-chardev-spice
-Requires: qemu-ui-spice-core
-%{qemu_module_conflicts}
-
-%description ui-spice-app
-This package contains a module for doing Spice based UI for QEMU.
-
-%package ui-spice-core
-Summary: Core Spice support for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Provides: %name:%_datadir/%name/forsplits/09
-Requires: qemu-ui-opengl
-# This next Requires is only since virt-manager expects audio support
-Requires: qemu-audio-spice
-%{qemu_module_conflicts}
-
-%description ui-spice-core
-This package contains a module with core Spice support for QEMU.
-
-%package vhost-user-gpu
-Summary: Vhost user mode virtio-gpu 2D/3D rendering backend for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-%{qemu_module_conflicts}
-
-%description vhost-user-gpu
-This package contains a vhost user mode virtio-gpu 2D/3D rendering backend for
-QEMU.
-
-%package tools
-Summary: Tools for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Requires(pre): permissions
-Requires: group(kvm)
-Recommends: multipath-tools
-Recommends: qemu-block-curl
-%if 0%{?with_rbd}
-Recommends: qemu-block-rbd
-%endif
-
-%description tools
-This package contains various QEMU related tools, including a bridge helper,
-a virtfs helper, ivshmem, disk utilities and scripts for various purposes.
-
-%package ivshmem-tools
-Summary: Inter-VM Shared Memory Tools for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Provides: %name:%_datadir/%name/forsplits/07
-
-%description ivshmem-tools
-This package contains a sample shared memory client and server which utilize
-QEMU's Inter-VM shared memory device as specified by the ivshmem client-server
-protocol specification documented in docs/specs/ivshmem-spec.txt in QEMU source
-code.
-
-%package guest-agent
-Summary: Guest agent for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Requires: group(kvm)
-Requires(post): udev
-Supplements: modalias(acpi*:QEMU0002%3A*)
-Supplements: modalias(pci:v00005853d00000001sv*sd*bc*sc*i*)
-Supplements: modalias(pci:v0000FFFDd00000101sv*sd*bc*sc*i*)
-%{?systemd_ordering}
-
-%description guest-agent
-This package contains the QEMU guest agent. It is installed in the linux guest
-to provide information and control at the guest OS level.
-
-%ifarch %{build_rom_arch}
-%package microvm
-Summary: x86 MicroVM firmware for QEMU
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-BuildArch: noarch
-
-%description microvm
-This package provides minimal x86 firmware for booting certain guests under
-QEMU. qboot provides the minimum resources needed to boot PVH and bzImages.
-bios-microvm, created from a minimal seabios configuration, provides slightly
-wider support than qboot, but still focuses on quick boot up.
-
-%package seabios
-Summary: x86 Legacy BIOS for QEMU
-Group: System/Emulators/PC
-Version: %{sbver}
-Release: 20.1
-BuildArch: noarch
-Conflicts: %name < 1.6.0
-
-%description seabios
-SeaBIOS is an open source implementation of a 16bit x86 BIOS. SeaBIOS
-is the default and legacy BIOS for QEMU.
-
-%package vgabios
-Summary: VGA BIOSes for QEMU
-Group: System/Emulators/PC
-Version: %{sbver}
-Release: 20.1
-BuildArch: noarch
-Conflicts: %name < 1.6.0
-
-%description vgabios
-VGABIOS provides the video ROM BIOSes for the following variants of VGA
-emulated devices: Std VGA, QXL, Cirrus CLGD 5446 and VMware emulated
-video card. For use with QEMU.
-
-%package sgabios
-Summary: Serial Graphics Adapter BIOS for QEMU
-Group: System/Emulators/PC
-Version: 8
-Release: 20.1
-BuildArch: noarch
-Conflicts: %name < 1.6.0
-
-%description sgabios
-The Google Serial Graphics Adapter BIOS or SGABIOS provides a means for legacy
-x86 software to communicate with an attached serial console as if a video card
-were attached. For use with QEMU.
-
-%package ipxe
-Summary: PXE ROMs for QEMU NICs
-Group: System/Emulators/PC
-Version: 1.0.0+
-Release: 20.1
-BuildArch: noarch
-Conflicts: %name < 1.6.0
-
-%description ipxe
-Provides Preboot Execution Environment (PXE) ROM support for various emulated
-network adapters available with QEMU.
-%endif
-
-%package skiboot
-Summary: OPAL firmware (aka skiboot), used in booting OpenPOWER systems
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-BuildArch: noarch
-Requires(post): update-alternatives
-Requires(postun):update-alternatives
-Provides: %name:%_datadir/%name/forsplits/06
-
-%description skiboot
-Provides OPAL (OpenPower Abstraction Layer) firmware, aka skiboot, as
-traditionally packaged with QEMU.
-
-%package ksm
-Summary: Kernel Samepage Merging services
-Group: System/Emulators/PC
-Version: %{qemuver}
-Release: 20.1
-Requires(pre): coreutils
-Requires(post): coreutils
-
-%description ksm
-Kernel Samepage Merging (KSM) is a memory-saving de-duplication feature, that
-merges anonymous (private) pages (not pagecache ones).
-
-This package provides a service file for starting and stopping KSM.
-
-# above section is for qemu
-%else
-BuildRequires: bc
-BuildRequires: qemu-arm = %{qemuver}
-BuildRequires: qemu-audio-alsa = %{qemuver}
-BuildRequires: qemu-audio-pa = %{qemuver}
-BuildRequires: qemu-audio-spice = %{qemuver}
-BuildRequires: qemu-block-curl = %{qemuver}
-BuildRequires: qemu-block-dmg = %{qemuver}
-BuildRequires: qemu-block-gluster = %{qemuver}
-BuildRequires: qemu-block-iscsi = %{qemuver}
-BuildRequires: qemu-block-nfs = %{qemuver}
-%if 0%{?with_rbd}
-BuildRequires: qemu-block-rbd = %{qemuver}
-%endif
-BuildRequires: qemu-block-ssh = %{qemuver}
-BuildRequires: qemu-chardev-baum = %{qemuver}
-BuildRequires: qemu-chardev-spice = %{qemuver}
-BuildRequires: qemu-extra = %{qemuver}
-BuildRequires: qemu-guest-agent = %{qemuver}
-BuildRequires: qemu-hw-display-qxl = %{qemuver}
-BuildRequires: qemu-hw-display-virtio-gpu = %{qemuver}
-BuildRequires: qemu-hw-usb-redirect = %{qemuver}
-BuildRequires: qemu-hw-usb-smartcard = %{qemuver}
-BuildRequires: qemu-ipxe = 1.0.0+
-BuildRequires: qemu-ivshmem-tools = %{qemuver}
-BuildRequires: qemu-ksm = %{qemuver}
-BuildRequires: qemu-lang = %{qemuver}
-BuildRequires: qemu-ppc = %{qemuver}
-BuildRequires: qemu-s390x = %{qemuver}
-BuildRequires: qemu-seabios = %{sbver}
-BuildRequires: qemu-sgabios = 8
-BuildRequires: qemu-skiboot = %{qemuver}
-BuildRequires: qemu-tools = %{qemuver}
-BuildRequires: qemu-ui-curses = %{qemuver}
-BuildRequires: qemu-ui-gtk = %{qemuver}
-BuildRequires: qemu-ui-opengl = %{qemuver}
-BuildRequires: qemu-ui-spice-app = %{qemuver}
-BuildRequires: qemu-ui-spice-core = %{qemuver}
-BuildRequires: qemu-vgabios = %{sbver}
-BuildRequires: qemu-x86 = %{qemuver}
-
-%description
-This package records qemu testsuite results and represents successful testing.
-
-# above section is for qemu-testsuite
-%endif
-# above section is for qemu and qemu-testsuite
-%endif
-
-# ========================================================================
-
%prep
%setup -q -n %{srcname}-%{expand:%%(SV=%{srcver};echo ${SV%%%%+git*})}
@@ -956,139 +180,6 @@ cd %blddir
--disable-fuzzing \
--disable-stack-protector \
--disable-strip \
-%if "%{name}" != "qemu-linux-user"
- --with-pkgversion="%(echo '%{distro}' | sed 's/ (.*)//')" \
- --with-default-devices \
- --enable-system --disable-linux-user \
- --enable-tools --enable-guest-agent \
- --enable-modules \
- --disable-module-upgrades \
- --enable-slirp=git \
- --enable-pie \
- --enable-docs \
- --audio-drv-list="pa alsa" \
- --enable-attr \
- --disable-auth-pam \
- --enable-bochs \
- --enable-brlapi \
- --enable-bzip2 \
- --enable-cap-ng \
- --disable-capstone \
- --enable-cloop \
- --enable-coroutine-pool \
- --disable-crypto-afalg \
- --enable-curl \
- --enable-curses \
- --enable-dmg \
- --enable-fdt \
- --enable-gcrypt \
- --enable-glusterfs \
- --enable-gnutls \
- --enable-gtk \
- --disable-hax \
- --disable-hvf \
- --enable-iconv \
- --disable-jemalloc \
-%if %{kvm_available}
- --enable-kvm \
-%else
- --disable-kvm \
-%endif
-%if 0%{?with_daxctl}
- --enable-libdaxctl \
-%else
- --disable-libdaxctl \
-%endif
- --enable-libiscsi \
- --enable-libnfs \
-%ifarch x86_64
- --enable-libpmem \
-%else
- --disable-libpmem \
-%endif
- --enable-libssh \
- --enable-libusb \
- --disable-libxml2 \
- --enable-linux-aio \
-%if 0%{?with_uring}
- --enable-linux-io-uring \
-%else
- --disable-linux-io-uring \
-%endif
- --enable-lzfse \
- --enable-lzo \
- --disable-malloc-trim \
-%if %{with system_membarrier}
- --enable-membarrier \
-%else
- --disable-membarrier \
-%endif
- --enable-mpath \
- --disable-netmap \
- --disable-nettle \
-%ifarch %arm s390x
- --disable-numa \
-%else
- --enable-numa \
-%endif
- --enable-opengl \
- --enable-parallels \
- --disable-plugins \
- --enable-pvrdma \
- --enable-qcow1 \
- --enable-qed \
-%if 0%{?with_rbd}
- --enable-rbd \
-%else
- --disable-rbd \
-%endif
- --enable-rdma \
- --enable-replication \
- --disable-safe-stack \
- --disable-sanitizers \
- --disable-sdl \
- --disable-sdl-image \
- --enable-seccomp \
- --enable-sheepdog \
- --enable-smartcard \
- --enable-snappy \
- --enable-spice \
- --disable-tcmalloc \
- --enable-tpm \
- --enable-usb-redir \
- --enable-vde \
- --enable-vdi \
- --enable-vhost-crypto \
- --enable-vhost-kernel \
- --enable-vhost-net \
- --enable-vhost-scsi \
- --enable-vhost-user \
- --enable-vhost-user-blk-server \
- --enable-vhost-user-fs \
- --enable-vhost-vdpa \
- --enable-vhost-vsock \
- --enable-virglrenderer \
- --enable-virtfs \
- --enable-vnc \
- --enable-vnc-jpeg \
- --enable-vnc-png \
- --enable-vnc-sasl \
- --enable-vte \
- --enable-vvfat \
- --enable-werror \
- --disable-whpx \
- --enable-zstd \
-%ifarch x86_64
- --enable-xen \
- --enable-xen-pci-passthrough \
-%else
- --disable-xen \
-%endif
- --enable-xfsctl \
- --enable-xkbcommon \
-# above section is for qemu and qemu-testsuite
-# ------------------------------------------------------------------------
-%else
--without-default-devices \
--disable-system --enable-linux-user \
--disable-tools --disable-guest-agent \
@@ -1134,174 +225,7 @@ cd %blddir
--disable-vhost-vsock \
--disable-vnc \
--disable-vvfat \
- --disable-xkbcommon \
-
-# above section is for qemu-linux-user
-%endif
-
-%if "%{name}" == "qemu"
-
-# delete the firmware files that we intend to build
-for i in %built_firmware
-do
- unlink %srcdir/pc-bios/$i
-done
-
-make %{?_smp_mflags} V=1
-
-# Firmware
-
-%ifarch s390x
-for i in %s390x_default_built_firmware
-do
- cp pc-bios/s390-ccw/$i %srcdir/pc-bios/
-done
-%endif
-
-%ifarch ppc64
-for i in %ppc64_only_default_built_firmware
-do
- cp pc-bios/spapr-rtas/$i %srcdir/pc-bios/
-done
-%endif
-
-%ifarch %ix86 x86_64
-for i in %x86_default_built_firmware
-do
- cp pc-bios/optionrom/$i %srcdir/pc-bios/
-done
-%ifarch x86_64
-for i in %x86_64_only_default_built_firmware
-do
- cp pc-bios/optionrom/$i %srcdir/pc-bios/
-done
-%endif
-%endif
-
-%if %{build_x86_firmware_from_source}
-%ifnarch %{ix86} x86_64
-export CC=x86_64-suse-linux-gcc
-export LD=x86_64-suse-linux-ld
-%endif
-
-make %{?_smp_mflags} -C %srcdir/roms bios \
- SEABIOS_EXTRAVERSION="-rebuilt.opensuse.org" \
-%ifnarch %ix86 x86_64
- HOSTCC=cc \
-%endif
-
-make %{?_smp_mflags} -C %srcdir/roms qboot
-
-make %{?_smp_mflags} -C %srcdir/roms seavgabios \
-%ifnarch %ix86 x86_64
- HOSTCC=cc \
-%endif
-
-make %{?_smp_mflags} -C %srcdir/roms seavgabios-ati \
-%ifnarch %ix86 x86_64
- HOSTCC=cc \
-%endif
-
-make %{?_smp_mflags} -C %srcdir/roms pxerom
-
-%ifnarch %ix86
-make %{?_smp_mflags} -C %srcdir/roms efirom \
- EDK2_BASETOOLS_OPTFLAGS='-fPIE'
-%endif
-
-make -C %srcdir/roms sgabios \
- HOSTCC=cc
-
-%if %{force_fit_virtio_pxe_rom}
-pushd %srcdir
-patch -p1 < %_sourcedir/stub-out-the-SAN-req-s-in-int13.patch
-popd
-make %{?_smp_mflags} -C %srcdir/roms pxerom_variants=virtio pxerom_targets=1af41000 pxerom
-%endif
-
-# 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' %srcdir/pc-bios/pxe-$i.rom`" -gt "131072" ; then
- echo "pxe rom is too large"
- exit 1
- fi
- if test "`stat -c '%s' %srcdir/pc-bios/pxe-$i.rom`" -le "65536" ; then
- ./%srcdir/roms/ipxe/src/util/padimg.pl %srcdir/pc-bios/pxe-$i.rom -s 65536 -b 255
- echo -ne "SEGMENT OVERAGE\0" >> %srcdir/pc-bios/pxe-$i.rom
- fi
-done
-for i in %supported_nics_small
- do
- if test "`stat -c '%s' %srcdir/pc-bios/pxe-$i.rom`" -gt "65536" ; then
- echo "pxe rom is too large"
- exit 1
- fi
-done
-%ifnarch %{ix86} x86_64
-unset CC
-unset LD
-%endif
-%endif
-
-%if %{build_skiboot_from_source}
-make %{?_smp_mflags} -C %srcdir/roms skiboot CROSS=
-%endif
-
-%if %{build_slof_from_source}
-make %{?_smp_mflags} -C %srcdir/roms slof
-%endif
-
-%if %{build_opensbi_from_source}
-make %{?_smp_mflags} -C %srcdir/roms opensbi64-generic CROSS_COMPILE=
-%endif
-
-# above section is for qemu
-%endif
-# ------------------------------------------------------------------------
-%if "%{name}" == "qemu-testsuite"
-
-# TODO: Some of these are actually overwritten during the following make's
-ln -s %_bindir/qemu-img qemu-img
-ln -s %_bindir/qemu-ga qemu-ga
-ln -s %_bindir/qemu-io qemu-io
-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 qemu-pr-helper
-ln -s %_libexecdir/virtfs-proxy-helper fsdev/virtfs-proxy-helper
-
-for i in %firmware
-do
- unlink pc-bios/$i
- ln -s %_datadir/qemu/$i pc-bios/$i
-done
-
-for conf in %{_builddir}/%buildsubdir/default-configs/targets/*-softmmu.mak; do
- arch=`echo "$conf" | sed -e 's|%{_builddir}/%buildsubdir/default-configs/targets/\(.*\)-softmmu.mak|\1|g'`
- if $(unlink $arch-softmmu/qemu-system-$arch); then
- ln -s %_bindir/qemu-system-$arch $arch-softmmu/qemu-system-$arch
- fi
-done
-
-# Compile the QOM test binary first, so that ...
-make %{?_smp_mflags} tests/qtest/qom-test V=1
-# ... make comes in fresh and has lots of address space (needed for 32bit, bsc#957379)
-make %{?_smp_mflags} check-report.tap V=1
-
-%endif
-# ------------------------------------------------------------------------
-%if "%{name}" == "qemu-linux-user"
+ --disable-xkbcommon
make %{?_smp_mflags} V=1
@@ -1330,44 +254,17 @@ make %{?_smp_mflags} V=1
%define qemu_arch s390x
%endif
-%endif
-
-# ========================================================================
-
%check
-cd %blddir
-%if "%{name}" == "qemu-testsuite"
-
-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
-make %{?_smp_mflags} check-block V=1
-
-%endif
-# ------------------------------------------------------------------------
-%if "%{name}" == "qemu-linux-user"
-
-%endif
-
-# ========================================================================
%install
cd %blddir
-%if "%{name}" == "qemu-testsuite"
-
-install -D -m 0644 check-report.tap %{buildroot}%_datadir/qemu/check-report.tap
-
-%endif
-# ------------------------------------------------------------------------
-%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
+
ln -s qemu-binfmt %{buildroot}%_bindir/qemu-aarch64-binfmt
ln -s qemu-binfmt %{buildroot}%_bindir/qemu-aarch64_be-binfmt
ln -s qemu-binfmt %{buildroot}%_bindir/qemu-alpha-binfmt
@@ -1401,724 +298,28 @@ ln -s qemu-binfmt %{buildroot}%_bindir/qemu-sparc64-binfmt
ln -s qemu-binfmt %{buildroot}%_bindir/qemu-x86_64-binfmt
ln -s qemu-binfmt %{buildroot}%_bindir/qemu-xtensa-binfmt
ln -s qemu-binfmt %{buildroot}%_bindir/qemu-xtensaeb-binfmt
-%fdupes -s %{buildroot}
-
-%endif
-# ------------------------------------------------------------------------
-%if "%{name}" == "qemu"
-
-make %{?_smp_mflags} install DESTDIR=%{buildroot}
-%ifarch %{build_rom_arch}
-install -D -m 0644 %{SOURCE14} %{buildroot}%_datadir/%name/firmware/50-seabios-256k.json
-install -D -m 0644 %{SOURCE15} %{buildroot}%_datadir/%name/firmware/60-seabios-128k.json
-%else
-for f in %{x86_extra_firmware} \
- %{x86_64_only_extra_firmware}; do
- unlink %{buildroot}%_datadir/%name/$f
-done
-%endif
-%find_lang %name
-install -d -m 0755 %{buildroot}%_datadir/%name/firmware
-install -d -m 0755 %{buildroot}%_libexecdir/supportconfig/plugins
-install -d -m 0755 %{buildroot}%_sysconfdir/%name/firmware
-install -D -m 0644 %{SOURCE4} %{buildroot}%_sysconfdir/%name/bridge.conf
-install -D -m 0755 %{SOURCE3} %{buildroot}%_datadir/%name/qemu-ifup
-install -D -p -m 0644 %{SOURCE8} %{buildroot}/usr/lib/udev/rules.d/80-qemu-ga.rules
-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
-install -D -m 0644 %{SOURCE10} %{buildroot}%_docdir/qemu-arm/supported.txt
-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-s390x/supported.txt
-%if %{legacy_qemu_kvm}
-install -D -m 0644 %{SOURCE5} %{buildroot}%_mandir/man1/qemu-kvm.1.gz
-install -d %{buildroot}%_docdir/qemu-kvm
-%ifarch s390x
-ln -s qemu-system-s390x %{buildroot}%_bindir/qemu-kvm
-ln -s ../qemu-s390x/supported.txt %{buildroot}%_docdir/qemu-kvm/kvm-supported.txt
-rst2html --exit-status=2 %{buildroot}%_docdir/qemu-s390x/supported.txt %{buildroot}%_docdir/qemu-kvm/kvm-supported.html
-%else
-ln -s qemu-system-x86_64 %{buildroot}%_bindir/qemu-kvm
-ln -s ../qemu-x86/supported.txt %{buildroot}%_docdir/qemu-kvm/kvm-supported.txt
-rst2html --exit-status=2 %{buildroot}%_docdir/qemu-x86/supported.txt %{buildroot}%_docdir/qemu-kvm/kvm-supported.html
-%endif
-%endif
-%if %{kvm_available}
-install -D -m 0644 %{SOURCE1} %{buildroot}/usr/lib/udev/rules.d/80-kvm.rules
-%endif
-install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/qemu-ga@.service
-install -D -p -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/ksm.service
-%ifarch s390x
-install -D -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/modules-load.d/kvm.conf
-%endif
-
-# We rely on a separate project / package to provide edk2 firmware
-unlink %{buildroot}%_datadir/%name/edk2-licenses.txt
-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
-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-x86_64-code.fd
-unlink %{buildroot}%_datadir/%name/edk2-x86_64-secure-code.fd
-
-# this was never meant for customer consumption - delete even though installed
-unlink %{buildroot}%_bindir/elf2dmp
-
-# in support of update-alternatives
-mv %{buildroot}%_datadir/%name/skiboot.lid %{buildroot}%_datadir/%name/skiboot.lid.qemu
-# create a dummy target for /etc/alternatives/skiboot.lid
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-ln -s -f %{_sysconfdir}/alternatives/skiboot.lid %{buildroot}%{_datadir}/%name/skiboot.lid
-
-install -D -m 0644 %{SOURCE201} %{buildroot}%_datadir/%name/forsplits/pkg-split.txt
-for X in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16
+#from tizen patches: Add compatibility symlinks
+ln -sf qemu-aarch64 %{buildroot}%_bindir/qemu-aarch64-static
+ln -sf qemu-arm %{buildroot}%_bindir/qemu-arm-static
+ln -sf qemu-aarch64-binfmt %{buildroot}%_bindir/qemu-arm64-binfmt
+ln -sf qemu-aarch64 %{buildroot}%_bindir/qemu-arm64
+
+mkdir -p %{buildroot}/qemu
+for arch in arm{,64} aarch64;
do
- ln -s pkg-split.txt %{buildroot}%_datadir/%name/forsplits/$X
+ ln -sf %{_bindir}/qemu-$arch %{buildroot}/qemu/qemu-$arch
+ ln -sf %{_bindir}/qemu-$arch-binfmt %{buildroot}/qemu/qemu-$arch-binfmt
done
-%suse_update_desktop_file qemu
-%fdupes -s %{buildroot}
-
-# ========================================================================
-
-%if %{kvm_available}
-%post
-# 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
- setfacl --remove-all /dev/kvm &> /dev/null || :
-%ifarch s390x
- if [ -c /dev/kvm ]; then
- %_bindir/chmod 0666 /dev/kvm
- %_bindir/chgrp kvm /dev/kvm
- fi
-%endif
- %udev_rules_update
- %_bindir/udevadm trigger -y kvm || :
-%ifarch s390x
- sysctl vm.allocate_pgste=1 || :
-%endif
-fi
-%endif
-
-%post tools
-%set_permissions %_libexecdir/qemu-bridge-helper
-
-%verifyscript tools
-%verify_permissions %_libexecdir/qemu-bridge-helper
-
-%pre guest-agent
-%service_add_pre qemu-ga@.service
-
-%post guest-agent
-%service_add_post qemu-ga@.service
-if [ -e /dev/virtio-ports/org.qemu.guest_agent.0 ]; then
- /usr/bin/systemctl start qemu-ga@virtio\\x2dports-org.qemu.guest_agent.0.service || :
-fi
-
-%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
-
-%postun guest-agent
-%service_del_postun_without_restart qemu-ga@.service
-if [ "$1" = "1" ] ; then
- if [ -e /dev/virtio-ports/org.qemu.guest_agent.0 ]; then
- /usr/bin/systemctl restart qemu-ga@virtio\\x2dports-org.qemu.guest_agent.0.service || :
- fi
-fi
-
-%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
-
-%post skiboot
-update-alternatives --install \
- %{_datadir}/%name/skiboot.lid skiboot.lid %{_datadir}/%name/skiboot.lid.qemu 15
-
-%postun skiboot
-if [ ! -f %{_datadir}/%name/skiboot.lid.qemu ] ; then
- update-alternatives --remove skiboot.lid %{_datadir}/%name/skiboot.lid.qemu
-fi
-
-# above section is for qemu
-%endif
+%fdupes -s %{buildroot}
-# ========================================================================
+%clean
+rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc README.rst VERSION
%license COPYING COPYING.LIB LICENSE
-
-%if "%{name}" == "qemu"
-%dir %_datadir/icons/hicolor
-%dir %_datadir/icons/hicolor/*/
-%dir %_datadir/icons/hicolor/*/apps
-%_datadir/applications/qemu.desktop
-%_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
-%dir %_datadir/%name
-%dir %_datadir/%name/firmware
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/14
-%_datadir/%name/forsplits/15
-%_datadir/%name/forsplits/16
-%_datadir/%name/forsplits/pkg-split.txt
-%_datadir/%name/keymaps
-%_datadir/%name/qemu-ifup
-%_datadir/%name/qemu-nsis.bmp
-%_datadir/%name/trace-events-all
-%dir %_datadir/%name/vhost-user
-%_datadir/%name/vhost-user/50-qemu-virtiofsd.json
-%dir %_docdir/%name/interop
-%dir %_docdir/%name/interop/_static
-%dir %_docdir/%name/specs
-%dir %_docdir/%name/specs/_static
-%dir %_docdir/%name/system
-%dir %_docdir/%name/system/_static
-%dir %_docdir/%name/system/arm
-%dir %_docdir/%name/system/i386
-%dir %_docdir/%name/system/s390x
-%dir %_docdir/%name/tools
-%dir %_docdir/%name/tools/_static
-%dir %_docdir/%name/user
-%dir %_docdir/%name/user/_static
-%_docdir/%name/index.html
-%_docdir/%name/interop/.buildinfo
-%_docdir/%name/interop/_static/*
-%_docdir/%name/interop/bitmaps.html
-%_docdir/%name/interop/dbus.html
-%_docdir/%name/interop/dbus-vmstate.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/qemu-ga-ref.html
-%_docdir/%name/interop/qemu-qmp-ref.html
-%_docdir/%name/interop/search.html
-%_docdir/%name/interop/searchindex.js
-%_docdir/%name/interop/vhost-user.html
-%_docdir/%name/interop/vhost-user-gpu.html
-%_docdir/%name/interop/vhost-vdpa.html
-%_docdir/%name/specs/.buildinfo
-%_docdir/%name/specs/_static/*
-%_docdir/%name/specs/acpi_hest_ghes.html
-%_docdir/%name/specs/acpi_hw_reduced_hotplug.html
-%_docdir/%name/specs/genindex.html
-%_docdir/%name/specs/index.html
-%_docdir/%name/specs/objects.inv
-%_docdir/%name/specs/ppc-spapr-numa.html
-%_docdir/%name/specs/ppc-spapr-xive.html
-%_docdir/%name/specs/ppc-xive.html
-%_docdir/%name/specs/search.html
-%_docdir/%name/specs/searchindex.js
-%_docdir/%name/specs/tpm.html
-%_docdir/%name/system/.buildinfo
-%_docdir/%name/system/_static/*
-%_docdir/%name/system/arm/aspeed.html
-%_docdir/%name/system/arm/collie.html
-%_docdir/%name/system/arm/cpu-features.html
-%_docdir/%name/system/arm/digic.html
-%_docdir/%name/system/arm/gumstix.html
-%_docdir/%name/system/arm/integratorcp.html
-%_docdir/%name/system/arm/mps2.html
-%_docdir/%name/system/arm/musca.html
-%_docdir/%name/system/arm/musicpal.html
-%_docdir/%name/system/arm/nseries.html
-%_docdir/%name/system/arm/nuvoton.html
-%_docdir/%name/system/arm/orangepi.html
-%_docdir/%name/system/arm/palm.html
-%_docdir/%name/system/arm/raspi.html
-%_docdir/%name/system/arm/realview.html
-%_docdir/%name/system/arm/sbsa.html
-%_docdir/%name/system/arm/stellaris.html
-%_docdir/%name/system/arm/sx1.html
-%_docdir/%name/system/arm/versatile.html
-%_docdir/%name/system/arm/vexpress.html
-%_docdir/%name/system/arm/virt.html
-%_docdir/%name/system/arm/xlnx-versal-virt.html
-%_docdir/%name/system/arm/xscale.html
-%_docdir/%name/system/build-platforms.html
-%_docdir/%name/system/cpu-hotplug.html
-%_docdir/%name/system/deprecated.html
-%_docdir/%name/system/gdb.html
-%_docdir/%name/system/genindex.html
-%_docdir/%name/system/i386/microvm.html
-%_docdir/%name/system/i386/pc.html
-%_docdir/%name/system/images.html
-%_docdir/%name/system/index.html
-%_docdir/%name/system/invocation.html
-%_docdir/%name/system/ivshmem.html
-%_docdir/%name/system/keys.html
-%_docdir/%name/system/license.html
-%_docdir/%name/system/linuxboot.html
-%_docdir/%name/system/managed-startup.html
-%_docdir/%name/system/monitor.html
-%_docdir/%name/system/mux-chardev.html
-%_docdir/%name/system/net.html
-%_docdir/%name/system/objects.inv
-%_docdir/%name/system/pr-manager.html
-%_docdir/%name/system/qemu-block-drivers.html
-%_docdir/%name/system/qemu-cpu-models.html
-%_docdir/%name/system/qemu-manpage.html
-%_docdir/%name/system/quickstart.html
-%_docdir/%name/system/s390x/3270.html
-%_docdir/%name/system/s390x/bootdevices.html
-%_docdir/%name/system/s390x/css.html
-%_docdir/%name/system/s390x/protvirt.html
-%_docdir/%name/system/s390x/vfio-ap.html
-%_docdir/%name/system/s390x/vfio-ccw.html
-%_docdir/%name/system/search.html
-%_docdir/%name/system/searchindex.js
-%_docdir/%name/system/security.html
-%_docdir/%name/system/target-arm.html
-%_docdir/%name/system/target-avr.html
-%_docdir/%name/system/target-i386.html
-%_docdir/%name/system/target-m68k.html
-%_docdir/%name/system/target-mips.html
-%_docdir/%name/system/target-ppc.html
-%_docdir/%name/system/target-rx.html
-%_docdir/%name/system/target-s390x.html
-%_docdir/%name/system/target-sparc64.html
-%_docdir/%name/system/target-sparc.html
-%_docdir/%name/system/target-xtensa.html
-%_docdir/%name/system/targets.html
-%_docdir/%name/system/tls.html
-%_docdir/%name/system/usb.html
-%_docdir/%name/system/virtio-net-failover.html
-%_docdir/%name/system/virtio-pmem.html
-%_docdir/%name/system/vnc-security.html
-%_docdir/%name/tools/.buildinfo
-%_docdir/%name/tools/_static/*
-%_docdir/%name/tools/genindex.html
-%_docdir/%name/tools/index.html
-%_docdir/%name/tools/objects.inv
-%_docdir/%name/tools/qemu-img.html
-%_docdir/%name/tools/qemu-nbd.html
-%_docdir/%name/tools/qemu-pr-helper.html
-%_docdir/%name/tools/qemu-trace-stap.html
-%_docdir/%name/tools/search.html
-%_docdir/%name/tools/searchindex.js
-%_docdir/%name/tools/virtfs-proxy-helper.html
-%_docdir/%name/tools/virtiofsd.html
-%_docdir/%name/user/.buildinfo
-%_docdir/%name/user/_static/*
-%_docdir/%name/user/genindex.html
-%_docdir/%name/user/index.html
-%_docdir/%name/user/main.html
-%_docdir/%name/user/objects.inv
-%_docdir/%name/user/search.html
-%_docdir/%name/user/searchindex.js
-%dir %_libexecdir/supportconfig
-%dir %_libexecdir/supportconfig/plugins
-%_libexecdir/supportconfig/plugins/%name
-%_mandir/man1/%name.1.gz
-%_mandir/man1/virtiofsd.1.gz
-%_mandir/man7/qemu-block-drivers.7.gz
-%_mandir/man7/qemu-cpu-models.7.gz
-%_mandir/man7/qemu-qmp-ref.7.gz
-%_mandir/man7/qemu-ga-ref.7.gz
-%dir %_sysconfdir/%name
-%dir %_sysconfdir/%name/firmware
-%if %{kvm_available}
-%ifarch s390x
-%{_prefix}/lib/modules-load.d/kvm.conf
-%endif
-/usr/lib/udev/rules.d/80-kvm.rules
-%endif
-
-%files x86
-%defattr(-, root, root)
-%_bindir/qemu-system-i386
-%_bindir/qemu-system-x86_64
-%_datadir/%name/kvmvapic.bin
-%_datadir/%name/linuxboot.bin
-%_datadir/%name/linuxboot_dma.bin
-%_datadir/%name/multiboot.bin
-%_datadir/%name/pvh.bin
-%dir %_docdir/qemu-x86
-%_docdir/qemu-x86/supported.txt
-
-%files ppc
-%defattr(-, root, root)
-%_bindir/qemu-system-ppc
-%_bindir/qemu-system-ppc64
-%_datadir/%name/bamboo.dtb
-%_datadir/%name/canyonlands.dtb
-%_datadir/%name/openbios-ppc
-%_datadir/%name/qemu_vga.ndrv
-%_datadir/%name/slof.bin
-%_datadir/%name/u-boot.e500
-%_datadir/%name/u-boot-sam460-20100605.bin
-%dir %_docdir/qemu-ppc
-%_docdir/qemu-ppc/supported.txt
-
-%files s390x
-%defattr(-, root, root)
-%_bindir/qemu-system-s390x
-%_datadir/%name/s390-ccw.img
-%_datadir/%name/s390-netboot.img
-%dir %_docdir/qemu-s390x
-%_docdir/qemu-s390x/supported.txt
-
-%files arm
-%defattr(-, root, root)
-%_bindir/qemu-system-arm
-%_bindir/qemu-system-aarch64
-%_datadir/%name/npcm7xx_bootrom.bin
-%dir %_docdir/qemu-arm
-%_docdir/qemu-arm/supported.txt
-
-%files extra
-%defattr(-, root, root)
-%_bindir/qemu-system-alpha
-%_bindir/qemu-system-avr
-%_bindir/qemu-system-cris
-%_bindir/qemu-system-hppa
-%_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
-%_bindir/qemu-system-nios2
-%_bindir/qemu-system-or1k
-%_bindir/qemu-system-riscv32
-%_bindir/qemu-system-riscv64
-%_bindir/qemu-system-rx
-%_bindir/qemu-system-sh4
-%_bindir/qemu-system-sh4eb
-%_bindir/qemu-system-sparc
-%_bindir/qemu-system-sparc64
-%_bindir/qemu-system-tricore
-%_bindir/qemu-system-xtensa
-%_bindir/qemu-system-xtensaeb
-%_datadir/%name/hppa-firmware.img
-%_datadir/%name/openbios-sparc32
-%_datadir/%name/openbios-sparc64
-%_datadir/%name/opensbi-riscv32-generic-fw_dynamic.bin
-%_datadir/%name/opensbi-riscv32-generic-fw_dynamic.elf
-%_datadir/%name/opensbi-riscv64-generic-fw_dynamic.bin
-%_datadir/%name/opensbi-riscv64-generic-fw_dynamic.elf
-%_datadir/%name/palcode-clipper
-%_datadir/%name/petalogix-ml605.dtb
-%_datadir/%name/petalogix-s3adsp1800.dtb
-%_datadir/%name/QEMU,cgthree.bin
-%_datadir/%name/QEMU,tcx.bin
-
-%if %{legacy_qemu_kvm}
-%files kvm
-%defattr(-,root,root)
-%_bindir/qemu-kvm
-%dir %_docdir/qemu-kvm
-%_docdir/qemu-kvm/kvm-supported.html
-%_docdir/qemu-kvm/kvm-supported.txt
-%_mandir/man1/qemu-kvm.1.gz
-%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
-
-%files audio-spice
-%defattr(-, root, root)
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/05
-%dir %_libdir/%name
-%_libdir/%name/audio-spice.so
-
-%files block-curl
-%defattr(-, root, root)
-%dir %_libdir/%name
-%_libdir/%name/block-curl.so
-
-%files block-dmg
-%defattr(-, root, root)
-%dir %_libdir/%name
-%_libdir/%name/block-dmg-bz2.so
-%_libdir/%name/block-dmg-lzfse.so
-
-%files block-gluster
-%defattr(-, root, root)
-%dir %_libdir/%name
-%_libdir/%name/block-gluster.so
-
-%files block-iscsi
-%defattr(-, root, root)
-%dir %_libdir/%name
-%_libdir/%name/block-iscsi.so
-
-%files block-nfs
-%defattr(-, root, root)
-%dir %_libdir/%name
-%_libdir/%name/block-nfs.so
-
-%if 0%{?with_rbd}
-%files block-rbd
-%defattr(-, root, root)
-%dir %_libdir/%name
-%_libdir/%name/block-rbd.so
-%endif
-
-%files block-ssh
-%defattr(-, root, root)
-%dir %_libdir/%name
-%_libdir/%name/block-ssh.so
-
-%files chardev-baum
-%defattr(-, root, root)
-%dir %_datadir/%name
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/00
-%dir %_libdir/%name
-%_libdir/%name/chardev-baum.so
-
-%files chardev-spice
-%defattr(-, root, root)
-%dir %_datadir/%name
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/08
-%dir %_libdir/%name
-%_libdir/%name/chardev-spice.so
-
-%files hw-display-qxl
-%defattr(-, root, root)
-%dir %_datadir/%name
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/01
-%dir %_libdir/%name
-%_libdir/%name/hw-display-qxl.so
-
-%files hw-display-virtio-gpu
-%defattr(-, root, root)
-%dir %_datadir/%name
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/04
-%_libdir/%name/hw-display-virtio-gpu.so
-
-%files hw-display-virtio-gpu-pci
-%defattr(-, root, root)
-%dir %_datadir/%name
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/11
-%dir %_libdir/%name
-%_libdir/%name/hw-display-virtio-gpu-pci.so
-
-%files hw-display-virtio-vga
-%defattr(-, root, root)
-%dir %_datadir/%name
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/12
-%dir %_libdir/%name
-%_libdir/%name/hw-display-virtio-vga.so
-
-%files hw-s390x-virtio-gpu-ccw
-%defattr(-, root, root)
-%dir %_datadir/%name
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/13
-%dir %_libdir/%name
-%_libdir/%name/hw-s390x-virtio-gpu-ccw.so
-
-%files hw-usb-redirect
-%defattr(-, root, root)
-%dir %_datadir/%name
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/02
-%dir %_libdir/%name
-%_libdir/%name/hw-usb-redirect.so
-
-%files hw-usb-smartcard
-%defattr(-, root, root)
-%dir %_datadir/%name
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/03
-%dir %_libdir/%name
-%_libdir/%name/hw-usb-smartcard.so
-
-%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
-
-%files ui-opengl
-%defattr(-, root, root)
-%dir %_datadir/%name
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/10
-%dir %_libdir/%name
-%_libdir/%name/ui-egl-headless.so
-%_libdir/%name/ui-opengl.so
-
-%files ui-spice-core
-%defattr(-, root, root)
-%dir %_datadir/%name
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/09
-%dir %_libdir/%name
-%_libdir/%name/ui-spice-core.so
-
-%files ui-spice-app
-%defattr(-, root, root)
-%dir %_libdir/%name
-%_libdir/%name/ui-spice-app.so
-
-%files lang -f %blddir/%name.lang
-%defattr(-, root, root)
-
-%ifarch %{build_rom_arch}
-%files seabios
-%defattr(-, root, root)
-%dir %_datadir/%name
-%_datadir/%name/bios.bin
-%_datadir/%name/bios-256k.bin
-%_datadir/%name/firmware/50-seabios-256k.json
-%_datadir/%name/firmware/60-seabios-128k.json
-
-%files microvm
-%defattr(-, root, root)
-%dir %_datadir/%name
-%_datadir/%name/bios-microvm.bin
-%_datadir/%name/qboot.rom
-
-%files vgabios
-%defattr(-, root, root)
-%dir %_datadir/%name
-%_datadir/%name/vgabios.bin
-%_datadir/%name/vgabios-ati.bin
-%_datadir/%name/vgabios-bochs-display.bin
-%_datadir/%name/vgabios-cirrus.bin
-%_datadir/%name/vgabios-qxl.bin
-%_datadir/%name/vgabios-ramfb.bin
-%_datadir/%name/vgabios-stdvga.bin
-%_datadir/%name/vgabios-virtio.bin
-%_datadir/%name/vgabios-vmware.bin
-
-%files sgabios
-%defattr(-, root, root)
-%dir %_datadir/%name
-%_datadir/%name/sgabios.bin
-
-%files ipxe
-%defattr(-, root, root)
-%dir %_datadir/%name
-%_datadir/%name/efi-e1000.rom
-%_datadir/%name/efi-e1000e.rom
-%_datadir/%name/efi-eepro100.rom
-%_datadir/%name/efi-ne2k_pci.rom
-%_datadir/%name/efi-pcnet.rom
-%_datadir/%name/efi-rtl8139.rom
-%_datadir/%name/efi-virtio.rom
-%_datadir/%name/efi-vmxnet3.rom
-%_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
-%endif
-
-%files skiboot
-%defattr(-, root, root)
-%dir %_datadir/%name
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/06
-%_datadir/%name/skiboot.lid
-%_datadir/%name/skiboot.lid.qemu
-%ghost %_sysconfdir/alternatives/skiboot.lid
-
-%files vhost-user-gpu
-%defattr(-, root, root)
-%dir %_datadir/%name/vhost-user
-%_datadir/%name/vhost-user/50-qemu-gpu.json
-%_libexecdir/vhost-user-gpu
-
-%files tools
-%defattr(-, root, root)
-%_bindir/analyze-migration.py
-%_bindir/qemu-edid
-%_bindir/qemu-img
-%_bindir/qemu-io
-%_bindir/qemu-keymap
-%_bindir/qemu-nbd
-%_bindir/qemu-pr-helper
-%_bindir/qemu-storage-daemon
-%_bindir/vmstate-static-checker.py
-%verify(not mode) %attr(4750,root,kvm) %_libexecdir/qemu-bridge-helper
-%_libexecdir/virtfs-proxy-helper
-%_libexecdir/virtiofsd
-%_mandir/man1/qemu-img.1.gz
-%_mandir/man1/virtfs-proxy-helper.1.gz
-%_mandir/man8/qemu-nbd.8.gz
-%_mandir/man8/qemu-pr-helper.8.gz
-%dir %_sysconfdir/%name
-%config %_sysconfdir/%name/bridge.conf
-
-%files ivshmem-tools
-%defattr(-, root, root)
-%dir %_datadir/%name
-%dir %_datadir/%name/forsplits
-%_datadir/%name/forsplits/07
-%_bindir/ivshmem-client
-%_bindir/ivshmem-server
-
-%files guest-agent
-%defattr(-, root, root)
-%attr(0755,root,kvm) %_bindir/qemu-ga
-%dir %_docdir/%name/interop
-%_docdir/%name/interop/qemu-ga.html
-%_mandir/man8/qemu-ga.8.gz
-%{_unitdir}/qemu-ga@.service
-/usr/lib/udev/rules.d/80-qemu-ga.rules
-
-%files ksm
-%defattr(-, root, root)
-%{_unitdir}/ksm.service
-
-# above section is for qemu
-%endif
-# ------------------------------------------------------------------------
-%if "%{name}" == "qemu-linux-user"
-
%_bindir/qemu-aarch64
%_bindir/qemu-aarch64_be
%_bindir/qemu-alpha
@@ -2154,16 +355,12 @@ fi
%_bindir/qemu-xtensaeb
%_bindir/qemu-binfmt
%_bindir/qemu-*-binfmt
+# add compatibility symlinks
+%_bindir/qemu-arm64
+%_bindir/qemu-*-static
+/qemu/
%_sbindir/qemu-binfmt-conf.sh
-%endif
-# ------------------------------------------------------------------------
-%if "%{name}" == "qemu-testsuite"
-
-%_datadir/qemu/check-report.tap
-
-%endif
-
%changelog
* Thu Jun 10 2021 jose.ziviani@suse.com
- Enable zstd compression option for qemu-img
diff --git a/packaging/qemu.spec b/packaging/qemu.spec
index 42d6c0c6d..8a7bdfa82 100644
--- a/packaging/qemu.spec
+++ b/packaging/qemu.spec
@@ -193,7 +193,7 @@ BuildRequires: libaio-devel
BuildRequires: libattr-devel
BuildRequires: libbz2-devel
BuildRequires: libfdt-devel >= 1.4.2
-BuildRequires: libgcrypt-devel >= 1.5.0
+#BuildRequires: libgcrypt-devel >= 1.5.0
BuildRequires: pkgconfig(epoxy)
BuildRequires: pkgconfig(gbm)
BuildRequires: pkgconfig(glusterfs-api) >= 3
@@ -241,7 +241,7 @@ BuildRequires: pkgconfig(lzo2)
BuildRequires: pkgconfig(ncurses)
BuildRequires: pkgconfig(spice-protocol) >= 0.12.3
BuildRequires: pkgconfig(systemd)
-BuildRequires: pkgconfig(vdeplug)
+#BuildRequires: pkgconfig(vdeplug)
BuildRequires: pkgconfig(xkbcommon)
%{?systemd_ordering}
%if %{kvm_available}
@@ -752,7 +752,7 @@ Summary: Tools for QEMU
Group: System/Emulators/PC
Version: %{qemuver}
Release: 20.1
-Requires(pre): permissions
+#Requires(pre): permissions
Requires: group(kvm)
Recommends: multipath-tools
Recommends: qemu-block-curl
@@ -1084,9 +1084,13 @@ cd %blddir
--enable-curses \
--enable-dmg \
--enable-fdt \
+%if 0
--enable-gcrypt \
+%endif
--enable-glusterfs \
+%if 0
--enable-gnutls \
+%endif
--enable-gtk \
--disable-hax \
--disable-hvf \
@@ -1159,7 +1163,9 @@ cd %blddir
--disable-tcmalloc \
--enable-tpm \
--enable-usb-redir \
+%if 0
--enable-vde \
+%endif
--enable-vdi \
--enable-vhost-crypto \
--enable-vhost-kernel \
@@ -1662,6 +1668,9 @@ fi
# ========================================================================
+%clean
+rm -rf %{buildroot}
+
%files
%defattr(-, root, root)
%doc README.rst VERSION