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