]> git.pld-linux.org Git - packages/qemu-kvm.git/blame - qemu-kvm.spec
- use official seabios binaries + update to 1.7.4
[packages/qemu-kvm.git] / qemu-kvm.spec
CommitLineData
9e42c24e 1#
9e42c24e 2# Conditional build:
b8be5aa4
JB
3%bcond_without sdl # SDL UI and audio support
4%bcond_without opengl # OpenGL support
5%bcond_without ceph # Ceph/RBD support
6%bcond_without spice # SPICE support
7%bcond_with esd # EsounD audio support
8%bcond_without oss # OSS audio support
9%bcond_without pulseaudio # PulseAudio audio support
10%bcond_without xen # Xen backend driver support
8362f9e5 11#
9e42c24e 12Summary: QEMU CPU Emulator
13Summary(pl.UTF-8): QEMU - emulator procesora
14Name: qemu-kvm
a95b7932 15Version: 1.2.0
7474a89a 16Release: 11
a95b7932 17License: GPL v2+
9e42c24e 18Group: Applications/Emulators
5dcbc30d 19Source0: http://downloads.sourceforge.net/kvm/%{name}-%{version}.tar.gz
a95b7932 20# Source0-md5: d7b18b673c48abfee65a9c0245df0415
6101cbe5
MK
21Source1: http://code.coreboot.org/p/seabios/downloads/get/bios.bin-1.7.4.gz
22# Source1-md5: c5f88765e74945f7fa18c3a3141f5334
48331304
JR
23Source2: qemu.binfmt
24# Loads kvm kernel modules at boot
25Source3: kvm-modules-load.conf
26# Creates /dev/kvm
27Source4: 80-kvm.rules
28# KSM control scripts
29Source5: ksm.service
30Source6: ksm.sysconfig
31Source7: ksmctl.c
32Source8: ksmtuned.service
33Source9: ksmtuned
34Source10: ksmtuned.conf
35Source11: qemu-guest-agent.service
36Source12: 99-qemu-guest-agent.rules
37Patch0: %{name}-whitelist.patch
a95b7932 38Patch1: %{name}-fixes.patch
b8be5aa4
JB
39Patch2: qemu-cflags.patch
40Patch3: qemu-usbredir.patch
a7f8166b 41Patch4: %{name}-system-libcacard.patch
2f659f76 42Patch5: %{name}-link.patch
9e42c24e 43URL: http://www.linux-kvm.org/
b8be5aa4
JB
44%{?with_opengl:BuildRequires: OpenGL-GLX-devel}
45%{?with_sdl:BuildRequires: SDL-devel >= 1.2.1}
9e42c24e 46BuildRequires: alsa-lib-devel
47BuildRequires: bluez-libs-devel
42155b61 48BuildRequires: brlapi-devel
b8be5aa4
JB
49%{?with_ceph:BuildRequires: ceph-devel}
50BuildRequires: curl-devel
51BuildRequires: cyrus-sasl-devel >= 2
52%{?with_esd:BuildRequires: esound-devel}
53BuildRequires: glib2-devel >= 1:2.12
9e42c24e 54BuildRequires: gnutls-devel
42155b61 55BuildRequires: libaio-devel
0415c199 56BuildRequires: libcacard-devel
b8be5aa4
JB
57BuildRequires: libcap-devel
58BuildRequires: libcap-ng-devel
42155b61
JR
59BuildRequires: libfdt-devel
60BuildRequires: libiscsi-devel
b8be5aa4
JB
61BuildRequires: libjpeg-devel
62BuildRequires: libpng-devel
63BuildRequires: libseccomp-devel
64BuildRequires: libuuid-devel
9e42c24e 65BuildRequires: ncurses-devel
b8be5aa4 66BuildRequires: nss-devel >= 3.12.8
9e42c24e 67BuildRequires: perl-Encode
68BuildRequires: perl-tools-pod
69BuildRequires: pkgconfig
b8be5aa4 70%{?with_pulseaudio:BuildRequires: pulseaudio-devel}
76f1aca2 71BuildRequires: rpmbuild(macros) >= 1.644
42155b61 72BuildRequires: sed >= 4.0
8362f9e5 73%if %{with spice}
b8be5aa4
JB
74BuildRequires: spice-protocol >= 0.8.0
75BuildRequires: spice-server-devel >= 0.8.2
8362f9e5 76%endif
42155b61 77BuildRequires: texi2html
b8be5aa4
JB
78BuildRequires: texinfo
79BuildRequires: usbredir-devel >= 0.3.4
80BuildRequires: vde2-devel
42155b61 81BuildRequires: which
b8be5aa4
JB
82%{?with_xen:BuildRequires: xen-devel >= 3.4}
83BuildRequires: xfsprogs-devel
42155b61 84BuildRequires: xorg-lib-libX11-devel
b8be5aa4 85BuildRequires: zlib-devel
42155b61
JR
86Requires: %{name}-img = %{version}-%{release}
87Requires: %{name}-system-alpha = %{version}-%{release}
88Requires: %{name}-system-arm = %{version}-%{release}
89Requires: %{name}-system-cris = %{version}-%{release}
90Requires: %{name}-system-lm32 = %{version}-%{release}
91Requires: %{name}-system-m68k = %{version}-%{release}
92Requires: %{name}-system-microblaze = %{version}-%{release}
93Requires: %{name}-system-mips = %{version}-%{release}
94Requires: %{name}-system-ppc = %{version}-%{release}
b8be5aa4 95Requires: %{name}-system-or32 = %{version}-%{release}
42155b61
JR
96Requires: %{name}-system-s390x = %{version}-%{release}
97Requires: %{name}-system-sh4 = %{version}-%{release}
98Requires: %{name}-system-sparc = %{version}-%{release}
b8be5aa4 99Requires: %{name}-system-unicore32 = %{version}-%{release}
42155b61
JR
100Requires: %{name}-system-x86 = %{version}-%{release}
101Requires: %{name}-system-xtensa = %{version}-%{release}
102Requires: %{name}-user = %{version}-%{release}
a6560a2a 103Provides: qemu = %{version}-%{release}
42155b61 104Obsoletes: qemu
9e42c24e 105BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
106
b8be5aa4
JB
107%define systempkg_req \
108Requires: SDL >= 1.2.1
109
9e42c24e 110# some PPC/SPARC boot image in ELF format
48331304 111%define _noautostrip .*%{_datadir}/qemu/.*
9e42c24e 112
113%description
114QEMU is a FAST! processor emulator. By using dynamic translation it
115achieves a reasonnable speed while being easy to port on new host
116CPUs. QEMU has two operating modes:
117
118- User mode emulation. In this mode, QEMU can launch Linux processes
119 compiled for one CPU on another CPU. Linux system calls are converted
120 because of endianness and 32/64 bit mismatches. Wine (Windows
121 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
122
123- Full system emulation. In this mode, QEMU emulates a full system,
124 including a processor and various peripherials. It can also be used to
125 provide virtual hosting of several virtual PC on a single server.
126
127%description -l pl.UTF-8
128QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
129tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
130aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
131
132- Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
133 procesy linuksowe skompilowane dla jednego procesora na innym
134 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
135 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
136 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
137 cele QEMU.
138
139- Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
140 włączając w to procesor i różne urządzenia peryferyjne. Może być także
141 używane do wirtualnego hostowania kilku wirtualnych pecetów na
142 pojedynczym serwerze.
143
5dcbc30d 144%package common
42155b61 145Summary: QEMU common files needed by all QEMU targets
5dcbc30d 146Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
42155b61
JR
147Group: Development/Tools
148Requires(postun): /usr/sbin/groupdel
149Requires(postun): /usr/sbin/userdel
150Requires(pre): /bin/id
151Requires(pre): /usr/bin/getgid
152Requires(pre): /usr/sbin/groupadd
153Requires(pre): /usr/sbin/useradd
48e39d01 154Requires(post,preun,postun): systemd-units >= 38
b8be5aa4 155Requires: glib2 >= 1:2.12
42155b61 156Provides: group(kvm)
54ea3b0b 157Provides: qemu-common = %{version}-%{release}
42155b61
JR
158Requires: systemd-units >= 38
159Conflicts: qemu-kvm < 1.0-3
160
161%description common
162QEMU is a generic and open source processor emulator which achieves a
163good emulation speed by using dynamic translation.
164
165This package provides the common files needed by all QEMU targets.
166
5dcbc30d
JB
167%description common -l pl.UTF-8
168QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
169dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
170
171Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
172środowiska QEMU.
173
174%package img
42155b61 175Summary: QEMU command line tool for manipulating disk images
5dcbc30d 176Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
42155b61
JR
177Group: Development/Tools
178Conflicts: qemu-kvm < 1.0-3
179
180%description img
5dcbc30d
JB
181This package provides a command line tool for manipulating disk
182images.
183
184%description img -l pl.UTF-8
185Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
186na obrazach dysków.
42155b61
JR
187
188%package user
189Summary: QEMU user mode emulation of qemu targets
5dcbc30d 190Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
42155b61
JR
191Group: Development/Tools
192Requires: %{name}-common = %{version}-%{release}
48e39d01 193Requires(post,postun): systemd-units >= 38
42155b61
JR
194Requires: systemd-units >= 38
195
196%description user
197QEMU is a generic and open source processor emulator which achieves a
198good emulation speed by using dynamic translation.
199
200This package provides the user mode emulation of QEMU targets.
201
5dcbc30d
JB
202%description user -l pl.UTF-8
203QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
204dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
205
206Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
207
42155b61 208%package system-alpha
5dcbc30d
JB
209Summary: QEMU system emulator for Alpha
210Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
42155b61
JR
211Group: Development/Tools
212Requires: %{name}-common = %{version}-%{release}
b8be5aa4 213%systempkg_req
42155b61
JR
214
215%description system-alpha
216QEMU is a generic and open source processor emulator which achieves a
217good emulation speed by using dynamic translation.
218
5dcbc30d
JB
219This package provides the system emulator with Alpha CPU.
220
221%description system-alpha -l pl.UTF-8
222QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
223dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
224
225Ten pakiet zawiera emulator systemu z procesorem Alpha.
42155b61
JR
226
227%package system-arm
5dcbc30d
JB
228Summary: QEMU system emulator for ARM
229Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
42155b61
JR
230Group: Development/Tools
231Requires: %{name}-common = %{version}-%{release}
b8be5aa4 232%systempkg_req
42155b61
JR
233
234%description system-arm
235QEMU is a generic and open source processor emulator which achieves a
236good emulation speed by using dynamic translation.
237
5dcbc30d
JB
238This package provides the system emulator for ARM.
239
240%description system-arm -l pl.UTF-8
241QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
242dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
243
244Ten pakiet zawiera emulator systemu z procesorem ARM.
42155b61
JR
245
246%package system-cris
5dcbc30d
JB
247Summary: QEMU system emulator for CRIS
248Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
42155b61
JR
249Group: Development/Tools
250Requires: %{name}-common = %{version}-%{release}
b8be5aa4 251%systempkg_req
42155b61
JR
252
253%description system-cris
254QEMU is a generic and open source processor emulator which achieves a
255good emulation speed by using dynamic translation.
256
5dcbc30d
JB
257This package provides the system emulator with CRIS CPU.
258
259%description system-cris -l pl.UTF-8
260QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
261dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
262
263Ten pakiet zawiera emulator systemu z procesorem CRIS.
42155b61
JR
264
265%package system-lm32
5dcbc30d
JB
266Summary: QEMU system emulator for LM32
267Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
42155b61
JR
268Group: Development/Tools
269Requires: %{name}-common = %{version}-%{release}
b8be5aa4 270%systempkg_req
42155b61
JR
271
272%description system-lm32
273QEMU is a generic and open source processor emulator which achieves a
274good emulation speed by using dynamic translation.
275
5dcbc30d
JB
276This package provides the system emulator with LM32 CPU.
277
278%description system-lm32 -l pl.UTF-8
279QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
280dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
281
282Ten pakiet zawiera emulator systemu z procesorem LM32.
42155b61
JR
283
284%package system-m68k
285Summary: QEMU system emulator for m68k
5dcbc30d 286Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
42155b61
JR
287Group: Development/Tools
288Requires: %{name}-common = %{version}-%{release}
b8be5aa4 289%systempkg_req
42155b61
JR
290
291%description system-m68k
292QEMU is a generic and open source processor emulator which achieves a
293good emulation speed by using dynamic translation.
294
5dcbc30d
JB
295This package provides the system emulator with m68k CPU.
296
297%description system-m68k -l pl.UTF-8
298QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
299dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
300
301Ten pakiet zawiera emulator systemu z procesorem m68k.
42155b61
JR
302
303%package system-microblaze
5dcbc30d
JB
304Summary: QEMU system emulator for MicroBlaze
305Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
42155b61
JR
306Group: Development/Tools
307Requires: %{name}-common = %{version}-%{release}
b8be5aa4 308%systempkg_req
42155b61
JR
309
310%description system-microblaze
311QEMU is a generic and open source processor emulator which achieves a
312good emulation speed by using dynamic translation.
313
5dcbc30d
JB
314This package provides the system emulator with MicroBlaze CPU.
315
316%description system-microblaze -l pl.UTF-8
317QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
318dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
319
320Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
42155b61
JR
321
322%package system-mips
5dcbc30d
JB
323Summary: QEMU system emulator for MIPS
324Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
42155b61
JR
325Group: Development/Tools
326Requires: %{name}-common = %{version}-%{release}
b8be5aa4 327%systempkg_req
42155b61
JR
328
329%description system-mips
330QEMU is a generic and open source processor emulator which achieves a
331good emulation speed by using dynamic translation.
332
5dcbc30d
JB
333This package provides the system emulator with MIPS CPU.
334
335%description system-mips -l pl.UTF-8
336QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
337dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
338
339Ten pakiet zawiera emulator systemu z procesorem MIPS.
340
a95b7932
JB
341%package system-or32
342Summary: QEMU system emulator for OpenRISC
343Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
344Group: Development/Tools
345Requires: %{name}-common = %{version}-%{release}
b8be5aa4 346%systempkg_req
a95b7932
JB
347
348%description system-or32
349QEMU is a generic and open source processor emulator which achieves a
350good emulation speed by using dynamic translation.
351
352This package provides the system emulator with OpenRISC CPU.
353
354%description system-or32 -l pl.UTF-8
355QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
356dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
357
358Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
42155b61
JR
359
360%package system-ppc
5dcbc30d
JB
361Summary: QEMU system emulator for PowerPC
362Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
42155b61
JR
363Group: Development/Tools
364Requires: %{name}-common = %{version}-%{release}
b8be5aa4 365%systempkg_req
42155b61
JR
366
367%description system-ppc
368QEMU is a generic and open source processor emulator which achieves a
369good emulation speed by using dynamic translation.
370
5dcbc30d
JB
371This package provides the system emulator with PowerPC CPU.
372
373%description system-ppc -l pl.UTF-8
374QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
375dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
376
377Ten pakiet zawiera emulator systemu z procesorem PowerPC.
42155b61
JR
378
379%package system-s390x
5dcbc30d
JB
380Summary: QEMU system emulator for S390
381Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
42155b61
JR
382Group: Development/Tools
383Requires: %{name}-common = %{version}-%{release}
b8be5aa4 384%systempkg_req
42155b61
JR
385
386%description system-s390x
387QEMU is a generic and open source processor emulator which achieves a
388good emulation speed by using dynamic translation.
389
5dcbc30d
JB
390This package provides the system emulator with S390 CPU.
391
392%description system-s390x -l pl.UTF-8
393QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
394dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
395
396Ten pakiet zawiera emulator systemu z procesorem S390.
42155b61
JR
397
398%package system-sh4
5dcbc30d
JB
399Summary: QEMU system emulator for SH4
400Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
42155b61
JR
401Group: Development/Tools
402Requires: %{name}-common = %{version}-%{release}
b8be5aa4 403%systempkg_req
42155b61
JR
404
405%description system-sh4
406QEMU is a generic and open source processor emulator which achieves a
407good emulation speed by using dynamic translation.
408
5dcbc30d
JB
409This package provides the system emulator with SH4 CPU.
410
411%description system-sh4 -l pl.UTF-8
412QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
413dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
414
415Ten pakiet zawiera emulator systemu z procesorem SH4.
42155b61
JR
416
417%package system-sparc
5dcbc30d
JB
418Summary: QEMU system emulator for SPARC
419Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
42155b61
JR
420Group: Development/Tools
421Requires: %{name}-common = %{version}-%{release}
b8be5aa4 422%systempkg_req
42155b61
JR
423
424%description system-sparc
425QEMU is a generic and open source processor emulator which achieves a
426good emulation speed by using dynamic translation.
427
5dcbc30d
JB
428This package provides the system emulator with SPARC/SPARC64 CPU.
429
430%description system-sparc -l pl.UTF-8
431QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
432dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
433
434Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
42155b61 435
a95b7932
JB
436%package system-unicore32
437Summary: QEMU system emulator for UniCore32
438Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
439Group: Development/Tools
440Requires: %{name}-common = %{version}-%{release}
b8be5aa4 441%systempkg_req
a95b7932
JB
442
443%description system-unicore32
444QEMU is a generic and open source processor emulator which achieves a
445good emulation speed by using dynamic translation.
446
447This package provides the system emulator with UniCore32 CPU.
448
449%description system-unicore32 -l pl.UTF-8
450QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
451dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
452
453Ten pakiet zawiera emulator systemu z procesorem UniCore32.
454
42155b61
JR
455%package system-x86
456Summary: QEMU system emulator for x86
5dcbc30d 457Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
42155b61
JR
458Group: Development/Tools
459Requires: %{name}-common = %{version}-%{release}
b8be5aa4 460%systempkg_req
42155b61
JR
461Obsoletes: kvm
462
463%description system-x86
464QEMU is a generic and open source processor emulator which achieves a
465good emulation speed by using dynamic translation.
466
5dcbc30d
JB
467This package provides the system emulator with x86 CPU. When being run
468in a x86 machine that supports it, this package also provides the KVM
42155b61
JR
469virtualization platform.
470
5dcbc30d
JB
471%description system-x86 -l pl.UTF-8
472QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
473dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
474
475Ten pakiet zawiera emulator systemu z procesorem x86. W przypadku
476uruchomienia na maszynie x86 pozwalającej na to, ten pakiet udostępnia
477także platformę wirtualizacji KVM.
478
42155b61 479%package system-xtensa
5dcbc30d
JB
480Summary: QEMU system emulator for Xtensa
481Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
42155b61
JR
482Group: Development/Tools
483Requires: %{name}-common = %{version}-%{release}
b8be5aa4 484%systempkg_req
42155b61
JR
485
486%description system-xtensa
487QEMU is a generic and open source processor emulator which achieves a
488good emulation speed by using dynamic translation.
489
5dcbc30d
JB
490This package provides the system emulator with Xtensa CPU.
491
492%description system-xtensa -l pl.UTF-8
493QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
494dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
495
496Ten pakiet zawiera emulator systemu z procesorem Xtensa.
42155b61 497
48331304
JR
498%package guest-agent
499Summary: QEMU guest agent
5dcbc30d 500Summary(pl.UTF-8): Agent gościa QEMU
48331304 501Group: Daemons
48e39d01 502Requires(post,preun,postun): systemd-units >= 38
b8be5aa4 503Requires: glib2 >= 1:2.12
48331304
JR
504Requires: systemd-units >= 38
505
506%description guest-agent
507QEMU is a generic and open source processor emulator which achieves
508a good emulation speed by using dynamic translation.
509
510This package provides an agent to run inside guests, which
511communicates with the host over a virtio-serial channel named
a4bb0b7b 512"org.qemu.guest_agent.0".
48331304
JR
513
514This package does not need to be installed on the host OS.
515
a4bb0b7b
JB
516%description guest-agent -l pl.UTF-8
517QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
518dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
519
520Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
521systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
522"org.qemu.guest_agent.0".
523
524Ten pakiet nie musi być zainstalowany w systemie hosta.
525
9e42c24e 526%prep
527%setup -q
528%patch0 -p1
48331304 529%patch1 -p1
b8be5aa4
JB
530%patch2 -p1
531%patch3 -p1
0415c199 532%patch4 -p1
2f659f76 533%patch5 -p1
0415c199
JR
534
535%{__mv} libcacard libcacard-use-system-lib
9e42c24e 536
6101cbe5 537%{__gzip} -d -c %{SOURCE1} > pc-bios/bios.bin
8362f9e5
AF
538
539# workaround for conflict with alsa/error.h
540ln -s ../error.h qapi/error.h
541
9e42c24e 542%build
b8be5aa4
JB
543common_opts="\
544 --disable-strip \
545 --enable-attr \
546 --enable-bluez \
547 --enable-brlapi \
548 --enable-cap-ng \
549 --enable-curl \
550 --enable-curses \
551 --enable-docs \
552 --enable-fdt \
553 --enable-libiscsi \
554 --enable-mixemu \
555 %{__enable_disable opengl} \
556 %{__enable_disable ceph rbd} \
557 %{__enable_disable sdl} \
558 --enable-seccomp \
559 %{__enable_disable spice} \
560 --enable-smartcard \
561 --enable-smartcard-nss \
562 --enable-usb-redir \
563 --enable-uuid \
564 --enable-vde \
565 --enable-virtfs \
566 --enable-vnc-jpeg \
567 --enable-vnc-png \
568 --enable-vnc-sasl \
569 --enable-vnc-tls \
570 %{__enable_disable xen} \
571 --audio-drv-list=alsa%{?with_oss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa} \
572 --audio-card-list=ac97,es1370,sb16,cs4231a,adlib,gus,hda \
573 --interp-prefix=%{_libdir}/qemu/lib-%%M"
574
48331304 575%ifarch %{ix86} %{x8664}
9e42c24e 576./configure \
48331304
JR
577 --target-list="x86_64-softmmu" \
578 --extra-cflags="%{rpmcflags} -I/usr/include/ncurses" \
42155b61 579 --extra-ldflags="%{rpmldflags}" \
9e42c24e 580 --prefix=%{_prefix} \
8362f9e5
AF
581 --sysconfdir=%{_sysconfdir} \
582 --cc="%{__cc}" \
583 --host-cc="%{__cc}" \
b8be5aa4 584 $common_opts \
a95b7932 585 --enable-kvm \
b8be5aa4 586 --enable-system
9e42c24e 587
a95b7932
JB
588# note: CONFIG_QEMU_HELPERDIR is used when compiling, libexecdir when installing;
589# --libexecdir in configure is nop
590%{__make} \
b8be5aa4 591 V=1 \
a95b7932 592 CONFIG_QEMU_HELPERDIR="%{_libdir}"
48331304 593cp -a x86_64-softmmu/qemu-system-x86_64 qemu-kvm
a95b7932 594%{__make} clean \
b8be5aa4 595 V=1
48331304
JR
596%endif
597
598./configure \
599 --target-list="" \
600 --extra-cflags="%{rpmcflags} -I/usr/include/ncurses" \
42155b61 601 --extra-ldflags="%{rpmldflags}" \
48331304
JR
602 --prefix=%{_prefix} \
603 --sysconfdir=%{_sysconfdir} \
604 --cc="%{__cc}" \
605 --host-cc="%{__cc}" \
b8be5aa4 606 $common_opts \
48331304 607 --disable-kvm \
b8be5aa4 608 --enable-system
48331304 609
a95b7932
JB
610# note: CONFIG_QEMU_HELPERDIR is used when compiling, libexecdir when installing;
611# --libexecdir in configure is nop
612%{__make} \
b8be5aa4 613 V=1 \
a95b7932 614 CONFIG_QEMU_HELPERDIR="%{_libdir}"
48331304 615
a4bb0b7b 616%{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
9e42c24e 617
618%install
619rm -rf $RPM_BUILD_ROOT
48331304
JR
620install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
621 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
622 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
9e42c24e 623
624%{__make} install \
b8be5aa4 625 V=1 \
a95b7932
JB
626 DESTDIR=$RPM_BUILD_ROOT \
627 libexecdir=%{_libdir}
8362f9e5 628
9e42c24e 629install -d $RPM_BUILD_ROOT%{_sysconfdir}
630cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
631#!/bin/sh
632
633EOF
634
48331304
JR
635install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
636
637install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
638install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
639install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
640
641install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
642install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
643install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
644
645%ifarch %{ix86} %{x8664}
646install qemu-kvm $RPM_BUILD_ROOT%{_bindir}/qemu-system-x86_64
647ln -s qemu-system-x86_64 $RPM_BUILD_ROOT%{_bindir}/qemu-kvm
a95b7932 648install scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
48331304
JR
649install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
650install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
651%endif
652
653# For the qemu-guest-agent subpackage install the systemd
654# service and udev rules.
655install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
656install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
657
658for i in dummy \
659%ifnarch %{ix86} %{x8664}
660 qemu-i386 \
661%endif
662%ifnarch arm
663 qemu-arm \
664%endif
665%ifnarch ppc ppc64
666 qemu-ppc \
667%endif
668%ifnarch sparc sparc64
669 qemu-sparc \
670%endif
671%ifnarch sh4
672 qemu-sh4 \
673%endif
674; do
675 test $i = dummy && continue
676 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
677done < %{SOURCE2}
678
9e42c24e 679# already packaged
48331304 680%{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
a95b7932 681%{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
9e42c24e 682
683%clean
684rm -rf $RPM_BUILD_ROOT
685
42155b61 686%pre common
48331304 687%groupadd -g 160 kvm
76f1aca2
JR
688%groupadd -g 276 qemu
689%useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
48331304 690
42155b61 691%post common
48331304
JR
692%systemd_post ksm.service
693%systemd_post ksmtuned.service
48331304 694
42155b61 695%preun common
48331304
JR
696%systemd_preun ksm.service
697%systemd_preun ksmtuned.service
698
830e77f6 699%postun common
48331304 700if [ "$1" = "0" ]; then
76f1aca2
JR
701 %userremove qemu
702 %groupremove qemu
48331304
JR
703 %groupremove kvm
704fi
705%systemd_reload
48331304 706
42155b61 707%triggerpostun common -- %{name} < 1.0-3
91593ac6
JR
708%systemd_trigger ksm.service
709%systemd_trigger ksmtuned.service
710
42155b61 711%post user
d02cfb6d 712%systemd_service_restart systemd-binfmt.service
42155b61
JR
713
714%postun user
d02cfb6d 715%systemd_service_restart systemd-binfmt.service
42155b61 716
48331304
JR
717%post guest-agent
718%systemd_reload
719
720%preun guest-agent
721%systemd_preun qemu-guest-agent.service
722
723%postun guest-agent
724%systemd_reload
725
b4a07eb9
JR
726%files
727%defattr(644,root,root,755)
728
42155b61 729%files common
9e42c24e 730%defattr(644,root,root,755)
a95b7932 731%doc README qemu-doc.html qemu-tech.html QMP/qmp-commands.txt
9e42c24e 732%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
8362f9e5
AF
733%dir %{_sysconfdir}/qemu
734%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
48331304
JR
735%config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
736%config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
737%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
738%{systemdunitdir}/ksm.service
739%{systemdunitdir}/ksmtuned.service
42155b61 740%attr(755,root,root) %{_bindir}/qemu-nbd
a95b7932 741%attr(755,root,root) %{_bindir}/virtfs-proxy-helper
a95b7932 742%attr(755,root,root) %{_libdir}/qemu-bridge-helper
48331304
JR
743%attr(755,root,root) %{_sbindir}/ksmctl
744%attr(755,root,root) %{_sbindir}/ksmtuned
42155b61 745%{_mandir}/man1/qemu.1*
a95b7932 746%{_mandir}/man1/virtfs-proxy-helper.1*
42155b61
JR
747%{_mandir}/man8/qemu-nbd.8*
748
749%dir %{_datadir}/qemu
a95b7932 750%{_datadir}/qemu/cpus-*.conf
42155b61 751%{_datadir}/qemu/keymaps
a95b7932 752%{_datadir}/qemu/qemu-icon.bmp
42155b61
JR
753# various bios images
754%{_datadir}/qemu/*.bin
755%{_datadir}/qemu/*.rom
756%{_datadir}/qemu/*.dtb
757%{_datadir}/qemu/openbios-ppc
758%{_datadir}/qemu/openbios-sparc*
759%{_datadir}/qemu/palcode-clipper
760
761%files img
762%defattr(644,root,root,755)
763%attr(755,root,root) %{_bindir}/qemu-img
764%{_mandir}/man1/qemu-img.1*
765
766%files user
767%defattr(644,root,root,755)
768/usr/lib/binfmt.d/qemu-*.conf
8362f9e5
AF
769%attr(755,root,root) %{_bindir}/qemu-alpha
770%attr(755,root,root) %{_bindir}/qemu-arm
771%attr(755,root,root) %{_bindir}/qemu-armeb
772%attr(755,root,root) %{_bindir}/qemu-cris
8362f9e5 773%attr(755,root,root) %{_bindir}/qemu-i386
8362f9e5 774%attr(755,root,root) %{_bindir}/qemu-io
8362f9e5
AF
775%attr(755,root,root) %{_bindir}/qemu-m68k
776%attr(755,root,root) %{_bindir}/qemu-microblaze
777%attr(755,root,root) %{_bindir}/qemu-microblazeel
778%attr(755,root,root) %{_bindir}/qemu-mips
779%attr(755,root,root) %{_bindir}/qemu-mipsel
a95b7932 780%attr(755,root,root) %{_bindir}/qemu-or32
8362f9e5
AF
781%attr(755,root,root) %{_bindir}/qemu-ppc
782%attr(755,root,root) %{_bindir}/qemu-ppc64
783%attr(755,root,root) %{_bindir}/qemu-ppc64abi32
784%attr(755,root,root) %{_bindir}/qemu-s390x
785%attr(755,root,root) %{_bindir}/qemu-sh4
786%attr(755,root,root) %{_bindir}/qemu-sh4eb
787%attr(755,root,root) %{_bindir}/qemu-sparc
788%attr(755,root,root) %{_bindir}/qemu-sparc32plus
789%attr(755,root,root) %{_bindir}/qemu-sparc64
42155b61
JR
790%attr(755,root,root) %{_bindir}/qemu-unicore32
791%attr(755,root,root) %{_bindir}/qemu-x86_64
792
793%files system-alpha
794%defattr(644,root,root,755)
48331304 795%attr(755,root,root) %{_bindir}/qemu-system-alpha
42155b61
JR
796
797%files system-arm
798%defattr(644,root,root,755)
8362f9e5 799%attr(755,root,root) %{_bindir}/qemu-system-arm
42155b61
JR
800
801%files system-cris
802%defattr(644,root,root,755)
8362f9e5 803%attr(755,root,root) %{_bindir}/qemu-system-cris
42155b61
JR
804
805%files system-lm32
806%defattr(644,root,root,755)
8362f9e5 807%attr(755,root,root) %{_bindir}/qemu-system-lm32
42155b61
JR
808
809%files system-m68k
810%defattr(644,root,root,755)
8362f9e5 811%attr(755,root,root) %{_bindir}/qemu-system-m68k
42155b61
JR
812
813%files system-microblaze
814%defattr(644,root,root,755)
8362f9e5
AF
815%attr(755,root,root) %{_bindir}/qemu-system-microblaze
816%attr(755,root,root) %{_bindir}/qemu-system-microblazeel
42155b61
JR
817
818%files system-mips
819%defattr(644,root,root,755)
8362f9e5 820%attr(755,root,root) %{_bindir}/qemu-system-mips
42155b61 821%attr(755,root,root) %{_bindir}/qemu-system-mipsel
8362f9e5
AF
822%attr(755,root,root) %{_bindir}/qemu-system-mips64
823%attr(755,root,root) %{_bindir}/qemu-system-mips64el
42155b61 824
a95b7932
JB
825%files system-or32
826%defattr(644,root,root,755)
827%attr(755,root,root) %{_bindir}/qemu-system-or32
828
42155b61
JR
829%files system-ppc
830%defattr(644,root,root,755)
8362f9e5
AF
831%attr(755,root,root) %{_bindir}/qemu-system-ppc
832%attr(755,root,root) %{_bindir}/qemu-system-ppc64
833%attr(755,root,root) %{_bindir}/qemu-system-ppcemb
42155b61
JR
834
835%files system-s390x
836%defattr(644,root,root,755)
8362f9e5 837%attr(755,root,root) %{_bindir}/qemu-system-s390x
42155b61
JR
838
839%files system-sh4
840%defattr(644,root,root,755)
8362f9e5
AF
841%attr(755,root,root) %{_bindir}/qemu-system-sh4
842%attr(755,root,root) %{_bindir}/qemu-system-sh4eb
42155b61
JR
843
844%files system-sparc
845%defattr(644,root,root,755)
8362f9e5
AF
846%attr(755,root,root) %{_bindir}/qemu-system-sparc
847%attr(755,root,root) %{_bindir}/qemu-system-sparc64
42155b61 848
a95b7932
JB
849%files system-unicore32
850%defattr(644,root,root,755)
851%attr(755,root,root) %{_bindir}/qemu-system-unicore32
852
42155b61
JR
853%files system-x86
854%defattr(644,root,root,755)
855%ifarch %{ix86} %{x8664}
856%config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
857%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
858%endif
859%attr(755,root,root) %{_bindir}/kvm_stat
860%attr(755,root,root) %{_bindir}/qemu-kvm
861%attr(755,root,root) %{_bindir}/qemu-system-i386
8362f9e5 862%attr(755,root,root) %{_bindir}/qemu-system-x86_64
42155b61
JR
863
864%files system-xtensa
865%defattr(644,root,root,755)
48331304
JR
866%attr(755,root,root) %{_bindir}/qemu-system-xtensa
867%attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
48331304
JR
868
869%files guest-agent
870%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
871%{systemdunitdir}/qemu-guest-agent.service
872%attr(755,root,root) %{_bindir}/qemu-ga
This page took 0.186453 seconds and 4 git commands to generate.