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