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