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