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