From c7c3e5a51e4849f8f426e711ff09a0b2de85cdb0 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Mon, 6 Jun 2022 11:40:07 +0200 Subject: [PATCH] change optflag and add docs package Signed-off-by: Toshaan Bharvani --- SPECS/qemu.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/SPECS/qemu.spec b/SPECS/qemu.spec index 557dcdf..7bff6e1 100755 --- a/SPECS/qemu.spec +++ b/SPECS/qemu.spec @@ -301,6 +301,13 @@ This package provides the system emulator for AArch64. #This package provides client and server tools for QEMU's ivshmem device. +%package -n docs +Summary: QEMU docs +Group: Development/Tools +%description -n docs +This package provides documentation for QEMU. + + %package bootloaders Summary: Bootloaders for QEMU Group: Development/Tools @@ -333,18 +340,16 @@ This package provides the bootloader images for QEMU and stubs extraldflags="-Wl,--build-id"; buildldflags="VL_LDFLAGS=-Wl,--build-id" tracebackends="dtrace" +cflags="%{optflags}" %ifarch ppc64 -cflags="-m64 -O3 -g -fsigned-char -fno-strength-reduce -mcpu=power8 -mtune=power8 -mpower8-fusion -mpower8-vector -mcrypto -mquad-memory -mquad-memory-atomic -maltivec -mpowerpc-gpopt -mpowerpc-gfxopt -mcrypto -mvsx -mdirect-move -fPIC -fPIE -DPIE -D_FORTIFY_SOURCE=2" nativebuildarch="ppc64-softmmu" emulatedbuildarch="x86_64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu riscv64-softmmu alpha-softmmu arm-softmmu" %endif %ifarch ppc64le -cflags="-m64 -O3 -g -fsigned-char -fno-strength-reduce -mcpu=power8 -mtune=power8 -mpower8-fusion -mpower8-vector -mcrypto -maltivec -mpowerpc-gpopt -mpowerpc-gfxopt -mcrypto -mvsx -mdirect-move -fPIC -fPIE -DPIE -D_FORTIFY_SOURCE=2" nativebuildarch="ppc64-softmmu" emulatedbuildarch="x86_64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu riscv64-softmmu alpha-softmmu arm-softmmu" %endif %ifarch x86_64 -cflags="-m64 -O3 -g -march=core2 -mtune=core2 -mmmx -msse -msse2 -mssse3 -msse4 -msse4.1 -msse4.2 -mavx -fPIC -fPIE -DPIE -D_FORTIFY_SOURCE=2" nativebuildarch="x86_64-softmmu" emulatedbuildarch="ppc64-softmmu s390x-softmmu sparc64-softmmu aarch64-softmmu mips64-softmmu mips64el-softmmu riscv64-softmmu alpha-softmmu arm-softmmu" %endif @@ -760,4 +765,8 @@ getent passwd qemu >/dev/null || \ %{_datadir}/systemtap/tapset/qemu-system-aarch64*.stp +%files docs +%dir %{_docdir}/%{name}/ + + %changelog