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