]>
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. |
ffb38bb6 | 6 | # - Check License of VBoxGuestAdditions_*.iso, it's probably not GPL v2. |
5f8b0a92 | 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 |
cc9d49be | 13 | %bcond_with force_userspace # force userspace build (useful if alt_kernel is set) |
b29bcb41 | 14 | %bcond_with verbose |
05f1b1f5 | 15 | |
8833bce1 | 16 | %if %{without kernel} |
17 | %undefine with_dist_kernel | |
18 | %endif | |
bd3faca3 | 19 | %if "%{_alt_kernel}" != "%{nil}" |
20 | %undefine with_userspace | |
21 | %endif | |
cc9d49be AG |
22 | %if %{with force_userspace} |
23 | %define with_userspace 1 | |
24 | %endif | |
05f9288a ER |
25 | %if %{without userspace} |
26 | # nothing to be placed to debuginfo package | |
27 | %define _enable_debug_packages 0 | |
28 | %endif | |
bd3faca3 | 29 | |
cbed52fa | 30 | %define rel 2 |
bd3faca3 | 31 | %define pname VirtualBox |
93ccc0e8 ER |
32 | Summary: VirtualBox OSE - x86 hardware virtualizer |
33 | Summary(pl.UTF-8): VirtualBox OSE - wirtualizator sprzętu x86 | |
bd3faca3 | 34 | Name: %{pname}%{_alt_kernel} |
b4953d98 | 35 | Version: 3.1.6 |
fe3d1798 | 36 | Release: %{rel} |
48363591 | 37 | License: GPL v2 |
38 | Group: Applications/Emulators | |
0b0842e2 | 39 | Source0: http://download.virtualbox.org/virtualbox/%{version}/%{pname}-%{version}-OSE.tar.bz2 |
b4953d98 | 40 | # Source0-md5: 6cb3c8161ad878c2a2732137c1621dc4 |
0b0842e2 | 41 | Source1: http://download.virtualbox.org/virtualbox/%{version}/UserManual.pdf |
b4953d98 | 42 | # Source1-md5: 8561a2b883fbede1e93b7dfb2238e7cc |
0b0842e2 | 43 | Source2: http://download.virtualbox.org/virtualbox/%{version}/VBoxGuestAdditions_%{version}.iso |
b4953d98 | 44 | # Source2-md5: f924e3a75c0d2d78f587b2ac89482074 |
67ad4c40 | 45 | Source3: %{pname}-vboxdrv.init |
dc0a2786 | 46 | Source4: %{pname}-vboxguest.init |
11848f5b | 47 | Source5: %{pname}-vboxnetflt.init |
48 | Source6: %{pname}-vboxvfs.init | |
c1cd3b9a | 49 | Source7: %{pname}-vboxnetadp.init |
11848f5b | 50 | Source8: %{pname}.sh |
4f09a416 | 51 | Source9: mount.vdi |
bd3faca3 | 52 | Patch0: %{pname}-configure.patch |
006342ee | 53 | Patch1: %{pname}-configure-spaces.patch |
67a4f3c1 | 54 | Patch2: %{pname}-export_modules.patch |
8473a80d | 55 | Patch3: %{pname}-VBoxSysInfo.patch |
48363591 | 56 | URL: http://www.virtualbox.org/ |
dd3487fc | 57 | BuildRequires: rpmbuild(macros) >= 1.531 |
83ffcfa8 | 58 | %if %{with userspace} |
ce9843cd ER |
59 | %ifarch %{x8664} |
60 | BuildRequires: gcc-multilib | |
61 | BuildRequires: glibc-devel(i686) | |
62 | BuildRequires: libstdc++-multilib-devel | |
4fff279a | 63 | BuildRequires: libstdc++-multilib-static |
ce9843cd | 64 | %endif |
ce9843cd ER |
65 | %if "%{pld_release}" == "ac" |
66 | BuildRequires: XFree86-devel | |
67 | %else | |
68 | BuildRequires: xorg-lib-libXcursor-devel | |
69 | BuildRequires: xorg-lib-libXmu-devel | |
70 | %endif | |
00149140 | 71 | BuildRequires: OpenGL-GLU-devel |
523e7409 | 72 | BuildRequires: OpenGL-devel |
cef75615 | 73 | BuildRequires: QtGui-devel |
2d17bb72 | 74 | BuildRequires: QtNetwork-devel |
dd64a424 | 75 | BuildRequires: QtOpenGL-devel |
c574efad | 76 | BuildRequires: SDL-devel >= 1.2.7 |
9a1cb119 | 77 | BuildRequires: acpica |
ba702945 | 78 | BuildRequires: alsa-lib-devel >= 1.0.6 |
e5aaadde | 79 | BuildRequires: bash |
48363591 | 80 | BuildRequires: bcc |
81 | BuildRequires: bin86 | |
07ef7f06 | 82 | BuildRequires: curl-devel |
eba4b2aa | 83 | BuildRequires: gcc >= 5:3.2.3 |
48363591 | 84 | BuildRequires: libIDL-devel |
fa974331 | 85 | BuildRequires: libcap-static |
ff01a704 | 86 | BuildRequires: libpng-devel >= 1.2.5 |
d22f0a53 | 87 | BuildRequires: libstdc++-devel >= 5:3.2.3 |
4fff279a | 88 | BuildRequires: libstdc++-static >= 5:3.2.3 |
48363591 | 89 | BuildRequires: libuuid-devel |
ba702945 | 90 | BuildRequires: libxml2-devel >= 2.6.26 |
76ea5ecb | 91 | BuildRequires: libxslt-devel >= 1.1.17 |
ba702945 | 92 | BuildRequires: libxslt-progs >= 1.1.17 |
0bf43862 | 93 | BuildRequires: pkgconfig |
ba702945 | 94 | BuildRequires: pulseaudio-devel >= 0.9.0 |
523e7409 | 95 | BuildRequires: python-devel |
6055e733 | 96 | BuildRequires: python-modules |
250583d4 | 97 | BuildRequires: qt4-build >= 4.2.0 |
2700662b | 98 | BuildRequires: qt4-linguist |
1e840a77 | 99 | BuildRequires: sed >= 4.0 |
0bf43862 | 100 | BuildRequires: which |
e5aaadde | 101 | BuildRequires: xalan-c-devel >= 1.10.0 |
e5aaadde | 102 | BuildRequires: xerces-c-devel >= 2.6.0 |
103 | BuildRequires: zlib-devel >= 1.2.1 | |
23d9d34e | 104 | %endif |
ce9843cd ER |
105 | %if %{with dist_kernel} |
106 | BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20 | |
83ffcfa8 | 107 | %endif |
0afa64ad | 108 | Requires(post,preun): /sbin/chkconfig |
5f1cec1f ER |
109 | Requires(postun): /usr/sbin/groupdel |
110 | Requires(pre): /usr/bin/getgid | |
111 | Requires(pre): /usr/sbin/groupadd | |
8aaa5dec | 112 | Requires: QtCore >= 4.6.1 |
fb661e50 | 113 | Suggests: gxmessage |
5f1cec1f | 114 | Provides: group(vbox) |
eba4b2aa | 115 | ExclusiveArch: %{ix86} %{x8664} |
48363591 | 116 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
117 | ||
eba4b2aa | 118 | %ifarch %{x8664} |
dd3487fc | 119 | %define vbox_platform linux.amd64 |
5088674d | 120 | %else |
dd3487fc | 121 | %define vbox_platform linux.x86 |
5088674d | 122 | %endif |
27a1aef6 | 123 | %define outdir out/%{vbox_platform}/release/bin |
fa974331 | 124 | %define _sbindir /sbin |
5088674d | 125 | |
48363591 | 126 | %description |
93ccc0e8 | 127 | InnoTek VirtualBox OSE is a general-purpose full virtualizer for x86 |
48363591 | 128 | hardware. Targeted at server, desktop and embedded use, it is now the |
129 | only professional-quality virtualization solution that is also Open | |
130 | Source Software. | |
131 | ||
93ccc0e8 | 132 | Some of the features of VirtualBox OSE are: |
48363591 | 133 | |
93ccc0e8 | 134 | Modularity: VirtualBox OSE has an extremely modular design with |
48363591 | 135 | well-defined internal programming interfaces and a client/server |
136 | design. This makes it easy to control it from several interfaces at | |
137 | once: for example, you can start a virtual machine in a typical | |
138 | virtual machine GUI and then control that machine from the command | |
2df47f85 | 139 | line. VirtualBox OSE also comes with a full Software Development Kit: |
140 | even though it is Open Source Software, you don't have to hack the | |
141 | source to write a new interface for VirtualBox OSE. | |
48363591 | 142 | |
143 | Virtual machine descriptions in XML: the configuration settings of | |
144 | virtual machines are stored entirely in XML and are independent of the | |
145 | local machines. Virtual machine definitions can therefore easily be | |
146 | ported to other computers. | |
147 | ||
fd8fc899 | 148 | %description -l pl.UTF-8 |
93ccc0e8 | 149 | InnoTek VirtualBox OSE jest emulatorem sprzętu x86. Kierowany do |
fd8fc899 JR |
150 | zastosowań serwerowych, desktopowych oraz wbudowanych jest obecnie |
151 | jedynym wysokiej jakości rozwiązaniem wirtualizacyjnym dostępnym | |
152 | również jako Otwarte Oprogramowanie. | |
48363591 | 153 | |
fd8fc899 | 154 | Przykładowe cechy VirtualBoksa: |
48363591 | 155 | |
93ccc0e8 | 156 | Modularność: VirtualBox OSE jest wysoce zmodularyzowanym produktem z |
fd8fc899 JR |
157 | dobrze zaprojektowanym wewnętrznym interfejsem programowym typu |
158 | klient/serwer. Dzięki temu można łatwo kontrolować go za pomocą | |
159 | różnych interfejsów. Można na przykład uruchomić maszynę wirtualną z | |
160 | poziomu interfejsu graficznego, a później kontrolować ją z linii | |
2df47f85 | 161 | poleceń. VirtualBox OSE dostarcza również pełny pakiet deweloperski, |
162 | co pozwala stworzyć dowolny inny interfejs zarządzania maszyną | |
163 | wirtualną. | |
48363591 | 164 | |
fd8fc899 JR |
165 | Opisy maszyn wirtualnych w XML-u: konfiguracje poszczególnych maszyn |
166 | wirtualnych są w całości przechowywane w XML-u i są niezależne od | |
167 | lokalnej maszyny. Dzięki temu można szybko i łatwo przenieść | |
168 | konfigurację maszyny wirtualnej na inny komputer. | |
48363591 | 169 | |
abb636b9 | 170 | %package udev |
93ccc0e8 | 171 | Summary: udev rules for VirtualBox OSE kernel modules |
da083e45 | 172 | Summary(pl.UTF-8): Reguły udev dla modułów jądra Linuksa dla VirtualBoksa |
8512deca | 173 | Release: %{rel} |
abb636b9 | 174 | Group: Base/Kernel |
93bf3da1 | 175 | Requires: udev-core |
abb636b9 | 176 | |
177 | %description udev | |
2df47f85 | 178 | udev rules for VirtualBox OSE kernel modules. |
abb636b9 | 179 | |
180 | %description udev -l pl.UTF-8 | |
2df47f85 | 181 | Reguły udev dla modułów jądra Linuksa dla VirtualBoksa. |
abb636b9 | 182 | |
ffb38bb6 ER |
183 | %package additions |
184 | Summary: VirtualBox Guest Additions | |
185 | Group: Base | |
186 | Requires: %{name} = %{version}-%{release} | |
187 | ||
00a4a7ca | 188 | %description additions |
ffb38bb6 ER |
189 | VirtualBox Guest Additions. |
190 | ||
191 | This package contains ISO9660 image with drivers for Guest OS. | |
192 | ||
dc0a2786 | 193 | %package -n kernel%{_alt_kernel}-misc-vboxguest |
b0444796 | 194 | Summary: VirtualBox OSE Guest Additions for Linux Module |
ea074a55 | 195 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
fe3d1798 | 196 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 197 | Group: Base/Kernel |
198 | Requires(post,postun): /sbin/depmod | |
199 | Requires: dev >= 2.9.0-7 | |
200 | %if %{with dist_kernel} | |
201 | %requires_releq_kernel | |
ca8701ad | 202 | Requires(postun): %releq_kernel |
74268e47 | 203 | %endif |
dc0a2786 AG |
204 | Provides: kernel(vboxguest) = %{version}-%{rel} |
205 | Obsoletes: kernel%{_alt_kernel}-misc-vboxadd | |
f7de19b3 | 206 | Conflicts: kernel%{_alt_kernel}-misc-vboxdrv |
74268e47 | 207 | |
dc0a2786 | 208 | %description -n kernel%{_alt_kernel}-misc-vboxguest |
b0444796 | 209 | VirtualBox OSE Guest Additions for Linux Module. |
74268e47 | 210 | |
dc0a2786 | 211 | %description -n kernel%{_alt_kernel}-misc-vboxguest -l pl.UTF-8 |
9dda6415 ER |
212 | Moduł jądra Linuksa vboxguest dla VirtualBoksa OSE - dodatki dla |
213 | systemu gościa. | |
74268e47 | 214 | |
48363591 | 215 | %package -n kernel%{_alt_kernel}-misc-vboxdrv |
b0444796 | 216 | Summary: VirtualBox OSE Support Driver |
ea074a55 | 217 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
fe3d1798 | 218 | Release: %{rel}@%{_kernel_ver_str} |
48363591 | 219 | Group: Base/Kernel |
220 | Requires(post,postun): /sbin/depmod | |
221 | Requires: dev >= 2.9.0-7 | |
222 | %if %{with dist_kernel} | |
d6f0c54e | 223 | %requires_releq_kernel |
224 | Requires(postun): %releq_kernel | |
48363591 | 225 | %endif |
fe3d1798 | 226 | Provides: kernel(vboxdrv) = %{version}-%{rel} |
48363591 | 227 | |
228 | %description -n kernel%{_alt_kernel}-misc-vboxdrv | |
b0444796 | 229 | VirtualBox OSE Support Driver. |
48363591 | 230 | |
fd8fc899 | 231 | %description -n kernel%{_alt_kernel}-misc-vboxdrv -l pl.UTF-8 |
ea074a55 | 232 | Moduł jądra Linuksa dla VirtualBoksa OSE - sterownik wsparcia dla |
233 | systemu głównego. | |
48363591 | 234 | |
d2a7514f | 235 | %package -n kernel%{_alt_kernel}-misc-vboxnetadp |
9dda6415 | 236 | Summary: VirtualBox OSE Network Adapter Driver |
d2a7514f ŁK |
237 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
238 | Release: %{rel}@%{_kernel_ver_str} | |
239 | Group: Base/Kernel | |
240 | Requires(post,postun): /sbin/depmod | |
241 | Requires: dev >= 2.9.0-7 | |
242 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
243 | %if %{with dist_kernel} | |
244 | %requires_releq_kernel | |
245 | Requires(postun): %releq_kernel | |
246 | %endif | |
247 | Provides: kernel(vboxnetflt) = %{version}-%{rel} | |
248 | ||
249 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp | |
250 | VirtualBox OSE Network Adapter Driver. | |
251 | ||
252 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp -l pl.UTF-8 | |
9dda6415 ER |
253 | Moduł jądra Linuksa dla VirtualBoksa OSE - sterownik witrualnej karty |
254 | sieciowej. | |
d2a7514f | 255 | |
1dda2f69 | 256 | %package -n kernel%{_alt_kernel}-misc-vboxnetflt |
9dda6415 | 257 | Summary: VirtualBox OSE Network Filter Driver |
ea074a55 | 258 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
1dda2f69 | 259 | Release: %{rel}@%{_kernel_ver_str} |
260 | Group: Base/Kernel | |
261 | Requires(post,postun): /sbin/depmod | |
262 | Requires: dev >= 2.9.0-7 | |
263 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
264 | %if %{with dist_kernel} | |
265 | %requires_releq_kernel | |
266 | Requires(postun): %releq_kernel | |
267 | %endif | |
268 | Provides: kernel(vboxnetflt) = %{version}-%{rel} | |
269 | ||
270 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt | |
ea074a55 | 271 | VirtualBox OSE Network Filter Driver. |
1dda2f69 | 272 | |
273 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt -l pl.UTF-8 | |
4f09a416 ER |
274 | Moduł jądra Linuksa dla VirtualBoksa OSE - sterownik filtrowania sieci |
275 | dla systemu głównego. | |
1dda2f69 | 276 | |
74268e47 | 277 | %package -n kernel%{_alt_kernel}-misc-vboxvfs |
b0444796 | 278 | Summary: Host file system access VFS for VirtualBox OSE |
ea074a55 | 279 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
fe3d1798 | 280 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 281 | Group: Base/Kernel |
282 | Requires(post,postun): /sbin/depmod | |
283 | Requires: dev >= 2.9.0-7 | |
dc0a2786 | 284 | Requires: kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 285 | %if %{with dist_kernel} |
286 | %requires_releq_kernel | |
287 | Requires(postun): %releq_kernel | |
288 | %endif | |
fe3d1798 | 289 | Provides: kernel(vboxvfs) = %{version}-%{rel} |
74268e47 | 290 | |
291 | %description -n kernel%{_alt_kernel}-misc-vboxvfs | |
b0444796 | 292 | Host file system access VFS for VirtualBox OSE. |
74268e47 | 293 | |
294 | %description -n kernel%{_alt_kernel}-misc-vboxvfs -l pl.UTF-8 | |
4f09a416 ER |
295 | Moduł jądra Linuksa dla VirtualBoksa OSE - dostęp do plików systemu |
296 | głównego z poziomu systemu gościa. | |
74268e47 | 297 | |
67a4f3c1 | 298 | %package -n kernel%{_alt_kernel}-misc-vboxvideo |
299 | Summary: DRM support for VirtualBox OSE | |
300 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE | |
301 | Release: %{rel}@%{_kernel_ver_str} | |
302 | Group: Base/Kernel | |
303 | Requires(post,postun): /sbin/depmod | |
304 | Requires: dev >= 2.9.0-7 | |
305 | %if %{with dist_kernel} | |
306 | %requires_releq_kernel | |
d14fba96 | 307 | %requires_releq_kernel -n drm |
67a4f3c1 | 308 | Requires(postun): %releq_kernel |
309 | %endif | |
310 | Provides: kernel(vboxvideo) = %{version}-%{rel} | |
311 | ||
312 | %description -n kernel%{_alt_kernel}-misc-vboxvideo | |
313 | DRM support for VirtualBox OSE. | |
314 | ||
315 | %description -n kernel%{_alt_kernel}-misc-vboxvideo -l pl.UTF-8 | |
316 | Moduł jądra Linuksa dla VirtualBoksa OSE - sterownik obsługi DRM. | |
317 | ||
09c79ddb | 318 | %package -n xorg-driver-input-vboxmouse |
93ccc0e8 | 319 | Summary: X.org mouse driver for VirtualBox OSE guest OS |
ea074a55 | 320 | Summary(pl.UTF-8): Sterownik myszy dla systemu gościa w VirtualBoksie OSE |
fe3d1798 | 321 | Release: %{rel} |
09c79ddb | 322 | Group: X11/Applications |
323 | Requires: xorg-xserver-server >= 1.0.99.901 | |
6369aec7 | 324 | Requires: xorg-xserver-server(xinput-abi) <= 7.0 |
fa974331 | 325 | Requires: xorg-xserver-server(xinput-abi) >= 4.0 |
09c79ddb | 326 | |
327 | %description -n xorg-driver-input-vboxmouse | |
93ccc0e8 | 328 | X.org mouse driver for VirtualBox OSE guest OS. |
09c79ddb | 329 | |
330 | %description -n xorg-driver-input-vboxmouse -l pl.UTF-8 | |
fe3d1798 | 331 | Sterownik myszy dla systemu gościa w VirtualBoksie. |
09c79ddb | 332 | |
333 | %package -n xorg-driver-video-vboxvideo | |
93ccc0e8 | 334 | Summary: X.org video driver for VirtualBox OSE guest OS |
ea074a55 | 335 | Summary(pl.UTF-8): Sterownik grafiki dla systemu gościa w VirtualBoksie OSE |
fe3d1798 | 336 | Release: %{rel} |
09c79ddb | 337 | Group: X11/Applications |
9dda6415 | 338 | Requires: xorg-xserver-libdri >= 1.7.4 |
fa974331 | 339 | Requires: xorg-xserver-server >= 1.0.99.901 |
6369aec7 | 340 | Requires: xorg-xserver-server(videodrv-abi) <= 6.0 |
e8585a55 | 341 | Requires: xorg-xserver-server(videodrv-abi) >= 2.0 |
09c79ddb | 342 | |
343 | %description -n xorg-driver-video-vboxvideo | |
93ccc0e8 | 344 | X.org video driver for VirtualBox OSE guest OS. |
09c79ddb | 345 | |
346 | %description -n xorg-driver-video-vboxvideo -l pl.UTF-8 | |
ea074a55 | 347 | Sterownik grafiki dla systemu gościa w VirtualBoksie OSE. |
09c79ddb | 348 | |
48363591 | 349 | %prep |
506ebac4 | 350 | %setup -q -n %{pname}-%{version}_OSE |
e709ce6b | 351 | %patch0 -p1 |
006342ee AM |
352 | %patch1 -p1 |
353 | %patch2 -p1 | |
8473a80d | 354 | %patch3 -p1 |
fddcb741 | 355 | |
0b6de2b7 ER |
356 | %{__sed} -i -e 's,$VBOX_DOC_PATH,%{_docdir}/%{name}-%{version},' src/VBox/Installer/linux/virtualbox.desktop |
357 | %{__sed} -i -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/linux/virtualbox.desktop | |
358 | ||
33233365 | 359 | cat <<'EOF' > udev.conf |
7c8aca09 ER |
360 | KERNEL=="vboxdrv", GROUP="vbox", MODE="0660" |
361 | KERNEL=="vboxguest", GROUP="vbox", MODE="0660" | |
362 | KERNEL=="vboxnetctl", GROUP="vbox", MODE="0660" | |
33233365 | 363 | EOF |
23d9d34e | 364 | |
0b6de2b7 | 365 | cp -a %{SOURCE1} . |
11848f5b | 366 | sed 's#@LIBDIR@#%{_libdir}#' < %{SOURCE8} > VirtualBox-wrapper.sh |
fa19f650 | 367 | |
83ffcfa8 | 368 | rm -rf PLD-MODULE-BUILD && mkdir PLD-MODULE-BUILD && cd PLD-MODULE-BUILD |
369 | ../src/VBox/Additions/linux/export_modules modules.tar.gz | |
370 | tar -zxf modules.tar.gz && rm -f modules.tar.gz | |
f2dd3ab3 | 371 | ../src/VBox/HostDrivers/linux/export_modules modules.tar.gz --without-hardening && \ |
83ffcfa8 | 372 | tar -zxf modules.tar.gz && rm -f modules.tar.gz |
05f1b1f5 | 373 | |
fddcb741 | 374 | %build |
83ffcfa8 | 375 | %if %{with userspace} |
106d8451 | 376 | ./configure \ |
ae1bbc88 | 377 | --with-gcc="%{__cc}" \ |
378 | --with-g++="%{__cxx}" \ | |
5a497466 | 379 | --disable-hardening \ |
655754f2 | 380 | --disable-kmods |
48363591 | 381 | |
0864aefd | 382 | . ./env.sh && \ |
006342ee | 383 | kmk -j1 %{?with_verbose:KBUILD_VERBOSE=3} USER=$(id -un) |
48363591 | 384 | %endif |
74268e47 | 385 | |
386 | %if %{with kernel} | |
83ffcfa8 | 387 | cd PLD-MODULE-BUILD |
dc0a2786 | 388 | %build_kernel_modules -m vboxguest -C vboxguest |
74268e47 | 389 | %build_kernel_modules -m vboxdrv -C vboxdrv |
d2a7514f | 390 | %build_kernel_modules -m vboxnetadp -C vboxnetadp |
1dda2f69 | 391 | %build_kernel_modules -m vboxnetflt -C vboxnetflt |
dc0a2786 | 392 | cp -a vboxguest/Module.symvers vboxvfs |
83ffcfa8 | 393 | %build_kernel_modules -m vboxvfs -C vboxvfs -c |
67a4f3c1 | 394 | %build_kernel_modules -m vboxvideo -C vboxvideo_drm |
74268e47 | 395 | cd .. |
50863744 | 396 | %{__cc} %{rpmcflags} %{rpmldflags} -Wall -Werror src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c -o mount.vboxsf |
d1c4ec5b | 397 | %endif |
48363591 | 398 | |
399 | %install | |
400 | rm -rf $RPM_BUILD_ROOT | |
401 | ||
d1c4ec5b | 402 | %if %{with userspace} |
48363591 | 403 | install -d \ |
dca6c443 ER |
404 | $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir},%{_pixmapsdir},%{_desktopdir}} \ |
405 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,dri,input} | |
a70507fb | 406 | |
dca6c443 ER |
407 | # test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition |
408 | if cp -al VBox.png $RPM_BUILD_ROOT/Vbox.png 2>/dev/null; then | |
409 | l=l | |
410 | rm -f $RPM_BUILD_ROOT/VBox.png | |
411 | fi | |
412 | ||
413 | cp -a$l %{outdir} $RPM_BUILD_ROOT%{_libdir}/%{pname} | |
414 | ||
415 | cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/VirtualBox/additions/VBoxGuestAdditions.iso | |
50863744 | 416 | install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/mount.vdi |
dca6c443 | 417 | install -p VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_libdir}/%{pname} |
5b399826 | 418 | for f in {VBox{BFE,Headless,Manage,SDL,SVC,Tunctl,XPCOMIPCD},VirtualBox}; do |
dca6c443 | 419 | ln -s %{_libdir}/%{pname}/VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/$f |
05f1b1f5 | 420 | done |
421 | ||
dca6c443 ER |
422 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname},%{_pixmapsdir}}/VBox.png |
423 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname},%{_desktopdir}}/virtualbox.desktop | |
48363591 | 424 | |
dca6c443 ER |
425 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxmouse_drv_17.so,%{_libdir}/xorg/modules/input/vboxmouse_drv.so} |
426 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxvideo_drv_17.so,%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so} | |
427 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/VBoxOGL.so,%{_libdir}/xorg/modules/dri/vboxvideo_dri.so} | |
428 | # xorg other driver versions | |
429 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/vboxmouse_drv*.{o,so} | |
430 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/vboxvideo_drv*.{o,so} | |
916ab34d | 431 | |
27a1aef6 | 432 | # XXX: where else to install them that vboxvideo_dri.so finds them? patch with rpath? |
dca6c443 ER |
433 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLcrutil.so |
434 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpackspu.so | |
435 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLerrorspu.so | |
436 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLfeedbackspu.so | |
437 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 438 | |
33233365 | 439 | install -d $RPM_BUILD_ROOT/etc/udev/rules.d |
70ce4861 | 440 | cp -a udev.conf $RPM_BUILD_ROOT/etc/udev/rules.d/virtualbox.rules |
dca6c443 ER |
441 | |
442 | # cleanup unpackaged | |
443 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/{src,sdk,testcase} | |
444 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/src | |
445 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxkeyboard.tar.gz | |
446 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/tst* | |
447 | ||
448 | # unknown - checkme | |
449 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/EfiThunk | |
450 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPInstall | |
451 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPLoggerCtl | |
452 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPUninstall | |
453 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBox.sh | |
454 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBoxEFI32.fd | |
455 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBoxEFI64.fd | |
456 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxClient | |
457 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxControl | |
458 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxOGLarrayspu.so | |
459 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxService | |
460 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxshell.py | |
461 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/xpidl | |
462 | ||
463 | # packaged by kernel part | |
464 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf | |
da083e45 | 465 | %endif |
33233365 | 466 | |
da083e45 | 467 | %if %{with kernel} |
50863744 | 468 | install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,modprobe.d},%{_sbindir}} |
70ce4861 | 469 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxdrv |
dc0a2786 | 470 | install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxguest |
70ce4861 ER |
471 | install -p %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetflt |
472 | install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxvfs | |
c1cd3b9a | 473 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetadp |
83ffcfa8 | 474 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxdrv/vboxdrv -d misc |
dc0a2786 | 475 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxguest/vboxguest -d misc |
d2a7514f | 476 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxnetadp/vboxnetadp -d misc |
1dda2f69 | 477 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxnetflt/vboxnetflt -d misc |
83ffcfa8 | 478 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxvfs/vboxvfs -d misc |
67a4f3c1 | 479 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxvideo_drm/vboxvideo -d misc |
fa974331 | 480 | |
50863744 ER |
481 | install -p mount.vboxsf $RPM_BUILD_ROOT%{_sbindir}/mount.vboxsf |
482 | ||
70ce4861 | 483 | cat <<'EOF' > $RPM_BUILD_ROOT/etc/modprobe.d/vboxvfs.conf |
ffb38bb6 | 484 | # Filesystem name has got it's name from Shared Folders, while module is from VFS |
70ce4861 ER |
485 | alias vboxsf vboxvfs |
486 | EOF | |
d1c4ec5b | 487 | %endif |
05f1b1f5 | 488 | |
48363591 | 489 | %clean |
490 | rm -rf $RPM_BUILD_ROOT | |
491 | ||
3b63d3e8 | 492 | %pre |
493 | %groupadd -g 221 -r -f vbox | |
494 | ||
14561782 | 495 | %post |
d8ed80f4 | 496 | cat << 'EOF' |
7841ddfd ER |
497 | You must also install kernel module for this software to work: |
498 | kernel-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
499 | ||
500 | Additionally you might want to install: | |
d2a7514f | 501 | kernel-misc-vboxnetadp-%{version}-%{rel}@%{_kernel_ver_str} |
05f12a30 ER |
502 | kernel-misc-vboxnetflt-%{version}-%{rel}@%{_kernel_ver_str} |
503 | ||
fa974331 | 504 | On Guest Linux system you might want to install: |
dc0a2786 | 505 | kernel-misc-vboxguest-%{version}-%{rel}@%{_kernel_ver_str} |
7841ddfd | 506 | kernel-misc-vboxvfs-%{version}-%{rel}@%{_kernel_ver_str} |
67a4f3c1 | 507 | kernel-misc-vboxvideo-%{version}-%{rel}@%{_kernel_ver_str} |
7841ddfd ER |
508 | |
509 | NOTE: for different kernel brands append after word kernel the brand, like: | |
510 | kernel-desktop-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
511 | kernel-laptop-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
512 | kernel-vanilla-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
513 | ...etc. | |
d8ed80f4 | 514 | |
7d4acef5 | 515 | Depending on which kernel brand You use. |
d8ed80f4 | 516 | |
517 | EOF | |
518 | ||
3b63d3e8 | 519 | %postun |
520 | if [ "$1" = "0" ]; then | |
521 | %groupremove vbox | |
522 | fi | |
523 | ||
dc0a2786 | 524 | %post -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 525 | %depmod %{_kernel_ver} |
dc0a2786 AG |
526 | /sbin/chkconfig --add vboxguest |
527 | %service vboxguest restart "VirtualBox OSE Guest additions driver" | |
74268e47 | 528 | |
dc0a2786 | 529 | %postun -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 530 | %depmod %{_kernel_ver} |
531 | ||
dc0a2786 | 532 | %preun -n kernel%{_alt_kernel}-misc-vboxguest |
270f67bc | 533 | if [ "$1" = "0" ]; then |
dc0a2786 AG |
534 | %service vboxguest stop |
535 | /sbin/chkconfig --del vboxguest | |
270f67bc | 536 | fi |
537 | ||
48363591 | 538 | %post -n kernel%{_alt_kernel}-misc-vboxdrv |
539 | %depmod %{_kernel_ver} | |
270f67bc | 540 | /sbin/chkconfig --add vboxdrv |
ffb38bb6 | 541 | %service vboxdrv restart "VirtualBox OSE Support Driver" |
48363591 | 542 | |
543 | %postun -n kernel%{_alt_kernel}-misc-vboxdrv | |
544 | %depmod %{_kernel_ver} | |
545 | ||
270f67bc | 546 | %preun -n kernel%{_alt_kernel}-misc-vboxdrv |
547 | if [ "$1" = "0" ]; then | |
548 | %service vboxdrv stop | |
549 | /sbin/chkconfig --del vboxdrv | |
550 | fi | |
551 | ||
d2a7514f ŁK |
552 | %post -n kernel%{_alt_kernel}-misc-vboxnetadp |
553 | %depmod %{_kernel_ver} | |
c1cd3b9a | 554 | /sbin/chkconfig --add vboxnetadp |
555 | %service vboxnetadp restart "VirtualBox OSE Network HostOnly driver" | |
d2a7514f ŁK |
556 | |
557 | %postun -n kernel%{_alt_kernel}-misc-vboxnetadp | |
558 | %depmod %{_kernel_ver} | |
559 | ||
c1cd3b9a | 560 | %preun -n kernel%{_alt_kernel}-misc-vboxnetadp |
561 | if [ "$1" = "0" ]; then | |
562 | %service vboxnetadp stop | |
563 | /sbin/chkconfig --del vboxnetadp | |
564 | fi | |
565 | ||
1dda2f69 | 566 | %post -n kernel%{_alt_kernel}-misc-vboxnetflt |
567 | %depmod %{_kernel_ver} | |
11848f5b | 568 | /sbin/chkconfig --add vboxnetflt |
fd488e66 | 569 | %service vboxnetflt restart "VirtualBox OSE Network Filter driver" |
1dda2f69 | 570 | |
571 | %postun -n kernel%{_alt_kernel}-misc-vboxnetflt | |
572 | %depmod %{_kernel_ver} | |
573 | ||
11848f5b | 574 | %preun -n kernel%{_alt_kernel}-misc-vboxnetflt |
575 | if [ "$1" = "0" ]; then | |
576 | %service vboxnetflt stop | |
577 | /sbin/chkconfig --del vboxnetflt | |
578 | fi | |
579 | ||
74268e47 | 580 | %post -n kernel%{_alt_kernel}-misc-vboxvfs |
581 | %depmod %{_kernel_ver} | |
ca8701ad | 582 | /sbin/chkconfig --add vboxvfs |
fa974331 | 583 | %service vboxvfs restart "VirtualBox OSE Host file system access VFS" |
74268e47 | 584 | |
585 | %postun -n kernel%{_alt_kernel}-misc-vboxvfs | |
586 | %depmod %{_kernel_ver} | |
587 | ||
ca8701ad | 588 | %preun -n kernel%{_alt_kernel}-misc-vboxvfs |
589 | if [ "$1" = "0" ]; then | |
590 | %service vboxvfs stop | |
591 | /sbin/chkconfig --del vboxvfs | |
592 | fi | |
593 | ||
67a4f3c1 | 594 | %post -n kernel%{_alt_kernel}-misc-vboxvideo |
595 | %depmod %{_kernel_ver} | |
596 | ||
597 | %postun -n kernel%{_alt_kernel}-misc-vboxvideo | |
598 | %depmod %{_kernel_ver} | |
599 | ||
d1c4ec5b | 600 | %if %{with userspace} |
48363591 | 601 | %files |
602 | %defattr(644,root,root,755) | |
7d1c0a63 | 603 | %doc UserManual.pdf |
8833bce1 | 604 | %dir %{_libdir}/VirtualBox |
916ab34d | 605 | %dir %{_libdir}/VirtualBox/additions |
8833bce1 | 606 | %dir %{_libdir}/VirtualBox/components |
607 | %dir %{_libdir}/VirtualBox/nls | |
85b005e2 | 608 | %attr(755,root,root) %{_bindir}/VBoxBFE |
609 | %attr(755,root,root) %{_bindir}/VBoxHeadless | |
610 | %attr(755,root,root) %{_bindir}/VBoxManage | |
611 | %attr(755,root,root) %{_bindir}/VBoxSDL | |
612 | %attr(755,root,root) %{_bindir}/VBoxSVC | |
613 | %attr(755,root,root) %{_bindir}/VBoxTunctl | |
614 | %attr(755,root,root) %{_bindir}/VBoxXPCOMIPCD | |
48363591 | 615 | %attr(755,root,root) %{_bindir}/VirtualBox |
4f09a416 | 616 | %attr(755,root,root) /sbin/mount.vdi |
05f1b1f5 | 617 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSVC |
618 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxBFE | |
8bb99fd5 | 619 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxHeadless |
05f1b1f5 | 620 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxManage |
621 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSDL | |
5b399826 | 622 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxTestOGL |
8bb99fd5 | 623 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxTunctl |
05f1b1f5 | 624 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOMIPCD |
85b005e2 | 625 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDD.so |
626 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDD2.so | |
627 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDDU.so | |
628 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxGuestPropSvc.so | |
629 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxKeyboard.so | |
5b399826 MM |
630 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxNetAdpCtl |
631 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxNetDHCP | |
85b005e2 | 632 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLhostcrutil.so |
633 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLhosterrorspu.so | |
634 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLrenderspu.so | |
635 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxPython.so | |
636 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxPython2_6.so | |
637 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM.so | |
f701b529 | 638 | %ifarch %{ix86} |
5b399826 MM |
639 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM32.so |
640 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM64.so | |
f701b529 | 641 | %endif |
85b005e2 | 642 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxRT.so |
85b005e2 | 643 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedClipboard.so |
644 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedCrOpenGL.so | |
645 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedFolders.so | |
646 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxVMM.so | |
647 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOM.so | |
648 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOMC.so | |
fdd1c725 | 649 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox |
650 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox-wrapper.sh | |
2a9de9cd | 651 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSysInfo.sh |
85b005e2 | 652 | %{_libdir}/VirtualBox/VBoxDD2GC.gc |
653 | %{_libdir}/VirtualBox/VBoxDDGC.gc | |
654 | %{_libdir}/VirtualBox/VMMGC.gc | |
655 | %{_libdir}/VirtualBox/VBoxDD2R0.r0 | |
656 | %{_libdir}/VirtualBox/VBoxDDR0.r0 | |
657 | %{_libdir}/VirtualBox/VMMR0.r0 | |
85b005e2 | 658 | %{_libdir}/VirtualBox/components/VBoxXPCOMBase.xpt |
85b005e2 | 659 | %{_libdir}/VirtualBox/components/VirtualBox_XPCOM.xpt |
dca6c443 ER |
660 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxC.so |
661 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxSVCM.so | |
662 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxXPCOMIPCC.so | |
89ce7412 | 663 | %lang(ar) %{_libdir}/VirtualBox/nls/*_ar.qm |
c5e10a4d | 664 | %lang(bg) %{_libdir}/VirtualBox/nls/*_bg.qm |
72d5ea57 | 665 | %lang(ca) %{_libdir}/VirtualBox/nls/*_ca.qm |
89ce7412 | 666 | %lang(cs) %{_libdir}/VirtualBox/nls/*_cs.qm |
dc0a2786 | 667 | %lang(da) %{_libdir}/VirtualBox/nls/*_da.qm |
89ce7412 | 668 | %lang(de) %{_libdir}/VirtualBox/nls/*_de.qm |
11de52da | 669 | %lang(el) %{_libdir}/VirtualBox/nls/*_el.qm |
89ce7412 | 670 | %lang(es) %{_libdir}/VirtualBox/nls/*_es.qm |
671 | %lang(eu) %{_libdir}/VirtualBox/nls/*_eu.qm | |
672 | %lang(fi) %{_libdir}/VirtualBox/nls/*_fi.qm | |
673 | %lang(fr) %{_libdir}/VirtualBox/nls/*_fr.qm | |
674 | %lang(hu) %{_libdir}/VirtualBox/nls/*_hu.qm | |
72d5ea57 | 675 | %lang(id) %{_libdir}/VirtualBox/nls/*_id.qm |
89ce7412 | 676 | %lang(it) %{_libdir}/VirtualBox/nls/*_it.qm |
677 | %lang(ja) %{_libdir}/VirtualBox/nls/*_ja.qm | |
c5e10a4d | 678 | %lang(km_KH) %{_libdir}/VirtualBox/nls/*_km_KH.qm |
89ce7412 | 679 | %lang(ko) %{_libdir}/VirtualBox/nls/*_ko.qm |
72d5ea57 | 680 | %lang(nl) %{_libdir}/VirtualBox/nls/*_nl.qm |
89ce7412 | 681 | %lang(pl) %{_libdir}/VirtualBox/nls/*_pl.qm |
52b59a1b | 682 | %lang(pt) %{_libdir}/VirtualBox/nls/*_pt.qm |
89ce7412 | 683 | %lang(pt_BR) %{_libdir}/VirtualBox/nls/*_pt_BR.qm |
89ce7412 | 684 | %lang(ro) %{_libdir}/VirtualBox/nls/*_ro.qm |
685 | %lang(ru) %{_libdir}/VirtualBox/nls/*_ru.qm | |
686 | %lang(sk) %{_libdir}/VirtualBox/nls/*_sk.qm | |
72d5ea57 | 687 | %lang(sr) %{_libdir}/VirtualBox/nls/*_sr.qm |
89ce7412 | 688 | %lang(sv) %{_libdir}/VirtualBox/nls/*_sv.qm |
72d5ea57 | 689 | %lang(tr) %{_libdir}/VirtualBox/nls/*_tr.qm |
85b005e2 | 690 | %lang(uk) %{_libdir}/VirtualBox/nls/*_uk.qm |
89ce7412 | 691 | %lang(zh_CN) %{_libdir}/VirtualBox/nls/*_zh_CN.qm |
692 | %lang(zh_TW) %{_libdir}/VirtualBox/nls/*_zh_TW.qm | |
d89980c7 | 693 | %{_pixmapsdir}/VBox.png |
dca6c443 | 694 | %{_desktopdir}/*.desktop |
09c79ddb | 695 | |
ffb38bb6 | 696 | %files additions |
9dda6415 | 697 | %defattr(644,root,root,755) |
ffb38bb6 ER |
698 | %{_libdir}/VirtualBox/additions/VBoxGuestAdditions.iso |
699 | ||
abb636b9 | 700 | %files udev |
701 | %defattr(644,root,root,755) | |
702 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules | |
703 | ||
09c79ddb | 704 | %files -n xorg-driver-input-vboxmouse |
705 | %defattr(644,root,root,755) | |
706 | %attr(755,root,root) %{_libdir}/xorg/modules/input/vboxmouse_drv.so | |
707 | ||
708 | %files -n xorg-driver-video-vboxvideo | |
709 | %defattr(644,root,root,755) | |
710 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/vboxvideo_drv.so | |
27a1aef6 ER |
711 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/vboxvideo_dri.so |
712 | # vboxvideo_dri.so deps | |
713 | %attr(755,root,root) %{_libdir}/VBoxOGLcrutil.so | |
714 | %attr(755,root,root) %{_libdir}/VBoxOGLerrorspu.so | |
715 | %attr(755,root,root) %{_libdir}/VBoxOGLfeedbackspu.so | |
716 | %attr(755,root,root) %{_libdir}/VBoxOGLpackspu.so | |
717 | %attr(755,root,root) %{_libdir}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 718 | %endif |
48363591 | 719 | |
d1c4ec5b | 720 | %if %{with kernel} |
dc0a2786 | 721 | %files -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 722 | %defattr(644,root,root,755) |
dc0a2786 AG |
723 | %attr(754,root,root) /etc/rc.d/init.d/vboxguest |
724 | /lib/modules/%{_kernel_ver}/misc/vboxguest.ko* | |
74268e47 | 725 | |
d1c4ec5b | 726 | %files -n kernel%{_alt_kernel}-misc-vboxdrv |
48363591 | 727 | %defattr(644,root,root,755) |
67ad4c40 | 728 | %attr(754,root,root) /etc/rc.d/init.d/vboxdrv |
d1c4ec5b | 729 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko* |
74268e47 | 730 | |
d2a7514f ŁK |
731 | %files -n kernel%{_alt_kernel}-misc-vboxnetadp |
732 | %defattr(644,root,root,755) | |
c1cd3b9a | 733 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetadp |
d2a7514f ŁK |
734 | /lib/modules/%{_kernel_ver}/misc/vboxnetadp.ko* |
735 | ||
1dda2f69 | 736 | %files -n kernel%{_alt_kernel}-misc-vboxnetflt |
737 | %defattr(644,root,root,755) | |
11848f5b | 738 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetflt |
1dda2f69 | 739 | /lib/modules/%{_kernel_ver}/misc/vboxnetflt.ko* |
740 | ||
74268e47 | 741 | %files -n kernel%{_alt_kernel}-misc-vboxvfs |
742 | %defattr(644,root,root,755) | |
11848f5b | 743 | %attr(754,root,root) /etc/rc.d/init.d/vboxvfs |
50863744 | 744 | %attr(755,root,root) %{_sbindir}/mount.vboxsf |
70ce4861 | 745 | /etc/modprobe.d/vboxvfs.conf |
74268e47 | 746 | /lib/modules/%{_kernel_ver}/misc/vboxvfs.ko* |
67a4f3c1 | 747 | |
748 | %files -n kernel%{_alt_kernel}-misc-vboxvideo | |
749 | %defattr(644,root,root,755) | |
750 | /lib/modules/%{_kernel_ver}/misc/vboxvideo.ko* | |
751 | %endif |