]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
3 | # - Find how to compile with PLD CFLAGS/CXXFLAGS/LDFLAGS. | |
4 | # - Package SDK. | |
5 | # - Package utils (and write initscripts ?) for Guest OS. | |
6 | # - Check License of VBoxGuestAdditions_*.iso, it's propably not GPL v2. | |
7 | # If so check if it is distributable. | |
8 | # | |
9 | # Conditional build: | |
10 | %bcond_without dist_kernel # without distribution kernel | |
11 | %bcond_without kernel # don't build kernel module | |
12 | %bcond_without userspace # don't build userspace package | |
13 | %bcond_with verbose | |
14 | ||
15 | %if %{without kernel} | |
16 | %undefine with_dist_kernel | |
17 | %endif | |
18 | %if "%{_alt_kernel}" != "%{nil}" | |
19 | %undefine with_userspace | |
20 | %endif | |
21 | %if %{without userspace} | |
22 | # nothing to be placed to debuginfo package | |
23 | %define _enable_debug_packages 0 | |
24 | %endif | |
25 | ||
26 | %define rel 0.1 | |
27 | %define pname VirtualBox | |
28 | Summary: VirtualBox OSE - x86 hardware virtualizer | |
29 | Summary(pl.UTF-8): VirtualBox OSE - wirtualizator sprzętu x86 | |
30 | Name: %{pname}%{_alt_kernel} | |
31 | Version: 2.1.0 | |
32 | Release: %{rel} | |
33 | License: GPL v2 | |
34 | Group: Applications/Emulators | |
35 | #Source0: http://download.virtualbox.org/virtualbox/%{version}/%{pname}-%{version}-OSE.tar.bz2 | |
36 | Source0: %{pname}-%{version}-OSE.tar.bz2 | |
37 | # Source0-md5: bcd403d97e2caf8a634584df34766a4d | |
38 | #Source1: http://download.virtualbox.org/virtualbox/%{version}/UserManual.pdf | |
39 | Source1: UserManual.pdf | |
40 | # Source1-md5: 61f8fa9321b65f8b2e50cfc076d671cb | |
41 | #Source2: http://download.virtualbox.org/virtualbox/%{version}/VBoxGuestAdditions_%{version}.iso | |
42 | Source2: VBoxGuestAdditions_%{version}.iso | |
43 | # Source2-md5: f6514091a6cca90cdc22591a789ed9b0 | |
44 | Source3: %{pname}-vboxdrv.init | |
45 | Source4: %{pname}-vboxadd.init | |
46 | Source5: %{pname}-vboxvfs.init | |
47 | Source6: %{pname}.desktop | |
48 | Source7: %{pname}.sh | |
49 | Patch0: %{pname}-configure.patch | |
50 | Patch1: %{pname}-qt-paths.patch | |
51 | Patch2: %{pname}-shared-libstdc++.patch | |
52 | Patch3: %{pname}-disable-xclient-build.patch | |
53 | Patch4: %{pname}-configure-spaces.patch | |
54 | URL: http://www.virtualbox.org/ | |
55 | BuildRequires: rpmbuild(macros) >= 1.379 | |
56 | %if %{with userspace} | |
57 | %ifarch %{x8664} | |
58 | BuildRequires: gcc-multilib | |
59 | BuildRequires: glibc-devel(i686) | |
60 | BuildRequires: libstdc++-multilib-devel | |
61 | %endif | |
62 | %if "%{pld_release}" == "th" | |
63 | BuildRequires: compat-gcc-34 | |
64 | %endif | |
65 | %if "%{pld_release}" == "ti" | |
66 | BuildRequires: gcc3 | |
67 | %endif | |
68 | %if "%{pld_release}" == "ac" | |
69 | BuildRequires: XFree86-devel | |
70 | %else | |
71 | BuildRequires: xorg-lib-libXcursor-devel | |
72 | BuildRequires: xorg-lib-libXmu-devel | |
73 | %endif | |
74 | BuildRequires: OpenGL-devel | |
75 | BuildRequires: QtGui-devel | |
76 | BuildRequires: SDL-devel >= 1.2.7 | |
77 | BuildRequires: acpica | |
78 | BuildRequires: alsa-lib-devel >= 1.0.6 | |
79 | BuildRequires: bash | |
80 | BuildRequires: bcc | |
81 | BuildRequires: bin86 | |
82 | BuildRequires: gcc >= 5:3.2.3 | |
83 | BuildRequires: libIDL-devel | |
84 | BuildRequires: libpng-devel >= 1.2.5 | |
85 | BuildRequires: libstdc++-devel >= 5:3.2.3 | |
86 | BuildRequires: libuuid-devel | |
87 | BuildRequires: libxml2-devel >= 2.6.26 | |
88 | BuildRequires: libxslt-devel >= 1.1.17 | |
89 | BuildRequires: libxslt-progs >= 1.1.17 | |
90 | BuildRequires: pkgconfig | |
91 | BuildRequires: pulseaudio-devel >= 0.9.0 | |
92 | BuildRequires: python-devel | |
93 | BuildRequires: qt4-build >= 4.2.0 | |
94 | BuildRequires: qt4-linguist | |
95 | BuildRequires: sed >= 4.0 | |
96 | BuildRequires: which | |
97 | BuildRequires: xalan-c-devel >= 1.10.0 | |
98 | BuildRequires: xerces-c-devel >= 2.6.0 | |
99 | BuildRequires: zlib-devel >= 1.2.1 | |
100 | %endif | |
101 | %if %{with dist_kernel} | |
102 | BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20 | |
103 | %endif | |
104 | Requires(post,preun): /sbin/chkconfig | |
105 | Requires(postun): /usr/sbin/groupdel | |
106 | Requires(pre): /usr/bin/getgid | |
107 | Requires(pre): /usr/sbin/groupadd | |
108 | Suggests: gxmessage | |
109 | Provides: group(vbox) | |
110 | ExclusiveArch: %{ix86} %{x8664} | |
111 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
112 | ||
113 | %ifarch %{x8664} | |
114 | %define outdir amd64 | |
115 | %else | |
116 | %define outdir x86 | |
117 | %endif | |
118 | ||
119 | %description | |
120 | InnoTek VirtualBox OSE is a general-purpose full virtualizer for x86 | |
121 | hardware. Targeted at server, desktop and embedded use, it is now the | |
122 | only professional-quality virtualization solution that is also Open | |
123 | Source Software. | |
124 | ||
125 | Some of the features of VirtualBox OSE are: | |
126 | ||
127 | Modularity: VirtualBox OSE has an extremely modular design with | |
128 | well-defined internal programming interfaces and a client/server | |
129 | design. This makes it easy to control it from several interfaces at | |
130 | once: for example, you can start a virtual machine in a typical | |
131 | virtual machine GUI and then control that machine from the command | |
132 | line. VirtualBox OSE also comes with a full Software Development Kit: | |
133 | even though it is Open Source Software, you don't have to hack the | |
134 | source to write a new interface for VirtualBox OSE. | |
135 | ||
136 | Virtual machine descriptions in XML: the configuration settings of | |
137 | virtual machines are stored entirely in XML and are independent of the | |
138 | local machines. Virtual machine definitions can therefore easily be | |
139 | ported to other computers. | |
140 | ||
141 | %description -l pl.UTF-8 | |
142 | InnoTek VirtualBox OSE jest emulatorem sprzętu x86. Kierowany do | |
143 | zastosowań serwerowych, desktopowych oraz wbudowanych jest obecnie | |
144 | jedynym wysokiej jakości rozwiązaniem wirtualizacyjnym dostępnym | |
145 | również jako Otwarte Oprogramowanie. | |
146 | ||
147 | Przykładowe cechy VirtualBoksa: | |
148 | ||
149 | Modularność: VirtualBox OSE jest wysoce zmodularyzowanym produktem z | |
150 | dobrze zaprojektowanym wewnętrznym interfejsem programowym typu | |
151 | klient/serwer. Dzięki temu można łatwo kontrolować go za pomocą | |
152 | różnych interfejsów. Można na przykład uruchomić maszynę wirtualną z | |
153 | poziomu interfejsu graficznego, a później kontrolować ją z linii | |
154 | poleceń. VirtualBox OSE dostarcza również pełny pakiet deweloperski, | |
155 | co pozwala stworzyć dowolny inny interfejs zarządzania maszyną | |
156 | wirtualną. | |
157 | ||
158 | Opisy maszyn wirtualnych w XML-u: konfiguracje poszczególnych maszyn | |
159 | wirtualnych są w całości przechowywane w XML-u i są niezależne od | |
160 | lokalnej maszyny. Dzięki temu można szybko i łatwo przenieść | |
161 | konfigurację maszyny wirtualnej na inny komputer. | |
162 | ||
163 | %package udev | |
164 | Summary: udev rules for VirtualBox OSE kernel modules | |
165 | Summary(pl.UTF-8): Reguły udev dla modułów jądra Linuksa dla VirtualBoksa | |
166 | Release: %{rel} | |
167 | Group: Base/Kernel | |
168 | Requires: udev-core | |
169 | ||
170 | %description udev | |
171 | udev rules for VirtualBox OSE kernel modules. | |
172 | ||
173 | %description udev -l pl.UTF-8 | |
174 | Reguły udev dla modułów jądra Linuksa dla VirtualBoksa. | |
175 | ||
176 | %package -n kernel%{_alt_kernel}-misc-vboxadd | |
177 | Summary: VirtualBox OSE Guest Additions for Linux Module | |
178 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
179 | Release: %{rel}@%{_kernel_ver_str} | |
180 | Group: Base/Kernel | |
181 | Requires(post,postun): /sbin/depmod | |
182 | Requires: dev >= 2.9.0-7 | |
183 | %if %{with dist_kernel} | |
184 | %requires_releq_kernel | |
185 | Requires(postun): %releq_kernel | |
186 | %endif | |
187 | Provides: kernel(vboxadd) = %{version}-%{rel} | |
188 | ||
189 | %description -n kernel%{_alt_kernel}-misc-vboxadd | |
190 | VirtualBox OSE Guest Additions for Linux Module. | |
191 | ||
192 | %description -n kernel%{_alt_kernel}-misc-vboxadd -l pl.UTF-8 | |
193 | Moduł jądra Linuksa vboxadd dla VirtualBoksa. | |
194 | ||
195 | %package -n kernel%{_alt_kernel}-misc-vboxdrv | |
196 | Summary: VirtualBox OSE Support Driver | |
197 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
198 | Release: %{rel}@%{_kernel_ver_str} | |
199 | Group: Base/Kernel | |
200 | Requires(post,postun): /sbin/depmod | |
201 | Requires: dev >= 2.9.0-7 | |
202 | %if %{with dist_kernel} | |
203 | %requires_releq_kernel | |
204 | Requires(postun): %releq_kernel | |
205 | %endif | |
206 | Provides: kernel(vboxdrv) = %{version}-%{rel} | |
207 | ||
208 | %description -n kernel%{_alt_kernel}-misc-vboxdrv | |
209 | VirtualBox OSE Support Driver. | |
210 | ||
211 | %description -n kernel%{_alt_kernel}-misc-vboxdrv -l pl.UTF-8 | |
212 | Moduł jądra Linuksa vboxdrv dla VirtualBoksa. | |
213 | ||
214 | %package -n kernel%{_alt_kernel}-misc-vboxvfs | |
215 | Summary: Host file system access VFS for VirtualBox OSE | |
216 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
217 | Release: %{rel}@%{_kernel_ver_str} | |
218 | Group: Base/Kernel | |
219 | Requires(post,postun): /sbin/depmod | |
220 | Requires: dev >= 2.9.0-7 | |
221 | Requires: kernel%{_alt_kernel}-misc-vboxadd | |
222 | %if %{with dist_kernel} | |
223 | %requires_releq_kernel | |
224 | Requires(postun): %releq_kernel | |
225 | %endif | |
226 | Provides: kernel(vboxvfs) = %{version}-%{rel} | |
227 | ||
228 | %description -n kernel%{_alt_kernel}-misc-vboxvfs | |
229 | Host file system access VFS for VirtualBox OSE. | |
230 | ||
231 | %description -n kernel%{_alt_kernel}-misc-vboxvfs -l pl.UTF-8 | |
232 | Moduł jądra Linuksa vboxvfs dla VirtualBoksa. | |
233 | ||
234 | %package -n xorg-driver-input-vboxmouse | |
235 | Summary: X.org mouse driver for VirtualBox OSE guest OS | |
236 | Summary(pl.UTF-8): Sterownik myszy dla systemu gościa w VirtualBoksie | |
237 | Release: %{rel} | |
238 | Group: X11/Applications | |
239 | Requires: xorg-xserver-server >= 1.0.99.901 | |
240 | ||
241 | %description -n xorg-driver-input-vboxmouse | |
242 | X.org mouse driver for VirtualBox OSE guest OS. | |
243 | ||
244 | %description -n xorg-driver-input-vboxmouse -l pl.UTF-8 | |
245 | Sterownik myszy dla systemu gościa w VirtualBoksie. | |
246 | ||
247 | %package -n xorg-driver-video-vboxvideo | |
248 | Summary: X.org video driver for VirtualBox OSE guest OS | |
249 | Summary(pl.UTF-8): Sterownik grafiki dla systemu gościa w VirtualBoksie | |
250 | Release: %{rel} | |
251 | Group: X11/Applications | |
252 | Requires: xorg-xserver-server >= 1.0.99.901 | |
253 | ||
254 | %description -n xorg-driver-video-vboxvideo | |
255 | X.org video driver for VirtualBox OSE guest OS. | |
256 | ||
257 | %description -n xorg-driver-video-vboxvideo -l pl.UTF-8 | |
258 | Sterownik grafiki dla systemu gościa w VirtualBoksie. | |
259 | ||
260 | %prep | |
261 | %setup -q -n %{pname}-%{version} | |
262 | %patch0 -p1 | |
263 | %patch1 -p1 | |
264 | %patch2 -p1 | |
265 | ||
266 | %ifarch %{x8664} | |
267 | %patch3 -p1 | |
268 | %endif | |
269 | ||
270 | %patch4 -p1 | |
271 | ||
272 | cat <<'EOF' > udev.conf | |
273 | KERNEL=="vboxdrv", NAME="%k", GROUP="vbox", MODE="0660" | |
274 | KERNEL=="vboxadd", NAME="%k", GROUP="vbox", MODE="0660" | |
275 | EOF | |
276 | ||
277 | install %{SOURCE1} . | |
278 | sed 's#@LIBDIR@#%{_libdir}#' < %{SOURCE7} > VirtualBox-wrapper.sh | |
279 | ||
280 | rm -rf PLD-MODULE-BUILD && mkdir PLD-MODULE-BUILD && cd PLD-MODULE-BUILD | |
281 | ../src/VBox/Additions/linux/export_modules modules.tar.gz | |
282 | tar -zxf modules.tar.gz && rm -f modules.tar.gz | |
283 | ../src/VBox/HostDrivers/Support/linux/export_modules modules.tar.gz && \ | |
284 | tar -zxf modules.tar.gz && rm -f modules.tar.gz | |
285 | sed -i -e 's/-DVBOX_WITH_HARDENING//g' vboxdrv/Makefile | |
286 | ||
287 | %build | |
288 | %if %{with userspace} | |
289 | ./configure \ | |
290 | --with-gcc="%{__cc}" \ | |
291 | %if "%{pld_release}" == "th" | |
292 | --with-gcc-compat="gcc-3.4" \ | |
293 | %endif | |
294 | %if "%{pld_release}" == "ti" | |
295 | --with-gcc-compat="gcc3" \ | |
296 | %endif | |
297 | --with-g++="%{__cxx}" \ | |
298 | --disable-hardening \ | |
299 | --disable-kmods \ | |
300 | --disable-qt3 | |
301 | ||
302 | . ./env.sh && \ | |
303 | kmk -j1 %{?with_verbose:KBUILD_VERBOSE=3} | |
304 | %endif | |
305 | ||
306 | %if %{with kernel} | |
307 | cd PLD-MODULE-BUILD | |
308 | %build_kernel_modules -m vboxadd -C vboxadd | |
309 | %build_kernel_modules -m vboxdrv -C vboxdrv | |
310 | cp -a vboxadd/Module.symvers vboxvfs | |
311 | %build_kernel_modules -m vboxvfs -C vboxvfs -c | |
312 | cd .. | |
313 | %endif | |
314 | ||
315 | %install | |
316 | rm -rf $RPM_BUILD_ROOT | |
317 | ||
318 | %if %{with userspace} | |
319 | install -d \ | |
320 | $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir}} \ | |
321 | $RPM_BUILD_ROOT%{_libdir}/VirtualBox | |
322 | ||
323 | install VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_libdir}/VirtualBox | |
324 | for f in {VBox{BFE,Headless,Manage,SDL,SVC,Tunctl,XPCOMIPCD},VirtualBox,vditool}; do | |
325 | install out/linux.%{outdir}/release/bin/$f $RPM_BUILD_ROOT%{_libdir}/VirtualBox/$f | |
326 | ln -s %{_libdir}/VirtualBox/VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/$f | |
327 | done | |
328 | ||
329 | %ifarch %{x8664} | |
330 | install out/linux.%{outdir}/release/bin/VBox*.rel \ | |
331 | $RPM_BUILD_ROOT%{_libdir}/VirtualBox | |
332 | %endif | |
333 | ||
334 | install out/linux.%{outdir}/release/bin/VBox*.so \ | |
335 | $RPM_BUILD_ROOT%{_libdir}/VirtualBox | |
336 | install out/linux.%{outdir}/release/bin/{VBox{DD,DD2}{GC.gc,R0.r0},VMM{GC.gc,R0.r0}} \ | |
337 | $RPM_BUILD_ROOT%{_libdir}/VirtualBox | |
338 | ||
339 | install -d $RPM_BUILD_ROOT%{_libdir}/VirtualBox/additions | |
340 | install -d $RPM_BUILD_ROOT%{_libdir}/VirtualBox/nls | |
341 | ||
342 | install %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/VirtualBox/additions/VBoxGuestAdditions.iso | |
343 | cp -a out/linux.%{outdir}/release/bin/components $RPM_BUILD_ROOT%{_libdir}/VirtualBox | |
344 | cp -a out/linux.%{outdir}/release/bin/nls/* $RPM_BUILD_ROOT%{_libdir}/VirtualBox/nls | |
345 | ||
346 | install out/linux.%{outdir}/release/bin/additions/mountvboxsf \ | |
347 | $RPM_BUILD_ROOT%{_bindir} | |
348 | ||
349 | %ifnarch %{x8664} | |
350 | install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,input} | |
351 | install out/linux.%{outdir}/release/bin/additions/vboxmouse_drv_15.so \ | |
352 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/input/vboxmouse_drv.so | |
353 | install out/linux.%{outdir}/release/bin/additions/vboxvideo_drv_15.so \ | |
354 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so | |
355 | %endif | |
356 | ||
357 | install out/linux.%{outdir}/release/bin/VBox.png $RPM_BUILD_ROOT%{_pixmapsdir}/VBox.png | |
358 | install %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir}/%{pname}.desktop | |
359 | ||
360 | install -d $RPM_BUILD_ROOT/etc/udev/rules.d | |
361 | install udev.conf $RPM_BUILD_ROOT/etc/udev/rules.d/virtualbox.rules | |
362 | %endif | |
363 | ||
364 | %if %{with kernel} | |
365 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d | |
366 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxdrv | |
367 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxadd | |
368 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxvfs | |
369 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxadd/vboxadd -d misc | |
370 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxdrv/vboxdrv -d misc | |
371 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxvfs/vboxvfs -d misc | |
372 | %endif | |
373 | ||
374 | %clean | |
375 | rm -rf $RPM_BUILD_ROOT | |
376 | ||
377 | %pre | |
378 | %groupadd -g 221 -r -f vbox | |
379 | ||
380 | %post | |
381 | cat << 'EOF' | |
382 | NOTE: You must also install kernel module for this software to work | |
383 | kernel-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
384 | kernel-desktop-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
385 | kernel-laptop-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
386 | kernel-vanilla-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
387 | etc. | |
388 | ||
389 | Depending on which kernel brand You use. | |
390 | ||
391 | EOF | |
392 | ||
393 | %postun | |
394 | if [ "$1" = "0" ]; then | |
395 | %groupremove vbox | |
396 | fi | |
397 | ||
398 | %post -n kernel%{_alt_kernel}-misc-vboxadd | |
399 | %depmod %{_kernel_ver} | |
400 | /sbin/chkconfig --add vboxadd | |
401 | %service vboxadd restart "VirtualBox OSE guest additions driver" | |
402 | ||
403 | %postun -n kernel%{_alt_kernel}-misc-vboxadd | |
404 | %depmod %{_kernel_ver} | |
405 | ||
406 | %preun -n kernel%{_alt_kernel}-misc-vboxadd | |
407 | if [ "$1" = "0" ]; then | |
408 | %service vboxadd stop | |
409 | /sbin/chkconfig --del vboxadd | |
410 | fi | |
411 | ||
412 | %post -n kernel%{_alt_kernel}-misc-vboxdrv | |
413 | %depmod %{_kernel_ver} | |
414 | /sbin/chkconfig --add vboxdrv | |
415 | %service vboxdrv restart "VirtualBox OSE driver" | |
416 | ||
417 | %postun -n kernel%{_alt_kernel}-misc-vboxdrv | |
418 | %depmod %{_kernel_ver} | |
419 | ||
420 | %preun -n kernel%{_alt_kernel}-misc-vboxdrv | |
421 | if [ "$1" = "0" ]; then | |
422 | %service vboxdrv stop | |
423 | /sbin/chkconfig --del vboxdrv | |
424 | fi | |
425 | ||
426 | %post -n kernel%{_alt_kernel}-misc-vboxvfs | |
427 | %depmod %{_kernel_ver} | |
428 | /sbin/chkconfig --add vboxvfs | |
429 | %service vboxvfs restart "VirtualBox OSE guest additions VFS driver" | |
430 | ||
431 | %postun -n kernel%{_alt_kernel}-misc-vboxvfs | |
432 | %depmod %{_kernel_ver} | |
433 | ||
434 | %preun -n kernel%{_alt_kernel}-misc-vboxvfs | |
435 | if [ "$1" = "0" ]; then | |
436 | %service vboxvfs stop | |
437 | /sbin/chkconfig --del vboxvfs | |
438 | fi | |
439 | ||
440 | %if %{with userspace} | |
441 | %files | |
442 | %defattr(644,root,root,755) | |
443 | %doc UserManual.pdf | |
444 | %dir %{_libdir}/VirtualBox | |
445 | %dir %{_libdir}/VirtualBox/additions | |
446 | %dir %{_libdir}/VirtualBox/components | |
447 | %dir %{_libdir}/VirtualBox/nls | |
448 | %attr(755,root,root) %{_bindir}/mountvboxsf | |
449 | %attr(755,root,root) %{_bindir}/vditool | |
450 | %attr(755,root,root) %{_bindir}/VBox* | |
451 | %attr(755,root,root) %{_bindir}/VirtualBox | |
452 | %attr(755,root,root) %{_libdir}/VirtualBox/vditool | |
453 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSVC | |
454 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxBFE | |
455 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxHeadless | |
456 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxManage | |
457 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSDL | |
458 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxTunctl | |
459 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOMIPCD | |
460 | %attr(755,root,root) %{_libdir}/VirtualBox/VBox*.so | |
461 | %ifarch %{x8664} | |
462 | %attr(755,root,root) %{_libdir}/VirtualBox/VBox*.rel | |
463 | %endif | |
464 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox | |
465 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox-wrapper.sh | |
466 | %{_libdir}/VirtualBox/*.gc | |
467 | %{_libdir}/VirtualBox/*.r0 | |
468 | %{_libdir}/VirtualBox/additions/* | |
469 | %{_libdir}/VirtualBox/components/* | |
470 | %lang(ar) %{_libdir}/VirtualBox/nls/*_ar.qm | |
471 | %lang(ca) %{_libdir}/VirtualBox/nls/*_ca.qm | |
472 | %lang(cs) %{_libdir}/VirtualBox/nls/*_cs.qm | |
473 | %lang(de) %{_libdir}/VirtualBox/nls/*_de.qm | |
474 | %lang(es) %{_libdir}/VirtualBox/nls/*_es.qm | |
475 | %lang(eu) %{_libdir}/VirtualBox/nls/*_eu.qm | |
476 | %lang(fi) %{_libdir}/VirtualBox/nls/*_fi.qm | |
477 | %lang(fr) %{_libdir}/VirtualBox/nls/*_fr.qm | |
478 | %lang(hu) %{_libdir}/VirtualBox/nls/*_hu.qm | |
479 | %lang(id) %{_libdir}/VirtualBox/nls/*_id.qm | |
480 | %lang(it) %{_libdir}/VirtualBox/nls/*_it.qm | |
481 | %lang(ja) %{_libdir}/VirtualBox/nls/*_ja.qm | |
482 | %lang(ko) %{_libdir}/VirtualBox/nls/*_ko.qm | |
483 | %lang(nl) %{_libdir}/VirtualBox/nls/*_nl.qm | |
484 | %lang(pl) %{_libdir}/VirtualBox/nls/*_pl.qm | |
485 | %lang(pt) %{_libdir}/VirtualBox/nls/*_pt.qm | |
486 | %lang(pt_BR) %{_libdir}/VirtualBox/nls/*_pt_BR.qm | |
487 | %lang(ro) %{_libdir}/VirtualBox/nls/*_ro.qm | |
488 | %lang(ru) %{_libdir}/VirtualBox/nls/*_ru.qm | |
489 | %lang(sk) %{_libdir}/VirtualBox/nls/*_sk.qm | |
490 | %lang(sr) %{_libdir}/VirtualBox/nls/*_sr.qm | |
491 | %lang(sv) %{_libdir}/VirtualBox/nls/*_sv.qm | |
492 | %lang(tr) %{_libdir}/VirtualBox/nls/*_tr.qm | |
493 | %lang(zh_CN) %{_libdir}/VirtualBox/nls/*_zh_CN.qm | |
494 | %lang(zh_TW) %{_libdir}/VirtualBox/nls/*_zh_TW.qm | |
495 | %{_pixmapsdir}/VBox.png | |
496 | %{_desktopdir}/%{pname}.desktop | |
497 | ||
498 | %files udev | |
499 | %defattr(644,root,root,755) | |
500 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules | |
501 | ||
502 | # Drivers are for Guest OS, which is 32-bit. | |
503 | %ifnarch %{x8664} | |
504 | %files -n xorg-driver-input-vboxmouse | |
505 | %defattr(644,root,root,755) | |
506 | %attr(755,root,root) %{_libdir}/xorg/modules/input/vboxmouse_drv.so | |
507 | ||
508 | %files -n xorg-driver-video-vboxvideo | |
509 | %defattr(644,root,root,755) | |
510 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/vboxvideo_drv.so | |
511 | %endif | |
512 | %endif | |
513 | ||
514 | %if %{with kernel} | |
515 | %files -n kernel%{_alt_kernel}-misc-vboxadd | |
516 | %defattr(644,root,root,755) | |
517 | %attr(754,root,root) /etc/rc.d/init.d/vboxadd | |
518 | /lib/modules/%{_kernel_ver}/misc/vboxadd.ko* | |
519 | ||
520 | %files -n kernel%{_alt_kernel}-misc-vboxdrv | |
521 | %defattr(644,root,root,755) | |
522 | %attr(754,root,root) /etc/rc.d/init.d/vboxdrv | |
523 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko* | |
524 | ||
525 | %files -n kernel%{_alt_kernel}-misc-vboxvfs | |
526 | %defattr(644,root,root,755) | |
527 | /lib/modules/%{_kernel_ver}/misc/vboxvfs.ko* | |
528 | %endif |