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 = https://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 = https://download.qemu.org/
22 sources = %{thisapp}.tar.xz
67 --sysconfdir=%{sysconfdir} \
69 --libexecdir=%{libdir} \
70 --datadir=%{datadir} \
72 --localstatedir=%{localstatedir} \
73 --extra-cflags="%{CFLAGS}" \
74 --extra-ldflags="%{LDFLAGS}" \
77 --target-list="%{targets}" \
93 rm -vf %{BUILDROOT}%{bindir}/ivshmem* %{BUILDROOT}%{mandir}/ivshmem*
95 # Remove deprecated run directory.
96 rm -rvf %{BUILDROOT}/var/run
98 # Remove firmware files for non supported platforms.
99 rm -rvf %{BUILDROOT}%{datadir}/%{name}/hppa-firmware.img
100 rm -rvf %{BUILDROOT}%{datadir}/%{name}/openbios-ppc
101 rm -rvf %{BUILDROOT}%{datadir}/%{name}/openbios-sparc32
102 rm -rvf %{BUILDROOT}%{datadir}/%{name}/openbios-sparc64
103 rm -rvf %{BUILDROOT}%{datadir}/%{name}/palcode-clipper
104 rm -rvf %{BUILDROOT}%{datadir}/%{name}/s390-ccw.img
105 rm -rvf %{BUILDROOT}%{datadir}/%{name}/s390-netboot.img
106 rm -rvf %{BUILDROOT}%{datadir}/%{name}/u-boot.e500
108 # Make firmware non-executable
109 find %{BUILDROOT}%{datadir}/%{name} -type f -executable | xargs chmod -v a-x
115 # Always install the native package (for KVM)
117 qemu-%{DISTRO_ARCH} = %{thisver}
121 qemu-img = %{thisver}
126 summary = QEMU for %{qemu_arch}
127 description = %{summary}
129 requires = %{name} = %{thisver}
132 %{bindir}/qemu-%{qemu_arch}
133 %{bindir}/qemu-system-%{qemu_arch}
134 %{mandir}/man1/qemu-%{qemu_arch}.1*
135 %{mandir}/man1/qemu-system-%{qemu_arch}.1*
139 package %{name}-aarch64
144 package %{name}-riscv64
149 package %{name}-x86_64
155 summary = QEMU command line tool for manipulating disk images
157 This package provides a command line tool for manipulating disk images
164 %{mandir}/man1/qemu-img.1*
165 %{mandir}/man8/qemu-nbd.8*
169 package %{name}-devel
173 package %{name}-debuginfo