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