]> git.ipfire.org Git - ipfire-3.x.git/blob - qemu/qemu.nm
json-c: Update to version 0.17-20230812
[ipfire-3.x.git] / qemu / qemu.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = qemu
7 version = 2.7.0
8 release = 2
9
10 groups = Applications/Virtualization
11 url = http://www.qemu.org
12 license = GPLv2+
13 summary = QEMU is a generic and open source machine emulator and virtualizer.
14
15 description
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
18 architectures.
19 end
20
21 source_dl = http://wiki.qemu-project.org/download/
22 sources = %{thisapp}.tar.bz2
23
24 build
25 requires
26 SDL-devel
27 autoconf
28 automake
29 bison
30 bzip2-devel
31 flex
32 glib2-devel
33 gnutls-devel
34 libcurl-devel
35 libgcrypt-devel
36 libjpeg-devel
37 libpng-devel
38 libtasn1-devel
39 libusb-devel
40 libuuid-devel
41 lzo-devel
42 ncurses-devel
43 nettle-devel
44 pciutils-devel
45 pixman-devel
46 zlib-devel
47 end
48
49 qemu_native_platform = %{DISTRO_ARCH}
50
51 if "%{DISTRO_ARCH}" == "armv7hl"
52 qemu_native_platform = arm
53 end
54
55 targets = aarch64-softmmu arm-softmmu x86_64-softmmu
56
57 configure_options = \
58 --prefix=%{prefix} \
59 --bindir=%{bindir} \
60 --sysconfdir=%{sysconfdir} \
61 --libdir=%{libdir} \
62 --libexecdir=%{libdir} \
63 --datadir=%{datadir} \
64 --mandir=%{mandir} \
65 --localstatedir=%{localstatedir} \
66 --extra-cflags="%{CFLAGS}" \
67 --extra-ldflags="%{LDFLAGS}" \
68 --disable-strip \
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
82
83 configure_cmds
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
90
91 # Remove ivshm stuff
92 rm -vf %{BUILDROOT}%{bindir}/ivshmem* %{BUILDROOT}%{mandir}/ivshmem*
93 end
94 end
95
96 quality-agent
97 whitelist_execstack
98 /usr/share/qemu/openbios*
99 end
100 end
101
102 packages
103 package %{name}
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
155
156 package %{name}-debuginfo
157 template DEBUGINFO
158 end
159 end