]>
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 | |
b3237de9 | 35 | %define rel 4 |
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} |
75fbbe58 | 40 | Version: 4.1.10 |
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 |
75fbbe58 | 45 | # Source0-md5: 263e495ef3a7ab75943af28d446ee702 |
744bc35e | 46 | Source1: http://download.virtualbox.org/virtualbox/%{version}/VBoxGuestAdditions_%{version}.iso |
75fbbe58 | 47 | # Source1-md5: 322a8fdaec597bc2aad5f8ae8a37f21b |
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 | |
67 | Patch4: %{pname}-vnc.patch | |
68 | Patch5: %{pname}-dri.patch | |
69 | Patch6: %{pname}-disable_build_NetBiosBin.patch | |
be813ac5 | 70 | Patch7: xserver-1.12.patch |
acf12a87 | 71 | # ubuntu patches |
59d12745 KK |
72 | Patch10: 16-no-update.patch |
73 | Patch11: 18-system-xorg.patch | |
acf12a87 | 74 | # /ubuntu patches |
48363591 | 75 | URL: http://www.virtualbox.org/ |
d0471f70 | 76 | BuildRequires: rpmbuild(macros) >= 1.535 |
83ffcfa8 | 77 | %if %{with userspace} |
ce9843cd ER |
78 | %ifarch %{x8664} |
79 | BuildRequires: gcc-multilib | |
80 | BuildRequires: glibc-devel(i686) | |
81 | BuildRequires: libstdc++-multilib-devel | |
4fff279a | 82 | BuildRequires: libstdc++-multilib-static |
ce9843cd | 83 | %endif |
ce9843cd ER |
84 | %if "%{pld_release}" == "ac" |
85 | BuildRequires: XFree86-devel | |
86 | %else | |
1abc0217 | 87 | BuildRequires: xorg-lib-libXcomposite-devel |
ce9843cd ER |
88 | BuildRequires: xorg-lib-libXcursor-devel |
89 | BuildRequires: xorg-lib-libXmu-devel | |
e649d11e | 90 | BuildRequires: xorg-proto-glproto-devel |
acf12a87 | 91 | BuildRequires: xorg-xserver-server-devel |
ce9843cd | 92 | %endif |
00149140 | 93 | BuildRequires: OpenGL-GLU-devel |
523e7409 | 94 | BuildRequires: OpenGL-devel |
cef75615 | 95 | BuildRequires: QtGui-devel |
2d17bb72 | 96 | BuildRequires: QtNetwork-devel |
dd64a424 | 97 | BuildRequires: QtOpenGL-devel |
c574efad | 98 | BuildRequires: SDL-devel >= 1.2.7 |
9a1cb119 | 99 | BuildRequires: acpica |
ba702945 | 100 | BuildRequires: alsa-lib-devel >= 1.0.6 |
e5aaadde | 101 | BuildRequires: bash |
48363591 | 102 | BuildRequires: bcc |
103 | BuildRequires: bin86 | |
07ef7f06 | 104 | BuildRequires: curl-devel |
8da42f47 | 105 | %{?with_doc:BuildRequires: docbook-dtd44-xml} |
eba4b2aa | 106 | BuildRequires: gcc >= 5:3.2.3 |
48363591 | 107 | BuildRequires: libIDL-devel |
fa974331 | 108 | BuildRequires: libcap-static |
acf12a87 | 109 | BuildRequires: libdrm-devel |
ff01a704 | 110 | BuildRequires: libpng-devel >= 1.2.5 |
d22f0a53 | 111 | BuildRequires: libstdc++-devel >= 5:3.2.3 |
4fff279a | 112 | BuildRequires: libstdc++-static >= 5:3.2.3 |
48363591 | 113 | BuildRequires: libuuid-devel |
01e414ba | 114 | BuildRequires: libvncserver-devel >= 0.9.7 |
ba702945 | 115 | BuildRequires: libxml2-devel >= 2.6.26 |
76ea5ecb | 116 | BuildRequires: libxslt-devel >= 1.1.17 |
ba702945 | 117 | BuildRequires: libxslt-progs >= 1.1.17 |
744bc35e | 118 | BuildRequires: makeself |
90de3b27 | 119 | BuildRequires: mkisofs |
3613936b | 120 | BuildRequires: pam-devel |
acf12a87 | 121 | BuildRequires: pixman-devel |
0bf43862 | 122 | BuildRequires: pkgconfig |
ba702945 | 123 | BuildRequires: pulseaudio-devel >= 0.9.0 |
523e7409 | 124 | BuildRequires: python-devel |
6055e733 | 125 | BuildRequires: python-modules |
250583d4 | 126 | BuildRequires: qt4-build >= 4.2.0 |
2700662b | 127 | BuildRequires: qt4-linguist |
6789dad4 | 128 | BuildRequires: rpmbuild(macros) >= 1.627 |
1e840a77 | 129 | BuildRequires: sed >= 4.0 |
8da42f47 | 130 | %if %{with doc} |
744bc35e JR |
131 | BuildRequires: texlive-fonts-bitstream |
132 | BuildRequires: texlive-fonts-other | |
133 | BuildRequires: texlive-fonts-type1-bitstream | |
134 | BuildRequires: texlive-format-pdflatex | |
acf12a87 | 135 | BuildRequires: texlive-latex-ucs |
660fb056 | 136 | BuildRequires: texlive-xetex |
8da42f47 | 137 | %endif |
0bf43862 | 138 | BuildRequires: which |
e5aaadde | 139 | BuildRequires: xalan-c-devel >= 1.10.0 |
e5aaadde | 140 | BuildRequires: xerces-c-devel >= 2.6.0 |
141 | BuildRequires: zlib-devel >= 1.2.1 | |
23d9d34e | 142 | %endif |
ce9843cd ER |
143 | %if %{with dist_kernel} |
144 | BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20 | |
83ffcfa8 | 145 | %endif |
0afa64ad | 146 | Requires(post,preun): /sbin/chkconfig |
5f1cec1f ER |
147 | Requires(postun): /usr/sbin/groupdel |
148 | Requires(pre): /usr/bin/getgid | |
149 | Requires(pre): /usr/sbin/groupadd | |
c061e8fb | 150 | Requires: QtCore >= 4.7.0 |
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 | |
91eb6bbe | 280 | Requires: xorg-xserver-server(xinput-abi) <= 13.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 | |
91eb6bbe | 296 | Requires: xorg-xserver-server(videodrv-abi) <= 11.0 |
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 | |
313 | Requires: dev >= 2.9.0-7 | |
314 | %if %{with dist_kernel} | |
315 | %requires_releq_kernel | |
ca8701ad | 316 | Requires(postun): %releq_kernel |
74268e47 | 317 | %endif |
6789dad4 | 318 | Requires: systemd-units >= 37-0.10 |
dc0a2786 AG |
319 | Provides: kernel(vboxguest) = %{version}-%{rel} |
320 | Obsoletes: kernel%{_alt_kernel}-misc-vboxadd | |
f7de19b3 | 321 | Conflicts: kernel%{_alt_kernel}-misc-vboxdrv |
74268e47 | 322 | |
dc0a2786 | 323 | %description -n kernel%{_alt_kernel}-misc-vboxguest |
393ec35d | 324 | VirtualBox Guest Additions for Linux Module. |
74268e47 | 325 | |
91e5103c ER |
326 | You should install this package in your Guest OS. |
327 | ||
dc0a2786 | 328 | %description -n kernel%{_alt_kernel}-misc-vboxguest -l pl.UTF-8 |
393ec35d ER |
329 | Moduł jądra Linuksa vboxguest dla VirtualBoksa - dodatki dla systemu |
330 | gościa. | |
74268e47 | 331 | |
48363591 | 332 | %package -n kernel%{_alt_kernel}-misc-vboxdrv |
393ec35d ER |
333 | Summary: VirtualBox Support Driver |
334 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
fe3d1798 | 335 | Release: %{rel}@%{_kernel_ver_str} |
48363591 | 336 | Group: Base/Kernel |
337 | Requires(post,postun): /sbin/depmod | |
338 | Requires: dev >= 2.9.0-7 | |
339 | %if %{with dist_kernel} | |
d6f0c54e | 340 | %requires_releq_kernel |
341 | Requires(postun): %releq_kernel | |
48363591 | 342 | %endif |
6789dad4 | 343 | Requires: systemd-units >= 37-0.10 |
fe3d1798 | 344 | Provides: kernel(vboxdrv) = %{version}-%{rel} |
48363591 | 345 | |
346 | %description -n kernel%{_alt_kernel}-misc-vboxdrv | |
393ec35d | 347 | VirtualBox Support Driver. |
48363591 | 348 | |
91e5103c ER |
349 | You should install this package in your Host OS. |
350 | ||
fd8fc899 | 351 | %description -n kernel%{_alt_kernel}-misc-vboxdrv -l pl.UTF-8 |
393ec35d ER |
352 | Moduł jądra Linuksa dla VirtualBoksa - sterownik wsparcia dla systemu |
353 | głównego. | |
48363591 | 354 | |
d2a7514f | 355 | %package -n kernel%{_alt_kernel}-misc-vboxnetadp |
393ec35d ER |
356 | Summary: VirtualBox Network Adapter Driver |
357 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
d2a7514f ŁK |
358 | Release: %{rel}@%{_kernel_ver_str} |
359 | Group: Base/Kernel | |
360 | Requires(post,postun): /sbin/depmod | |
361 | Requires: dev >= 2.9.0-7 | |
362 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
363 | %if %{with dist_kernel} | |
364 | %requires_releq_kernel | |
365 | Requires(postun): %releq_kernel | |
366 | %endif | |
6789dad4 | 367 | Requires: systemd-units >= 37-0.10 |
d2a7514f ŁK |
368 | Provides: kernel(vboxnetflt) = %{version}-%{rel} |
369 | ||
370 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp | |
393ec35d | 371 | VirtualBox Network Adapter Driver. |
d2a7514f | 372 | |
91e5103c ER |
373 | You should install this package in your Host OS. |
374 | ||
d2a7514f | 375 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp -l pl.UTF-8 |
393ec35d | 376 | Moduł jądra Linuksa dla VirtualBoksa - sterownik witrualnej karty |
9dda6415 | 377 | sieciowej. |
d2a7514f | 378 | |
1dda2f69 | 379 | %package -n kernel%{_alt_kernel}-misc-vboxnetflt |
393ec35d ER |
380 | Summary: VirtualBox Network Filter Driver |
381 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
1dda2f69 | 382 | Release: %{rel}@%{_kernel_ver_str} |
383 | Group: Base/Kernel | |
384 | Requires(post,postun): /sbin/depmod | |
385 | Requires: dev >= 2.9.0-7 | |
386 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
387 | %if %{with dist_kernel} | |
388 | %requires_releq_kernel | |
389 | Requires(postun): %releq_kernel | |
390 | %endif | |
6789dad4 | 391 | Requires: systemd-units >= 37-0.10 |
1dda2f69 | 392 | Provides: kernel(vboxnetflt) = %{version}-%{rel} |
393 | ||
394 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt | |
393ec35d | 395 | VirtualBox Network Filter Driver. |
1dda2f69 | 396 | |
91e5103c ER |
397 | You should install this package in your Host OS. |
398 | ||
1dda2f69 | 399 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt -l pl.UTF-8 |
393ec35d ER |
400 | Moduł jądra Linuksa dla VirtualBoksa - sterownik filtrowania sieci dla |
401 | systemu głównego. | |
1dda2f69 | 402 | |
59d12745 | 403 | %package -n kernel%{_alt_kernel}-misc-vboxpci |
393ec35d ER |
404 | Summary: VirtualBox PCI card passthrough Driver |
405 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
59d12745 KK |
406 | Release: %{rel}@%{_kernel_ver_str} |
407 | Group: Base/Kernel | |
408 | Requires(post,postun): /sbin/depmod | |
409 | Requires: dev >= 2.9.0-7 | |
410 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
411 | %if %{with dist_kernel} | |
412 | %requires_releq_kernel | |
413 | Requires(postun): %releq_kernel | |
414 | %endif | |
6789dad4 | 415 | Requires: systemd-units >= 37-0.10 |
59d12745 KK |
416 | Provides: kernel(vboxpci) = %{version}-%{rel} |
417 | ||
418 | %description -n kernel%{_alt_kernel}-misc-vboxpci | |
393ec35d ER |
419 | VirtualBox PCI card passthrough driver that works as host proxy |
420 | between guest and PCI hardware. | |
59d12745 KK |
421 | |
422 | You should install this package in your Host OS. | |
423 | ||
424 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt -l pl.UTF-8 | |
393ec35d ER |
425 | Moduł jądra Linuksa dla VirtualBoksa - sterownik, ktory działa jako |
426 | proxy między gościem i gospodarzem sprzętu PCI. | |
59d12745 | 427 | |
ecfe25a3 | 428 | %package -n kernel%{_alt_kernel}-misc-vboxsf |
393ec35d ER |
429 | Summary: Host file system access (Shared Folders) for VirtualBox |
430 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
fe3d1798 | 431 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 432 | Group: Base/Kernel |
433 | Requires(post,postun): /sbin/depmod | |
434 | Requires: dev >= 2.9.0-7 | |
dc0a2786 | 435 | Requires: kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 436 | %if %{with dist_kernel} |
437 | %requires_releq_kernel | |
438 | Requires(postun): %releq_kernel | |
439 | %endif | |
6789dad4 | 440 | Requires: systemd-units >= 37-0.10 |
ecfe25a3 PS |
441 | Provides: kernel(vboxsf) = %{version}-%{rel} |
442 | Obsoletes: kernel%{_alt_kernel}-misc-vboxvfs | |
74268e47 | 443 | |
ecfe25a3 | 444 | %description -n kernel%{_alt_kernel}-misc-vboxsf |
393ec35d | 445 | Host file system access (Shared Folders) for VirtualBox. |
74268e47 | 446 | |
91e5103c ER |
447 | You should install this package in your Guest OS. |
448 | ||
ecfe25a3 | 449 | %description -n kernel%{_alt_kernel}-misc-vboxsf -l pl.UTF-8 |
393ec35d | 450 | Moduł jądra Linuksa dla VirtualBoksa - dostęp do plików systemu |
4f09a416 | 451 | głównego z poziomu systemu gościa. |
74268e47 | 452 | |
67a4f3c1 | 453 | %package -n kernel%{_alt_kernel}-misc-vboxvideo |
393ec35d ER |
454 | Summary: DRM support for VirtualBox |
455 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
67a4f3c1 | 456 | Release: %{rel}@%{_kernel_ver_str} |
457 | Group: Base/Kernel | |
458 | Requires(post,postun): /sbin/depmod | |
459 | Requires: dev >= 2.9.0-7 | |
460 | %if %{with dist_kernel} | |
461 | %requires_releq_kernel | |
d0471f70 | 462 | %if "%{rpm_build_macros}" >= "1.531" |
d14fba96 | 463 | %requires_releq_kernel -n drm |
d0471f70 | 464 | %endif |
67a4f3c1 | 465 | Requires(postun): %releq_kernel |
466 | %endif | |
467 | Provides: kernel(vboxvideo) = %{version}-%{rel} | |
468 | ||
469 | %description -n kernel%{_alt_kernel}-misc-vboxvideo | |
393ec35d | 470 | DRM support for VirtualBox. |
67a4f3c1 | 471 | |
91e5103c ER |
472 | You should install this package in your Guest OS. |
473 | ||
67a4f3c1 | 474 | %description -n kernel%{_alt_kernel}-misc-vboxvideo -l pl.UTF-8 |
393ec35d | 475 | Moduł jądra Linuksa dla VirtualBoksa - sterownik obsługi DRM. |
67a4f3c1 | 476 | |
48363591 | 477 | %prep |
33aeed61 | 478 | %setup -q -n %{pname}-%{version} |
e709ce6b | 479 | %patch0 -p1 |
006342ee AM |
480 | %patch1 -p1 |
481 | %patch2 -p1 | |
8473a80d | 482 | %patch3 -p1 |
dced50c1 | 483 | %patch4 -p1 |
9a7b1cdc | 484 | %patch5 -p1 |
59d12745 | 485 | %patch6 -p1 |
be813ac5 | 486 | %patch7 -p1 |
fddcb741 | 487 | |
744bc35e JR |
488 | %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \ |
489 | -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in | |
0b6de2b7 | 490 | |
59d12745 | 491 | sed 's#@LIBDIR@#%{_libdir}#' < %{SOURCE9} > VirtualBox-wrapper.sh |
fa19f650 | 492 | |
1794e74d ER |
493 | install -d PLD-MODULE-BUILD/{GuestDrivers,HostDrivers} |
494 | cd PLD-MODULE-BUILD | |
495 | ../src/VBox/Additions/linux/export_modules guest-modules.tar.gz | |
496 | tar -zxf guest-modules.tar.gz -C GuestDrivers | |
497 | ||
cadbdf55 | 498 | ../src/VBox/HostDrivers/linux/export_modules host-modules.tar.gz --without-hardening |
1794e74d ER |
499 | tar -zxf host-modules.tar.gz -C HostDrivers |
500 | cd - | |
59d12745 KK |
501 | %patch10 -p1 |
502 | %patch11 -p1 | |
503 | ||
05f1b1f5 | 504 | |
fddcb741 | 505 | %build |
83ffcfa8 | 506 | %if %{with userspace} |
c6e3c003 | 507 | echo "VBOX_WITH_TESTCASES := " > LocalConfig.kmk |
106d8451 | 508 | ./configure \ |
ae1bbc88 | 509 | --with-gcc="%{__cc}" \ |
510 | --with-g++="%{__cxx}" \ | |
8da42f47 | 511 | %{!?with_doc:--disable-docs} \ |
744bc35e | 512 | --disable-java \ |
5a497466 | 513 | --disable-hardening \ |
01e414ba JR |
514 | --disable-kmods \ |
515 | --enable-vnc | |
48363591 | 516 | |
89973837 | 517 | XSERVER_VERSION=$(rpm -q --queryformat '%{VERSION}\n' xorg-xserver-server-devel | awk -F. ' { print $1 $2 } ' 2> /dev/null || echo ERROR) |
0864aefd | 518 | . ./env.sh && \ |
acf12a87 AM |
519 | kmk -j1 \ |
520 | %{?with_verbose:KBUILD_VERBOSE=3} \ | |
521 | USER=$(id -un) \ | |
89973837 ER |
522 | VBOX_VERSION_STRING='$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)'_PLD \ |
523 | XSERVER_VERSION="$XSERVER_VERSION" | |
48363591 | 524 | %endif |
74268e47 | 525 | |
526 | %if %{with kernel} | |
1794e74d ER |
527 | cd PLD-MODULE-BUILD/HostDrivers |
528 | %build_kernel_modules -m vboxdrv -C vboxdrv | |
529 | %build_kernel_modules -m vboxnetadp -C vboxnetadp | |
530 | %build_kernel_modules -m vboxnetflt -C vboxnetflt | |
59d12745 | 531 | %build_kernel_modules -m vboxpci -C vboxpci |
1794e74d ER |
532 | |
533 | cd ../GuestDrivers | |
dc0a2786 | 534 | %build_kernel_modules -m vboxguest -C vboxguest |
ecfe25a3 PS |
535 | cp -a vboxguest/Module.symvers vboxsf |
536 | %build_kernel_modules -m vboxsf -C vboxsf -c | |
67a4f3c1 | 537 | %build_kernel_modules -m vboxvideo -C vboxvideo_drm |
1794e74d | 538 | cd ../.. |
744bc35e | 539 | %{__cc} %{rpmcflags} %{rpmldflags} -Wall -Werror src/VBox/Additions/linux/sharedfolders/{mount.vboxsf.c,vbsfmount.c} -o mount.vboxsf |
d1c4ec5b | 540 | %endif |
48363591 | 541 | |
542 | %install | |
543 | rm -rf $RPM_BUILD_ROOT | |
544 | ||
d1c4ec5b | 545 | %if %{with userspace} |
33aeed61 | 546 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/%{pname}/ExtensionPacks} \ |
744bc35e | 547 | $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \ |
dca6c443 | 548 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,dri,input} |
a70507fb | 549 | |
dca6c443 ER |
550 | # test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition |
551 | if cp -al VBox.png $RPM_BUILD_ROOT/Vbox.png 2>/dev/null; then | |
552 | l=l | |
553 | rm -f $RPM_BUILD_ROOT/VBox.png | |
554 | fi | |
555 | ||
33aeed61 | 556 | cp -a$l %{outdir}/* $RPM_BUILD_ROOT%{_libdir}/%{pname} |
dca6c443 | 557 | |
744bc35e | 558 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/VirtualBox/additions/VBoxGuestAdditions.iso |
59d12745 | 559 | install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sbindir}/mount.vdi |
33aeed61 | 560 | install -p VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_libdir}/%{pname} |
5b399826 | 561 | for f in {VBox{BFE,Headless,Manage,SDL,SVC,Tunctl,XPCOMIPCD},VirtualBox}; do |
33aeed61 | 562 | ln -s %{_libdir}/%{pname}/VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/$f |
05f1b1f5 | 563 | done |
564 | ||
33aeed61 JR |
565 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/VBox.png,%{_pixmapsdir}/virtualbox.png} |
566 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname},%{_desktopdir}}/virtualbox.desktop | |
48363591 | 567 | |
33aeed61 JR |
568 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/vboxmouse_drv.so,%{_libdir}/xorg/modules/input/vboxmouse_drv.so} |
569 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxvideo_drv.so,%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so} | |
570 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/VBoxOGL.so,%{_libdir}/xorg/modules/dri/vboxvideo_dri.so} | |
dca6c443 | 571 | # xorg other driver versions |
33aeed61 JR |
572 | rm -vf $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxmouse_drv*.{o,so} |
573 | rm -vf $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxvideo_drv*.{o,so} | |
916ab34d | 574 | |
27a1aef6 | 575 | # XXX: where else to install them that vboxvideo_dri.so finds them? patch with rpath? |
33aeed61 JR |
576 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLarrayspu.so |
577 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLcrutil.so | |
578 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLerrorspu.so | |
579 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLfeedbackspu.so | |
580 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpackspu.so | |
581 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 582 | |
33233365 | 583 | install -d $RPM_BUILD_ROOT/etc/udev/rules.d |
59d12745 | 584 | cp -a %{SOURCE11} $RPM_BUILD_ROOT/etc/udev/rules.d/virtualbox.rules |
dca6c443 | 585 | |
3613936b JR |
586 | install -d $RPM_BUILD_ROOT/%{_lib}/security |
587 | mv $RPM_BUILD_ROOT{%{_libdir}/VirtualBox/additions,/%{_lib}/security}/pam_vbox.so | |
588 | ||
dca6c443 | 589 | # cleanup unpackaged |
33aeed61 JR |
590 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/{src,sdk,testcase} |
591 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/src | |
592 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxkeyboard.tar.bz2 | |
593 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/tst* | |
dca6c443 | 594 | |
1067d08d | 595 | # IPRT Testcase / Tool - Source Code Massager. |
33aeed61 | 596 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/scm |
1067d08d ER |
597 | |
598 | # Guest Only Tools | |
90de3b27 | 599 | install -d $RPM_BUILD_ROOT/etc/{X11/xinit/xinitrc.d,xdg/autostart} |
33aeed61 JR |
600 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxService |
601 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxClient | |
602 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxControl | |
90de3b27 ER |
603 | install -p -D src/VBox/Additions/x11/Installer/98vboxadd-xclient \ |
604 | $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh | |
605 | cp -p src/VBox/Additions/x11/Installer/vboxclient.desktop \ | |
606 | $RPM_BUILD_ROOT/etc/xdg/autostart/vboxclient.desktop | |
1067d08d | 607 | |
dca6c443 | 608 | # unknown - checkme |
1067d08d | 609 | %if 1 |
33aeed61 JR |
610 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPInstall |
611 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPLoggerCtl | |
612 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPUninstall | |
613 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBox.sh | |
614 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxshell.py | |
615 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/xpidl | |
1067d08d | 616 | %endif |
dca6c443 ER |
617 | |
618 | # packaged by kernel part | |
33aeed61 | 619 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf |
da083e45 | 620 | %endif |
33233365 | 621 | |
da083e45 | 622 | %if %{with kernel} |
6789dad4 | 623 | install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,modules-load.d},%{_sbindir},%{systemdunitdir}} |
70ce4861 | 624 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxdrv |
dc0a2786 | 625 | install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxguest |
70ce4861 | 626 | install -p %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetflt |
b06d932c | 627 | install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxsf |
c1cd3b9a | 628 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetadp |
59d12745 | 629 | install -p %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxpci |
1794e74d ER |
630 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxdrv/vboxdrv -d misc |
631 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxnetadp/vboxnetadp -d misc | |
632 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxnetflt/vboxnetflt -d misc | |
59d12745 | 633 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxpci/vboxpci -d misc |
1794e74d ER |
634 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxguest/vboxguest -d misc |
635 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxsf/vboxsf -d misc | |
636 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxvideo_drm/vboxvideo -d misc | |
fa974331 | 637 | |
50863744 ER |
638 | install -p mount.vboxsf $RPM_BUILD_ROOT%{_sbindir}/mount.vboxsf |
639 | ||
35ccdfcc JR |
640 | # Tell systemd to load modules |
641 | install -p %{SOURCE12} $RPM_BUILD_ROOT/etc/modules-load.d/vboxdrv.conf | |
642 | install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/modules-load.d/vboxguest.conf | |
643 | install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/modules-load.d/vboxnetflt.conf | |
644 | install -p %{SOURCE15} $RPM_BUILD_ROOT/etc/modules-load.d/vboxsf.conf | |
645 | install -p %{SOURCE16} $RPM_BUILD_ROOT/etc/modules-load.d/vboxnetadp.conf | |
646 | install -p %{SOURCE17} $RPM_BUILD_ROOT/etc/modules-load.d/vboxpci.conf | |
647 | ||
648 | # And mask module-loading services | |
649 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxdrv.service | |
650 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxguest.service | |
651 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxnetflt.service | |
652 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxsf.service | |
653 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxnetadp.service | |
654 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxpci.service | |
d1c4ec5b | 655 | %endif |
05f1b1f5 | 656 | |
48363591 | 657 | %clean |
658 | rm -rf $RPM_BUILD_ROOT | |
659 | ||
3b63d3e8 | 660 | %pre |
661 | %groupadd -g 221 -r -f vbox | |
662 | ||
14561782 | 663 | %post |
1403ac49 ER |
664 | %update_desktop_database |
665 | ||
d8ed80f4 | 666 | cat << 'EOF' |
3ee6b9d9 | 667 | You must install vboxdrv kernel module for this software to work: |
7841ddfd ER |
668 | kernel-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} |
669 | ||
670 | Additionally you might want to install: | |
d2a7514f | 671 | kernel-misc-vboxnetadp-%{version}-%{rel}@%{_kernel_ver_str} |
05f12a30 | 672 | kernel-misc-vboxnetflt-%{version}-%{rel}@%{_kernel_ver_str} |
59d12745 | 673 | kernel-misc-vboxpci-%{version}-%{rel}@%{_kernel_ver_str} |
05f12a30 | 674 | |
fa974331 | 675 | On Guest Linux system you might want to install: |
dc0a2786 | 676 | kernel-misc-vboxguest-%{version}-%{rel}@%{_kernel_ver_str} |
ecfe25a3 | 677 | kernel-misc-vboxsf-%{version}-%{rel}@%{_kernel_ver_str} |
67a4f3c1 | 678 | kernel-misc-vboxvideo-%{version}-%{rel}@%{_kernel_ver_str} |
7841ddfd | 679 | |
d8ed80f4 | 680 | EOF |
681 | ||
3b63d3e8 | 682 | %postun |
683 | if [ "$1" = "0" ]; then | |
684 | %groupremove vbox | |
685 | fi | |
686 | ||
dc0a2786 | 687 | %post -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 688 | %depmod %{_kernel_ver} |
dc0a2786 | 689 | /sbin/chkconfig --add vboxguest |
393ec35d | 690 | %service vboxguest restart "VirtualBox Guest additions driver" |
6789dad4 | 691 | %systemd_reload |
74268e47 | 692 | |
dc0a2786 | 693 | %postun -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 694 | %depmod %{_kernel_ver} |
695 | ||
dc0a2786 | 696 | %preun -n kernel%{_alt_kernel}-misc-vboxguest |
270f67bc | 697 | if [ "$1" = "0" ]; then |
dc0a2786 AG |
698 | %service vboxguest stop |
699 | /sbin/chkconfig --del vboxguest | |
270f67bc | 700 | fi |
701 | ||
48363591 | 702 | %post -n kernel%{_alt_kernel}-misc-vboxdrv |
703 | %depmod %{_kernel_ver} | |
270f67bc | 704 | /sbin/chkconfig --add vboxdrv |
393ec35d | 705 | %service vboxdrv restart "VirtualBox Support Driver" |
6789dad4 | 706 | %systemd_reload |
48363591 | 707 | |
708 | %postun -n kernel%{_alt_kernel}-misc-vboxdrv | |
709 | %depmod %{_kernel_ver} | |
710 | ||
270f67bc | 711 | %preun -n kernel%{_alt_kernel}-misc-vboxdrv |
712 | if [ "$1" = "0" ]; then | |
713 | %service vboxdrv stop | |
714 | /sbin/chkconfig --del vboxdrv | |
715 | fi | |
716 | ||
d2a7514f ŁK |
717 | %post -n kernel%{_alt_kernel}-misc-vboxnetadp |
718 | %depmod %{_kernel_ver} | |
c1cd3b9a | 719 | /sbin/chkconfig --add vboxnetadp |
393ec35d | 720 | %service vboxnetadp restart "VirtualBox Network HostOnly driver" |
6789dad4 | 721 | %systemd_reload |
d2a7514f ŁK |
722 | |
723 | %postun -n kernel%{_alt_kernel}-misc-vboxnetadp | |
724 | %depmod %{_kernel_ver} | |
725 | ||
c1cd3b9a | 726 | %preun -n kernel%{_alt_kernel}-misc-vboxnetadp |
727 | if [ "$1" = "0" ]; then | |
728 | %service vboxnetadp stop | |
729 | /sbin/chkconfig --del vboxnetadp | |
730 | fi | |
731 | ||
1dda2f69 | 732 | %post -n kernel%{_alt_kernel}-misc-vboxnetflt |
733 | %depmod %{_kernel_ver} | |
11848f5b | 734 | /sbin/chkconfig --add vboxnetflt |
393ec35d | 735 | %service vboxnetflt restart "VirtualBox Network Filter driver" |
6789dad4 | 736 | %systemd_reload |
1dda2f69 | 737 | |
738 | %postun -n kernel%{_alt_kernel}-misc-vboxnetflt | |
739 | %depmod %{_kernel_ver} | |
740 | ||
11848f5b | 741 | %preun -n kernel%{_alt_kernel}-misc-vboxnetflt |
742 | if [ "$1" = "0" ]; then | |
743 | %service vboxnetflt stop | |
744 | /sbin/chkconfig --del vboxnetflt | |
745 | fi | |
746 | ||
59d12745 KK |
747 | %post -n kernel%{_alt_kernel}-misc-vboxpci |
748 | %depmod %{_kernel_ver} | |
749 | /sbin/chkconfig --add vboxpci | |
393ec35d | 750 | %service vboxnetflt restart "VirtualBox PCI passthrough driver" |
6789dad4 | 751 | %systemd_reload |
59d12745 KK |
752 | |
753 | %postun -n kernel%{_alt_kernel}-misc-vboxpci | |
754 | %depmod %{_kernel_ver} | |
755 | ||
756 | %preun -n kernel%{_alt_kernel}-misc-vboxpci | |
757 | if [ "$1" = "0" ]; then | |
758 | %service vboxpci stop | |
759 | /sbin/chkconfig --del vboxpci | |
760 | fi | |
761 | ||
ecfe25a3 | 762 | %post -n kernel%{_alt_kernel}-misc-vboxsf |
74268e47 | 763 | %depmod %{_kernel_ver} |
ecfe25a3 | 764 | /sbin/chkconfig --add vboxsf |
393ec35d | 765 | %service vboxsf restart "VirtualBox Host file system access (Shared Folders)" |
6789dad4 | 766 | %systemd_reload |
74268e47 | 767 | |
ecfe25a3 | 768 | %postun -n kernel%{_alt_kernel}-misc-vboxsf |
74268e47 | 769 | %depmod %{_kernel_ver} |
770 | ||
ecfe25a3 | 771 | %preun -n kernel%{_alt_kernel}-misc-vboxsf |
ca8701ad | 772 | if [ "$1" = "0" ]; then |
ecfe25a3 PS |
773 | %service vboxsf stop |
774 | /sbin/chkconfig --del vboxsf | |
ca8701ad | 775 | fi |
776 | ||
67a4f3c1 | 777 | %post -n kernel%{_alt_kernel}-misc-vboxvideo |
778 | %depmod %{_kernel_ver} | |
779 | ||
780 | %postun -n kernel%{_alt_kernel}-misc-vboxvideo | |
781 | %depmod %{_kernel_ver} | |
782 | ||
d1c4ec5b | 783 | %if %{with userspace} |
48363591 | 784 | %files |
785 | %defattr(644,root,root,755) | |
8833bce1 | 786 | %dir %{_libdir}/VirtualBox |
744bc35e | 787 | %dir %{_libdir}/VirtualBox/ExtensionPacks |
916ab34d | 788 | %dir %{_libdir}/VirtualBox/additions |
8833bce1 | 789 | %dir %{_libdir}/VirtualBox/components |
790 | %dir %{_libdir}/VirtualBox/nls | |
85b005e2 | 791 | %attr(755,root,root) %{_bindir}/VBoxBFE |
792 | %attr(755,root,root) %{_bindir}/VBoxHeadless | |
793 | %attr(755,root,root) %{_bindir}/VBoxManage | |
794 | %attr(755,root,root) %{_bindir}/VBoxSDL | |
795 | %attr(755,root,root) %{_bindir}/VBoxSVC | |
796 | %attr(755,root,root) %{_bindir}/VBoxTunctl | |
797 | %attr(755,root,root) %{_bindir}/VBoxXPCOMIPCD | |
48363591 | 798 | %attr(755,root,root) %{_bindir}/VirtualBox |
3ee6b9d9 | 799 | %attr(755,root,root) %{_sbindir}/mount.vdi |
744bc35e JR |
800 | %attr(755,root,root) %{_libdir}/VirtualBox/DBGCPlugInDiggers.so |
801 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxAuth.so | |
802 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxAuthSimple.so | |
05f1b1f5 | 803 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxBFE |
59d12745 | 804 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxBalloonCtrl |
744bc35e JR |
805 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxCreateUSBNode.sh |
806 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDbg.so | |
85b005e2 | 807 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDD2.so |
744bc35e | 808 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDD.so |
85b005e2 | 809 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDDU.so |
744bc35e | 810 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxExtPackHelperApp |
3613936b | 811 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxGuestControlSvc.so |
85b005e2 | 812 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxGuestPropSvc.so |
744bc35e | 813 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxHeadless |
85b005e2 | 814 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxKeyboard.so |
744bc35e | 815 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxManage |
5b399826 MM |
816 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxNetAdpCtl |
817 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxNetDHCP | |
85b005e2 | 818 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLhostcrutil.so |
819 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLhosterrorspu.so | |
820 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLrenderspu.so | |
6935b837 | 821 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxPython*.so |
85b005e2 | 822 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM.so |
f701b529 | 823 | %ifarch %{ix86} |
5b399826 MM |
824 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM32.so |
825 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM64.so | |
f701b529 | 826 | %endif |
85b005e2 | 827 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxRT.so |
744bc35e | 828 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSDL |
85b005e2 | 829 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedClipboard.so |
830 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedCrOpenGL.so | |
831 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedFolders.so | |
744bc35e JR |
832 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSVC |
833 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSysInfo.sh | |
834 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxTestOGL | |
835 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxTunctl | |
85b005e2 | 836 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxVMM.so |
85b005e2 | 837 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOMC.so |
744bc35e JR |
838 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOMIPCD |
839 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOM.so | |
fdd1c725 | 840 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox |
841 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox-wrapper.sh | |
85b005e2 | 842 | %{_libdir}/VirtualBox/VBoxDD2GC.gc |
843 | %{_libdir}/VirtualBox/VBoxDDGC.gc | |
844 | %{_libdir}/VirtualBox/VMMGC.gc | |
845 | %{_libdir}/VirtualBox/VBoxDD2R0.r0 | |
846 | %{_libdir}/VirtualBox/VBoxDDR0.r0 | |
847 | %{_libdir}/VirtualBox/VMMR0.r0 | |
1067d08d ER |
848 | %{_libdir}/VirtualBox/EfiThunk |
849 | %{_libdir}/VirtualBox/VBoxEFI32.fd | |
850 | %{_libdir}/VirtualBox/VBoxEFI64.fd | |
85b005e2 | 851 | %{_libdir}/VirtualBox/components/VBoxXPCOMBase.xpt |
85b005e2 | 852 | %{_libdir}/VirtualBox/components/VirtualBox_XPCOM.xpt |
dca6c443 ER |
853 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxC.so |
854 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxSVCM.so | |
855 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxXPCOMIPCC.so | |
89ce7412 | 856 | %lang(ar) %{_libdir}/VirtualBox/nls/*_ar.qm |
c5e10a4d | 857 | %lang(bg) %{_libdir}/VirtualBox/nls/*_bg.qm |
72d5ea57 | 858 | %lang(ca) %{_libdir}/VirtualBox/nls/*_ca.qm |
3613936b | 859 | %lang(ca_VA) %{_libdir}/VirtualBox/nls/*_ca_VA.qm |
89ce7412 | 860 | %lang(cs) %{_libdir}/VirtualBox/nls/*_cs.qm |
dc0a2786 | 861 | %lang(da) %{_libdir}/VirtualBox/nls/*_da.qm |
89ce7412 | 862 | %lang(de) %{_libdir}/VirtualBox/nls/*_de.qm |
11de52da | 863 | %lang(el) %{_libdir}/VirtualBox/nls/*_el.qm |
3613936b | 864 | %lang(en) %{_libdir}/VirtualBox/nls/*_en.qm |
89ce7412 | 865 | %lang(es) %{_libdir}/VirtualBox/nls/*_es.qm |
866 | %lang(eu) %{_libdir}/VirtualBox/nls/*_eu.qm | |
867 | %lang(fi) %{_libdir}/VirtualBox/nls/*_fi.qm | |
868 | %lang(fr) %{_libdir}/VirtualBox/nls/*_fr.qm | |
3613936b | 869 | %lang(gl_ES) %{_libdir}/VirtualBox/nls/*_gl_ES.qm |
89ce7412 | 870 | %lang(hu) %{_libdir}/VirtualBox/nls/*_hu.qm |
72d5ea57 | 871 | %lang(id) %{_libdir}/VirtualBox/nls/*_id.qm |
89ce7412 | 872 | %lang(it) %{_libdir}/VirtualBox/nls/*_it.qm |
873 | %lang(ja) %{_libdir}/VirtualBox/nls/*_ja.qm | |
c5e10a4d | 874 | %lang(km_KH) %{_libdir}/VirtualBox/nls/*_km_KH.qm |
89ce7412 | 875 | %lang(ko) %{_libdir}/VirtualBox/nls/*_ko.qm |
938d5b7f | 876 | %lang(lt) %{_libdir}/VirtualBox/nls/*_lt.qm |
72d5ea57 | 877 | %lang(nl) %{_libdir}/VirtualBox/nls/*_nl.qm |
89ce7412 | 878 | %lang(pl) %{_libdir}/VirtualBox/nls/*_pl.qm |
52b59a1b | 879 | %lang(pt) %{_libdir}/VirtualBox/nls/*_pt.qm |
89ce7412 | 880 | %lang(pt_BR) %{_libdir}/VirtualBox/nls/*_pt_BR.qm |
89ce7412 | 881 | %lang(ro) %{_libdir}/VirtualBox/nls/*_ro.qm |
882 | %lang(ru) %{_libdir}/VirtualBox/nls/*_ru.qm | |
883 | %lang(sk) %{_libdir}/VirtualBox/nls/*_sk.qm | |
72d5ea57 | 884 | %lang(sr) %{_libdir}/VirtualBox/nls/*_sr.qm |
89ce7412 | 885 | %lang(sv) %{_libdir}/VirtualBox/nls/*_sv.qm |
72d5ea57 | 886 | %lang(tr) %{_libdir}/VirtualBox/nls/*_tr.qm |
85b005e2 | 887 | %lang(uk) %{_libdir}/VirtualBox/nls/*_uk.qm |
89ce7412 | 888 | %lang(zh_CN) %{_libdir}/VirtualBox/nls/*_zh_CN.qm |
889 | %lang(zh_TW) %{_libdir}/VirtualBox/nls/*_zh_TW.qm | |
9ce724ed | 890 | %{_pixmapsdir}/virtualbox.png |
dca6c443 | 891 | %{_desktopdir}/*.desktop |
ddf75c51 | 892 | %{_libdir}/VirtualBox/icons |
744bc35e | 893 | %{_libdir}/VirtualBox/virtualbox.xml |
09c79ddb | 894 | |
ffb38bb6 | 895 | %files additions |
9dda6415 | 896 | %defattr(644,root,root,755) |
ffb38bb6 ER |
897 | %{_libdir}/VirtualBox/additions/VBoxGuestAdditions.iso |
898 | ||
1067d08d ER |
899 | %files guest |
900 | %defattr(644,root,root,755) | |
785c600a ER |
901 | # NOTE: unfinished, should contain .desktop files for starting up mouse |
902 | # integration and other desktop services | |
89973837 | 903 | # NOTE: the filelist is incomplete too |
90de3b27 ER |
904 | %attr(755,root,root) %{_bindir}/VBoxClient |
905 | %attr(755,root,root) %{_bindir}/VBoxControl | |
906 | %attr(755,root,root) %{_bindir}/VBoxService | |
907 | /etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh | |
908 | /etc/xdg/autostart/vboxclient.desktop | |
1067d08d | 909 | |
744bc35e JR |
910 | %attr(755,root,root) %{_libdir}/VirtualBox/additions/autorun.sh |
911 | %attr(755,root,root) %{_libdir}/VirtualBox/additions/vboxadd | |
912 | %attr(755,root,root) %{_libdir}/VirtualBox/additions/vboxadd-service | |
913 | %attr(755,root,root) %{_libdir}/VirtualBox/additions/vboxadd-x11 | |
914 | ||
3613936b JR |
915 | %files -n pam-pam_vbox |
916 | %defattr(644,root,root,755) | |
3ee6b9d9 | 917 | %attr(755,root,root) /%{_lib}/security/pam_vbox.so |
3613936b | 918 | |
90de3b27 ER |
919 | %if %{with doc} |
920 | %files doc | |
921 | %defattr(644,root,root,755) | |
922 | %doc %{outdir}/UserManual.pdf | |
923 | %endif | |
924 | ||
abb636b9 | 925 | %files udev |
926 | %defattr(644,root,root,755) | |
927 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules | |
928 | ||
09c79ddb | 929 | %files -n xorg-driver-input-vboxmouse |
930 | %defattr(644,root,root,755) | |
931 | %attr(755,root,root) %{_libdir}/xorg/modules/input/vboxmouse_drv.so | |
932 | ||
933 | %files -n xorg-driver-video-vboxvideo | |
934 | %defattr(644,root,root,755) | |
935 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/vboxvideo_drv.so | |
27a1aef6 ER |
936 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/vboxvideo_dri.so |
937 | # vboxvideo_dri.so deps | |
1067d08d | 938 | %attr(755,root,root) %{_libdir}/VBoxOGLarrayspu.so |
27a1aef6 ER |
939 | %attr(755,root,root) %{_libdir}/VBoxOGLcrutil.so |
940 | %attr(755,root,root) %{_libdir}/VBoxOGLerrorspu.so | |
941 | %attr(755,root,root) %{_libdir}/VBoxOGLfeedbackspu.so | |
942 | %attr(755,root,root) %{_libdir}/VBoxOGLpackspu.so | |
943 | %attr(755,root,root) %{_libdir}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 944 | %endif |
48363591 | 945 | |
d1c4ec5b | 946 | %if %{with kernel} |
dc0a2786 | 947 | %files -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 948 | %defattr(644,root,root,755) |
dc0a2786 | 949 | %attr(754,root,root) /etc/rc.d/init.d/vboxguest |
35ccdfcc JR |
950 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxguest.conf |
951 | %{systemdunitdir}/vboxguest.service | |
dc0a2786 | 952 | /lib/modules/%{_kernel_ver}/misc/vboxguest.ko* |
74268e47 | 953 | |
d1c4ec5b | 954 | %files -n kernel%{_alt_kernel}-misc-vboxdrv |
48363591 | 955 | %defattr(644,root,root,755) |
67ad4c40 | 956 | %attr(754,root,root) /etc/rc.d/init.d/vboxdrv |
35ccdfcc JR |
957 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxdrv.conf |
958 | %{systemdunitdir}/vboxdrv.service | |
d1c4ec5b | 959 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko* |
74268e47 | 960 | |
d2a7514f ŁK |
961 | %files -n kernel%{_alt_kernel}-misc-vboxnetadp |
962 | %defattr(644,root,root,755) | |
c1cd3b9a | 963 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetadp |
35ccdfcc JR |
964 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxnetadp.conf |
965 | %{systemdunitdir}/vboxnetadp.service | |
d2a7514f ŁK |
966 | /lib/modules/%{_kernel_ver}/misc/vboxnetadp.ko* |
967 | ||
1dda2f69 | 968 | %files -n kernel%{_alt_kernel}-misc-vboxnetflt |
969 | %defattr(644,root,root,755) | |
11848f5b | 970 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetflt |
35ccdfcc JR |
971 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxnetflt.conf |
972 | %{systemdunitdir}/vboxnetflt.service | |
1dda2f69 | 973 | /lib/modules/%{_kernel_ver}/misc/vboxnetflt.ko* |
974 | ||
59d12745 KK |
975 | %files -n kernel%{_alt_kernel}-misc-vboxpci |
976 | %defattr(644,root,root,755) | |
977 | %attr(754,root,root) /etc/rc.d/init.d/vboxpci | |
35ccdfcc JR |
978 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxpci.conf |
979 | %{systemdunitdir}/vboxpci.service | |
59d12745 KK |
980 | /lib/modules/%{_kernel_ver}/misc/vboxpci.ko* |
981 | ||
ecfe25a3 | 982 | %files -n kernel%{_alt_kernel}-misc-vboxsf |
74268e47 | 983 | %defattr(644,root,root,755) |
b06d932c | 984 | %attr(754,root,root) /etc/rc.d/init.d/vboxsf |
35ccdfcc JR |
985 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxsf.conf |
986 | %{systemdunitdir}/vboxsf.service | |
50863744 | 987 | %attr(755,root,root) %{_sbindir}/mount.vboxsf |
ecfe25a3 | 988 | /lib/modules/%{_kernel_ver}/misc/vboxsf.ko* |
67a4f3c1 | 989 | |
990 | %files -n kernel%{_alt_kernel}-misc-vboxvideo | |
991 | %defattr(644,root,root,755) | |
992 | /lib/modules/%{_kernel_ver}/misc/vboxvideo.ko* | |
993 | %endif |