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