]>
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 | ||
fd8fc899 | 151 | %description -l pl.UTF-8 |
3613936b | 152 | Oracle VirtualBox OSE jest emulatorem sprzętu x86. Kierowany do |
fd8fc899 JR |
153 | zastosowań serwerowych, desktopowych oraz wbudowanych jest obecnie |
154 | jedynym wysokiej jakości rozwiązaniem wirtualizacyjnym dostępnym | |
155 | również jako Otwarte Oprogramowanie. | |
48363591 | 156 | |
fd8fc899 | 157 | Przykładowe cechy VirtualBoksa: |
48363591 | 158 | |
93ccc0e8 | 159 | Modularność: VirtualBox OSE jest wysoce zmodularyzowanym produktem z |
fd8fc899 JR |
160 | dobrze zaprojektowanym wewnętrznym interfejsem programowym typu |
161 | klient/serwer. Dzięki temu można łatwo kontrolować go za pomocą | |
162 | różnych interfejsów. Można na przykład uruchomić maszynę wirtualną z | |
163 | poziomu interfejsu graficznego, a później kontrolować ją z linii | |
2df47f85 | 164 | poleceń. VirtualBox OSE dostarcza również pełny pakiet deweloperski, |
165 | co pozwala stworzyć dowolny inny interfejs zarządzania maszyną | |
166 | wirtualną. | |
48363591 | 167 | |
fd8fc899 JR |
168 | Opisy maszyn wirtualnych w XML-u: konfiguracje poszczególnych maszyn |
169 | wirtualnych są w całości przechowywane w XML-u i są niezależne od | |
170 | lokalnej maszyny. Dzięki temu można szybko i łatwo przenieść | |
171 | konfigurację maszyny wirtualnej na inny komputer. | |
48363591 | 172 | |
abb636b9 | 173 | %package udev |
93ccc0e8 | 174 | Summary: udev rules for VirtualBox OSE kernel modules |
da083e45 | 175 | Summary(pl.UTF-8): Reguły udev dla modułów jądra Linuksa dla VirtualBoksa |
8512deca | 176 | Release: %{rel} |
abb636b9 | 177 | Group: Base/Kernel |
93bf3da1 | 178 | Requires: udev-core |
abb636b9 | 179 | |
180 | %description udev | |
2df47f85 | 181 | udev rules for VirtualBox OSE kernel modules. |
abb636b9 | 182 | |
183 | %description udev -l pl.UTF-8 | |
2df47f85 | 184 | Reguły udev dla modułów jądra Linuksa dla VirtualBoksa. |
abb636b9 | 185 | |
ffb38bb6 ER |
186 | %package additions |
187 | Summary: VirtualBox Guest Additions | |
188 | Group: Base | |
189 | Requires: %{name} = %{version}-%{release} | |
190 | ||
00a4a7ca | 191 | %description additions |
ffb38bb6 ER |
192 | VirtualBox Guest Additions. |
193 | ||
194 | This package contains ISO9660 image with drivers for Guest OS. | |
195 | ||
3613936b JR |
196 | %package -n pam-pam_vbox |
197 | Summary: PAM module to perform automated guest logons | |
198 | Group: Base | |
199 | ||
200 | %description -n pam-pam_vbox | |
201 | PAM module (Pluggable Authentication Module) which can be used | |
202 | to perform automated guest logons. | |
203 | ||
dc0a2786 | 204 | %package -n kernel%{_alt_kernel}-misc-vboxguest |
b0444796 | 205 | Summary: VirtualBox OSE Guest Additions for Linux Module |
ea074a55 | 206 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
fe3d1798 | 207 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 208 | Group: Base/Kernel |
209 | Requires(post,postun): /sbin/depmod | |
210 | Requires: dev >= 2.9.0-7 | |
211 | %if %{with dist_kernel} | |
212 | %requires_releq_kernel | |
ca8701ad | 213 | Requires(postun): %releq_kernel |
74268e47 | 214 | %endif |
dc0a2786 AG |
215 | Provides: kernel(vboxguest) = %{version}-%{rel} |
216 | Obsoletes: kernel%{_alt_kernel}-misc-vboxadd | |
f7de19b3 | 217 | Conflicts: kernel%{_alt_kernel}-misc-vboxdrv |
74268e47 | 218 | |
dc0a2786 | 219 | %description -n kernel%{_alt_kernel}-misc-vboxguest |
b0444796 | 220 | VirtualBox OSE Guest Additions for Linux Module. |
74268e47 | 221 | |
dc0a2786 | 222 | %description -n kernel%{_alt_kernel}-misc-vboxguest -l pl.UTF-8 |
9dda6415 ER |
223 | Moduł jądra Linuksa vboxguest dla VirtualBoksa OSE - dodatki dla |
224 | systemu gościa. | |
74268e47 | 225 | |
48363591 | 226 | %package -n kernel%{_alt_kernel}-misc-vboxdrv |
b0444796 | 227 | Summary: VirtualBox OSE Support Driver |
ea074a55 | 228 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
fe3d1798 | 229 | Release: %{rel}@%{_kernel_ver_str} |
48363591 | 230 | Group: Base/Kernel |
231 | Requires(post,postun): /sbin/depmod | |
232 | Requires: dev >= 2.9.0-7 | |
233 | %if %{with dist_kernel} | |
d6f0c54e | 234 | %requires_releq_kernel |
235 | Requires(postun): %releq_kernel | |
48363591 | 236 | %endif |
fe3d1798 | 237 | Provides: kernel(vboxdrv) = %{version}-%{rel} |
48363591 | 238 | |
239 | %description -n kernel%{_alt_kernel}-misc-vboxdrv | |
b0444796 | 240 | VirtualBox OSE Support Driver. |
48363591 | 241 | |
fd8fc899 | 242 | %description -n kernel%{_alt_kernel}-misc-vboxdrv -l pl.UTF-8 |
ea074a55 | 243 | Moduł jądra Linuksa dla VirtualBoksa OSE - sterownik wsparcia dla |
244 | systemu głównego. | |
48363591 | 245 | |
d2a7514f | 246 | %package -n kernel%{_alt_kernel}-misc-vboxnetadp |
9dda6415 | 247 | Summary: VirtualBox OSE Network Adapter Driver |
d2a7514f ŁK |
248 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
249 | Release: %{rel}@%{_kernel_ver_str} | |
250 | Group: Base/Kernel | |
251 | Requires(post,postun): /sbin/depmod | |
252 | Requires: dev >= 2.9.0-7 | |
253 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
254 | %if %{with dist_kernel} | |
255 | %requires_releq_kernel | |
256 | Requires(postun): %releq_kernel | |
257 | %endif | |
258 | Provides: kernel(vboxnetflt) = %{version}-%{rel} | |
259 | ||
260 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp | |
261 | VirtualBox OSE Network Adapter Driver. | |
262 | ||
263 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp -l pl.UTF-8 | |
9dda6415 ER |
264 | Moduł jądra Linuksa dla VirtualBoksa OSE - sterownik witrualnej karty |
265 | sieciowej. | |
d2a7514f | 266 | |
1dda2f69 | 267 | %package -n kernel%{_alt_kernel}-misc-vboxnetflt |
9dda6415 | 268 | Summary: VirtualBox OSE Network Filter Driver |
ea074a55 | 269 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
1dda2f69 | 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-vboxnetflt | |
ea074a55 | 282 | VirtualBox OSE Network Filter Driver. |
1dda2f69 | 283 | |
284 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt -l pl.UTF-8 | |
4f09a416 ER |
285 | Moduł jądra Linuksa dla VirtualBoksa OSE - sterownik filtrowania sieci |
286 | dla systemu głównego. | |
1dda2f69 | 287 | |
ecfe25a3 PS |
288 | %package -n kernel%{_alt_kernel}-misc-vboxsf |
289 | Summary: Host file system access (Shared Folders) for VirtualBox OSE | |
ea074a55 | 290 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
fe3d1798 | 291 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 292 | Group: Base/Kernel |
293 | Requires(post,postun): /sbin/depmod | |
294 | Requires: dev >= 2.9.0-7 | |
dc0a2786 | 295 | Requires: kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 296 | %if %{with dist_kernel} |
297 | %requires_releq_kernel | |
298 | Requires(postun): %releq_kernel | |
299 | %endif | |
ecfe25a3 PS |
300 | Provides: kernel(vboxsf) = %{version}-%{rel} |
301 | Obsoletes: kernel%{_alt_kernel}-misc-vboxvfs | |
74268e47 | 302 | |
ecfe25a3 PS |
303 | %description -n kernel%{_alt_kernel}-misc-vboxsf |
304 | Host file system access (Shared Folders) for VirtualBox OSE. | |
74268e47 | 305 | |
ecfe25a3 | 306 | %description -n kernel%{_alt_kernel}-misc-vboxsf -l pl.UTF-8 |
4f09a416 ER |
307 | Moduł jądra Linuksa dla VirtualBoksa OSE - dostęp do plików systemu |
308 | głównego z poziomu systemu gościa. | |
74268e47 | 309 | |
67a4f3c1 | 310 | %package -n kernel%{_alt_kernel}-misc-vboxvideo |
311 | Summary: DRM support for VirtualBox OSE | |
312 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE | |
313 | Release: %{rel}@%{_kernel_ver_str} | |
314 | Group: Base/Kernel | |
315 | Requires(post,postun): /sbin/depmod | |
316 | Requires: dev >= 2.9.0-7 | |
317 | %if %{with dist_kernel} | |
318 | %requires_releq_kernel | |
d0471f70 | 319 | %if "%{rpm_build_macros}" >= "1.531" |
d14fba96 | 320 | %requires_releq_kernel -n drm |
d0471f70 | 321 | %endif |
67a4f3c1 | 322 | Requires(postun): %releq_kernel |
323 | %endif | |
324 | Provides: kernel(vboxvideo) = %{version}-%{rel} | |
325 | ||
326 | %description -n kernel%{_alt_kernel}-misc-vboxvideo | |
327 | DRM support for VirtualBox OSE. | |
328 | ||
329 | %description -n kernel%{_alt_kernel}-misc-vboxvideo -l pl.UTF-8 | |
330 | Moduł jądra Linuksa dla VirtualBoksa OSE - sterownik obsługi DRM. | |
331 | ||
09c79ddb | 332 | %package -n xorg-driver-input-vboxmouse |
93ccc0e8 | 333 | Summary: X.org mouse driver for VirtualBox OSE guest OS |
ea074a55 | 334 | Summary(pl.UTF-8): Sterownik myszy dla systemu gościa w VirtualBoksie OSE |
fe3d1798 | 335 | Release: %{rel} |
09c79ddb | 336 | Group: X11/Applications |
337 | Requires: xorg-xserver-server >= 1.0.99.901 | |
55f3f0a2 | 338 | %if "%{pld_release}" == "ti" |
339 | Requires: xorg-xserver-server(xinput-abi) <= 7.0 | |
340 | %else | |
d0471f70 | 341 | Requires: xorg-xserver-server(xinput-abi) <= 9.0 |
55f3f0a2 | 342 | %endif |
fa974331 | 343 | Requires: xorg-xserver-server(xinput-abi) >= 4.0 |
09c79ddb | 344 | |
345 | %description -n xorg-driver-input-vboxmouse | |
93ccc0e8 | 346 | X.org mouse driver for VirtualBox OSE guest OS. |
09c79ddb | 347 | |
348 | %description -n xorg-driver-input-vboxmouse -l pl.UTF-8 | |
fe3d1798 | 349 | Sterownik myszy dla systemu gościa w VirtualBoksie. |
09c79ddb | 350 | |
351 | %package -n xorg-driver-video-vboxvideo | |
93ccc0e8 | 352 | Summary: X.org video driver for VirtualBox OSE guest OS |
ea074a55 | 353 | Summary(pl.UTF-8): Sterownik grafiki dla systemu gościa w VirtualBoksie OSE |
fe3d1798 | 354 | Release: %{rel} |
09c79ddb | 355 | Group: X11/Applications |
9dda6415 | 356 | Requires: xorg-xserver-libdri >= 1.7.4 |
fa974331 | 357 | Requires: xorg-xserver-server >= 1.0.99.901 |
55f3f0a2 | 358 | %if "%{pld_release}" == "ti" |
359 | Requires: xorg-xserver-server(videodrv-abi) <= 6.0 | |
360 | %else | |
d0471f70 | 361 | Requires: xorg-xserver-server(videodrv-abi) <= 7.0 |
55f3f0a2 | 362 | %endif |
e8585a55 | 363 | Requires: xorg-xserver-server(videodrv-abi) >= 2.0 |
09c79ddb | 364 | |
365 | %description -n xorg-driver-video-vboxvideo | |
93ccc0e8 | 366 | X.org video driver for VirtualBox OSE guest OS. |
09c79ddb | 367 | |
368 | %description -n xorg-driver-video-vboxvideo -l pl.UTF-8 | |
ea074a55 | 369 | Sterownik grafiki dla systemu gościa w VirtualBoksie OSE. |
09c79ddb | 370 | |
48363591 | 371 | %prep |
506ebac4 | 372 | %setup -q -n %{pname}-%{version}_OSE |
e709ce6b | 373 | %patch0 -p1 |
006342ee AM |
374 | %patch1 -p1 |
375 | %patch2 -p1 | |
8473a80d | 376 | %patch3 -p1 |
dced50c1 | 377 | %patch4 -p1 |
fddcb741 | 378 | |
0b6de2b7 ER |
379 | %{__sed} -i -e 's,$VBOX_DOC_PATH,%{_docdir}/%{name}-%{version},' src/VBox/Installer/linux/virtualbox.desktop |
380 | %{__sed} -i -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/linux/virtualbox.desktop | |
381 | ||
33233365 | 382 | cat <<'EOF' > udev.conf |
7c8aca09 ER |
383 | KERNEL=="vboxdrv", GROUP="vbox", MODE="0660" |
384 | KERNEL=="vboxguest", GROUP="vbox", MODE="0660" | |
385 | KERNEL=="vboxnetctl", GROUP="vbox", MODE="0660" | |
33233365 | 386 | EOF |
23d9d34e | 387 | |
0b6de2b7 | 388 | cp -a %{SOURCE1} . |
11848f5b | 389 | sed 's#@LIBDIR@#%{_libdir}#' < %{SOURCE8} > VirtualBox-wrapper.sh |
fa19f650 | 390 | |
83ffcfa8 | 391 | rm -rf PLD-MODULE-BUILD && mkdir PLD-MODULE-BUILD && cd PLD-MODULE-BUILD |
392 | ../src/VBox/Additions/linux/export_modules modules.tar.gz | |
393 | tar -zxf modules.tar.gz && rm -f modules.tar.gz | |
f2dd3ab3 | 394 | ../src/VBox/HostDrivers/linux/export_modules modules.tar.gz --without-hardening && \ |
83ffcfa8 | 395 | tar -zxf modules.tar.gz && rm -f modules.tar.gz |
05f1b1f5 | 396 | |
fddcb741 | 397 | %build |
83ffcfa8 | 398 | %if %{with userspace} |
106d8451 | 399 | ./configure \ |
ae1bbc88 | 400 | --with-gcc="%{__cc}" \ |
401 | --with-g++="%{__cxx}" \ | |
5a497466 | 402 | --disable-hardening \ |
655754f2 | 403 | --disable-kmods |
48363591 | 404 | |
0864aefd | 405 | . ./env.sh && \ |
006342ee | 406 | kmk -j1 %{?with_verbose:KBUILD_VERBOSE=3} USER=$(id -un) |
48363591 | 407 | %endif |
74268e47 | 408 | |
409 | %if %{with kernel} | |
83ffcfa8 | 410 | cd PLD-MODULE-BUILD |
dc0a2786 | 411 | %build_kernel_modules -m vboxguest -C vboxguest |
3613936b JR |
412 | %build_kernel_modules -m vboxdrv -C .vbox_modules/vboxdrv |
413 | %build_kernel_modules -m vboxnetadp -C .vbox_modules/vboxnetadp | |
414 | %build_kernel_modules -m vboxnetflt -C .vbox_modules/vboxnetflt | |
ecfe25a3 PS |
415 | cp -a vboxguest/Module.symvers vboxsf |
416 | %build_kernel_modules -m vboxsf -C vboxsf -c | |
67a4f3c1 | 417 | %build_kernel_modules -m vboxvideo -C vboxvideo_drm |
74268e47 | 418 | cd .. |
50863744 | 419 | %{__cc} %{rpmcflags} %{rpmldflags} -Wall -Werror src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c -o mount.vboxsf |
d1c4ec5b | 420 | %endif |
48363591 | 421 | |
422 | %install | |
423 | rm -rf $RPM_BUILD_ROOT | |
424 | ||
d1c4ec5b | 425 | %if %{with userspace} |
48363591 | 426 | install -d \ |
dca6c443 ER |
427 | $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir},%{_pixmapsdir},%{_desktopdir}} \ |
428 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,dri,input} | |
a70507fb | 429 | |
dca6c443 ER |
430 | # test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition |
431 | if cp -al VBox.png $RPM_BUILD_ROOT/Vbox.png 2>/dev/null; then | |
432 | l=l | |
433 | rm -f $RPM_BUILD_ROOT/VBox.png | |
434 | fi | |
435 | ||
436 | cp -a$l %{outdir} $RPM_BUILD_ROOT%{_libdir}/%{pname} | |
437 | ||
438 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/VirtualBox/additions/VBoxGuestAdditions.iso | |
50863744 | 439 | install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/mount.vdi |
dca6c443 | 440 | install -p VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_libdir}/%{pname} |
5b399826 | 441 | for f in {VBox{BFE,Headless,Manage,SDL,SVC,Tunctl,XPCOMIPCD},VirtualBox}; do |
dca6c443 | 442 | ln -s %{_libdir}/%{pname}/VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/$f |
05f1b1f5 | 443 | done |
444 | ||
dca6c443 | 445 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname},%{_pixmapsdir}}/VBox.png |
7bb1ab10 | 446 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname},%{_desktopdir}}/virtualbox.desktop |
48363591 | 447 | |
55f3f0a2 | 448 | %if "%{pld_release}" == "ti" |
449 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxmouse_drv_17.so,%{_libdir}/xorg/modules/input/vboxmouse_drv.so} | |
450 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxvideo_drv_17.so,%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so} | |
451 | %else | |
d0471f70 ER |
452 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxmouse_drv_18.so,%{_libdir}/xorg/modules/input/vboxmouse_drv.so} |
453 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxvideo_drv_18.so,%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so} | |
55f3f0a2 | 454 | %endif |
dca6c443 ER |
455 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/VBoxOGL.so,%{_libdir}/xorg/modules/dri/vboxvideo_dri.so} |
456 | # xorg other driver versions | |
d0471f70 ER |
457 | rm -vf $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/vboxmouse_drv*.{o,so} |
458 | rm -vf $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/vboxvideo_drv*.{o,so} | |
916ab34d | 459 | |
27a1aef6 | 460 | # XXX: where else to install them that vboxvideo_dri.so finds them? patch with rpath? |
dca6c443 ER |
461 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLcrutil.so |
462 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpackspu.so | |
463 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLerrorspu.so | |
464 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLfeedbackspu.so | |
465 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 466 | |
33233365 | 467 | install -d $RPM_BUILD_ROOT/etc/udev/rules.d |
70ce4861 | 468 | cp -a udev.conf $RPM_BUILD_ROOT/etc/udev/rules.d/virtualbox.rules |
dca6c443 | 469 | |
3613936b JR |
470 | install -d $RPM_BUILD_ROOT/%{_lib}/security |
471 | mv $RPM_BUILD_ROOT{%{_libdir}/VirtualBox/additions,/%{_lib}/security}/pam_vbox.so | |
472 | ||
dca6c443 ER |
473 | # cleanup unpackaged |
474 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/{src,sdk,testcase} | |
475 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/src | |
3613936b | 476 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxkeyboard.tar.bz2 |
dca6c443 ER |
477 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/tst* |
478 | ||
479 | # unknown - checkme | |
480 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/EfiThunk | |
481 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPInstall | |
482 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPLoggerCtl | |
483 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPUninstall | |
484 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBox.sh | |
485 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBoxEFI32.fd | |
486 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBoxEFI64.fd | |
487 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxClient | |
488 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxControl | |
489 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxOGLarrayspu.so | |
490 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxService | |
491 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxshell.py | |
492 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/xpidl | |
493 | ||
494 | # packaged by kernel part | |
495 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf | |
da083e45 | 496 | %endif |
33233365 | 497 | |
da083e45 | 498 | %if %{with kernel} |
50863744 | 499 | install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,modprobe.d},%{_sbindir}} |
70ce4861 | 500 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxdrv |
dc0a2786 | 501 | install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxguest |
70ce4861 | 502 | install -p %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetflt |
b06d932c | 503 | install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxsf |
c1cd3b9a | 504 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetadp |
3613936b | 505 | %install_kernel_modules -m PLD-MODULE-BUILD/.vbox_modules/vboxdrv/vboxdrv -d misc |
dc0a2786 | 506 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxguest/vboxguest -d misc |
3613936b JR |
507 | %install_kernel_modules -m PLD-MODULE-BUILD/.vbox_modules/vboxnetadp/vboxnetadp -d misc |
508 | %install_kernel_modules -m PLD-MODULE-BUILD/.vbox_modules/vboxnetflt/vboxnetflt -d misc | |
ecfe25a3 | 509 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxsf/vboxsf -d misc |
67a4f3c1 | 510 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxvideo_drm/vboxvideo -d misc |
fa974331 | 511 | |
50863744 ER |
512 | install -p mount.vboxsf $RPM_BUILD_ROOT%{_sbindir}/mount.vboxsf |
513 | ||
d1c4ec5b | 514 | %endif |
05f1b1f5 | 515 | |
48363591 | 516 | %clean |
517 | rm -rf $RPM_BUILD_ROOT | |
518 | ||
3b63d3e8 | 519 | %pre |
520 | %groupadd -g 221 -r -f vbox | |
521 | ||
14561782 | 522 | %post |
d8ed80f4 | 523 | cat << 'EOF' |
7841ddfd ER |
524 | You must also install kernel module for this software to work: |
525 | kernel-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
526 | ||
527 | Additionally you might want to install: | |
d2a7514f | 528 | kernel-misc-vboxnetadp-%{version}-%{rel}@%{_kernel_ver_str} |
05f12a30 ER |
529 | kernel-misc-vboxnetflt-%{version}-%{rel}@%{_kernel_ver_str} |
530 | ||
fa974331 | 531 | On Guest Linux system you might want to install: |
dc0a2786 | 532 | kernel-misc-vboxguest-%{version}-%{rel}@%{_kernel_ver_str} |
ecfe25a3 | 533 | kernel-misc-vboxsf-%{version}-%{rel}@%{_kernel_ver_str} |
67a4f3c1 | 534 | kernel-misc-vboxvideo-%{version}-%{rel}@%{_kernel_ver_str} |
7841ddfd ER |
535 | |
536 | NOTE: for different kernel brands append after word kernel the brand, like: | |
537 | kernel-desktop-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
538 | kernel-laptop-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
539 | kernel-vanilla-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
540 | ...etc. | |
d8ed80f4 | 541 | |
7d4acef5 | 542 | Depending on which kernel brand You use. |
d8ed80f4 | 543 | |
544 | EOF | |
545 | ||
3b63d3e8 | 546 | %postun |
547 | if [ "$1" = "0" ]; then | |
548 | %groupremove vbox | |
549 | fi | |
550 | ||
dc0a2786 | 551 | %post -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 552 | %depmod %{_kernel_ver} |
dc0a2786 AG |
553 | /sbin/chkconfig --add vboxguest |
554 | %service vboxguest restart "VirtualBox OSE Guest additions driver" | |
74268e47 | 555 | |
dc0a2786 | 556 | %postun -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 557 | %depmod %{_kernel_ver} |
558 | ||
dc0a2786 | 559 | %preun -n kernel%{_alt_kernel}-misc-vboxguest |
270f67bc | 560 | if [ "$1" = "0" ]; then |
dc0a2786 AG |
561 | %service vboxguest stop |
562 | /sbin/chkconfig --del vboxguest | |
270f67bc | 563 | fi |
564 | ||
48363591 | 565 | %post -n kernel%{_alt_kernel}-misc-vboxdrv |
566 | %depmod %{_kernel_ver} | |
270f67bc | 567 | /sbin/chkconfig --add vboxdrv |
ffb38bb6 | 568 | %service vboxdrv restart "VirtualBox OSE Support Driver" |
48363591 | 569 | |
570 | %postun -n kernel%{_alt_kernel}-misc-vboxdrv | |
571 | %depmod %{_kernel_ver} | |
572 | ||
270f67bc | 573 | %preun -n kernel%{_alt_kernel}-misc-vboxdrv |
574 | if [ "$1" = "0" ]; then | |
575 | %service vboxdrv stop | |
576 | /sbin/chkconfig --del vboxdrv | |
577 | fi | |
578 | ||
d2a7514f ŁK |
579 | %post -n kernel%{_alt_kernel}-misc-vboxnetadp |
580 | %depmod %{_kernel_ver} | |
c1cd3b9a | 581 | /sbin/chkconfig --add vboxnetadp |
582 | %service vboxnetadp restart "VirtualBox OSE Network HostOnly driver" | |
d2a7514f ŁK |
583 | |
584 | %postun -n kernel%{_alt_kernel}-misc-vboxnetadp | |
585 | %depmod %{_kernel_ver} | |
586 | ||
c1cd3b9a | 587 | %preun -n kernel%{_alt_kernel}-misc-vboxnetadp |
588 | if [ "$1" = "0" ]; then | |
589 | %service vboxnetadp stop | |
590 | /sbin/chkconfig --del vboxnetadp | |
591 | fi | |
592 | ||
1dda2f69 | 593 | %post -n kernel%{_alt_kernel}-misc-vboxnetflt |
594 | %depmod %{_kernel_ver} | |
11848f5b | 595 | /sbin/chkconfig --add vboxnetflt |
fd488e66 | 596 | %service vboxnetflt restart "VirtualBox OSE Network Filter driver" |
1dda2f69 | 597 | |
598 | %postun -n kernel%{_alt_kernel}-misc-vboxnetflt | |
599 | %depmod %{_kernel_ver} | |
600 | ||
11848f5b | 601 | %preun -n kernel%{_alt_kernel}-misc-vboxnetflt |
602 | if [ "$1" = "0" ]; then | |
603 | %service vboxnetflt stop | |
604 | /sbin/chkconfig --del vboxnetflt | |
605 | fi | |
606 | ||
ecfe25a3 | 607 | %post -n kernel%{_alt_kernel}-misc-vboxsf |
74268e47 | 608 | %depmod %{_kernel_ver} |
ecfe25a3 PS |
609 | /sbin/chkconfig --add vboxsf |
610 | %service vboxsf restart "VirtualBox OSE Host file system access (Shared Folders)" | |
74268e47 | 611 | |
ecfe25a3 | 612 | %postun -n kernel%{_alt_kernel}-misc-vboxsf |
74268e47 | 613 | %depmod %{_kernel_ver} |
614 | ||
ecfe25a3 | 615 | %preun -n kernel%{_alt_kernel}-misc-vboxsf |
ca8701ad | 616 | if [ "$1" = "0" ]; then |
ecfe25a3 PS |
617 | %service vboxsf stop |
618 | /sbin/chkconfig --del vboxsf | |
ca8701ad | 619 | fi |
620 | ||
67a4f3c1 | 621 | %post -n kernel%{_alt_kernel}-misc-vboxvideo |
622 | %depmod %{_kernel_ver} | |
623 | ||
624 | %postun -n kernel%{_alt_kernel}-misc-vboxvideo | |
625 | %depmod %{_kernel_ver} | |
626 | ||
d1c4ec5b | 627 | %if %{with userspace} |
48363591 | 628 | %files |
629 | %defattr(644,root,root,755) | |
7d1c0a63 | 630 | %doc UserManual.pdf |
8833bce1 | 631 | %dir %{_libdir}/VirtualBox |
916ab34d | 632 | %dir %{_libdir}/VirtualBox/additions |
8833bce1 | 633 | %dir %{_libdir}/VirtualBox/components |
634 | %dir %{_libdir}/VirtualBox/nls | |
85b005e2 | 635 | %attr(755,root,root) %{_bindir}/VBoxBFE |
636 | %attr(755,root,root) %{_bindir}/VBoxHeadless | |
637 | %attr(755,root,root) %{_bindir}/VBoxManage | |
638 | %attr(755,root,root) %{_bindir}/VBoxSDL | |
639 | %attr(755,root,root) %{_bindir}/VBoxSVC | |
640 | %attr(755,root,root) %{_bindir}/VBoxTunctl | |
641 | %attr(755,root,root) %{_bindir}/VBoxXPCOMIPCD | |
48363591 | 642 | %attr(755,root,root) %{_bindir}/VirtualBox |
4f09a416 | 643 | %attr(755,root,root) /sbin/mount.vdi |
05f1b1f5 | 644 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSVC |
645 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxBFE | |
8bb99fd5 | 646 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxHeadless |
05f1b1f5 | 647 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxManage |
648 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSDL | |
5b399826 | 649 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxTestOGL |
8bb99fd5 | 650 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxTunctl |
05f1b1f5 | 651 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOMIPCD |
85b005e2 | 652 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDD.so |
653 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDD2.so | |
654 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDDU.so | |
3613936b | 655 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxGuestControlSvc.so |
85b005e2 | 656 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxGuestPropSvc.so |
657 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxKeyboard.so | |
5b399826 MM |
658 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxNetAdpCtl |
659 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxNetDHCP | |
85b005e2 | 660 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLhostcrutil.so |
661 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLhosterrorspu.so | |
662 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLrenderspu.so | |
6935b837 | 663 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxPython*.so |
85b005e2 | 664 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM.so |
f701b529 | 665 | %ifarch %{ix86} |
5b399826 MM |
666 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM32.so |
667 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM64.so | |
f701b529 | 668 | %endif |
85b005e2 | 669 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxRT.so |
85b005e2 | 670 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedClipboard.so |
671 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedCrOpenGL.so | |
672 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedFolders.so | |
673 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxVMM.so | |
674 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOM.so | |
675 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOMC.so | |
fdd1c725 | 676 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox |
677 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox-wrapper.sh | |
2a9de9cd | 678 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSysInfo.sh |
85b005e2 | 679 | %{_libdir}/VirtualBox/VBoxDD2GC.gc |
680 | %{_libdir}/VirtualBox/VBoxDDGC.gc | |
681 | %{_libdir}/VirtualBox/VMMGC.gc | |
682 | %{_libdir}/VirtualBox/VBoxDD2R0.r0 | |
683 | %{_libdir}/VirtualBox/VBoxDDR0.r0 | |
684 | %{_libdir}/VirtualBox/VMMR0.r0 | |
85b005e2 | 685 | %{_libdir}/VirtualBox/components/VBoxXPCOMBase.xpt |
85b005e2 | 686 | %{_libdir}/VirtualBox/components/VirtualBox_XPCOM.xpt |
dca6c443 ER |
687 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxC.so |
688 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxSVCM.so | |
689 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxXPCOMIPCC.so | |
89ce7412 | 690 | %lang(ar) %{_libdir}/VirtualBox/nls/*_ar.qm |
c5e10a4d | 691 | %lang(bg) %{_libdir}/VirtualBox/nls/*_bg.qm |
72d5ea57 | 692 | %lang(ca) %{_libdir}/VirtualBox/nls/*_ca.qm |
3613936b | 693 | %lang(ca_VA) %{_libdir}/VirtualBox/nls/*_ca_VA.qm |
89ce7412 | 694 | %lang(cs) %{_libdir}/VirtualBox/nls/*_cs.qm |
dc0a2786 | 695 | %lang(da) %{_libdir}/VirtualBox/nls/*_da.qm |
89ce7412 | 696 | %lang(de) %{_libdir}/VirtualBox/nls/*_de.qm |
11de52da | 697 | %lang(el) %{_libdir}/VirtualBox/nls/*_el.qm |
3613936b | 698 | %lang(en) %{_libdir}/VirtualBox/nls/*_en.qm |
89ce7412 | 699 | %lang(es) %{_libdir}/VirtualBox/nls/*_es.qm |
700 | %lang(eu) %{_libdir}/VirtualBox/nls/*_eu.qm | |
701 | %lang(fi) %{_libdir}/VirtualBox/nls/*_fi.qm | |
702 | %lang(fr) %{_libdir}/VirtualBox/nls/*_fr.qm | |
3613936b | 703 | %lang(gl_ES) %{_libdir}/VirtualBox/nls/*_gl_ES.qm |
89ce7412 | 704 | %lang(hu) %{_libdir}/VirtualBox/nls/*_hu.qm |
72d5ea57 | 705 | %lang(id) %{_libdir}/VirtualBox/nls/*_id.qm |
89ce7412 | 706 | %lang(it) %{_libdir}/VirtualBox/nls/*_it.qm |
707 | %lang(ja) %{_libdir}/VirtualBox/nls/*_ja.qm | |
c5e10a4d | 708 | %lang(km_KH) %{_libdir}/VirtualBox/nls/*_km_KH.qm |
89ce7412 | 709 | %lang(ko) %{_libdir}/VirtualBox/nls/*_ko.qm |
72d5ea57 | 710 | %lang(nl) %{_libdir}/VirtualBox/nls/*_nl.qm |
89ce7412 | 711 | %lang(pl) %{_libdir}/VirtualBox/nls/*_pl.qm |
52b59a1b | 712 | %lang(pt) %{_libdir}/VirtualBox/nls/*_pt.qm |
89ce7412 | 713 | %lang(pt_BR) %{_libdir}/VirtualBox/nls/*_pt_BR.qm |
89ce7412 | 714 | %lang(ro) %{_libdir}/VirtualBox/nls/*_ro.qm |
715 | %lang(ru) %{_libdir}/VirtualBox/nls/*_ru.qm | |
716 | %lang(sk) %{_libdir}/VirtualBox/nls/*_sk.qm | |
72d5ea57 | 717 | %lang(sr) %{_libdir}/VirtualBox/nls/*_sr.qm |
89ce7412 | 718 | %lang(sv) %{_libdir}/VirtualBox/nls/*_sv.qm |
72d5ea57 | 719 | %lang(tr) %{_libdir}/VirtualBox/nls/*_tr.qm |
85b005e2 | 720 | %lang(uk) %{_libdir}/VirtualBox/nls/*_uk.qm |
89ce7412 | 721 | %lang(zh_CN) %{_libdir}/VirtualBox/nls/*_zh_CN.qm |
722 | %lang(zh_TW) %{_libdir}/VirtualBox/nls/*_zh_TW.qm | |
d89980c7 | 723 | %{_pixmapsdir}/VBox.png |
dca6c443 | 724 | %{_desktopdir}/*.desktop |
09c79ddb | 725 | |
ffb38bb6 | 726 | %files additions |
9dda6415 | 727 | %defattr(644,root,root,755) |
ffb38bb6 ER |
728 | %{_libdir}/VirtualBox/additions/VBoxGuestAdditions.iso |
729 | ||
3613936b JR |
730 | %files -n pam-pam_vbox |
731 | %defattr(644,root,root,755) | |
732 | /%{_lib}/security/pam_vbox.so | |
733 | ||
abb636b9 | 734 | %files udev |
735 | %defattr(644,root,root,755) | |
736 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules | |
737 | ||
09c79ddb | 738 | %files -n xorg-driver-input-vboxmouse |
739 | %defattr(644,root,root,755) | |
740 | %attr(755,root,root) %{_libdir}/xorg/modules/input/vboxmouse_drv.so | |
741 | ||
742 | %files -n xorg-driver-video-vboxvideo | |
743 | %defattr(644,root,root,755) | |
744 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/vboxvideo_drv.so | |
27a1aef6 ER |
745 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/vboxvideo_dri.so |
746 | # vboxvideo_dri.so deps | |
747 | %attr(755,root,root) %{_libdir}/VBoxOGLcrutil.so | |
748 | %attr(755,root,root) %{_libdir}/VBoxOGLerrorspu.so | |
749 | %attr(755,root,root) %{_libdir}/VBoxOGLfeedbackspu.so | |
750 | %attr(755,root,root) %{_libdir}/VBoxOGLpackspu.so | |
751 | %attr(755,root,root) %{_libdir}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 752 | %endif |
48363591 | 753 | |
d1c4ec5b | 754 | %if %{with kernel} |
dc0a2786 | 755 | %files -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 756 | %defattr(644,root,root,755) |
dc0a2786 AG |
757 | %attr(754,root,root) /etc/rc.d/init.d/vboxguest |
758 | /lib/modules/%{_kernel_ver}/misc/vboxguest.ko* | |
74268e47 | 759 | |
d1c4ec5b | 760 | %files -n kernel%{_alt_kernel}-misc-vboxdrv |
48363591 | 761 | %defattr(644,root,root,755) |
67ad4c40 | 762 | %attr(754,root,root) /etc/rc.d/init.d/vboxdrv |
d1c4ec5b | 763 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko* |
74268e47 | 764 | |
d2a7514f ŁK |
765 | %files -n kernel%{_alt_kernel}-misc-vboxnetadp |
766 | %defattr(644,root,root,755) | |
c1cd3b9a | 767 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetadp |
d2a7514f ŁK |
768 | /lib/modules/%{_kernel_ver}/misc/vboxnetadp.ko* |
769 | ||
1dda2f69 | 770 | %files -n kernel%{_alt_kernel}-misc-vboxnetflt |
771 | %defattr(644,root,root,755) | |
11848f5b | 772 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetflt |
1dda2f69 | 773 | /lib/modules/%{_kernel_ver}/misc/vboxnetflt.ko* |
774 | ||
ecfe25a3 | 775 | %files -n kernel%{_alt_kernel}-misc-vboxsf |
74268e47 | 776 | %defattr(644,root,root,755) |
b06d932c | 777 | %attr(754,root,root) /etc/rc.d/init.d/vboxsf |
50863744 | 778 | %attr(755,root,root) %{_sbindir}/mount.vboxsf |
ecfe25a3 | 779 | /lib/modules/%{_kernel_ver}/misc/vboxsf.ko* |
67a4f3c1 | 780 | |
781 | %files -n kernel%{_alt_kernel}-misc-vboxvideo | |
782 | %defattr(644,root,root,755) | |
783 | /lib/modules/%{_kernel_ver}/misc/vboxvideo.ko* | |
784 | %endif |