]>
Commit | Line | Data |
---|---|---|
48363591 | 1 | # |
744bc35e JR |
2 | # TODO |
3 | # - java bindings | |
74268e47 | 4 | # - Find how to compile with PLD CFLAGS/CXXFLAGS/LDFLAGS. |
74268e47 | 5 | # - Package SDK. |
09c79ddb | 6 | # - Package utils (and write initscripts ?) for Guest OS. |
ffb38bb6 | 7 | # - Check License of VBoxGuestAdditions_*.iso, it's probably not GPL v2. |
5f8b0a92 | 8 | # If so check if it is distributable. |
89973837 ER |
9 | # - resolve mess with subpackages? |
10 | # - addtions: iso (containing additions/*.iso) | |
11 | # - guest: to be installed to guests (deps on x11 drivers) | |
48363591 | 12 | # |
13 | # Conditional build: | |
8da42f47 | 14 | %bcond_without doc # don't build the documentation |
48363591 | 15 | %bcond_without dist_kernel # without distribution kernel |
d1c4ec5b | 16 | %bcond_without kernel # don't build kernel module |
d1c4ec5b | 17 | %bcond_without userspace # don't build userspace package |
cc9d49be | 18 | %bcond_with force_userspace # force userspace build (useful if alt_kernel is set) |
b29bcb41 | 19 | %bcond_with verbose |
05f1b1f5 | 20 | |
8833bce1 | 21 | %if %{without kernel} |
22 | %undefine with_dist_kernel | |
23 | %endif | |
bd3faca3 | 24 | %if "%{_alt_kernel}" != "%{nil}" |
25 | %undefine with_userspace | |
26 | %endif | |
cc9d49be AG |
27 | %if %{with force_userspace} |
28 | %define with_userspace 1 | |
29 | %endif | |
05f9288a ER |
30 | %if %{without userspace} |
31 | # nothing to be placed to debuginfo package | |
32 | %define _enable_debug_packages 0 | |
33 | %endif | |
bd3faca3 | 34 | |
570c7e4c | 35 | %define rel 4 |
c9d8654a JR |
36 | %define pname VirtualBox |
37 | ||
393ec35d ER |
38 | Summary: VirtualBox - x86 hardware virtualizer |
39 | Summary(pl.UTF-8): VirtualBox - wirtualizator sprzętu x86 | |
bd3faca3 | 40 | Name: %{pname}%{_alt_kernel} |
b4e7433e | 41 | Version: 4.1.2 |
fe3d1798 | 42 | Release: %{rel} |
48363591 | 43 | License: GPL v2 |
44 | Group: Applications/Emulators | |
744bc35e | 45 | Source0: http://download.virtualbox.org/virtualbox/%{version}/%{pname}-%{version}.tar.bz2 |
b4e7433e | 46 | # Source0-md5: 945d2c94c15a4f47280be4b01b67e244 |
744bc35e | 47 | Source1: http://download.virtualbox.org/virtualbox/%{version}/VBoxGuestAdditions_%{version}.iso |
b4e7433e | 48 | # Source1-md5: be4db0b1b43902b88905444997bac91f |
67ad4c40 | 49 | Source3: %{pname}-vboxdrv.init |
dc0a2786 | 50 | Source4: %{pname}-vboxguest.init |
11848f5b | 51 | Source5: %{pname}-vboxnetflt.init |
b06d932c | 52 | Source6: %{pname}-vboxsf.init |
c1cd3b9a | 53 | Source7: %{pname}-vboxnetadp.init |
59d12745 KK |
54 | Source8: %{pname}-vboxpci.init |
55 | Source9: %{pname}.sh | |
56 | Source10: mount.vdi | |
57 | Source11: udev.rules | |
f1590463 | 58 | Patch0: %{pname}-configure-spaces.patch |
59 | Patch1: %{pname}-export_modules.patch | |
60 | Patch2: %{pname}-VBoxSysInfo.patch | |
61 | Patch3: %{pname}-warning_workaround.patch | |
62 | Patch4: %{pname}-vnc.patch | |
9a7b1cdc | 63 | Patch5: %{pname}-dri.patch |
59d12745 KK |
64 | Patch6: %{pname}-disable_build_NetBiosBin.patch |
65 | Patch7: %{pname}-build.patch | |
acf12a87 | 66 | # ubuntu patches |
59d12745 KK |
67 | Patch10: 16-no-update.patch |
68 | Patch11: 18-system-xorg.patch | |
acf12a87 | 69 | # /ubuntu patches |
48363591 | 70 | URL: http://www.virtualbox.org/ |
d0471f70 | 71 | BuildRequires: rpmbuild(macros) >= 1.535 |
83ffcfa8 | 72 | %if %{with userspace} |
ce9843cd ER |
73 | %ifarch %{x8664} |
74 | BuildRequires: gcc-multilib | |
75 | BuildRequires: glibc-devel(i686) | |
76 | BuildRequires: libstdc++-multilib-devel | |
4fff279a | 77 | BuildRequires: libstdc++-multilib-static |
ce9843cd | 78 | %endif |
ce9843cd ER |
79 | %if "%{pld_release}" == "ac" |
80 | BuildRequires: XFree86-devel | |
81 | %else | |
1abc0217 | 82 | BuildRequires: xorg-lib-libXcomposite-devel |
ce9843cd ER |
83 | BuildRequires: xorg-lib-libXcursor-devel |
84 | BuildRequires: xorg-lib-libXmu-devel | |
e649d11e | 85 | BuildRequires: xorg-proto-glproto-devel |
acf12a87 | 86 | BuildRequires: xorg-xserver-server-devel |
ce9843cd | 87 | %endif |
00149140 | 88 | BuildRequires: OpenGL-GLU-devel |
523e7409 | 89 | BuildRequires: OpenGL-devel |
cef75615 | 90 | BuildRequires: QtGui-devel |
2d17bb72 | 91 | BuildRequires: QtNetwork-devel |
dd64a424 | 92 | BuildRequires: QtOpenGL-devel |
c574efad | 93 | BuildRequires: SDL-devel >= 1.2.7 |
9a1cb119 | 94 | BuildRequires: acpica |
ba702945 | 95 | BuildRequires: alsa-lib-devel >= 1.0.6 |
e5aaadde | 96 | BuildRequires: bash |
48363591 | 97 | BuildRequires: bcc |
98 | BuildRequires: bin86 | |
07ef7f06 | 99 | BuildRequires: curl-devel |
8da42f47 | 100 | %{?with_doc:BuildRequires: docbook-dtd44-xml} |
eba4b2aa | 101 | BuildRequires: gcc >= 5:3.2.3 |
48363591 | 102 | BuildRequires: libIDL-devel |
fa974331 | 103 | BuildRequires: libcap-static |
acf12a87 | 104 | BuildRequires: libdrm-devel |
ff01a704 | 105 | BuildRequires: libpng-devel >= 1.2.5 |
d22f0a53 | 106 | BuildRequires: libstdc++-devel >= 5:3.2.3 |
4fff279a | 107 | BuildRequires: libstdc++-static >= 5:3.2.3 |
48363591 | 108 | BuildRequires: libuuid-devel |
01e414ba | 109 | BuildRequires: libvncserver-devel >= 0.9.7 |
ba702945 | 110 | BuildRequires: libxml2-devel >= 2.6.26 |
76ea5ecb | 111 | BuildRequires: libxslt-devel >= 1.1.17 |
ba702945 | 112 | BuildRequires: libxslt-progs >= 1.1.17 |
744bc35e | 113 | BuildRequires: makeself |
90de3b27 | 114 | BuildRequires: mkisofs |
3613936b | 115 | BuildRequires: pam-devel |
acf12a87 | 116 | BuildRequires: pixman-devel |
0bf43862 | 117 | BuildRequires: pkgconfig |
ba702945 | 118 | BuildRequires: pulseaudio-devel >= 0.9.0 |
523e7409 | 119 | BuildRequires: python-devel |
6055e733 | 120 | BuildRequires: python-modules |
250583d4 | 121 | BuildRequires: qt4-build >= 4.2.0 |
2700662b | 122 | BuildRequires: qt4-linguist |
1e840a77 | 123 | BuildRequires: sed >= 4.0 |
8da42f47 | 124 | %if %{with doc} |
744bc35e JR |
125 | BuildRequires: texlive-fonts-bitstream |
126 | BuildRequires: texlive-fonts-other | |
127 | BuildRequires: texlive-fonts-type1-bitstream | |
128 | BuildRequires: texlive-format-pdflatex | |
acf12a87 | 129 | BuildRequires: texlive-latex-ucs |
660fb056 | 130 | BuildRequires: texlive-xetex |
8da42f47 | 131 | %endif |
0bf43862 | 132 | BuildRequires: which |
e5aaadde | 133 | BuildRequires: xalan-c-devel >= 1.10.0 |
e5aaadde | 134 | BuildRequires: xerces-c-devel >= 2.6.0 |
135 | BuildRequires: zlib-devel >= 1.2.1 | |
23d9d34e | 136 | %endif |
ce9843cd ER |
137 | %if %{with dist_kernel} |
138 | BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20 | |
83ffcfa8 | 139 | %endif |
0afa64ad | 140 | Requires(post,preun): /sbin/chkconfig |
5f1cec1f ER |
141 | Requires(postun): /usr/sbin/groupdel |
142 | Requires(pre): /usr/bin/getgid | |
143 | Requires(pre): /usr/sbin/groupadd | |
c061e8fb | 144 | Requires: QtCore >= 4.7.0 |
fb661e50 | 145 | Suggests: gxmessage |
5f1cec1f | 146 | Provides: group(vbox) |
eba4b2aa | 147 | ExclusiveArch: %{ix86} %{x8664} |
48363591 | 148 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
149 | ||
eba4b2aa | 150 | %ifarch %{x8664} |
dd3487fc | 151 | %define vbox_platform linux.amd64 |
5088674d | 152 | %else |
dd3487fc | 153 | %define vbox_platform linux.x86 |
5088674d | 154 | %endif |
27a1aef6 | 155 | %define outdir out/%{vbox_platform}/release/bin |
fa974331 | 156 | %define _sbindir /sbin |
5088674d | 157 | |
48363591 | 158 | %description |
393ec35d | 159 | Oracle VirtualBox is a general-purpose full virtualizer for x86 |
48363591 | 160 | hardware. Targeted at server, desktop and embedded use, it is now the |
161 | only professional-quality virtualization solution that is also Open | |
162 | Source Software. | |
163 | ||
393ec35d | 164 | Some of the features of VirtualBox are: |
48363591 | 165 | |
393ec35d | 166 | Modularity: VirtualBox has an extremely modular design with |
48363591 | 167 | well-defined internal programming interfaces and a client/server |
168 | design. This makes it easy to control it from several interfaces at | |
169 | once: for example, you can start a virtual machine in a typical | |
170 | virtual machine GUI and then control that machine from the command | |
393ec35d ER |
171 | line. VirtualBox also comes with a full Software Development Kit: even |
172 | though it is Open Source Software, you don't have to hack the source | |
173 | to write a new interface for VirtualBox. | |
48363591 | 174 | |
175 | Virtual machine descriptions in XML: the configuration settings of | |
176 | virtual machines are stored entirely in XML and are independent of the | |
177 | local machines. Virtual machine definitions can therefore easily be | |
178 | ported to other computers. | |
179 | ||
1067d08d ER |
180 | You should install this package in your Host OS. |
181 | ||
fd8fc899 | 182 | %description -l pl.UTF-8 |
393ec35d ER |
183 | Oracle VirtualBox jest emulatorem sprzętu x86. Kierowany do zastosowań |
184 | serwerowych, desktopowych oraz wbudowanych jest obecnie jedynym | |
185 | wysokiej jakości rozwiązaniem wirtualizacyjnym dostępnym również jako | |
186 | Otwarte Oprogramowanie. | |
48363591 | 187 | |
fd8fc899 | 188 | Przykładowe cechy VirtualBoksa: |
48363591 | 189 | |
393ec35d | 190 | Modularność: VirtualBox jest wysoce zmodularyzowanym produktem z |
fd8fc899 JR |
191 | dobrze zaprojektowanym wewnętrznym interfejsem programowym typu |
192 | klient/serwer. Dzięki temu można łatwo kontrolować go za pomocą | |
193 | różnych interfejsów. Można na przykład uruchomić maszynę wirtualną z | |
194 | poziomu interfejsu graficznego, a później kontrolować ją z linii | |
393ec35d ER |
195 | poleceń. VirtualBox dostarcza również pełny pakiet deweloperski, co |
196 | pozwala stworzyć dowolny inny interfejs zarządzania maszyną wirtualną. | |
48363591 | 197 | |
fd8fc899 JR |
198 | Opisy maszyn wirtualnych w XML-u: konfiguracje poszczególnych maszyn |
199 | wirtualnych są w całości przechowywane w XML-u i są niezależne od | |
200 | lokalnej maszyny. Dzięki temu można szybko i łatwo przenieść | |
201 | konfigurację maszyny wirtualnej na inny komputer. | |
48363591 | 202 | |
90de3b27 ER |
203 | %package doc |
204 | Summary: VirtualBox documentation | |
205 | Group: Documentation | |
206 | ||
207 | %description doc | |
208 | This package contains VirtualBox User Manual. | |
209 | ||
abb636b9 | 210 | %package udev |
393ec35d | 211 | Summary: udev rules for VirtualBox kernel modules |
da083e45 | 212 | Summary(pl.UTF-8): Reguły udev dla modułów jądra Linuksa dla VirtualBoksa |
abb636b9 | 213 | Group: Base/Kernel |
93bf3da1 | 214 | Requires: udev-core |
abb636b9 | 215 | |
216 | %description udev | |
393ec35d | 217 | udev rules for VirtualBox kernel modules. |
abb636b9 | 218 | |
b00b410d | 219 | You should install this package in your Host OS and in Guest OS. |
1067d08d | 220 | |
abb636b9 | 221 | %description udev -l pl.UTF-8 |
2df47f85 | 222 | Reguły udev dla modułów jądra Linuksa dla VirtualBoksa. |
abb636b9 | 223 | |
ffb38bb6 ER |
224 | %package additions |
225 | Summary: VirtualBox Guest Additions | |
226 | Group: Base | |
227 | Requires: %{name} = %{version}-%{release} | |
228 | ||
00a4a7ca | 229 | %description additions |
ffb38bb6 ER |
230 | VirtualBox Guest Additions. |
231 | ||
232 | This package contains ISO9660 image with drivers for Guest OS. | |
233 | ||
1067d08d ER |
234 | You should install this package in your Host OS. |
235 | ||
236 | %package guest | |
237 | Summary: VirtualBox Guest Additions | |
238 | Group: Base | |
1067d08d ER |
239 | Requires: xorg-driver-input-vboxmouse = %{version}-%{release} |
240 | Requires: xorg-driver-video-vboxvideo = %{version}-%{release} | |
90de3b27 ER |
241 | Suggests: kernel%{_alt_kernel}-misc-vboxsf = %{version}-%{rel}@%{_kernel_ver_str} |
242 | Suggests: kernel%{_alt_kernel}-misc-vboxvideo = %{version}-%{rel}@%{_kernel_ver_str} | |
1067d08d ER |
243 | |
244 | %description guest | |
245 | Tools that utilize kernel modules for supporting integration with the | |
246 | Host, including file sharing and tracking of mouse pointer movement | |
247 | and X.org X11 video and mouse driver. | |
248 | ||
249 | You should install this package in your Guest OS. | |
250 | ||
3613936b JR |
251 | %package -n pam-pam_vbox |
252 | Summary: PAM module to perform automated guest logons | |
253 | Group: Base | |
254 | ||
255 | %description -n pam-pam_vbox | |
3ee6b9d9 ER |
256 | PAM module (Pluggable Authentication Module) which can be used to |
257 | perform automated guest logons. | |
3613936b | 258 | |
fbea1005 | 259 | %package -n xorg-driver-input-vboxmouse |
393ec35d ER |
260 | Summary: X.org mouse driver for VirtualBox guest OS |
261 | Summary(pl.UTF-8): Sterownik myszy dla systemu gościa w VirtualBoksie | |
fbea1005 ER |
262 | Group: X11/Applications |
263 | Requires: xorg-xserver-server >= 1.0.99.901 | |
91eb6bbe | 264 | Requires: xorg-xserver-server(xinput-abi) <= 13.0 |
fbea1005 ER |
265 | Requires: xorg-xserver-server(xinput-abi) >= 4.0 |
266 | ||
267 | %description -n xorg-driver-input-vboxmouse | |
393ec35d | 268 | X.org mouse driver for VirtualBox guest OS. |
fbea1005 ER |
269 | |
270 | %description -n xorg-driver-input-vboxmouse -l pl.UTF-8 | |
271 | Sterownik myszy dla systemu gościa w VirtualBoksie. | |
272 | ||
273 | %package -n xorg-driver-video-vboxvideo | |
393ec35d ER |
274 | Summary: X.org video driver for VirtualBox guest OS |
275 | Summary(pl.UTF-8): Sterownik grafiki dla systemu gościa w VirtualBoksie | |
fbea1005 | 276 | Group: X11/Applications |
20b8335d | 277 | Requires: Mesa-dri-driver-swrast |
fbea1005 ER |
278 | Requires: xorg-xserver-libdri >= 1.7.4 |
279 | Requires: xorg-xserver-server >= 1.0.99.901 | |
91eb6bbe | 280 | Requires: xorg-xserver-server(videodrv-abi) <= 11.0 |
fbea1005 ER |
281 | Requires: xorg-xserver-server(videodrv-abi) >= 2.0 |
282 | ||
283 | %description -n xorg-driver-video-vboxvideo | |
393ec35d | 284 | X.org video driver for VirtualBox guest OS. |
fbea1005 ER |
285 | |
286 | %description -n xorg-driver-video-vboxvideo -l pl.UTF-8 | |
393ec35d | 287 | Sterownik grafiki dla systemu gościa w VirtualBoksie. |
fbea1005 | 288 | |
18adabff ER |
289 | # KERNEL PACKAGES |
290 | # KEEP ALL REGULAR SUBPACKAGES BEFORE KERNEL PACKAGES. | |
dc0a2786 | 291 | %package -n kernel%{_alt_kernel}-misc-vboxguest |
393ec35d ER |
292 | Summary: VirtualBox Guest Additions for Linux Module |
293 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
fe3d1798 | 294 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 295 | Group: Base/Kernel |
296 | Requires(post,postun): /sbin/depmod | |
297 | Requires: dev >= 2.9.0-7 | |
298 | %if %{with dist_kernel} | |
299 | %requires_releq_kernel | |
ca8701ad | 300 | Requires(postun): %releq_kernel |
74268e47 | 301 | %endif |
dc0a2786 AG |
302 | Provides: kernel(vboxguest) = %{version}-%{rel} |
303 | Obsoletes: kernel%{_alt_kernel}-misc-vboxadd | |
f7de19b3 | 304 | Conflicts: kernel%{_alt_kernel}-misc-vboxdrv |
74268e47 | 305 | |
dc0a2786 | 306 | %description -n kernel%{_alt_kernel}-misc-vboxguest |
393ec35d | 307 | VirtualBox Guest Additions for Linux Module. |
74268e47 | 308 | |
91e5103c ER |
309 | You should install this package in your Guest OS. |
310 | ||
dc0a2786 | 311 | %description -n kernel%{_alt_kernel}-misc-vboxguest -l pl.UTF-8 |
393ec35d ER |
312 | Moduł jądra Linuksa vboxguest dla VirtualBoksa - dodatki dla systemu |
313 | gościa. | |
74268e47 | 314 | |
48363591 | 315 | %package -n kernel%{_alt_kernel}-misc-vboxdrv |
393ec35d ER |
316 | Summary: VirtualBox Support Driver |
317 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
fe3d1798 | 318 | Release: %{rel}@%{_kernel_ver_str} |
48363591 | 319 | Group: Base/Kernel |
320 | Requires(post,postun): /sbin/depmod | |
321 | Requires: dev >= 2.9.0-7 | |
322 | %if %{with dist_kernel} | |
d6f0c54e | 323 | %requires_releq_kernel |
324 | Requires(postun): %releq_kernel | |
48363591 | 325 | %endif |
fe3d1798 | 326 | Provides: kernel(vboxdrv) = %{version}-%{rel} |
48363591 | 327 | |
328 | %description -n kernel%{_alt_kernel}-misc-vboxdrv | |
393ec35d | 329 | VirtualBox Support Driver. |
48363591 | 330 | |
91e5103c ER |
331 | You should install this package in your Host OS. |
332 | ||
fd8fc899 | 333 | %description -n kernel%{_alt_kernel}-misc-vboxdrv -l pl.UTF-8 |
393ec35d ER |
334 | Moduł jądra Linuksa dla VirtualBoksa - sterownik wsparcia dla systemu |
335 | głównego. | |
48363591 | 336 | |
d2a7514f | 337 | %package -n kernel%{_alt_kernel}-misc-vboxnetadp |
393ec35d ER |
338 | Summary: VirtualBox Network Adapter Driver |
339 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
d2a7514f ŁK |
340 | Release: %{rel}@%{_kernel_ver_str} |
341 | Group: Base/Kernel | |
342 | Requires(post,postun): /sbin/depmod | |
343 | Requires: dev >= 2.9.0-7 | |
344 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
345 | %if %{with dist_kernel} | |
346 | %requires_releq_kernel | |
347 | Requires(postun): %releq_kernel | |
348 | %endif | |
349 | Provides: kernel(vboxnetflt) = %{version}-%{rel} | |
350 | ||
351 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp | |
393ec35d | 352 | VirtualBox Network Adapter Driver. |
d2a7514f | 353 | |
91e5103c ER |
354 | You should install this package in your Host OS. |
355 | ||
d2a7514f | 356 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp -l pl.UTF-8 |
393ec35d | 357 | Moduł jądra Linuksa dla VirtualBoksa - sterownik witrualnej karty |
9dda6415 | 358 | sieciowej. |
d2a7514f | 359 | |
1dda2f69 | 360 | %package -n kernel%{_alt_kernel}-misc-vboxnetflt |
393ec35d ER |
361 | Summary: VirtualBox Network Filter Driver |
362 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
1dda2f69 | 363 | Release: %{rel}@%{_kernel_ver_str} |
364 | Group: Base/Kernel | |
365 | Requires(post,postun): /sbin/depmod | |
366 | Requires: dev >= 2.9.0-7 | |
367 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
368 | %if %{with dist_kernel} | |
369 | %requires_releq_kernel | |
370 | Requires(postun): %releq_kernel | |
371 | %endif | |
372 | Provides: kernel(vboxnetflt) = %{version}-%{rel} | |
373 | ||
374 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt | |
393ec35d | 375 | VirtualBox Network Filter Driver. |
1dda2f69 | 376 | |
91e5103c ER |
377 | You should install this package in your Host OS. |
378 | ||
1dda2f69 | 379 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt -l pl.UTF-8 |
393ec35d ER |
380 | Moduł jądra Linuksa dla VirtualBoksa - sterownik filtrowania sieci dla |
381 | systemu głównego. | |
1dda2f69 | 382 | |
59d12745 | 383 | %package -n kernel%{_alt_kernel}-misc-vboxpci |
393ec35d ER |
384 | Summary: VirtualBox PCI card passthrough Driver |
385 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
59d12745 KK |
386 | Release: %{rel}@%{_kernel_ver_str} |
387 | Group: Base/Kernel | |
388 | Requires(post,postun): /sbin/depmod | |
389 | Requires: dev >= 2.9.0-7 | |
390 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
391 | %if %{with dist_kernel} | |
392 | %requires_releq_kernel | |
393 | Requires(postun): %releq_kernel | |
394 | %endif | |
395 | Provides: kernel(vboxpci) = %{version}-%{rel} | |
396 | ||
397 | %description -n kernel%{_alt_kernel}-misc-vboxpci | |
393ec35d ER |
398 | VirtualBox PCI card passthrough driver that works as host proxy |
399 | between guest and PCI hardware. | |
59d12745 KK |
400 | |
401 | You should install this package in your Host OS. | |
402 | ||
403 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt -l pl.UTF-8 | |
393ec35d ER |
404 | Moduł jądra Linuksa dla VirtualBoksa - sterownik, ktory działa jako |
405 | proxy między gościem i gospodarzem sprzętu PCI. | |
59d12745 | 406 | |
ecfe25a3 | 407 | %package -n kernel%{_alt_kernel}-misc-vboxsf |
393ec35d ER |
408 | Summary: Host file system access (Shared Folders) for VirtualBox |
409 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
fe3d1798 | 410 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 411 | Group: Base/Kernel |
412 | Requires(post,postun): /sbin/depmod | |
413 | Requires: dev >= 2.9.0-7 | |
dc0a2786 | 414 | Requires: kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 415 | %if %{with dist_kernel} |
416 | %requires_releq_kernel | |
417 | Requires(postun): %releq_kernel | |
418 | %endif | |
ecfe25a3 PS |
419 | Provides: kernel(vboxsf) = %{version}-%{rel} |
420 | Obsoletes: kernel%{_alt_kernel}-misc-vboxvfs | |
74268e47 | 421 | |
ecfe25a3 | 422 | %description -n kernel%{_alt_kernel}-misc-vboxsf |
393ec35d | 423 | Host file system access (Shared Folders) for VirtualBox. |
74268e47 | 424 | |
91e5103c ER |
425 | You should install this package in your Guest OS. |
426 | ||
ecfe25a3 | 427 | %description -n kernel%{_alt_kernel}-misc-vboxsf -l pl.UTF-8 |
393ec35d | 428 | Moduł jądra Linuksa dla VirtualBoksa - dostęp do plików systemu |
4f09a416 | 429 | głównego z poziomu systemu gościa. |
74268e47 | 430 | |
67a4f3c1 | 431 | %package -n kernel%{_alt_kernel}-misc-vboxvideo |
393ec35d ER |
432 | Summary: DRM support for VirtualBox |
433 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
67a4f3c1 | 434 | Release: %{rel}@%{_kernel_ver_str} |
435 | Group: Base/Kernel | |
436 | Requires(post,postun): /sbin/depmod | |
437 | Requires: dev >= 2.9.0-7 | |
438 | %if %{with dist_kernel} | |
439 | %requires_releq_kernel | |
d0471f70 | 440 | %if "%{rpm_build_macros}" >= "1.531" |
d14fba96 | 441 | %requires_releq_kernel -n drm |
d0471f70 | 442 | %endif |
67a4f3c1 | 443 | Requires(postun): %releq_kernel |
444 | %endif | |
445 | Provides: kernel(vboxvideo) = %{version}-%{rel} | |
446 | ||
447 | %description -n kernel%{_alt_kernel}-misc-vboxvideo | |
393ec35d | 448 | DRM support for VirtualBox. |
67a4f3c1 | 449 | |
91e5103c ER |
450 | You should install this package in your Guest OS. |
451 | ||
67a4f3c1 | 452 | %description -n kernel%{_alt_kernel}-misc-vboxvideo -l pl.UTF-8 |
393ec35d | 453 | Moduł jądra Linuksa dla VirtualBoksa - sterownik obsługi DRM. |
67a4f3c1 | 454 | |
48363591 | 455 | %prep |
506ebac4 | 456 | %setup -q -n %{pname}-%{version}_OSE |
e709ce6b | 457 | %patch0 -p1 |
006342ee AM |
458 | %patch1 -p1 |
459 | %patch2 -p1 | |
8473a80d | 460 | %patch3 -p1 |
dced50c1 | 461 | %patch4 -p1 |
9a7b1cdc | 462 | %patch5 -p1 |
59d12745 KK |
463 | %patch6 -p1 |
464 | %patch7 -p1 | |
fddcb741 | 465 | |
744bc35e JR |
466 | %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \ |
467 | -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in | |
0b6de2b7 | 468 | |
59d12745 | 469 | sed 's#@LIBDIR@#%{_libdir}#' < %{SOURCE9} > VirtualBox-wrapper.sh |
fa19f650 | 470 | |
1794e74d ER |
471 | install -d PLD-MODULE-BUILD/{GuestDrivers,HostDrivers} |
472 | cd PLD-MODULE-BUILD | |
473 | ../src/VBox/Additions/linux/export_modules guest-modules.tar.gz | |
474 | tar -zxf guest-modules.tar.gz -C GuestDrivers | |
475 | ||
cadbdf55 | 476 | ../src/VBox/HostDrivers/linux/export_modules host-modules.tar.gz --without-hardening |
1794e74d ER |
477 | tar -zxf host-modules.tar.gz -C HostDrivers |
478 | cd - | |
59d12745 KK |
479 | %patch10 -p1 |
480 | %patch11 -p1 | |
481 | ||
05f1b1f5 | 482 | |
fddcb741 | 483 | %build |
83ffcfa8 | 484 | %if %{with userspace} |
c6e3c003 | 485 | echo "VBOX_WITH_TESTCASES := " > LocalConfig.kmk |
106d8451 | 486 | ./configure \ |
ae1bbc88 | 487 | --with-gcc="%{__cc}" \ |
488 | --with-g++="%{__cxx}" \ | |
8da42f47 | 489 | %{!?with_doc:--disable-docs} \ |
744bc35e | 490 | --disable-java \ |
5a497466 | 491 | --disable-hardening \ |
01e414ba JR |
492 | --disable-kmods \ |
493 | --enable-vnc | |
48363591 | 494 | |
89973837 | 495 | XSERVER_VERSION=$(rpm -q --queryformat '%{VERSION}\n' xorg-xserver-server-devel | awk -F. ' { print $1 $2 } ' 2> /dev/null || echo ERROR) |
0864aefd | 496 | . ./env.sh && \ |
acf12a87 AM |
497 | kmk -j1 \ |
498 | %{?with_verbose:KBUILD_VERBOSE=3} \ | |
499 | USER=$(id -un) \ | |
89973837 ER |
500 | VBOX_VERSION_STRING='$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)'_PLD \ |
501 | XSERVER_VERSION="$XSERVER_VERSION" | |
48363591 | 502 | %endif |
74268e47 | 503 | |
504 | %if %{with kernel} | |
1794e74d ER |
505 | cd PLD-MODULE-BUILD/HostDrivers |
506 | %build_kernel_modules -m vboxdrv -C vboxdrv | |
507 | %build_kernel_modules -m vboxnetadp -C vboxnetadp | |
508 | %build_kernel_modules -m vboxnetflt -C vboxnetflt | |
59d12745 | 509 | %build_kernel_modules -m vboxpci -C vboxpci |
1794e74d ER |
510 | |
511 | cd ../GuestDrivers | |
dc0a2786 | 512 | %build_kernel_modules -m vboxguest -C vboxguest |
ecfe25a3 PS |
513 | cp -a vboxguest/Module.symvers vboxsf |
514 | %build_kernel_modules -m vboxsf -C vboxsf -c | |
67a4f3c1 | 515 | %build_kernel_modules -m vboxvideo -C vboxvideo_drm |
1794e74d | 516 | cd ../.. |
744bc35e | 517 | %{__cc} %{rpmcflags} %{rpmldflags} -Wall -Werror src/VBox/Additions/linux/sharedfolders/{mount.vboxsf.c,vbsfmount.c} -o mount.vboxsf |
d1c4ec5b | 518 | %endif |
48363591 | 519 | |
520 | %install | |
521 | rm -rf $RPM_BUILD_ROOT | |
522 | ||
d1c4ec5b | 523 | %if %{with userspace} |
744bc35e JR |
524 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/%{pname}/ExtensionPacks} \ |
525 | $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \ | |
dca6c443 | 526 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,dri,input} |
a70507fb | 527 | |
dca6c443 ER |
528 | # test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition |
529 | if cp -al VBox.png $RPM_BUILD_ROOT/Vbox.png 2>/dev/null; then | |
530 | l=l | |
531 | rm -f $RPM_BUILD_ROOT/VBox.png | |
532 | fi | |
533 | ||
744bc35e | 534 | cp -a$l %{outdir}/* $RPM_BUILD_ROOT%{_libdir}/%{pname} |
dca6c443 | 535 | |
744bc35e | 536 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/VirtualBox/additions/VBoxGuestAdditions.iso |
59d12745 | 537 | install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sbindir}/mount.vdi |
dca6c443 | 538 | install -p VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_libdir}/%{pname} |
5b399826 | 539 | for f in {VBox{BFE,Headless,Manage,SDL,SVC,Tunctl,XPCOMIPCD},VirtualBox}; do |
dca6c443 | 540 | ln -s %{_libdir}/%{pname}/VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/$f |
05f1b1f5 | 541 | done |
542 | ||
9ce724ed | 543 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/VBox.png,%{_pixmapsdir}/virtualbox.png} |
7bb1ab10 | 544 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname},%{_desktopdir}}/virtualbox.desktop |
48363591 | 545 | |
91eb6bbe AM |
546 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/vboxmouse_drv.so,%{_libdir}/xorg/modules/input/vboxmouse_drv.so} |
547 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/vboxvideo_drv.so,%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so} | |
dca6c443 ER |
548 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/VBoxOGL.so,%{_libdir}/xorg/modules/dri/vboxvideo_dri.so} |
549 | # xorg other driver versions | |
91eb6bbe AM |
550 | rm -vf $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxmouse_drv*.{o,so} |
551 | rm -vf $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxvideo_drv*.{o,so} | |
916ab34d | 552 | |
27a1aef6 | 553 | # XXX: where else to install them that vboxvideo_dri.so finds them? patch with rpath? |
1067d08d | 554 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLarrayspu.so |
dca6c443 | 555 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLcrutil.so |
dca6c443 ER |
556 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLerrorspu.so |
557 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLfeedbackspu.so | |
1067d08d | 558 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpackspu.so |
dca6c443 | 559 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpassthroughspu.so |
d1c4ec5b | 560 | |
33233365 | 561 | install -d $RPM_BUILD_ROOT/etc/udev/rules.d |
59d12745 | 562 | cp -a %{SOURCE11} $RPM_BUILD_ROOT/etc/udev/rules.d/virtualbox.rules |
dca6c443 | 563 | |
3613936b JR |
564 | install -d $RPM_BUILD_ROOT/%{_lib}/security |
565 | mv $RPM_BUILD_ROOT{%{_libdir}/VirtualBox/additions,/%{_lib}/security}/pam_vbox.so | |
566 | ||
dca6c443 ER |
567 | # cleanup unpackaged |
568 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/{src,sdk,testcase} | |
569 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/src | |
3613936b | 570 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxkeyboard.tar.bz2 |
dca6c443 ER |
571 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/tst* |
572 | ||
1067d08d ER |
573 | # IPRT Testcase / Tool - Source Code Massager. |
574 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/scm | |
575 | ||
576 | # Guest Only Tools | |
90de3b27 | 577 | install -d $RPM_BUILD_ROOT/etc/{X11/xinit/xinitrc.d,xdg/autostart} |
1067d08d | 578 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxService |
90de3b27 ER |
579 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxClient |
580 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxControl | |
581 | install -p -D src/VBox/Additions/x11/Installer/98vboxadd-xclient \ | |
582 | $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh | |
583 | cp -p src/VBox/Additions/x11/Installer/vboxclient.desktop \ | |
584 | $RPM_BUILD_ROOT/etc/xdg/autostart/vboxclient.desktop | |
1067d08d | 585 | |
dca6c443 | 586 | # unknown - checkme |
1067d08d | 587 | %if 1 |
dca6c443 ER |
588 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPInstall |
589 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPLoggerCtl | |
590 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPUninstall | |
591 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBox.sh | |
dca6c443 ER |
592 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxshell.py |
593 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/xpidl | |
1067d08d | 594 | %endif |
dca6c443 ER |
595 | |
596 | # packaged by kernel part | |
597 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf | |
da083e45 | 598 | %endif |
33233365 | 599 | |
da083e45 | 600 | %if %{with kernel} |
50863744 | 601 | install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,modprobe.d},%{_sbindir}} |
70ce4861 | 602 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxdrv |
dc0a2786 | 603 | install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxguest |
70ce4861 | 604 | install -p %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetflt |
b06d932c | 605 | install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxsf |
c1cd3b9a | 606 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetadp |
59d12745 | 607 | install -p %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxpci |
1794e74d ER |
608 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxdrv/vboxdrv -d misc |
609 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxnetadp/vboxnetadp -d misc | |
610 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxnetflt/vboxnetflt -d misc | |
59d12745 | 611 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxpci/vboxpci -d misc |
1794e74d ER |
612 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxguest/vboxguest -d misc |
613 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxsf/vboxsf -d misc | |
614 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxvideo_drm/vboxvideo -d misc | |
fa974331 | 615 | |
50863744 ER |
616 | install -p mount.vboxsf $RPM_BUILD_ROOT%{_sbindir}/mount.vboxsf |
617 | ||
d1c4ec5b | 618 | %endif |
05f1b1f5 | 619 | |
48363591 | 620 | %clean |
621 | rm -rf $RPM_BUILD_ROOT | |
622 | ||
3b63d3e8 | 623 | %pre |
624 | %groupadd -g 221 -r -f vbox | |
625 | ||
14561782 | 626 | %post |
d8ed80f4 | 627 | cat << 'EOF' |
3ee6b9d9 | 628 | You must install vboxdrv kernel module for this software to work: |
7841ddfd ER |
629 | kernel-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} |
630 | ||
631 | Additionally you might want to install: | |
d2a7514f | 632 | kernel-misc-vboxnetadp-%{version}-%{rel}@%{_kernel_ver_str} |
05f12a30 | 633 | kernel-misc-vboxnetflt-%{version}-%{rel}@%{_kernel_ver_str} |
59d12745 | 634 | kernel-misc-vboxpci-%{version}-%{rel}@%{_kernel_ver_str} |
05f12a30 | 635 | |
fa974331 | 636 | On Guest Linux system you might want to install: |
dc0a2786 | 637 | kernel-misc-vboxguest-%{version}-%{rel}@%{_kernel_ver_str} |
ecfe25a3 | 638 | kernel-misc-vboxsf-%{version}-%{rel}@%{_kernel_ver_str} |
67a4f3c1 | 639 | kernel-misc-vboxvideo-%{version}-%{rel}@%{_kernel_ver_str} |
7841ddfd | 640 | |
d8ed80f4 | 641 | EOF |
642 | ||
3b63d3e8 | 643 | %postun |
644 | if [ "$1" = "0" ]; then | |
645 | %groupremove vbox | |
646 | fi | |
647 | ||
dc0a2786 | 648 | %post -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 649 | %depmod %{_kernel_ver} |
dc0a2786 | 650 | /sbin/chkconfig --add vboxguest |
393ec35d | 651 | %service vboxguest restart "VirtualBox Guest additions driver" |
74268e47 | 652 | |
dc0a2786 | 653 | %postun -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 654 | %depmod %{_kernel_ver} |
655 | ||
dc0a2786 | 656 | %preun -n kernel%{_alt_kernel}-misc-vboxguest |
270f67bc | 657 | if [ "$1" = "0" ]; then |
dc0a2786 AG |
658 | %service vboxguest stop |
659 | /sbin/chkconfig --del vboxguest | |
270f67bc | 660 | fi |
661 | ||
48363591 | 662 | %post -n kernel%{_alt_kernel}-misc-vboxdrv |
663 | %depmod %{_kernel_ver} | |
270f67bc | 664 | /sbin/chkconfig --add vboxdrv |
393ec35d | 665 | %service vboxdrv restart "VirtualBox Support Driver" |
48363591 | 666 | |
667 | %postun -n kernel%{_alt_kernel}-misc-vboxdrv | |
668 | %depmod %{_kernel_ver} | |
669 | ||
270f67bc | 670 | %preun -n kernel%{_alt_kernel}-misc-vboxdrv |
671 | if [ "$1" = "0" ]; then | |
672 | %service vboxdrv stop | |
673 | /sbin/chkconfig --del vboxdrv | |
674 | fi | |
675 | ||
d2a7514f ŁK |
676 | %post -n kernel%{_alt_kernel}-misc-vboxnetadp |
677 | %depmod %{_kernel_ver} | |
c1cd3b9a | 678 | /sbin/chkconfig --add vboxnetadp |
393ec35d | 679 | %service vboxnetadp restart "VirtualBox Network HostOnly driver" |
d2a7514f ŁK |
680 | |
681 | %postun -n kernel%{_alt_kernel}-misc-vboxnetadp | |
682 | %depmod %{_kernel_ver} | |
683 | ||
c1cd3b9a | 684 | %preun -n kernel%{_alt_kernel}-misc-vboxnetadp |
685 | if [ "$1" = "0" ]; then | |
686 | %service vboxnetadp stop | |
687 | /sbin/chkconfig --del vboxnetadp | |
688 | fi | |
689 | ||
1dda2f69 | 690 | %post -n kernel%{_alt_kernel}-misc-vboxnetflt |
691 | %depmod %{_kernel_ver} | |
11848f5b | 692 | /sbin/chkconfig --add vboxnetflt |
393ec35d | 693 | %service vboxnetflt restart "VirtualBox Network Filter driver" |
1dda2f69 | 694 | |
695 | %postun -n kernel%{_alt_kernel}-misc-vboxnetflt | |
696 | %depmod %{_kernel_ver} | |
697 | ||
11848f5b | 698 | %preun -n kernel%{_alt_kernel}-misc-vboxnetflt |
699 | if [ "$1" = "0" ]; then | |
700 | %service vboxnetflt stop | |
701 | /sbin/chkconfig --del vboxnetflt | |
702 | fi | |
703 | ||
59d12745 KK |
704 | %post -n kernel%{_alt_kernel}-misc-vboxpci |
705 | %depmod %{_kernel_ver} | |
706 | /sbin/chkconfig --add vboxpci | |
393ec35d | 707 | %service vboxnetflt restart "VirtualBox PCI passthrough driver" |
59d12745 KK |
708 | |
709 | %postun -n kernel%{_alt_kernel}-misc-vboxpci | |
710 | %depmod %{_kernel_ver} | |
711 | ||
712 | %preun -n kernel%{_alt_kernel}-misc-vboxpci | |
713 | if [ "$1" = "0" ]; then | |
714 | %service vboxpci stop | |
715 | /sbin/chkconfig --del vboxpci | |
716 | fi | |
717 | ||
ecfe25a3 | 718 | %post -n kernel%{_alt_kernel}-misc-vboxsf |
74268e47 | 719 | %depmod %{_kernel_ver} |
ecfe25a3 | 720 | /sbin/chkconfig --add vboxsf |
393ec35d | 721 | %service vboxsf restart "VirtualBox Host file system access (Shared Folders)" |
74268e47 | 722 | |
ecfe25a3 | 723 | %postun -n kernel%{_alt_kernel}-misc-vboxsf |
74268e47 | 724 | %depmod %{_kernel_ver} |
725 | ||
ecfe25a3 | 726 | %preun -n kernel%{_alt_kernel}-misc-vboxsf |
ca8701ad | 727 | if [ "$1" = "0" ]; then |
ecfe25a3 PS |
728 | %service vboxsf stop |
729 | /sbin/chkconfig --del vboxsf | |
ca8701ad | 730 | fi |
731 | ||
67a4f3c1 | 732 | %post -n kernel%{_alt_kernel}-misc-vboxvideo |
733 | %depmod %{_kernel_ver} | |
734 | ||
735 | %postun -n kernel%{_alt_kernel}-misc-vboxvideo | |
736 | %depmod %{_kernel_ver} | |
737 | ||
d1c4ec5b | 738 | %if %{with userspace} |
48363591 | 739 | %files |
740 | %defattr(644,root,root,755) | |
8833bce1 | 741 | %dir %{_libdir}/VirtualBox |
744bc35e | 742 | %dir %{_libdir}/VirtualBox/ExtensionPacks |
916ab34d | 743 | %dir %{_libdir}/VirtualBox/additions |
8833bce1 | 744 | %dir %{_libdir}/VirtualBox/components |
745 | %dir %{_libdir}/VirtualBox/nls | |
85b005e2 | 746 | %attr(755,root,root) %{_bindir}/VBoxBFE |
747 | %attr(755,root,root) %{_bindir}/VBoxHeadless | |
748 | %attr(755,root,root) %{_bindir}/VBoxManage | |
749 | %attr(755,root,root) %{_bindir}/VBoxSDL | |
750 | %attr(755,root,root) %{_bindir}/VBoxSVC | |
751 | %attr(755,root,root) %{_bindir}/VBoxTunctl | |
752 | %attr(755,root,root) %{_bindir}/VBoxXPCOMIPCD | |
48363591 | 753 | %attr(755,root,root) %{_bindir}/VirtualBox |
3ee6b9d9 | 754 | %attr(755,root,root) %{_sbindir}/mount.vdi |
744bc35e JR |
755 | %attr(755,root,root) %{_libdir}/VirtualBox/DBGCPlugInDiggers.so |
756 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxAuth.so | |
757 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxAuthSimple.so | |
05f1b1f5 | 758 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxBFE |
59d12745 | 759 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxBalloonCtrl |
744bc35e JR |
760 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxCreateUSBNode.sh |
761 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDbg.so | |
85b005e2 | 762 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDD2.so |
744bc35e | 763 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDD.so |
85b005e2 | 764 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDDU.so |
744bc35e | 765 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxExtPackHelperApp |
3613936b | 766 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxGuestControlSvc.so |
85b005e2 | 767 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxGuestPropSvc.so |
744bc35e | 768 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxHeadless |
85b005e2 | 769 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxKeyboard.so |
744bc35e | 770 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxManage |
5b399826 MM |
771 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxNetAdpCtl |
772 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxNetDHCP | |
85b005e2 | 773 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLhostcrutil.so |
774 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLhosterrorspu.so | |
775 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLrenderspu.so | |
6935b837 | 776 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxPython*.so |
85b005e2 | 777 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM.so |
f701b529 | 778 | %ifarch %{ix86} |
5b399826 MM |
779 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM32.so |
780 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM64.so | |
f701b529 | 781 | %endif |
85b005e2 | 782 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxRT.so |
744bc35e | 783 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSDL |
85b005e2 | 784 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedClipboard.so |
785 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedCrOpenGL.so | |
786 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedFolders.so | |
744bc35e JR |
787 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSVC |
788 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSysInfo.sh | |
789 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxTestOGL | |
790 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxTunctl | |
85b005e2 | 791 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxVMM.so |
85b005e2 | 792 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOMC.so |
744bc35e JR |
793 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOMIPCD |
794 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOM.so | |
fdd1c725 | 795 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox |
796 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox-wrapper.sh | |
85b005e2 | 797 | %{_libdir}/VirtualBox/VBoxDD2GC.gc |
798 | %{_libdir}/VirtualBox/VBoxDDGC.gc | |
799 | %{_libdir}/VirtualBox/VMMGC.gc | |
800 | %{_libdir}/VirtualBox/VBoxDD2R0.r0 | |
801 | %{_libdir}/VirtualBox/VBoxDDR0.r0 | |
802 | %{_libdir}/VirtualBox/VMMR0.r0 | |
1067d08d ER |
803 | %{_libdir}/VirtualBox/EfiThunk |
804 | %{_libdir}/VirtualBox/VBoxEFI32.fd | |
805 | %{_libdir}/VirtualBox/VBoxEFI64.fd | |
85b005e2 | 806 | %{_libdir}/VirtualBox/components/VBoxXPCOMBase.xpt |
85b005e2 | 807 | %{_libdir}/VirtualBox/components/VirtualBox_XPCOM.xpt |
dca6c443 ER |
808 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxC.so |
809 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxSVCM.so | |
810 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxXPCOMIPCC.so | |
89ce7412 | 811 | %lang(ar) %{_libdir}/VirtualBox/nls/*_ar.qm |
c5e10a4d | 812 | %lang(bg) %{_libdir}/VirtualBox/nls/*_bg.qm |
72d5ea57 | 813 | %lang(ca) %{_libdir}/VirtualBox/nls/*_ca.qm |
3613936b | 814 | %lang(ca_VA) %{_libdir}/VirtualBox/nls/*_ca_VA.qm |
89ce7412 | 815 | %lang(cs) %{_libdir}/VirtualBox/nls/*_cs.qm |
dc0a2786 | 816 | %lang(da) %{_libdir}/VirtualBox/nls/*_da.qm |
89ce7412 | 817 | %lang(de) %{_libdir}/VirtualBox/nls/*_de.qm |
11de52da | 818 | %lang(el) %{_libdir}/VirtualBox/nls/*_el.qm |
3613936b | 819 | %lang(en) %{_libdir}/VirtualBox/nls/*_en.qm |
89ce7412 | 820 | %lang(es) %{_libdir}/VirtualBox/nls/*_es.qm |
821 | %lang(eu) %{_libdir}/VirtualBox/nls/*_eu.qm | |
822 | %lang(fi) %{_libdir}/VirtualBox/nls/*_fi.qm | |
823 | %lang(fr) %{_libdir}/VirtualBox/nls/*_fr.qm | |
3613936b | 824 | %lang(gl_ES) %{_libdir}/VirtualBox/nls/*_gl_ES.qm |
89ce7412 | 825 | %lang(hu) %{_libdir}/VirtualBox/nls/*_hu.qm |
72d5ea57 | 826 | %lang(id) %{_libdir}/VirtualBox/nls/*_id.qm |
89ce7412 | 827 | %lang(it) %{_libdir}/VirtualBox/nls/*_it.qm |
828 | %lang(ja) %{_libdir}/VirtualBox/nls/*_ja.qm | |
c5e10a4d | 829 | %lang(km_KH) %{_libdir}/VirtualBox/nls/*_km_KH.qm |
89ce7412 | 830 | %lang(ko) %{_libdir}/VirtualBox/nls/*_ko.qm |
938d5b7f | 831 | %lang(lt) %{_libdir}/VirtualBox/nls/*_lt.qm |
72d5ea57 | 832 | %lang(nl) %{_libdir}/VirtualBox/nls/*_nl.qm |
89ce7412 | 833 | %lang(pl) %{_libdir}/VirtualBox/nls/*_pl.qm |
52b59a1b | 834 | %lang(pt) %{_libdir}/VirtualBox/nls/*_pt.qm |
89ce7412 | 835 | %lang(pt_BR) %{_libdir}/VirtualBox/nls/*_pt_BR.qm |
89ce7412 | 836 | %lang(ro) %{_libdir}/VirtualBox/nls/*_ro.qm |
837 | %lang(ru) %{_libdir}/VirtualBox/nls/*_ru.qm | |
838 | %lang(sk) %{_libdir}/VirtualBox/nls/*_sk.qm | |
72d5ea57 | 839 | %lang(sr) %{_libdir}/VirtualBox/nls/*_sr.qm |
89ce7412 | 840 | %lang(sv) %{_libdir}/VirtualBox/nls/*_sv.qm |
72d5ea57 | 841 | %lang(tr) %{_libdir}/VirtualBox/nls/*_tr.qm |
85b005e2 | 842 | %lang(uk) %{_libdir}/VirtualBox/nls/*_uk.qm |
89ce7412 | 843 | %lang(zh_CN) %{_libdir}/VirtualBox/nls/*_zh_CN.qm |
844 | %lang(zh_TW) %{_libdir}/VirtualBox/nls/*_zh_TW.qm | |
9ce724ed | 845 | %{_pixmapsdir}/virtualbox.png |
dca6c443 | 846 | %{_desktopdir}/*.desktop |
ddf75c51 | 847 | %{_libdir}/VirtualBox/icons |
744bc35e | 848 | %{_libdir}/VirtualBox/virtualbox.xml |
09c79ddb | 849 | |
ffb38bb6 | 850 | %files additions |
9dda6415 | 851 | %defattr(644,root,root,755) |
ffb38bb6 ER |
852 | %{_libdir}/VirtualBox/additions/VBoxGuestAdditions.iso |
853 | ||
1067d08d ER |
854 | %files guest |
855 | %defattr(644,root,root,755) | |
785c600a ER |
856 | # NOTE: unfinished, should contain .desktop files for starting up mouse |
857 | # integration and other desktop services | |
89973837 | 858 | # NOTE: the filelist is incomplete too |
90de3b27 ER |
859 | %attr(755,root,root) %{_bindir}/VBoxClient |
860 | %attr(755,root,root) %{_bindir}/VBoxControl | |
861 | %attr(755,root,root) %{_bindir}/VBoxService | |
862 | /etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh | |
863 | /etc/xdg/autostart/vboxclient.desktop | |
1067d08d | 864 | |
744bc35e JR |
865 | %attr(755,root,root) %{_libdir}/VirtualBox/additions/autorun.sh |
866 | %attr(755,root,root) %{_libdir}/VirtualBox/additions/vboxadd | |
867 | %attr(755,root,root) %{_libdir}/VirtualBox/additions/vboxadd-service | |
868 | %attr(755,root,root) %{_libdir}/VirtualBox/additions/vboxadd-x11 | |
869 | ||
3613936b JR |
870 | %files -n pam-pam_vbox |
871 | %defattr(644,root,root,755) | |
3ee6b9d9 | 872 | %attr(755,root,root) /%{_lib}/security/pam_vbox.so |
3613936b | 873 | |
90de3b27 ER |
874 | %if %{with doc} |
875 | %files doc | |
876 | %defattr(644,root,root,755) | |
877 | %doc %{outdir}/UserManual.pdf | |
878 | %endif | |
879 | ||
abb636b9 | 880 | %files udev |
881 | %defattr(644,root,root,755) | |
882 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules | |
883 | ||
09c79ddb | 884 | %files -n xorg-driver-input-vboxmouse |
885 | %defattr(644,root,root,755) | |
886 | %attr(755,root,root) %{_libdir}/xorg/modules/input/vboxmouse_drv.so | |
887 | ||
888 | %files -n xorg-driver-video-vboxvideo | |
889 | %defattr(644,root,root,755) | |
890 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/vboxvideo_drv.so | |
27a1aef6 ER |
891 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/vboxvideo_dri.so |
892 | # vboxvideo_dri.so deps | |
1067d08d | 893 | %attr(755,root,root) %{_libdir}/VBoxOGLarrayspu.so |
27a1aef6 ER |
894 | %attr(755,root,root) %{_libdir}/VBoxOGLcrutil.so |
895 | %attr(755,root,root) %{_libdir}/VBoxOGLerrorspu.so | |
896 | %attr(755,root,root) %{_libdir}/VBoxOGLfeedbackspu.so | |
897 | %attr(755,root,root) %{_libdir}/VBoxOGLpackspu.so | |
898 | %attr(755,root,root) %{_libdir}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 899 | %endif |
48363591 | 900 | |
d1c4ec5b | 901 | %if %{with kernel} |
dc0a2786 | 902 | %files -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 903 | %defattr(644,root,root,755) |
dc0a2786 AG |
904 | %attr(754,root,root) /etc/rc.d/init.d/vboxguest |
905 | /lib/modules/%{_kernel_ver}/misc/vboxguest.ko* | |
74268e47 | 906 | |
d1c4ec5b | 907 | %files -n kernel%{_alt_kernel}-misc-vboxdrv |
48363591 | 908 | %defattr(644,root,root,755) |
67ad4c40 | 909 | %attr(754,root,root) /etc/rc.d/init.d/vboxdrv |
d1c4ec5b | 910 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko* |
74268e47 | 911 | |
d2a7514f ŁK |
912 | %files -n kernel%{_alt_kernel}-misc-vboxnetadp |
913 | %defattr(644,root,root,755) | |
c1cd3b9a | 914 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetadp |
d2a7514f ŁK |
915 | /lib/modules/%{_kernel_ver}/misc/vboxnetadp.ko* |
916 | ||
1dda2f69 | 917 | %files -n kernel%{_alt_kernel}-misc-vboxnetflt |
918 | %defattr(644,root,root,755) | |
11848f5b | 919 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetflt |
1dda2f69 | 920 | /lib/modules/%{_kernel_ver}/misc/vboxnetflt.ko* |
921 | ||
59d12745 KK |
922 | %files -n kernel%{_alt_kernel}-misc-vboxpci |
923 | %defattr(644,root,root,755) | |
924 | %attr(754,root,root) /etc/rc.d/init.d/vboxpci | |
925 | /lib/modules/%{_kernel_ver}/misc/vboxpci.ko* | |
926 | ||
ecfe25a3 | 927 | %files -n kernel%{_alt_kernel}-misc-vboxsf |
74268e47 | 928 | %defattr(644,root,root,755) |
b06d932c | 929 | %attr(754,root,root) /etc/rc.d/init.d/vboxsf |
50863744 | 930 | %attr(755,root,root) %{_sbindir}/mount.vboxsf |
ecfe25a3 | 931 | /lib/modules/%{_kernel_ver}/misc/vboxsf.ko* |
67a4f3c1 | 932 | |
933 | %files -n kernel%{_alt_kernel}-misc-vboxvideo | |
934 | %defattr(644,root,root,755) | |
935 | /lib/modules/%{_kernel_ver}/misc/vboxvideo.ko* | |
936 | %endif |