]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blame - qemu/qemu.nm
prevent kernel address space leak via dmesg or /proc files
[people/pmueller/ipfire-3.x.git] / qemu / qemu.nm
CommitLineData
2daaede6 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
2daaede6
BS
4###############################################################################
5
f290a2f0
AF
6name = qemu
7version = 2.7.0
a725c75b 8release = 2
2daaede6 9
802ea3af 10groups = Applications/Virtualization
f290a2f0 11url = http://www.qemu.org
802ea3af
MT
12license = GPLv2+
13summary = QEMU is a generic and open source machine emulator and virtualizer.
2daaede6 14
802ea3af
MT
15description
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
2daaede6 18 architectures.
802ea3af
MT
19end
20
f290a2f0
AF
21source_dl = http://wiki.qemu-project.org/download/
22sources = %{thisapp}.tar.bz2
802ea3af
MT
23
24build
25 requires
f290a2f0
AF
26 SDL-devel
27 autoconf
28 automake
29 bison
30 bzip2-devel
31 flex
13c5aff0 32 glib2-devel
f290a2f0 33 gnutls-devel
802ea3af 34 libcurl-devel
f290a2f0
AF
35 libgcrypt-devel
36 libjpeg-devel
37 libpng-devel
38 libtasn1-devel
39 libusb-devel
802ea3af 40 libuuid-devel
f290a2f0 41 lzo-devel
802ea3af 42 ncurses-devel
f290a2f0 43 nettle-devel
802ea3af 44 pciutils-devel
f290a2f0 45 pixman-devel
802ea3af
MT
46 zlib-devel
47 end
48
a725c75b
MT
49 qemu_native_platform = %{DISTRO_ARCH}
50
51 if "%{DISTRO_ARCH}" == "armv7hl"
52 qemu_native_platform = arm
53 end
54
f290a2f0
AF
55 targets = aarch64-softmmu arm-softmmu x86_64-softmmu
56
802ea3af 57 configure_options = \
f290a2f0
AF
58 --prefix=%{prefix} \
59 --bindir=%{bindir} \
60 --sysconfdir=%{sysconfdir} \
61 --libdir=%{libdir} \
62 --libexecdir=%{libdir} \
63 --datadir=%{datadir} \
64 --mandir=%{mandir} \
65 --localstatedir=%{localstatedir} \
802ea3af 66 --extra-cflags="%{CFLAGS}" \
f290a2f0 67 --extra-ldflags="%{LDFLAGS}" \
802ea3af 68 --disable-strip \
f290a2f0
AF
69 --disable-werror \
70 --target-list="%{targets}" \
71 --enable-bzip2 \
72 --enable-fdt \
73 --enable-kvm \
74 --enable-libusb \
75 --enable-lzo \
76 --enable-pie \
77 --enable-vhdx \
78 --enable-vnc \
79 --enable-vnc-jpeg \
80 --enable-vnc-png \
81 --disable-xen
802ea3af
MT
82
83 configure_cmds
f290a2f0
AF
84 sed -e "s@-Wl,-rpath,%{libdir}@@g" -i config-host.mak
85 end
86
87 install_cmds
88 # Remove BIOS file which is an ELF files w/ invalid interpreter
89 rm -vf %{BUILDROOT}%{datadir}/qemu/s390-ccw.img
a725c75b
MT
90
91 # Remove ivshm stuff
92 rm -vf %{BUILDROOT}%{bindir}/ivshmem* %{BUILDROOT}%{mandir}/ivshmem*
802ea3af
MT
93 end
94end
95
96quality-agent
97 whitelist_execstack
98 /usr/share/qemu/openbios*
99 end
100end
101
102packages
103 package %{name}
a725c75b
MT
104 # Always install the native package (for KVM)
105 requires
106 qemu-%{qemu_native_platform} = %{thisver}
107 end
108
109 recommends
110 qemu-img = %{thisver}
111 end
112 end
113
114 template QEMUARCH
115 summary = QEMU for %{qemu_arch}
116 description = %{summary}
117
118 requires = %{name} = %{thisver}
119
120 files
121 %{bindir}/qemu-system-%{qemu_arch}
122 %{mandir}/man1/qemu-system-%{qemu_arch}.1*
123 end
124 end
125
126 package %{name}-aarch64
127 template QEMUARCH
128 qemu_arch = aarch64
129 end
130
131 package %{name}-arm
132 template QEMUARCH
133 qemu_arch = arm
134 end
135
136 package %{name}-x86_64
137 template QEMUARCH
138 qemu_arch = x86_64
139 end
140
141 package %{name}-img
142 summary = QEMU command line tool for manipulating disk images
143 description
144 This package provides a command line tool for manipulating disk images
145 end
146
147 files
148 %{bindir}/qemu-img
149 %{bindir}/qemu-io
150 %{bindir}/qemu-nbd
151 %{mandir}/man1/qemu-img.1*
152 %{mandir}/man8/qemu-nbd.8*
153 end
154 end
1f9bc2f0
MT
155
156 package %{name}-debuginfo
157 template DEBUGINFO
158 end
802ea3af 159end