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