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