1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Applications/Virtualization
11 url = http://www.qemu.org
13 summary = QEMU is a generic and open source machine emulator and virtualizer.
16 QEMU is a processor emulator that relies on dynamic binary translation
17 to achieve a reasonable speed while being easy to port on new host CPU
21 source_dl = http://wiki.qemu-project.org/download/
22 sources = %{thisapp}.tar.bz2
49 qemu_native_platform = %{DISTRO_ARCH}
51 if "%{DISTRO_ARCH}" == "armv7hl"
52 qemu_native_platform = arm
55 targets = aarch64-softmmu arm-softmmu x86_64-softmmu
60 --sysconfdir=%{sysconfdir} \
62 --libexecdir=%{libdir} \
63 --datadir=%{datadir} \
65 --localstatedir=%{localstatedir} \
66 --extra-cflags="%{CFLAGS}" \
67 --extra-ldflags="%{LDFLAGS}" \
70 --target-list="%{targets}" \
84 sed -e "s@-Wl,-rpath,%{libdir}@@g" -i config-host.mak
88 # Remove BIOS file which is an ELF files w/ invalid interpreter
89 rm -vf %{BUILDROOT}%{datadir}/qemu/s390-ccw.img
92 rm -vf %{BUILDROOT}%{bindir}/ivshmem* %{BUILDROOT}%{mandir}/ivshmem*
98 /usr/share/qemu/openbios*
104 # Always install the native package (for KVM)
106 qemu-%{qemu_native_platform} = %{thisver}
110 qemu-img = %{thisver}
115 summary = QEMU for %{qemu_arch}
116 description = %{summary}
118 requires = %{name} = %{thisver}
121 %{bindir}/qemu-system-%{qemu_arch}
122 %{mandir}/man1/qemu-system-%{qemu_arch}.1*
126 package %{name}-aarch64
136 package %{name}-x86_64
142 summary = QEMU command line tool for manipulating disk images
144 This package provides a command line tool for manipulating disk images
151 %{mandir}/man1/qemu-img.1*
152 %{mandir}/man8/qemu-nbd.8*
156 package %{name}-debuginfo