%bcond_without oss # OSS audio support
%bcond_without pulseaudio # PulseAudio audio support
%bcond_without xen # Xen backend driver support
-%bcond_without bluetooth # bluetooth support
%bcond_with brlapi # brlapi support
%bcond_without smartcard # smartcard-nss support
%bcond_without iscsi # iscsi support
Summary: QEMU CPU Emulator
Summary(pl.UTF-8): QEMU - emulator procesora
Name: qemu
-Version: 4.2.0
+Version: 5.0.0
Release: 1
License: GPL v2
Group: Applications/Emulators
Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.xz
-# Source0-md5: 278eeb294e4b497e79af7a57e660cb9a
+# Source0-md5: ede6005d7143fe994dd089d31dc2cf6c
# Loads kvm kernel modules at boot
Source3: kvm-modules-load.conf
# Creates /dev/kvm
%{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
BuildRequires: alsa-lib-devel
BuildRequires: bcc >= 0.16.21-2
-%{?with_bluetooth:BuildRequires: bluez-libs-devel}
%{?with_brlapi:BuildRequires: brlapi-devel}
BuildRequires: bzip2-devel
%{?with_ceph:BuildRequires: ceph-devel}
BuildRequires: glib2-devel >= 1:2.22
%{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
BuildRequires: gnutls-devel >= 3.1.18
+BuildRequires: gperftools-devel
+BuildRequires: jemalloc-devel
BuildRequires: libaio-devel
%{?with_smartcard:BuildRequires: libcacard-devel}
BuildRequires: libcap-devel
BuildRequires: libcap-ng-devel
%{?with_gl:BuildRequires: libepoxy-devel}
BuildRequires: libfdt-devel >= 1.4.2
+BuildRequires: libgcrypt-devel
%{?with_rdma:BuildRequires: libibverbs-devel}
%{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
%{?with_rdma:BuildRequires: libibumad-devel}
-BuildRequires: libjpeg-devel
+BuildRequires: liburing-devel
+BuildRequires: libjpeg-turbo-devel
%{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
BuildRequires: libpng-devel
%{?with_rdma:BuildRequires: librdmacm-devel}
%{?with_lttng:BuildRequires: lttng-ust-devel}
BuildRequires: lzo-devel >= 2
BuildRequires: ncurses-devel
+BuildRequires: nettle-devel
%{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8}
BuildRequires: numactl-devel
+BuildRequires: pam-devel
BuildRequires: perl-Encode
BuildRequires: perl-tools-pod
BuildRequires: pixman-devel >= 0.21.8
%{?with_xkbcommon:BuildRequires: xorg-lib-libxkbcommon-devel}
BuildRequires: xorg-lib-libX11-devel
BuildRequires: zlib-devel
+BuildRequires: zstd-devel >= 1.4.0
%if %{with gtk3}
BuildRequires: gtk+3-devel >= 3.14.0
%{?with_vte:BuildRequires: vte-devel >= 0.32.0}
%if %{with user_static}
BuildRequires: glib2-static
BuildRequires: glibc-static
+BuildRequires: liburing-static
BuildRequires: pcre-static
BuildRequires: zlib-static
+BuildRequires: zstd-static
%endif
BuildConflicts: libslirp-devel
Requires: %{name}-img = %{version}-%{release}
Requires: %{name}-system-ppc = %{version}-%{release}
Requires: %{name}-system-riscv32 = %{version}-%{release}
Requires: %{name}-system-riscv64 = %{version}-%{release}
+Requires: %{name}-system-rx = %{version}-%{release}
Requires: %{name}-system-s390x = %{version}-%{release}
Requires: %{name}-system-sh4 = %{version}-%{release}
Requires: %{name}-system-sparc = %{version}-%{release}
Ten pakiet zawiera emulator systemu z procesorem RISC-V (64 bit).
+%package system-rx
+Summary: QEMU system emulator for RX
+Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RX
+Group: Development/Tools
+Requires: %{name}-common = %{version}-%{release}
+%systempkg_req
+Obsoletes: qemu-kvm-system-rx
+
+%description system-rx
+QEMU is a generic and open source processor emulator which achieves a
+good emulation speed by using dynamic translation.
+
+This package provides the system emulator with RX CPU.
+
+%description system-rx -l pl.UTF-8
+QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
+dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
+
+Ten pakiet zawiera emulator systemu z procesorem RX.
+
%package system-s390x
Summary: QEMU system emulator for S390
Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
--extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
--extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
--enable-attr \
- %{__enable_disable bluetooth bluez} \
%{__enable_disable brlapi} \
--enable-cap-ng \
--enable-curl \
install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
-# packaged as %doc
-%{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-doc.html
-
%if %{with system_seabios}
ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
# bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
%files common -f %{name}.lang
%defattr(644,root,root,755)
%doc LICENSE README.rst
-%doc build-dynamic/qemu-doc.html
%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
%config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
%config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
%{?with_xkbcommon:%attr(755,root,root) %{_bindir}/qemu-keymap}
%attr(755,root,root) %{_bindir}/qemu-nbd
%attr(755,root,root) %{_bindir}/qemu-pr-helper
+%attr(755,root,root) %{_bindir}/qemu-storage-daemon
%attr(755,root,root) %{_bindir}/qemu-tilegx
%attr(755,root,root) %{_libexecdir}/qemu-bridge-helper
+%attr(755,root,root) %{_libexecdir}/virtiofsd
%attr(755,root,root) %{_sbindir}/ksmctl
%attr(755,root,root) %{_sbindir}/ksmtuned
%{_mandir}/man1/qemu.1*
%{_mandir}/man1/virtfs-proxy-helper.1*
+%{_mandir}/man1/virtiofsd.1*
%{_mandir}/man7/qemu-cpu-models.7*
%{_mandir}/man7/qemu-block-drivers.7*
%{_mandir}/man8/qemu-nbd.8*
%dir %{_datadir}/qemu
%dir %{_datadir}/%{name}/firmware
+%dir %{_datadir}/%{name}/vhost-user
%{_datadir}/%{name}/keymaps
%{_datadir}/%{name}/trace-events-all
+%{_datadir}/%{name}/vhost-user/50-qemu-virtiofsd.json
# various bios images
# all should be probably moved to the right system subpackage
%{_datadir}/%{name}/multiboot.bin
%{_datadir}/%{name}/openbios-ppc
%{_datadir}/%{name}/openbios-sparc*
+%{_datadir}/%{name}/opensbi-riscv32-sifive_u-fw_jump.bin
%{_datadir}/%{name}/palcode-clipper
%{_datadir}/%{name}/petalogix-ml605.dtb
%{_datadir}/%{name}/petalogix-s3adsp1800.dtb
-%{_datadir}/%{name}/ppc_rom.bin
%{_datadir}/%{name}/pvh.bin
%{_datadir}/%{name}/pxe-e1000.rom
%{_datadir}/%{name}/pxe-eepro100.rom
%{_datadir}/%{name}/sgabios.bin
%{_datadir}/%{name}/skiboot.lid
%{_datadir}/%{name}/slof.bin
-#%{_datadir}/%{name}/spapr-rtas.bin
%{_datadir}/%{name}/vgabios.bin
%{_datadir}/%{name}/vgabios-ati.bin
%{_datadir}/%{name}/vgabios-bochs-display.bin
%{_datadir}/%{name}/opensbi-riscv64-sifive_u-fw_jump.bin
%{_datadir}/%{name}/opensbi-riscv64-virt-fw_jump.bin
+%files system-rx
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/qemu-system-rx
+
%files system-s390x
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/qemu-system-s390x