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