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