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