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