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