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