]> git.pld-linux.org Git - packages/qemu.git/commitdiff
- fix static build, enable pmem where applicable auto/th/qemu-5.0.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 28 May 2020 04:22:36 +0000 (06:22 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 28 May 2020 04:22:36 +0000 (06:22 +0200)
qemu.spec

index 9f67f35008fc2bf96bc9813b368a9449660f4ce1..5797b7f6f7fb3b463c8ae2e9c141f8f2936c928a 100644 (file)
--- a/qemu.spec
+++ b/qemu.spec
@@ -19,6 +19,7 @@
 %bcond_without iscsi           # iscsi support
 %bcond_without libnfs          # NFS support
 %bcond_without multipath       # Multipath support
+%bcond_without pmem            # libpmem (persistent memory) support
 %bcond_without seccomp         # seccomp support
 %bcond_without usbredir        # usb network redirection support
 %bcond_without system_seabios  # system seabios binary
@@ -36,6 +37,9 @@
 %ifarch x32
 %undefine      with_xen
 %endif
+%ifnarch %{x8664} aarch64
+%undefine      with_pmem
+%endif
 
 Summary:       QEMU CPU Emulator
 Summary(pl.UTF-8):     QEMU - emulator procesora
@@ -125,6 +129,7 @@ BuildRequires:      perl-Encode
 BuildRequires: perl-tools-pod
 BuildRequires: pixman-devel >= 0.21.8
 BuildRequires: pkgconfig
+%{?with_pmem:BuildRequires:    pmdk-devel}
 %{?with_pulseaudio:BuildRequires:      pulseaudio-devel}
 BuildRequires: python3 >= 1:3.5
 BuildRequires: rpmbuild(macros) >= 1.644
@@ -1006,6 +1011,7 @@ build dynamic \
        %{!?with_gtk3:--disable-gtk} \
        %{__enable_disable iscsi libiscsi} \
        %{__enable_disable libnfs} \
+       %{__enable_disable pmem libpmem} \
        --enable-lzo \
        %{__enable_disable multipath mpath} \
        --enable-modules \
@@ -1045,6 +1051,7 @@ build static \
        --disable-guest-agent \
        --disable-guest-agent-msi \
        --disable-libnfs \
+       --disable-linux-io-uring \
        --disable-mpath \
        --disable-nettle \
        --disable-pie \
@@ -1057,6 +1064,7 @@ build static \
        --disable-vxhs \
        --enable-user \
        --disable-xkbcommon \
+       --disable-zstd \
        --static
 %endif
 
@@ -1423,6 +1431,7 @@ fi
 %attr(755,root,root) %{_bindir}/qemu-x86_64-static
 %attr(755,root,root) %{_bindir}/qemu-xtensa-static
 %attr(755,root,root) %{_bindir}/qemu-xtensaeb-static
+%attr(755,root,root) %{_bindir}/qemu-trace-stap-static
 %endif
 
 %files system-aarch64
This page took 0.269746 seconds and 4 git commands to generate.