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