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