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