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