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