]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - java bindings | |
3 | # - Package SDK. | |
4 | # - Package utils (and write initscripts ?) for Guest OS. | |
5 | # - Check License of VBoxGuestAdditions_*.iso, it's probably not GPL v2. | |
6 | # If so check if it is distributable. | |
7 | # - resolve mess with subpackages? | |
8 | # - addtions: iso (containing additions/*.iso) | |
9 | # - guest: to be installed to guests (deps on x11 drivers) | |
10 | # - enable VDE networking: --enable-vde | |
11 | # | |
12 | # Conditional build: | |
13 | %bcond_without doc # don't build the documentation | |
14 | %bcond_without dist_kernel # without distribution kernel | |
15 | %bcond_without kernel # don't build kernel module | |
16 | %bcond_without userspace # don't build userspace package | |
17 | %bcond_with webservice # webservice (soap) support | |
18 | %bcond_without verbose | |
19 | %bcond_with force_userspace # force userspace build (useful if alt_kernel is set) | |
20 | ||
21 | %if %{without kernel} | |
22 | %undefine with_dist_kernel | |
23 | %endif | |
24 | %if "%{_alt_kernel}" != "%{nil}" | |
25 | %undefine with_userspace | |
26 | %endif | |
27 | %if %{with force_userspace} | |
28 | %define with_userspace 1 | |
29 | %endif | |
30 | %if %{without userspace} | |
31 | # nothing to be placed to debuginfo package | |
32 | %define _enable_debug_packages 0 | |
33 | %endif | |
34 | ||
35 | %define rel 3 | |
36 | %define pname VirtualBox | |
37 | Summary: VirtualBox - x86 hardware virtualizer | |
38 | Summary(pl.UTF-8): VirtualBox - wirtualizator sprzętu x86 | |
39 | Name: %{pname}%{_alt_kernel} | |
40 | Version: 4.2.4 | |
41 | Release: %{rel} | |
42 | License: GPL v2 | |
43 | Group: Applications/Emulators | |
44 | Source0: http://download.virtualbox.org/virtualbox/%{version}/%{pname}-%{version}.tar.bz2 | |
45 | # Source0-md5: d1ec2d2a3f2f3f0b277dfe2c520c2e33 | |
46 | Source1: http://download.virtualbox.org/virtualbox/%{version}/VBoxGuestAdditions_%{version}.iso | |
47 | # Source1-md5: 46fc9cf002e384fb199029c681efd7e8 | |
48 | Source3: %{pname}-vboxdrv.init | |
49 | Source4: %{pname}-vboxguest.init | |
50 | Source5: %{pname}-vboxnetflt.init | |
51 | Source6: %{pname}-vboxsf.init | |
52 | Source7: %{pname}-vboxnetadp.init | |
53 | Source8: %{pname}-vboxpci.init | |
54 | Source9: %{pname}.sh | |
55 | Source10: mount.vdi | |
56 | Source11: udev.rules | |
57 | Source12: %{pname}-vboxdrv-modules-load.conf | |
58 | Source13: %{pname}-vboxguest-modules-load.conf | |
59 | Source14: %{pname}-vboxnetflt-modules-load.conf | |
60 | Source15: %{pname}-vboxsf-modules-load.conf | |
61 | Source16: %{pname}-vboxnetadp-modules-load.conf | |
62 | Source17: %{pname}-vboxpci-modules-load.conf | |
63 | Patch0: %{pname}-configure-spaces.patch | |
64 | Patch1: %{pname}-VBoxSysInfo.patch | |
65 | Patch2: %{pname}-warning_workaround.patch | |
66 | Patch3: %{pname}-dri.patch | |
67 | Patch4: %{pname}-disable_build_NetBiosBin.patch | |
68 | Patch5: xserver-1.12.patch | |
69 | # ubuntu patches | |
70 | Patch10: 16-no-update.patch | |
71 | Patch11: 18-system-xorg.patch | |
72 | # /ubuntu patches | |
73 | URL: http://www.virtualbox.org/ | |
74 | %if %{with userspace} | |
75 | %ifarch %{x8664} | |
76 | BuildRequires: gcc-multilib | |
77 | BuildRequires: glibc-devel(i686) | |
78 | BuildRequires: libstdc++-multilib-devel | |
79 | BuildRequires: libstdc++-multilib-static | |
80 | %endif | |
81 | %if "%{pld_release}" == "ac" | |
82 | BuildRequires: XFree86-devel | |
83 | %else | |
84 | BuildRequires: xorg-lib-libXcomposite-devel | |
85 | BuildRequires: xorg-lib-libXcursor-devel | |
86 | BuildRequires: xorg-lib-libXmu-devel | |
87 | BuildRequires: xorg-proto-glproto-devel | |
88 | BuildRequires: xorg-xserver-server-devel | |
89 | %endif | |
90 | BuildRequires: OpenGL-GLU-devel | |
91 | BuildRequires: OpenGL-devel | |
92 | BuildRequires: QtGui-devel | |
93 | BuildRequires: QtNetwork-devel | |
94 | BuildRequires: QtOpenGL-devel | |
95 | BuildRequires: SDL-devel >= 1.2.7 | |
96 | BuildRequires: acpica | |
97 | BuildRequires: alsa-lib-devel >= 1.0.6 | |
98 | BuildRequires: bash | |
99 | BuildRequires: bcc | |
100 | BuildRequires: bin86 | |
101 | BuildRequires: curl-devel | |
102 | %{?with_doc:BuildRequires: docbook-dtd44-xml} | |
103 | BuildRequires: gcc >= 5:3.2.3 | |
104 | %{?with_webservice:BuildRequires: gsoap-devel} | |
105 | BuildRequires: libIDL-devel | |
106 | BuildRequires: libcap-static | |
107 | BuildRequires: libdrm-devel | |
108 | BuildRequires: libpng-devel >= 1.2.5 | |
109 | BuildRequires: libstdc++-devel >= 5:3.2.3 | |
110 | BuildRequires: libstdc++-static >= 5:3.2.3 | |
111 | BuildRequires: libuuid-devel | |
112 | BuildRequires: libvncserver-devel >= 0.9.9 | |
113 | BuildRequires: libxml2-devel >= 2.6.26 | |
114 | BuildRequires: libxslt-devel >= 1.1.17 | |
115 | BuildRequires: libxslt-progs >= 1.1.17 | |
116 | BuildRequires: makeself | |
117 | BuildRequires: mkisofs | |
118 | BuildRequires: pam-devel | |
119 | BuildRequires: pixman-devel | |
120 | BuildRequires: pkgconfig | |
121 | BuildRequires: pulseaudio-devel >= 0.9.0 | |
122 | BuildRequires: python-devel | |
123 | BuildRequires: python-modules | |
124 | BuildRequires: qt4-build >= 4.2.0 | |
125 | BuildRequires: qt4-linguist | |
126 | BuildRequires: rpmbuild(macros) >= 1.627 | |
127 | BuildRequires: sed >= 4.0 | |
128 | %if %{with doc} | |
129 | BuildRequires: texlive-fonts-bitstream | |
130 | BuildRequires: texlive-fonts-other | |
131 | BuildRequires: texlive-fonts-type1-bitstream | |
132 | BuildRequires: texlive-format-pdflatex | |
133 | BuildRequires: texlive-latex-ucs | |
134 | BuildRequires: texlive-xetex | |
135 | %endif | |
136 | BuildRequires: which | |
137 | BuildRequires: xalan-c-devel >= 1.10.0 | |
138 | BuildRequires: xerces-c-devel >= 2.6.0 | |
139 | BuildRequires: zlib-devel >= 1.2.1 | |
140 | %endif | |
141 | %if %{with dist_kernel} | |
142 | BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20 | |
143 | %endif | |
144 | Requires(post,preun): /sbin/chkconfig | |
145 | Requires(postun): /usr/sbin/groupdel | |
146 | Requires(pre): /usr/bin/getgid | |
147 | Requires(pre): /usr/sbin/groupadd | |
148 | Requires: QtCore >= 4.7.0 | |
149 | Requires: libvncserver >= 0.9.9 | |
150 | Suggests: gxmessage | |
151 | Provides: group(vbox) | |
152 | ExclusiveArch: %{ix86} %{x8664} | |
153 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
154 | ||
155 | %ifarch %{x8664} | |
156 | %define vbox_arch amd64 | |
157 | %else | |
158 | %define vbox_arch x86 | |
159 | %endif | |
160 | %define vbox_platform linux.%{vbox_arch} | |
161 | %define outdir out/%{vbox_platform}/release/bin | |
162 | %define _sbindir /sbin | |
163 | ||
164 | # workaround buggy 'file' results: | |
165 | # | |
166 | # EfiThunk: \0 | |
167 | # qt_ro.qm: \0 "<\270d\030\312\357\234\225\315!\034\277`\241\275\335B" | |
168 | # VBoxEFI32.fd: \0 | |
169 | # VBoxEFI64.fd: \0 | |
170 | # | |
171 | # which lead to 'Stripping ... ELF shared libraries... (...)/nls/qt_ro.qm: File format not recognized' | |
172 | %define _noautostrip .*%{_libdir}/%{name}/.* | |
173 | ||
174 | %description | |
175 | Oracle VirtualBox is a general-purpose full virtualizer for x86 | |
176 | hardware. Targeted at server, desktop and embedded use, it is now the | |
177 | only professional-quality virtualization solution that is also Open | |
178 | Source Software. | |
179 | ||
180 | Some of the features of VirtualBox are: | |
181 | ||
182 | Modularity: VirtualBox has an extremely modular design with | |
183 | well-defined internal programming interfaces and a client/server | |
184 | design. This makes it easy to control it from several interfaces at | |
185 | once: for example, you can start a virtual machine in a typical | |
186 | virtual machine GUI and then control that machine from the command | |
187 | line. VirtualBox also comes with a full Software Development Kit: even | |
188 | though it is Open Source Software, you don't have to hack the source | |
189 | to write a new interface for VirtualBox. | |
190 | ||
191 | Virtual machine descriptions in XML: the configuration settings of | |
192 | virtual machines are stored entirely in XML and are independent of the | |
193 | local machines. Virtual machine definitions can therefore easily be | |
194 | ported to other computers. | |
195 | ||
196 | You should install this package in your Host OS. | |
197 | ||
198 | %description -l pl.UTF-8 | |
199 | Oracle VirtualBox jest emulatorem sprzętu x86. Kierowany do zastosowań | |
200 | serwerowych, desktopowych oraz wbudowanych jest obecnie jedynym | |
201 | wysokiej jakości rozwiązaniem wirtualizacyjnym dostępnym również jako | |
202 | Otwarte Oprogramowanie. | |
203 | ||
204 | Przykładowe cechy VirtualBoksa: | |
205 | ||
206 | Modularność: VirtualBox jest wysoce zmodularyzowanym produktem z | |
207 | dobrze zaprojektowanym wewnętrznym interfejsem programowym typu | |
208 | klient/serwer. Dzięki temu można łatwo kontrolować go za pomocą | |
209 | różnych interfejsów. Można na przykład uruchomić maszynę wirtualną z | |
210 | poziomu interfejsu graficznego, a później kontrolować ją z linii | |
211 | poleceń. VirtualBox dostarcza również pełny pakiet deweloperski, co | |
212 | pozwala stworzyć dowolny inny interfejs zarządzania maszyną wirtualną. | |
213 | ||
214 | Opisy maszyn wirtualnych w XML-u: konfiguracje poszczególnych maszyn | |
215 | wirtualnych są w całości przechowywane w XML-u i są niezależne od | |
216 | lokalnej maszyny. Dzięki temu można szybko i łatwo przenieść | |
217 | konfigurację maszyny wirtualnej na inny komputer. | |
218 | ||
219 | %package doc | |
220 | Summary: VirtualBox documentation | |
221 | Group: Documentation | |
222 | ||
223 | %description doc | |
224 | This package contains VirtualBox User Manual. | |
225 | ||
226 | %package udev | |
227 | Summary: udev rules for VirtualBox kernel modules | |
228 | Summary(pl.UTF-8): Reguły udev dla modułów jądra Linuksa dla VirtualBoksa | |
229 | Group: Base/Kernel | |
230 | Requires: udev-core | |
231 | ||
232 | %description udev | |
233 | udev rules for VirtualBox kernel modules. | |
234 | ||
235 | You should install this package in your Host OS and in Guest OS. | |
236 | ||
237 | %description udev -l pl.UTF-8 | |
238 | Reguły udev dla modułów jądra Linuksa dla VirtualBoksa. | |
239 | ||
240 | %package additions | |
241 | Summary: VirtualBox Guest Additions | |
242 | Group: Base | |
243 | Requires: %{name} = %{version}-%{release} | |
244 | ||
245 | %description additions | |
246 | VirtualBox Guest Additions. | |
247 | ||
248 | This package contains ISO9660 image with drivers for Guest OS. | |
249 | ||
250 | You should install this package in your Host OS. | |
251 | ||
252 | %package guest | |
253 | Summary: VirtualBox Guest Additions | |
254 | Group: Base | |
255 | Requires: xorg-driver-input-vboxmouse = %{version}-%{release} | |
256 | Requires: xorg-driver-video-vboxvideo = %{version}-%{release} | |
257 | Suggests: kernel%{_alt_kernel}-misc-vboxsf = %{version}-%{rel}@%{_kernel_ver_str} | |
258 | Suggests: kernel%{_alt_kernel}-misc-vboxvideo = %{version}-%{rel}@%{_kernel_ver_str} | |
259 | ||
260 | %description guest | |
261 | Tools that utilize kernel modules for supporting integration with the | |
262 | Host, including file sharing and tracking of mouse pointer movement | |
263 | and X.org X11 video and mouse driver. | |
264 | ||
265 | You should install this package in your Guest OS. | |
266 | ||
267 | %package -n pam-pam_vbox | |
268 | Summary: PAM module to perform automated guest logons | |
269 | Group: Base | |
270 | ||
271 | %description -n pam-pam_vbox | |
272 | PAM module (Pluggable Authentication Module) which can be used to | |
273 | perform automated guest logons. | |
274 | ||
275 | %package -n xorg-driver-input-vboxmouse | |
276 | Summary: X.org mouse driver for VirtualBox guest OS | |
277 | Summary(pl.UTF-8): Sterownik myszy dla systemu gościa w VirtualBoksie | |
278 | Group: X11/Applications | |
279 | Requires: xorg-xserver-server >= 1.0.99.901 | |
280 | Requires: xorg-xserver-server(xinput-abi) <= 18.0 | |
281 | Requires: xorg-xserver-server(xinput-abi) >= 4.0 | |
282 | ||
283 | %description -n xorg-driver-input-vboxmouse | |
284 | X.org mouse driver for VirtualBox guest OS. | |
285 | ||
286 | %description -n xorg-driver-input-vboxmouse -l pl.UTF-8 | |
287 | Sterownik myszy dla systemu gościa w VirtualBoksie. | |
288 | ||
289 | %package -n xorg-driver-video-vboxvideo | |
290 | Summary: X.org video driver for VirtualBox guest OS | |
291 | Summary(pl.UTF-8): Sterownik grafiki dla systemu gościa w VirtualBoksie | |
292 | Group: X11/Applications | |
293 | Requires: Mesa-dri-driver-swrast | |
294 | Requires: xorg-xserver-libdri >= 1.7.4 | |
295 | Requires: xorg-xserver-server >= 1.0.99.901 | |
296 | Requires: xorg-xserver-server(videodrv-abi) <= 13.0 | |
297 | Requires: xorg-xserver-server(videodrv-abi) >= 2.0 | |
298 | ||
299 | %description -n xorg-driver-video-vboxvideo | |
300 | X.org video driver for VirtualBox guest OS. | |
301 | ||
302 | %description -n xorg-driver-video-vboxvideo -l pl.UTF-8 | |
303 | Sterownik grafiki dla systemu gościa w VirtualBoksie. | |
304 | ||
305 | %package kernel-init-host | |
306 | Summary: SysV initscripts for host kernel modules | |
307 | Group: Base/Kernel | |
308 | ||
309 | %description kernel-init-host | |
310 | SysV initscripts for host kernel modules. | |
311 | ||
312 | %package kernel-init-guest | |
313 | Summary: SysV initscripts for guest kernel modules | |
314 | Group: Base/Kernel | |
315 | ||
316 | %description kernel-init-guest | |
317 | SysV initscripts for guest kernel modules. | |
318 | ||
319 | # KERNEL PACKAGES | |
320 | ||
321 | # KEEP ALL REGULAR SUBPACKAGES BEFORE KERNEL PACKAGES. | |
322 | ||
323 | %package -n kernel%{_alt_kernel}-misc-vboxguest | |
324 | Summary: VirtualBox Guest Additions for Linux Module | |
325 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
326 | Release: %{rel}@%{_kernel_ver_str} | |
327 | Group: Base/Kernel | |
328 | Requires(post,postun): /sbin/depmod | |
329 | Requires(post): systemd-units >= 38 | |
330 | Requires: dev >= 2.9.0-7 | |
331 | %if %{with dist_kernel} | |
332 | %requires_releq_kernel | |
333 | Requires(postun): %releq_kernel | |
334 | %endif | |
335 | Requires: systemd-units >= 38 | |
336 | Suggests: %{name}-kernel-init-guest >= %{version}-%{rel} | |
337 | Provides: kernel(vboxguest) = %{version}-%{rel} | |
338 | Obsoletes: kernel%{_alt_kernel}-misc-vboxadd | |
339 | Conflicts: kernel%{_alt_kernel}-misc-vboxdrv | |
340 | ||
341 | %description -n kernel%{_alt_kernel}-misc-vboxguest | |
342 | VirtualBox Guest Additions for Linux Module. | |
343 | ||
344 | You should install this package in your Guest OS. | |
345 | ||
346 | %description -n kernel%{_alt_kernel}-misc-vboxguest -l pl.UTF-8 | |
347 | Moduł jądra Linuksa vboxguest dla VirtualBoksa - dodatki dla systemu | |
348 | gościa. | |
349 | ||
350 | %package -n kernel%{_alt_kernel}-misc-vboxdrv | |
351 | Summary: VirtualBox Support Driver | |
352 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
353 | Release: %{rel}@%{_kernel_ver_str} | |
354 | Group: Base/Kernel | |
355 | Requires(post,postun): /sbin/depmod | |
356 | Requires(post): systemd-units >= 38 | |
357 | Requires: dev >= 2.9.0-7 | |
358 | %if %{with dist_kernel} | |
359 | %requires_releq_kernel | |
360 | Requires(postun): %releq_kernel | |
361 | %endif | |
362 | Requires: systemd-units >= 38 | |
363 | Suggests: %{name}-kernel-init-host >= %{version}-%{rel} | |
364 | Provides: kernel(vboxdrv) = %{version}-%{rel} | |
365 | ||
366 | %description -n kernel%{_alt_kernel}-misc-vboxdrv | |
367 | VirtualBox Support Driver. | |
368 | ||
369 | You should install this package in your Host OS. | |
370 | ||
371 | %description -n kernel%{_alt_kernel}-misc-vboxdrv -l pl.UTF-8 | |
372 | Moduł jądra Linuksa dla VirtualBoksa - sterownik wsparcia dla systemu | |
373 | głównego. | |
374 | ||
375 | %package -n kernel%{_alt_kernel}-misc-vboxnetadp | |
376 | Summary: VirtualBox Network Adapter Driver | |
377 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
378 | Release: %{rel}@%{_kernel_ver_str} | |
379 | Group: Base/Kernel | |
380 | Requires(post,postun): /sbin/depmod | |
381 | Requires(post): systemd-units >= 38 | |
382 | Requires: dev >= 2.9.0-7 | |
383 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
384 | %if %{with dist_kernel} | |
385 | %requires_releq_kernel | |
386 | Requires(postun): %releq_kernel | |
387 | %endif | |
388 | Requires: systemd-units >= 38 | |
389 | Suggests: %{name}-kernel-init-host >= %{version}-%{rel} | |
390 | Provides: kernel(vboxnetflt) = %{version}-%{rel} | |
391 | ||
392 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp | |
393 | VirtualBox Network Adapter Driver. | |
394 | ||
395 | You should install this package in your Host OS. | |
396 | ||
397 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp -l pl.UTF-8 | |
398 | Moduł jądra Linuksa dla VirtualBoksa - sterownik witrualnej karty | |
399 | sieciowej. | |
400 | ||
401 | %package -n kernel%{_alt_kernel}-misc-vboxnetflt | |
402 | Summary: VirtualBox Network Filter Driver | |
403 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
404 | Release: %{rel}@%{_kernel_ver_str} | |
405 | Group: Base/Kernel | |
406 | Requires(post,postun): /sbin/depmod | |
407 | Requires(post): systemd-units >= 38 | |
408 | Requires: dev >= 2.9.0-7 | |
409 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
410 | %if %{with dist_kernel} | |
411 | %requires_releq_kernel | |
412 | Requires(postun): %releq_kernel | |
413 | %endif | |
414 | Requires: systemd-units >= 38 | |
415 | Suggests: %{name}-kernel-init-host >= %{version}-%{rel} | |
416 | Provides: kernel(vboxnetflt) = %{version}-%{rel} | |
417 | ||
418 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt | |
419 | VirtualBox Network Filter Driver. | |
420 | ||
421 | You should install this package in your Host OS. | |
422 | ||
423 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt -l pl.UTF-8 | |
424 | Moduł jądra Linuksa dla VirtualBoksa - sterownik filtrowania sieci dla | |
425 | systemu głównego. | |
426 | ||
427 | %package -n kernel%{_alt_kernel}-misc-vboxpci | |
428 | Summary: VirtualBox PCI card passthrough Driver | |
429 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
430 | Release: %{rel}@%{_kernel_ver_str} | |
431 | Group: Base/Kernel | |
432 | Requires(post,postun): /sbin/depmod | |
433 | Requires(post): systemd-units >= 38 | |
434 | Requires: dev >= 2.9.0-7 | |
435 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
436 | %if %{with dist_kernel} | |
437 | %requires_releq_kernel | |
438 | Requires(postun): %releq_kernel | |
439 | %endif | |
440 | Requires: systemd-units >= 38 | |
441 | Suggests: %{name}-kernel-init-host >= %{version}-%{rel} | |
442 | Provides: kernel(vboxpci) = %{version}-%{rel} | |
443 | ||
444 | %description -n kernel%{_alt_kernel}-misc-vboxpci | |
445 | VirtualBox PCI card passthrough driver that works as host proxy | |
446 | between guest and PCI hardware. | |
447 | ||
448 | You should install this package in your Host OS. | |
449 | ||
450 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt -l pl.UTF-8 | |
451 | Moduł jądra Linuksa dla VirtualBoksa - sterownik, ktory działa jako | |
452 | proxy między gościem i gospodarzem sprzętu PCI. | |
453 | ||
454 | %package -n kernel%{_alt_kernel}-misc-vboxsf | |
455 | Summary: Host file system access (Shared Folders) for VirtualBox | |
456 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
457 | Release: %{rel}@%{_kernel_ver_str} | |
458 | Group: Base/Kernel | |
459 | Requires(post,postun): /sbin/depmod | |
460 | Requires(post): systemd-units >= 38 | |
461 | Requires: dev >= 2.9.0-7 | |
462 | Requires: kernel%{_alt_kernel}-misc-vboxguest | |
463 | %if %{with dist_kernel} | |
464 | %requires_releq_kernel | |
465 | Requires(postun): %releq_kernel | |
466 | %endif | |
467 | Requires: systemd-units >= 38 | |
468 | Suggests: %{name}-kernel-init-guest >= %{version}-%{rel} | |
469 | Provides: kernel(vboxsf) = %{version}-%{rel} | |
470 | Obsoletes: kernel%{_alt_kernel}-misc-vboxvfs | |
471 | ||
472 | %description -n kernel%{_alt_kernel}-misc-vboxsf | |
473 | Host file system access (Shared Folders) for VirtualBox. | |
474 | ||
475 | You should install this package in your Guest OS. | |
476 | ||
477 | %description -n kernel%{_alt_kernel}-misc-vboxsf -l pl.UTF-8 | |
478 | Moduł jądra Linuksa dla VirtualBoksa - dostęp do plików systemu | |
479 | głównego z poziomu systemu gościa. | |
480 | ||
481 | %package -n kernel%{_alt_kernel}-misc-vboxvideo | |
482 | Summary: DRM support for VirtualBox | |
483 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
484 | Release: %{rel}@%{_kernel_ver_str} | |
485 | Group: Base/Kernel | |
486 | Requires(post,postun): /sbin/depmod | |
487 | Requires: dev >= 2.9.0-7 | |
488 | %if %{with dist_kernel} | |
489 | %requires_releq_kernel | |
490 | %requires_releq_kernel -n drm | |
491 | Requires(postun): %releq_kernel | |
492 | %endif | |
493 | Provides: kernel(vboxvideo) = %{version}-%{rel} | |
494 | ||
495 | %description -n kernel%{_alt_kernel}-misc-vboxvideo | |
496 | DRM support for VirtualBox. | |
497 | ||
498 | You should install this package in your Guest OS. | |
499 | ||
500 | %description -n kernel%{_alt_kernel}-misc-vboxvideo -l pl.UTF-8 | |
501 | Moduł jądra Linuksa dla VirtualBoksa - sterownik obsługi DRM. | |
502 | ||
503 | %prep | |
504 | %setup -q -n %{pname}-%{version} | |
505 | %patch0 -p1 | |
506 | %patch1 -p1 | |
507 | %patch2 -p1 | |
508 | %patch3 -p1 | |
509 | %patch4 -p1 | |
510 | %patch5 -p1 | |
511 | ||
512 | %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \ | |
513 | -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in | |
514 | ||
515 | # Respect LDFLAGS | |
516 | %{__sed} -i -e "s@_LDFLAGS\.%{vbox_arch}*.*=@& %{rpmldflags}@g" \ | |
517 | -i Config.kmk src/libs/xpcom18a4/Config.kmk | |
518 | ||
519 | %{__sed} 's#@LIBDIR@#%{_libdir}#' < %{SOURCE9} > VirtualBox-wrapper.sh | |
520 | ||
521 | install -d PLD-MODULE-BUILD/{GuestDrivers,HostDrivers} | |
522 | cd PLD-MODULE-BUILD | |
523 | ../src/VBox/Additions/linux/export_modules guest-modules.tar.gz | |
524 | tar -zxf guest-modules.tar.gz -C GuestDrivers | |
525 | ||
526 | ../src/VBox/HostDrivers/linux/export_modules host-modules.tar.gz --without-hardening | |
527 | tar -zxf host-modules.tar.gz -C HostDrivers | |
528 | cd - | |
529 | %patch10 -p1 | |
530 | %patch11 -p1 | |
531 | ||
532 | %build | |
533 | %if %{with userspace} | |
534 | echo "VBOX_WITH_TESTCASES := " > LocalConfig.kmk | |
535 | ./configure \ | |
536 | --with-gcc="%{__cc}" \ | |
537 | --with-g++="%{__cxx}" \ | |
538 | %{!?with_doc:--disable-docs} \ | |
539 | --disable-java \ | |
540 | --disable-hardening \ | |
541 | --disable-kmods \ | |
542 | --enable-vnc \ | |
543 | %{__enable webservice} \ | |
544 | %{nil} | |
545 | ||
546 | XSERVER_VERSION=$(rpm -q --queryformat '%{VERSION}\n' xorg-xserver-server-devel | awk -F. ' { print $1 $2 } ' 2> /dev/null || echo ERROR) | |
547 | . ./env.sh && \ | |
548 | kmk -j1 \ | |
549 | %{?with_verbose:KBUILD_VERBOSE=3} \ | |
550 | USER=%(id -un) \ | |
551 | VBOX_VERSION_STRING='$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)'_PLD \ | |
552 | XSERVER_VERSION="$XSERVER_VERSION" \ | |
553 | TOOL_GCC3_CFLAGS="%{rpmcflags}" \ | |
554 | TOOL_GCC3_CXXFLAGS="%{rpmcxxflags}" \ | |
555 | VBOX_GCC_OPT="%{rpmcxxflags}" \ | |
556 | %{nil} | |
557 | %endif | |
558 | ||
559 | %if %{with kernel} | |
560 | export KERN_DIR=%{_kernelsrcdir} | |
561 | cd PLD-MODULE-BUILD/HostDrivers | |
562 | %build_kernel_modules -m vboxdrv -C vboxdrv | |
563 | %build_kernel_modules -m vboxnetadp -C vboxnetadp | |
564 | %build_kernel_modules -m vboxnetflt -C vboxnetflt | |
565 | %build_kernel_modules -m vboxpci -C vboxpci | |
566 | ||
567 | cd ../GuestDrivers | |
568 | %build_kernel_modules -m vboxguest -C vboxguest | |
569 | cp -a vboxguest/Module.symvers vboxsf | |
570 | %build_kernel_modules -m vboxsf -C vboxsf -c | |
571 | %build_kernel_modules -m vboxvideo -C vboxvideo | |
572 | cd ../.. | |
573 | %{__cc} %{rpmcflags} %{rpmldflags} -Wall -Werror src/VBox/Additions/linux/sharedfolders/{mount.vboxsf.c,vbsfmount.c} -o mount.vboxsf | |
574 | %endif | |
575 | ||
576 | %install | |
577 | rm -rf $RPM_BUILD_ROOT | |
578 | ||
579 | %if %{with userspace} | |
580 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/%{pname}/ExtensionPacks} \ | |
581 | $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \ | |
582 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,dri,input} | |
583 | ||
584 | # test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition | |
585 | if cp -al VBox.png $RPM_BUILD_ROOT/Vbox.png 2>/dev/null; then | |
586 | l=l | |
587 | rm -f $RPM_BUILD_ROOT/VBox.png | |
588 | fi | |
589 | ||
590 | cp -a$l %{outdir}/* $RPM_BUILD_ROOT%{_libdir}/%{pname} | |
591 | ||
592 | %if %{with doc} | |
593 | ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual.pdf | |
594 | ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual_fr_FR.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual_fr_FR.pdf | |
595 | %endif | |
596 | ||
597 | install -d $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions | |
598 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso | |
599 | install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sbindir}/mount.vdi | |
600 | install -p VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_libdir}/%{pname} | |
601 | for f in {VBox{BFE,Headless,Manage,SDL,SVC,Tunctl,XPCOMIPCD},VirtualBox}; do | |
602 | ln -s %{_libdir}/%{pname}/VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/$f | |
603 | done | |
604 | ||
605 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/VBox.png,%{_pixmapsdir}/virtualbox.png} | |
606 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname},%{_desktopdir}}/virtualbox.desktop | |
607 | ||
608 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/vboxmouse_drv.so,%{_libdir}/xorg/modules/input/vboxmouse_drv.so} | |
609 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxvideo_drv.so,%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so} | |
610 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/VBoxOGL.so,%{_libdir}/xorg/modules/dri/vboxvideo_dri.so} | |
611 | # xorg other driver versions | |
612 | rm -vf $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxmouse_drv*.{o,so} | |
613 | rm -vf $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxvideo_drv*.{o,so} | |
614 | ||
615 | # XXX: where else to install them that vboxvideo_dri.so finds them? patch with rpath? | |
616 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLarrayspu.so | |
617 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLcrutil.so | |
618 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLerrorspu.so | |
619 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLfeedbackspu.so | |
620 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpackspu.so | |
621 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpassthroughspu.so | |
622 | ||
623 | install -d $RPM_BUILD_ROOT/etc/udev/rules.d | |
624 | cp -a %{SOURCE11} $RPM_BUILD_ROOT/etc/udev/rules.d/virtualbox.rules | |
625 | ||
626 | install -d $RPM_BUILD_ROOT/%{_lib}/security | |
627 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,/%{_lib}/security}/pam_vbox.so | |
628 | ||
629 | # cleanup unpackaged | |
630 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/{src,sdk,testcase} | |
631 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/src | |
632 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxkeyboard.tar.bz2 | |
633 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/tst* | |
634 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack-license.* | |
635 | ||
636 | # Guest Only Tools | |
637 | install -d $RPM_BUILD_ROOT/etc/{X11/xinit/xinitrc.d,xdg/autostart} | |
638 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxService | |
639 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxClient | |
640 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxControl | |
641 | install -p -D src/VBox/Additions/x11/Installer/98vboxadd-xclient \ | |
642 | $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh | |
643 | cp -p src/VBox/Additions/x11/Installer/vboxclient.desktop \ | |
644 | $RPM_BUILD_ROOT/etc/xdg/autostart/vboxclient.desktop | |
645 | ||
646 | # unknown - checkme | |
647 | %if 1 | |
648 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPInstall | |
649 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPLoggerCtl | |
650 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPUninstall | |
651 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBox.sh | |
652 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxshell.py | |
653 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/xpidl | |
654 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/runasroot.sh | |
655 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/load.sh | |
656 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/loadall.sh | |
657 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/CPUMInternal.d | |
658 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/cpumctx.d | |
659 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vbox-arch-types.d | |
660 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vbox-types.d | |
661 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vm.d | |
662 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/x86.d | |
663 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/testcase/%{vbox_arch}/vbox-vm-struct-test.d | |
664 | %endif | |
665 | ||
666 | # packaged by kernel part | |
667 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf | |
668 | %endif | |
669 | ||
670 | %if %{with kernel} | |
671 | install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,modules-load.d},%{_sbindir},%{systemdunitdir}} | |
672 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxdrv | |
673 | install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxguest | |
674 | install -p %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetflt | |
675 | install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxsf | |
676 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetadp | |
677 | install -p %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxpci | |
678 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxdrv/vboxdrv -d misc | |
679 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxnetadp/vboxnetadp -d misc | |
680 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxnetflt/vboxnetflt -d misc | |
681 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxpci/vboxpci -d misc | |
682 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxguest/vboxguest -d misc | |
683 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxsf/vboxsf -d misc | |
684 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxvideo/vboxvideo -d misc | |
685 | ||
686 | install -p mount.vboxsf $RPM_BUILD_ROOT%{_sbindir}/mount.vboxsf | |
687 | ||
688 | # Tell systemd to load modules | |
689 | cp -p %{SOURCE12} $RPM_BUILD_ROOT/etc/modules-load.d/vboxdrv.conf | |
690 | cp -p %{SOURCE13} $RPM_BUILD_ROOT/etc/modules-load.d/vboxguest.conf | |
691 | cp -p %{SOURCE14} $RPM_BUILD_ROOT/etc/modules-load.d/vboxnetflt.conf | |
692 | cp -p %{SOURCE15} $RPM_BUILD_ROOT/etc/modules-load.d/vboxsf.conf | |
693 | cp -p %{SOURCE16} $RPM_BUILD_ROOT/etc/modules-load.d/vboxnetadp.conf | |
694 | cp -p %{SOURCE17} $RPM_BUILD_ROOT/etc/modules-load.d/vboxpci.conf | |
695 | ||
696 | # And mask module-loading services | |
697 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxdrv.service | |
698 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxguest.service | |
699 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxnetflt.service | |
700 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxsf.service | |
701 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxnetadp.service | |
702 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxpci.service | |
703 | %endif | |
704 | ||
705 | %clean | |
706 | rm -rf $RPM_BUILD_ROOT | |
707 | ||
708 | %pre | |
709 | %groupadd -g 221 -r -f vbox | |
710 | ||
711 | %post | |
712 | %update_desktop_database | |
713 | ||
714 | cat << 'EOF' | |
715 | You must install vboxdrv kernel module for this software to work: | |
716 | kernel-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
717 | ||
718 | Additionally you might want to install: | |
719 | kernel-misc-vboxnetadp-%{version}-%{rel}@%{_kernel_ver_str} | |
720 | kernel-misc-vboxnetflt-%{version}-%{rel}@%{_kernel_ver_str} | |
721 | kernel-misc-vboxpci-%{version}-%{rel}@%{_kernel_ver_str} | |
722 | ||
723 | On Guest Linux system you might want to install: | |
724 | kernel-misc-vboxguest-%{version}-%{rel}@%{_kernel_ver_str} | |
725 | kernel-misc-vboxsf-%{version}-%{rel}@%{_kernel_ver_str} | |
726 | kernel-misc-vboxvideo-%{version}-%{rel}@%{_kernel_ver_str} | |
727 | ||
728 | EOF | |
729 | ||
730 | %postun | |
731 | if [ "$1" = "0" ]; then | |
732 | %groupremove vbox | |
733 | fi | |
734 | ||
735 | %post -n kernel%{_alt_kernel}-misc-vboxguest | |
736 | %depmod %{_kernel_ver} | |
737 | /sbin/chkconfig --add vboxguest | |
738 | %service vboxguest restart "VirtualBox Guest additions driver" | |
739 | %systemd_reload | |
740 | ||
741 | %postun -n kernel%{_alt_kernel}-misc-vboxguest | |
742 | %depmod %{_kernel_ver} | |
743 | ||
744 | %preun -n kernel%{_alt_kernel}-misc-vboxguest | |
745 | if [ "$1" = "0" ]; then | |
746 | %service vboxguest stop | |
747 | /sbin/chkconfig --del vboxguest | |
748 | fi | |
749 | ||
750 | %post -n kernel%{_alt_kernel}-misc-vboxdrv | |
751 | %depmod %{_kernel_ver} | |
752 | /sbin/chkconfig --add vboxdrv | |
753 | %service vboxdrv restart "VirtualBox Support Driver" | |
754 | %systemd_reload | |
755 | ||
756 | %postun -n kernel%{_alt_kernel}-misc-vboxdrv | |
757 | %depmod %{_kernel_ver} | |
758 | ||
759 | %preun -n kernel%{_alt_kernel}-misc-vboxdrv | |
760 | if [ "$1" = "0" ]; then | |
761 | %service vboxdrv stop | |
762 | /sbin/chkconfig --del vboxdrv | |
763 | fi | |
764 | ||
765 | %post -n kernel%{_alt_kernel}-misc-vboxnetadp | |
766 | %depmod %{_kernel_ver} | |
767 | /sbin/chkconfig --add vboxnetadp | |
768 | %service vboxnetadp restart "VirtualBox Network HostOnly driver" | |
769 | %systemd_reload | |
770 | ||
771 | %postun -n kernel%{_alt_kernel}-misc-vboxnetadp | |
772 | %depmod %{_kernel_ver} | |
773 | ||
774 | %preun -n kernel%{_alt_kernel}-misc-vboxnetadp | |
775 | if [ "$1" = "0" ]; then | |
776 | %service vboxnetadp stop | |
777 | /sbin/chkconfig --del vboxnetadp | |
778 | fi | |
779 | ||
780 | %post -n kernel%{_alt_kernel}-misc-vboxnetflt | |
781 | %depmod %{_kernel_ver} | |
782 | /sbin/chkconfig --add vboxnetflt | |
783 | %service vboxnetflt restart "VirtualBox Network Filter driver" | |
784 | %systemd_reload | |
785 | ||
786 | %postun -n kernel%{_alt_kernel}-misc-vboxnetflt | |
787 | %depmod %{_kernel_ver} | |
788 | ||
789 | %preun -n kernel%{_alt_kernel}-misc-vboxnetflt | |
790 | if [ "$1" = "0" ]; then | |
791 | %service vboxnetflt stop | |
792 | /sbin/chkconfig --del vboxnetflt | |
793 | fi | |
794 | ||
795 | %post -n kernel%{_alt_kernel}-misc-vboxpci | |
796 | %depmod %{_kernel_ver} | |
797 | /sbin/chkconfig --add vboxpci | |
798 | %service vboxnetflt restart "VirtualBox PCI passthrough driver" | |
799 | %systemd_reload | |
800 | ||
801 | %postun -n kernel%{_alt_kernel}-misc-vboxpci | |
802 | %depmod %{_kernel_ver} | |
803 | ||
804 | %preun -n kernel%{_alt_kernel}-misc-vboxpci | |
805 | if [ "$1" = "0" ]; then | |
806 | %service vboxpci stop | |
807 | /sbin/chkconfig --del vboxpci | |
808 | fi | |
809 | ||
810 | %post -n kernel%{_alt_kernel}-misc-vboxsf | |
811 | %depmod %{_kernel_ver} | |
812 | /sbin/chkconfig --add vboxsf | |
813 | %service vboxsf restart "VirtualBox Host file system access (Shared Folders)" | |
814 | %systemd_reload | |
815 | ||
816 | %postun -n kernel%{_alt_kernel}-misc-vboxsf | |
817 | %depmod %{_kernel_ver} | |
818 | ||
819 | %preun -n kernel%{_alt_kernel}-misc-vboxsf | |
820 | if [ "$1" = "0" ]; then | |
821 | %service vboxsf stop | |
822 | /sbin/chkconfig --del vboxsf | |
823 | fi | |
824 | ||
825 | %post -n kernel%{_alt_kernel}-misc-vboxvideo | |
826 | %depmod %{_kernel_ver} | |
827 | ||
828 | %postun -n kernel%{_alt_kernel}-misc-vboxvideo | |
829 | %depmod %{_kernel_ver} | |
830 | ||
831 | %if %{with userspace} | |
832 | %files | |
833 | %defattr(644,root,root,755) | |
834 | %dir %{_libdir}/%{pname} | |
835 | %dir %{_libdir}/%{pname}/ExtensionPacks | |
836 | %dir %{_libdir}/%{pname}/ExtensionPacks/VNC | |
837 | %dir %{_libdir}/%{pname}/ExtensionPacks/VNC/linux* | |
838 | %dir %{_libdir}/%{pname}/additions | |
839 | %dir %{_libdir}/%{pname}/components | |
840 | %dir %{_libdir}/%{pname}/nls | |
841 | %attr(755,root,root) %{_bindir}/VBoxBFE | |
842 | %attr(755,root,root) %{_bindir}/VBoxHeadless | |
843 | %attr(755,root,root) %{_bindir}/VBoxManage | |
844 | %attr(755,root,root) %{_bindir}/VBoxSDL | |
845 | %attr(755,root,root) %{_bindir}/VBoxSVC | |
846 | %attr(755,root,root) %{_bindir}/VBoxTunctl | |
847 | %attr(755,root,root) %{_bindir}/VBoxXPCOMIPCD | |
848 | %attr(755,root,root) %{_bindir}/VirtualBox | |
849 | %attr(755,root,root) %{_sbindir}/mount.vdi | |
850 | %attr(755,root,root) %{_libdir}/%{pname}/DBGCPlugInDiggers.so | |
851 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAuth.so | |
852 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAuthSimple.so | |
853 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAutostart | |
854 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxBFE | |
855 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxBalloonCtrl | |
856 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxCreateUSBNode.sh | |
857 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDbg.so | |
858 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDD2.so | |
859 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDD.so | |
860 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDDU.so | |
861 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDragAndDropSvc.so | |
862 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxExtPackHelperApp | |
863 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxGuestControlSvc.so | |
864 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxGuestPropSvc.so | |
865 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxHeadless | |
866 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxHostChannel.so | |
867 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxKeyboard.so | |
868 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxManage | |
869 | %if %{with doc} | |
870 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxManageHelp | |
871 | %endif | |
872 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetAdpCtl | |
873 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetDHCP | |
874 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLhostcrutil.so | |
875 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLhosterrorspu.so | |
876 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLrenderspu.so | |
877 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxPython*.so | |
878 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM.so | |
879 | %ifarch %{ix86} | |
880 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM32.so | |
881 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM64.so | |
882 | %endif | |
883 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxRT.so | |
884 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSDL | |
885 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedClipboard.so | |
886 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedCrOpenGL.so | |
887 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedFolders.so | |
888 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSVC | |
889 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSysInfo.sh | |
890 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxTestOGL | |
891 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxTunctl | |
892 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVMM.so | |
893 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVMMPreload | |
894 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMC.so | |
895 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMIPCD | |
896 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOM.so | |
897 | %attr(755,root,root) %{_libdir}/%{pname}/VirtualBox | |
898 | %attr(755,root,root) %{_libdir}/%{pname}/VirtualBox-wrapper.sh | |
899 | %attr(755,root,root) %{_libdir}/%{pname}/ExtensionPacks/VNC/linux*/VBoxVNC*.so | |
900 | %{_libdir}/%{pname}/VBoxDD2GC.gc | |
901 | %{_libdir}/%{pname}/VBoxDDGC.gc | |
902 | %{_libdir}/%{pname}/VMMGC.gc | |
903 | %{_libdir}/%{pname}/VBoxDD2R0.r0 | |
904 | %{_libdir}/%{pname}/VBoxDDR0.r0 | |
905 | %{_libdir}/%{pname}/VMMR0.r0 | |
906 | #%{_libdir}/%{pname}/EfiThunk | |
907 | %{_libdir}/%{pname}/VBoxEFI32.fd | |
908 | %{_libdir}/%{pname}/VBoxEFI64.fd | |
909 | %{_libdir}/%{pname}/components/VBoxXPCOMBase.xpt | |
910 | %{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack.xml | |
911 | %{_libdir}/%{pname}/components/VirtualBox_XPCOM.xpt | |
912 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxC.so | |
913 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxSVCM.so | |
914 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxXPCOMIPCC.so | |
915 | %lang(bg) %{_libdir}/%{pname}/nls/*_bg.qm | |
916 | %lang(ca) %{_libdir}/%{pname}/nls/*_ca.qm | |
917 | %lang(ca_VA) %{_libdir}/%{pname}/nls/*_ca_VA.qm | |
918 | %lang(cs) %{_libdir}/%{pname}/nls/*_cs.qm | |
919 | %lang(da) %{_libdir}/%{pname}/nls/*_da.qm | |
920 | %lang(de) %{_libdir}/%{pname}/nls/*_de.qm | |
921 | %lang(en) %{_libdir}/%{pname}/nls/*_en.qm | |
922 | %lang(es) %{_libdir}/%{pname}/nls/*_es.qm | |
923 | %lang(eu) %{_libdir}/%{pname}/nls/*_eu.qm | |
924 | %lang(fi) %{_libdir}/%{pname}/nls/*_fa_IR.qm | |
925 | %lang(fi) %{_libdir}/%{pname}/nls/*_fi.qm | |
926 | %lang(fr) %{_libdir}/%{pname}/nls/*_fr.qm | |
927 | %lang(gl_ES) %{_libdir}/%{pname}/nls/*_gl_ES.qm | |
928 | %lang(hu) %{_libdir}/%{pname}/nls/*_hu.qm | |
929 | %lang(id) %{_libdir}/%{pname}/nls/*_id.qm | |
930 | %lang(it) %{_libdir}/%{pname}/nls/*_it.qm | |
931 | %lang(ja) %{_libdir}/%{pname}/nls/*_ja.qm | |
932 | %lang(km_KH) %{_libdir}/%{pname}/nls/*_km_KH.qm | |
933 | %lang(ko) %{_libdir}/%{pname}/nls/*_ko.qm | |
934 | %lang(lt) %{_libdir}/%{pname}/nls/*_lt.qm | |
935 | %lang(nl) %{_libdir}/%{pname}/nls/*_nl.qm | |
936 | %lang(pl) %{_libdir}/%{pname}/nls/*_pl.qm | |
937 | %lang(pt) %{_libdir}/%{pname}/nls/*_pt.qm | |
938 | %lang(pt_BR) %{_libdir}/%{pname}/nls/*_pt_BR.qm | |
939 | %lang(ro) %{_libdir}/%{pname}/nls/*_ro.qm | |
940 | %lang(ru) %{_libdir}/%{pname}/nls/*_ru.qm | |
941 | %lang(sk) %{_libdir}/%{pname}/nls/*_sk.qm | |
942 | %lang(sr) %{_libdir}/%{pname}/nls/*_sr.qm | |
943 | %lang(sv) %{_libdir}/%{pname}/nls/*_sv.qm | |
944 | %lang(tr) %{_libdir}/%{pname}/nls/*_tr.qm | |
945 | %lang(uk) %{_libdir}/%{pname}/nls/*_uk.qm | |
946 | %lang(zh_CN) %{_libdir}/%{pname}/nls/*_zh_CN.qm | |
947 | %lang(zh_TW) %{_libdir}/%{pname}/nls/*_zh_TW.qm | |
948 | %{_pixmapsdir}/virtualbox.png | |
949 | %{_desktopdir}/*.desktop | |
950 | %{_libdir}/%{pname}/icons | |
951 | %{_libdir}/%{pname}/virtualbox.xml | |
952 | ||
953 | %files additions | |
954 | %defattr(644,root,root,755) | |
955 | %{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso | |
956 | ||
957 | %files guest | |
958 | %defattr(644,root,root,755) | |
959 | # NOTE: unfinished, should contain .desktop files for starting up mouse | |
960 | # integration and other desktop services | |
961 | # NOTE: the filelist is incomplete too | |
962 | %attr(755,root,root) %{_bindir}/VBoxClient | |
963 | %attr(755,root,root) %{_bindir}/VBoxControl | |
964 | %attr(755,root,root) %{_bindir}/VBoxService | |
965 | /etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh | |
966 | /etc/xdg/autostart/vboxclient.desktop | |
967 | ||
968 | %attr(755,root,root) %{_libdir}/%{pname}/additions/autorun.sh | |
969 | %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd | |
970 | %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd-service | |
971 | %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd-x11 | |
972 | # XXX these files belong to xorg-driver-video-vboxvideo | |
973 | # but probably 18-system-xorg.patch patch is broken? | |
974 | %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxvideo_drv_111.so | |
975 | %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxvideo_drv_112.so | |
976 | ||
977 | %files -n pam-pam_vbox | |
978 | %defattr(644,root,root,755) | |
979 | %attr(755,root,root) /%{_lib}/security/pam_vbox.so | |
980 | ||
981 | %if %{with doc} | |
982 | %files doc | |
983 | %defattr(644,root,root,755) | |
984 | # this is a symlink... | |
985 | %doc %{_libdir}/%{pname}/UserManual.pdf | |
986 | %lang(fr) %doc %{_libdir}/%{pname}/UserManual_fr_FR.pdf | |
987 | # ..to this file | |
988 | %doc %{outdir}/UserManual.pdf | |
989 | %lang(fr) %doc %{outdir}/UserManual_fr_FR.pdf | |
990 | %endif | |
991 | ||
992 | %files udev | |
993 | %defattr(644,root,root,755) | |
994 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules | |
995 | ||
996 | %files -n xorg-driver-input-vboxmouse | |
997 | %defattr(644,root,root,755) | |
998 | %attr(755,root,root) %{_libdir}/xorg/modules/input/vboxmouse_drv.so | |
999 | ||
1000 | %files -n xorg-driver-video-vboxvideo | |
1001 | %defattr(644,root,root,755) | |
1002 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/vboxvideo_drv.so | |
1003 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/vboxvideo_dri.so | |
1004 | # vboxvideo_dri.so deps | |
1005 | %attr(755,root,root) %{_libdir}/VBoxOGLarrayspu.so | |
1006 | %attr(755,root,root) %{_libdir}/VBoxOGLcrutil.so | |
1007 | %attr(755,root,root) %{_libdir}/VBoxOGLerrorspu.so | |
1008 | %attr(755,root,root) %{_libdir}/VBoxOGLfeedbackspu.so | |
1009 | %attr(755,root,root) %{_libdir}/VBoxOGLpackspu.so | |
1010 | %attr(755,root,root) %{_libdir}/VBoxOGLpassthroughspu.so | |
1011 | %endif | |
1012 | ||
1013 | %if %{with kernel} | |
1014 | %files kernel-init-host | |
1015 | %defattr(644,root,root,755) | |
1016 | %attr(754,root,root) /etc/rc.d/init.d/vboxdrv | |
1017 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetadp | |
1018 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetflt | |
1019 | %attr(754,root,root) /etc/rc.d/init.d/vboxpci | |
1020 | %{systemdunitdir}/vboxdrv.service | |
1021 | %{systemdunitdir}/vboxnetadp.service | |
1022 | %{systemdunitdir}/vboxnetflt.service | |
1023 | %{systemdunitdir}/vboxpci.service | |
1024 | ||
1025 | %files kernel-init-guest | |
1026 | %defattr(644,root,root,755) | |
1027 | %attr(754,root,root) /etc/rc.d/init.d/vboxguest | |
1028 | %attr(754,root,root) /etc/rc.d/init.d/vboxsf | |
1029 | %{systemdunitdir}/vboxguest.service | |
1030 | %{systemdunitdir}/vboxsf.service | |
1031 | ||
1032 | %files -n kernel%{_alt_kernel}-misc-vboxguest | |
1033 | %defattr(644,root,root,755) | |
1034 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxguest.conf | |
1035 | /lib/modules/%{_kernel_ver}/misc/vboxguest.ko* | |
1036 | ||
1037 | %files -n kernel%{_alt_kernel}-misc-vboxdrv | |
1038 | %defattr(644,root,root,755) | |
1039 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxdrv.conf | |
1040 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko* | |
1041 | ||
1042 | %files -n kernel%{_alt_kernel}-misc-vboxnetadp | |
1043 | %defattr(644,root,root,755) | |
1044 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxnetadp.conf | |
1045 | /lib/modules/%{_kernel_ver}/misc/vboxnetadp.ko* | |
1046 | ||
1047 | %files -n kernel%{_alt_kernel}-misc-vboxnetflt | |
1048 | %defattr(644,root,root,755) | |
1049 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxnetflt.conf | |
1050 | /lib/modules/%{_kernel_ver}/misc/vboxnetflt.ko* | |
1051 | ||
1052 | %files -n kernel%{_alt_kernel}-misc-vboxpci | |
1053 | %defattr(644,root,root,755) | |
1054 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxpci.conf | |
1055 | /lib/modules/%{_kernel_ver}/misc/vboxpci.ko* | |
1056 | ||
1057 | %files -n kernel%{_alt_kernel}-misc-vboxsf | |
1058 | %defattr(644,root,root,755) | |
1059 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxsf.conf | |
1060 | %attr(755,root,root) %{_sbindir}/mount.vboxsf | |
1061 | /lib/modules/%{_kernel_ver}/misc/vboxsf.ko* | |
1062 | ||
1063 | %files -n kernel%{_alt_kernel}-misc-vboxvideo | |
1064 | %defattr(644,root,root,755) | |
1065 | /lib/modules/%{_kernel_ver}/misc/vboxvideo.ko* | |
1066 | %endif |