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