]>
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 |
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 | |
c0372ee9 ER |
257 | Summary: VirtualBox Guest tools |
258 | Group: Base | |
3d9b19d8 ER |
259 | Suggests: kernel(vboxguest) |
260 | Suggests: kernel(vboxsf) | |
c0372ee9 ER |
261 | |
262 | %description guest | |
263 | Tools that utilize kernel modules for supporting integration with the | |
264 | Host, including file sharing. | |
265 | ||
3d9b19d8 ER |
266 | You should install this package in your Guest OS for base VirtualBox |
267 | communication | |
c0372ee9 ER |
268 | |
269 | %package guest-x11 | |
1067d08d ER |
270 | Summary: VirtualBox Guest Additions |
271 | Group: Base | |
c0372ee9 | 272 | Requires: %{name}-guest = %{version}-%{release} |
1067d08d | 273 | Requires: xorg-driver-video-vboxvideo = %{version}-%{release} |
3d9b19d8 | 274 | Suggests: kernel(vboxvideo) |
873b17cf | 275 | Obsoletes: xorg-driver-input-vboxmouse < %{version}-%{release} |
1067d08d | 276 | |
c0372ee9 | 277 | %description guest-x11 |
3d9b19d8 ER |
278 | Tools for X11 session that utilize kernel modules for supporting |
279 | integration with the Host, like tracking of mouse pointer movement and | |
280 | X.org X11 video and mouse drivers | |
1067d08d | 281 | |
c0372ee9 | 282 | You should install this package in your Guest OS for X11 session. |
1067d08d | 283 | |
3613936b JR |
284 | %package -n pam-pam_vbox |
285 | Summary: PAM module to perform automated guest logons | |
286 | Group: Base | |
287 | ||
288 | %description -n pam-pam_vbox | |
3ee6b9d9 ER |
289 | PAM module (Pluggable Authentication Module) which can be used to |
290 | perform automated guest logons. | |
3613936b | 291 | |
fbea1005 | 292 | %package -n xorg-driver-video-vboxvideo |
393ec35d ER |
293 | Summary: X.org video driver for VirtualBox guest OS |
294 | Summary(pl.UTF-8): Sterownik grafiki dla systemu gościa w VirtualBoksie | |
fbea1005 | 295 | Group: X11/Applications |
20b8335d | 296 | Requires: Mesa-dri-driver-swrast |
fbea1005 ER |
297 | Requires: xorg-xserver-libdri >= 1.7.4 |
298 | Requires: xorg-xserver-server >= 1.0.99.901 | |
c8a0226f | 299 | Requires: xorg-xserver-server(videodrv-abi) <= 14.1 |
fbea1005 ER |
300 | Requires: xorg-xserver-server(videodrv-abi) >= 2.0 |
301 | ||
302 | %description -n xorg-driver-video-vboxvideo | |
393ec35d | 303 | X.org video driver for VirtualBox guest OS. |
fbea1005 ER |
304 | |
305 | %description -n xorg-driver-video-vboxvideo -l pl.UTF-8 | |
393ec35d | 306 | Sterownik grafiki dla systemu gościa w VirtualBoksie. |
fbea1005 | 307 | |
ff1f2719 JR |
308 | %package kernel-init-host |
309 | Summary: SysV initscripts for host kernel modules | |
310 | Group: Base/Kernel | |
311 | ||
312 | %description kernel-init-host | |
313 | SysV initscripts for host kernel modules. | |
314 | ||
315 | %package kernel-init-guest | |
316 | Summary: SysV initscripts for guest kernel modules | |
317 | Group: Base/Kernel | |
318 | ||
319 | %description kernel-init-guest | |
320 | SysV initscripts for guest kernel modules. | |
321 | ||
18adabff | 322 | # KERNEL PACKAGES |
b980c81c | 323 | |
18adabff | 324 | # KEEP ALL REGULAR SUBPACKAGES BEFORE KERNEL PACKAGES. |
b980c81c | 325 | |
dc0a2786 | 326 | %package -n kernel%{_alt_kernel}-misc-vboxguest |
393ec35d ER |
327 | Summary: VirtualBox Guest Additions for Linux Module |
328 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
fe3d1798 | 329 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 330 | Group: Base/Kernel |
331 | Requires(post,postun): /sbin/depmod | |
de615b50 | 332 | Requires(post): systemd-units >= 38 |
74268e47 | 333 | Requires: dev >= 2.9.0-7 |
334 | %if %{with dist_kernel} | |
335 | %requires_releq_kernel | |
ca8701ad | 336 | Requires(postun): %releq_kernel |
74268e47 | 337 | %endif |
de615b50 | 338 | Requires: systemd-units >= 38 |
ff1f2719 | 339 | Suggests: %{name}-kernel-init-guest >= %{version}-%{rel} |
dc0a2786 AG |
340 | Provides: kernel(vboxguest) = %{version}-%{rel} |
341 | Obsoletes: kernel%{_alt_kernel}-misc-vboxadd | |
f7de19b3 | 342 | Conflicts: kernel%{_alt_kernel}-misc-vboxdrv |
74268e47 | 343 | |
dc0a2786 | 344 | %description -n kernel%{_alt_kernel}-misc-vboxguest |
393ec35d | 345 | VirtualBox Guest Additions for Linux Module. |
74268e47 | 346 | |
91e5103c ER |
347 | You should install this package in your Guest OS. |
348 | ||
dc0a2786 | 349 | %description -n kernel%{_alt_kernel}-misc-vboxguest -l pl.UTF-8 |
393ec35d ER |
350 | Moduł jądra Linuksa vboxguest dla VirtualBoksa - dodatki dla systemu |
351 | gościa. | |
74268e47 | 352 | |
48363591 | 353 | %package -n kernel%{_alt_kernel}-misc-vboxdrv |
393ec35d ER |
354 | Summary: VirtualBox Support Driver |
355 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
fe3d1798 | 356 | Release: %{rel}@%{_kernel_ver_str} |
48363591 | 357 | Group: Base/Kernel |
358 | Requires(post,postun): /sbin/depmod | |
de615b50 | 359 | Requires(post): systemd-units >= 38 |
48363591 | 360 | Requires: dev >= 2.9.0-7 |
361 | %if %{with dist_kernel} | |
d6f0c54e | 362 | %requires_releq_kernel |
363 | Requires(postun): %releq_kernel | |
48363591 | 364 | %endif |
de615b50 | 365 | Requires: systemd-units >= 38 |
ff1f2719 | 366 | Suggests: %{name}-kernel-init-host >= %{version}-%{rel} |
fe3d1798 | 367 | Provides: kernel(vboxdrv) = %{version}-%{rel} |
48363591 | 368 | |
369 | %description -n kernel%{_alt_kernel}-misc-vboxdrv | |
393ec35d | 370 | VirtualBox Support Driver. |
48363591 | 371 | |
91e5103c ER |
372 | You should install this package in your Host OS. |
373 | ||
fd8fc899 | 374 | %description -n kernel%{_alt_kernel}-misc-vboxdrv -l pl.UTF-8 |
393ec35d ER |
375 | Moduł jądra Linuksa dla VirtualBoksa - sterownik wsparcia dla systemu |
376 | głównego. | |
48363591 | 377 | |
d2a7514f | 378 | %package -n kernel%{_alt_kernel}-misc-vboxnetadp |
393ec35d ER |
379 | Summary: VirtualBox Network Adapter Driver |
380 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
d2a7514f ŁK |
381 | Release: %{rel}@%{_kernel_ver_str} |
382 | Group: Base/Kernel | |
383 | Requires(post,postun): /sbin/depmod | |
de615b50 | 384 | Requires(post): systemd-units >= 38 |
d2a7514f ŁK |
385 | Requires: dev >= 2.9.0-7 |
386 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
387 | %if %{with dist_kernel} | |
388 | %requires_releq_kernel | |
389 | Requires(postun): %releq_kernel | |
390 | %endif | |
de615b50 | 391 | Requires: systemd-units >= 38 |
ff1f2719 | 392 | Suggests: %{name}-kernel-init-host >= %{version}-%{rel} |
d2a7514f ŁK |
393 | Provides: kernel(vboxnetflt) = %{version}-%{rel} |
394 | ||
395 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp | |
393ec35d | 396 | VirtualBox Network Adapter Driver. |
d2a7514f | 397 | |
91e5103c ER |
398 | You should install this package in your Host OS. |
399 | ||
d2a7514f | 400 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp -l pl.UTF-8 |
393ec35d | 401 | Moduł jądra Linuksa dla VirtualBoksa - sterownik witrualnej karty |
9dda6415 | 402 | sieciowej. |
d2a7514f | 403 | |
1dda2f69 | 404 | %package -n kernel%{_alt_kernel}-misc-vboxnetflt |
393ec35d ER |
405 | Summary: VirtualBox Network Filter Driver |
406 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
1dda2f69 | 407 | Release: %{rel}@%{_kernel_ver_str} |
408 | Group: Base/Kernel | |
409 | Requires(post,postun): /sbin/depmod | |
de615b50 | 410 | Requires(post): systemd-units >= 38 |
1dda2f69 | 411 | Requires: dev >= 2.9.0-7 |
412 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
413 | %if %{with dist_kernel} | |
414 | %requires_releq_kernel | |
415 | Requires(postun): %releq_kernel | |
416 | %endif | |
de615b50 | 417 | Requires: systemd-units >= 38 |
ff1f2719 | 418 | Suggests: %{name}-kernel-init-host >= %{version}-%{rel} |
1dda2f69 | 419 | Provides: kernel(vboxnetflt) = %{version}-%{rel} |
420 | ||
421 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt | |
393ec35d | 422 | VirtualBox Network Filter Driver. |
1dda2f69 | 423 | |
91e5103c ER |
424 | You should install this package in your Host OS. |
425 | ||
1dda2f69 | 426 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt -l pl.UTF-8 |
393ec35d ER |
427 | Moduł jądra Linuksa dla VirtualBoksa - sterownik filtrowania sieci dla |
428 | systemu głównego. | |
1dda2f69 | 429 | |
59d12745 | 430 | %package -n kernel%{_alt_kernel}-misc-vboxpci |
393ec35d ER |
431 | Summary: VirtualBox PCI card passthrough Driver |
432 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
59d12745 KK |
433 | Release: %{rel}@%{_kernel_ver_str} |
434 | Group: Base/Kernel | |
435 | Requires(post,postun): /sbin/depmod | |
de615b50 | 436 | Requires(post): systemd-units >= 38 |
59d12745 KK |
437 | Requires: dev >= 2.9.0-7 |
438 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
439 | %if %{with dist_kernel} | |
440 | %requires_releq_kernel | |
441 | Requires(postun): %releq_kernel | |
442 | %endif | |
de615b50 | 443 | Requires: systemd-units >= 38 |
ff1f2719 | 444 | Suggests: %{name}-kernel-init-host >= %{version}-%{rel} |
59d12745 KK |
445 | Provides: kernel(vboxpci) = %{version}-%{rel} |
446 | ||
447 | %description -n kernel%{_alt_kernel}-misc-vboxpci | |
393ec35d ER |
448 | VirtualBox PCI card passthrough driver that works as host proxy |
449 | between guest and PCI hardware. | |
59d12745 KK |
450 | |
451 | You should install this package in your Host OS. | |
452 | ||
453 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt -l pl.UTF-8 | |
393ec35d ER |
454 | Moduł jądra Linuksa dla VirtualBoksa - sterownik, ktory działa jako |
455 | proxy między gościem i gospodarzem sprzętu PCI. | |
59d12745 | 456 | |
ecfe25a3 | 457 | %package -n kernel%{_alt_kernel}-misc-vboxsf |
393ec35d ER |
458 | Summary: Host file system access (Shared Folders) for VirtualBox |
459 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
fe3d1798 | 460 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 461 | Group: Base/Kernel |
462 | Requires(post,postun): /sbin/depmod | |
de615b50 | 463 | Requires(post): systemd-units >= 38 |
74268e47 | 464 | Requires: dev >= 2.9.0-7 |
dc0a2786 | 465 | Requires: kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 466 | %if %{with dist_kernel} |
467 | %requires_releq_kernel | |
468 | Requires(postun): %releq_kernel | |
469 | %endif | |
de615b50 | 470 | Requires: systemd-units >= 38 |
ff1f2719 | 471 | Suggests: %{name}-kernel-init-guest >= %{version}-%{rel} |
ecfe25a3 PS |
472 | Provides: kernel(vboxsf) = %{version}-%{rel} |
473 | Obsoletes: kernel%{_alt_kernel}-misc-vboxvfs | |
74268e47 | 474 | |
ecfe25a3 | 475 | %description -n kernel%{_alt_kernel}-misc-vboxsf |
393ec35d | 476 | Host file system access (Shared Folders) for VirtualBox. |
74268e47 | 477 | |
91e5103c ER |
478 | You should install this package in your Guest OS. |
479 | ||
ecfe25a3 | 480 | %description -n kernel%{_alt_kernel}-misc-vboxsf -l pl.UTF-8 |
393ec35d | 481 | Moduł jądra Linuksa dla VirtualBoksa - dostęp do plików systemu |
4f09a416 | 482 | głównego z poziomu systemu gościa. |
74268e47 | 483 | |
67a4f3c1 | 484 | %package -n kernel%{_alt_kernel}-misc-vboxvideo |
393ec35d ER |
485 | Summary: DRM support for VirtualBox |
486 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
67a4f3c1 | 487 | Release: %{rel}@%{_kernel_ver_str} |
488 | Group: Base/Kernel | |
489 | Requires(post,postun): /sbin/depmod | |
490 | Requires: dev >= 2.9.0-7 | |
491 | %if %{with dist_kernel} | |
492 | %requires_releq_kernel | |
d14fba96 | 493 | %requires_releq_kernel -n drm |
67a4f3c1 | 494 | Requires(postun): %releq_kernel |
495 | %endif | |
496 | Provides: kernel(vboxvideo) = %{version}-%{rel} | |
497 | ||
498 | %description -n kernel%{_alt_kernel}-misc-vboxvideo | |
393ec35d | 499 | DRM support for VirtualBox. |
67a4f3c1 | 500 | |
91e5103c ER |
501 | You should install this package in your Guest OS. |
502 | ||
67a4f3c1 | 503 | %description -n kernel%{_alt_kernel}-misc-vboxvideo -l pl.UTF-8 |
393ec35d | 504 | Moduł jądra Linuksa dla VirtualBoksa - sterownik obsługi DRM. |
67a4f3c1 | 505 | |
48363591 | 506 | %prep |
33aeed61 | 507 | %setup -q -n %{pname}-%{version} |
e709ce6b | 508 | %patch0 -p1 |
db6f33e3 | 509 | %patch1 -p1 |
006342ee | 510 | %patch2 -p1 |
8473a80d | 511 | %patch3 -p1 |
04e24f9c | 512 | %patch4 -p1 |
9a7b1cdc | 513 | %patch5 -p1 |
53a63bfe | 514 | %patch6 -p1 |
fddcb741 | 515 | |
744bc35e JR |
516 | %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \ |
517 | -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in | |
0b6de2b7 | 518 | |
f471b832 ER |
519 | # Respect LDFLAGS |
520 | %{__sed} -i -e "s@_LDFLAGS\.%{vbox_arch}*.*=@& %{rpmldflags}@g" \ | |
521 | -i Config.kmk src/libs/xpcom18a4/Config.kmk | |
522 | ||
523 | %{__sed} 's#@LIBDIR@#%{_libdir}#' < %{SOURCE9} > VirtualBox-wrapper.sh | |
fa19f650 | 524 | |
1794e74d ER |
525 | install -d PLD-MODULE-BUILD/{GuestDrivers,HostDrivers} |
526 | cd PLD-MODULE-BUILD | |
527 | ../src/VBox/Additions/linux/export_modules guest-modules.tar.gz | |
528 | tar -zxf guest-modules.tar.gz -C GuestDrivers | |
529 | ||
cadbdf55 | 530 | ../src/VBox/HostDrivers/linux/export_modules host-modules.tar.gz --without-hardening |
1794e74d ER |
531 | tar -zxf host-modules.tar.gz -C HostDrivers |
532 | cd - | |
59d12745 KK |
533 | %patch10 -p1 |
534 | %patch11 -p1 | |
535 | ||
e9ed9ec1 ER |
536 | # using system kBuild package |
537 | %{__rm} -r kBuild | |
538 | ||
fddcb741 | 539 | %build |
83ffcfa8 | 540 | %if %{with userspace} |
c6e3c003 | 541 | echo "VBOX_WITH_TESTCASES := " > LocalConfig.kmk |
106d8451 | 542 | ./configure \ |
ae1bbc88 | 543 | --with-gcc="%{__cc}" \ |
544 | --with-g++="%{__cxx}" \ | |
8da42f47 | 545 | %{!?with_doc:--disable-docs} \ |
744bc35e | 546 | --disable-java \ |
5a497466 | 547 | --disable-hardening \ |
01e414ba | 548 | --disable-kmods \ |
55f7d7d3 ER |
549 | --enable-vnc \ |
550 | %{__enable webservice} \ | |
551 | %{nil} | |
48363591 | 552 | |
89973837 | 553 | XSERVER_VERSION=$(rpm -q --queryformat '%{VERSION}\n' xorg-xserver-server-devel | awk -F. ' { print $1 $2 } ' 2> /dev/null || echo ERROR) |
e9ed9ec1 | 554 | kmk %{?_smp_mflags} \ |
acf12a87 | 555 | %{?with_verbose:KBUILD_VERBOSE=3} \ |
f471b832 | 556 | USER=%(id -un) \ |
89973837 | 557 | VBOX_VERSION_STRING='$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)'_PLD \ |
f471b832 | 558 | XSERVER_VERSION="$XSERVER_VERSION" \ |
48316170 | 559 | VBOX_USE_SYSTEM_XORG_HEADERS=1 \ |
f471b832 ER |
560 | TOOL_GCC3_CFLAGS="%{rpmcflags}" \ |
561 | TOOL_GCC3_CXXFLAGS="%{rpmcxxflags}" \ | |
562 | VBOX_GCC_OPT="%{rpmcxxflags}" \ | |
563 | %{nil} | |
48363591 | 564 | %endif |
74268e47 | 565 | |
566 | %if %{with kernel} | |
cdeeee90 | 567 | export KERN_DIR=%{_kernelsrcdir} |
1794e74d ER |
568 | cd PLD-MODULE-BUILD/HostDrivers |
569 | %build_kernel_modules -m vboxdrv -C vboxdrv | |
570 | %build_kernel_modules -m vboxnetadp -C vboxnetadp | |
571 | %build_kernel_modules -m vboxnetflt -C vboxnetflt | |
59d12745 | 572 | %build_kernel_modules -m vboxpci -C vboxpci |
1794e74d ER |
573 | |
574 | cd ../GuestDrivers | |
dc0a2786 | 575 | %build_kernel_modules -m vboxguest -C vboxguest |
ecfe25a3 PS |
576 | cp -a vboxguest/Module.symvers vboxsf |
577 | %build_kernel_modules -m vboxsf -C vboxsf -c | |
76273613 | 578 | %build_kernel_modules -m vboxvideo -C vboxvideo |
1794e74d | 579 | cd ../.. |
744bc35e | 580 | %{__cc} %{rpmcflags} %{rpmldflags} -Wall -Werror src/VBox/Additions/linux/sharedfolders/{mount.vboxsf.c,vbsfmount.c} -o mount.vboxsf |
d1c4ec5b | 581 | %endif |
48363591 | 582 | |
583 | %install | |
584 | rm -rf $RPM_BUILD_ROOT | |
585 | ||
d1c4ec5b | 586 | %if %{with userspace} |
33aeed61 | 587 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/%{pname}/ExtensionPacks} \ |
744bc35e | 588 | $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \ |
12db98a7 | 589 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,dri,input} \ |
eddcf7c3 | 590 | $RPM_BUILD_ROOT{/lib/udev,/etc/udev/rules.d} |
a70507fb | 591 | |
dca6c443 ER |
592 | # test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition |
593 | if cp -al VBox.png $RPM_BUILD_ROOT/Vbox.png 2>/dev/null; then | |
594 | l=l | |
ffd7f18a | 595 | %{__rm} -f $RPM_BUILD_ROOT/VBox.png |
dca6c443 ER |
596 | fi |
597 | ||
33aeed61 | 598 | cp -a$l %{outdir}/* $RPM_BUILD_ROOT%{_libdir}/%{pname} |
b75fd17a KK |
599 | |
600 | %if %{with doc} | |
26489c61 | 601 | ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual.pdf |
6ee3b66d | 602 | ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual_fr_FR.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual_fr_FR.pdf |
b75fd17a | 603 | %endif |
dca6c443 | 604 | |
23790586 | 605 | install -d $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions |
6110bfb9 | 606 | cp -a$l %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso |
59d12745 | 607 | install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sbindir}/mount.vdi |
33aeed61 | 608 | install -p VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_libdir}/%{pname} |
5b399826 | 609 | for f in {VBox{BFE,Headless,Manage,SDL,SVC,Tunctl,XPCOMIPCD},VirtualBox}; do |
33aeed61 | 610 | ln -s %{_libdir}/%{pname}/VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/$f |
05f1b1f5 | 611 | done |
612 | ||
ffd7f18a JR |
613 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/VBox.png,%{_pixmapsdir}/virtualbox.png} |
614 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname},%{_desktopdir}}/virtualbox.desktop | |
48363591 | 615 | |
ffd7f18a JR |
616 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxvideo_drv_system.so,%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so} |
617 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/VBoxOGL.so,%{_libdir}/xorg/modules/dri/vboxvideo_dri.so} | |
916ab34d | 618 | |
27a1aef6 | 619 | # XXX: where else to install them that vboxvideo_dri.so finds them? patch with rpath? |
ffd7f18a JR |
620 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLarrayspu.so |
621 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLcrutil.so | |
622 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLerrorspu.so | |
623 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLfeedbackspu.so | |
624 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpackspu.so | |
625 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 626 | |
59d12745 | 627 | cp -a %{SOURCE11} $RPM_BUILD_ROOT/etc/udev/rules.d/virtualbox.rules |
12db98a7 | 628 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname},/lib/udev}/VBoxCreateUSBNode.sh |
dca6c443 | 629 | |
3613936b | 630 | install -d $RPM_BUILD_ROOT/%{_lib}/security |
ffd7f18a | 631 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,/%{_lib}/security}/pam_vbox.so |
3613936b | 632 | |
dca6c443 | 633 | # cleanup unpackaged |
ffd7f18a JR |
634 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/{src,sdk,testcase} |
635 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/src | |
636 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxkeyboard.tar.bz2 | |
637 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/tst* | |
638 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack-license.* | |
1067d08d ER |
639 | |
640 | # Guest Only Tools | |
90de3b27 | 641 | install -d $RPM_BUILD_ROOT/etc/{X11/xinit/xinitrc.d,xdg/autostart} |
ffd7f18a JR |
642 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxService |
643 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxClient | |
644 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxControl | |
90de3b27 ER |
645 | install -p -D src/VBox/Additions/x11/Installer/98vboxadd-xclient \ |
646 | $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh | |
647 | cp -p src/VBox/Additions/x11/Installer/vboxclient.desktop \ | |
648 | $RPM_BUILD_ROOT/etc/xdg/autostart/vboxclient.desktop | |
1067d08d | 649 | |
dca6c443 | 650 | # unknown - checkme |
1067d08d | 651 | %if 1 |
ffd7f18a JR |
652 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPInstall |
653 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPLoggerCtl | |
654 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPUninstall | |
655 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBox.sh | |
656 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxshell.py | |
657 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/xpidl | |
658 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/runasroot.sh | |
659 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/load.sh | |
660 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/loadall.sh | |
661 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/CPUMInternal.d | |
662 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/cpumctx.d | |
663 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vbox-arch-types.d | |
664 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vbox-types.d | |
665 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vm.d | |
666 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/x86.d | |
667 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/testcase/%{vbox_arch}/vbox-vm-struct-test.d | |
668 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/helpers/generate_service_file | |
669 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/VBoxHeadlessXOrg.sh | |
670 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/generated.sh | |
671 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/init_template.sh | |
672 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/install_service | |
1067d08d | 673 | %endif |
dca6c443 ER |
674 | |
675 | # packaged by kernel part | |
ffd7f18a | 676 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf |
da083e45 | 677 | %endif |
33233365 | 678 | |
da083e45 | 679 | %if %{with kernel} |
6789dad4 | 680 | install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,modules-load.d},%{_sbindir},%{systemdunitdir}} |
70ce4861 | 681 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxdrv |
dc0a2786 | 682 | install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxguest |
70ce4861 | 683 | install -p %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetflt |
b06d932c | 684 | install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxsf |
c1cd3b9a | 685 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetadp |
59d12745 | 686 | install -p %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxpci |
1794e74d ER |
687 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxdrv/vboxdrv -d misc |
688 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxnetadp/vboxnetadp -d misc | |
689 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxnetflt/vboxnetflt -d misc | |
59d12745 | 690 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxpci/vboxpci -d misc |
1794e74d ER |
691 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxguest/vboxguest -d misc |
692 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxsf/vboxsf -d misc | |
76273613 | 693 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxvideo/vboxvideo -d misc |
fa974331 | 694 | |
50863744 ER |
695 | install -p mount.vboxsf $RPM_BUILD_ROOT%{_sbindir}/mount.vboxsf |
696 | ||
35ccdfcc | 697 | # Tell systemd to load modules |
b980c81c ER |
698 | cp -p %{SOURCE12} $RPM_BUILD_ROOT/etc/modules-load.d/vboxdrv.conf |
699 | cp -p %{SOURCE13} $RPM_BUILD_ROOT/etc/modules-load.d/vboxguest.conf | |
700 | cp -p %{SOURCE14} $RPM_BUILD_ROOT/etc/modules-load.d/vboxnetflt.conf | |
701 | cp -p %{SOURCE15} $RPM_BUILD_ROOT/etc/modules-load.d/vboxsf.conf | |
702 | cp -p %{SOURCE16} $RPM_BUILD_ROOT/etc/modules-load.d/vboxnetadp.conf | |
703 | cp -p %{SOURCE17} $RPM_BUILD_ROOT/etc/modules-load.d/vboxpci.conf | |
35ccdfcc JR |
704 | |
705 | # And mask module-loading services | |
706 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxdrv.service | |
707 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxguest.service | |
708 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxnetflt.service | |
709 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxsf.service | |
710 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxnetadp.service | |
711 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxpci.service | |
d1c4ec5b | 712 | %endif |
05f1b1f5 | 713 | |
48363591 | 714 | %clean |
715 | rm -rf $RPM_BUILD_ROOT | |
716 | ||
3b63d3e8 | 717 | %pre |
718 | %groupadd -g 221 -r -f vbox | |
719 | ||
14561782 | 720 | %post |
1403ac49 | 721 | %update_desktop_database |
12db98a7 JR |
722 | for i in /sys/bus/usb/devices/*; do |
723 | if [ -r "$i/dev" ]; then | |
724 | dev="`cat "$i/dev" 2>/dev/null || true`" | |
725 | major="`expr "$dev" : '\(.*\):' 2> /dev/null || true`" | |
726 | minor="`expr "$dev" : '.*:\(.*\)' 2> /dev/null || true`" | |
727 | class="`cat $i/bDeviceClass 2> /dev/null || true`" | |
728 | /lib/udev/VBoxCreateUSBNode.sh "$major" "$minor" "$class" vbox 2>/dev/null | |
729 | fi | |
730 | done | |
1403ac49 | 731 | |
d8ed80f4 | 732 | cat << 'EOF' |
3ee6b9d9 | 733 | You must install vboxdrv kernel module for this software to work: |
7841ddfd ER |
734 | kernel-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} |
735 | ||
736 | Additionally you might want to install: | |
d2a7514f | 737 | kernel-misc-vboxnetadp-%{version}-%{rel}@%{_kernel_ver_str} |
05f12a30 | 738 | kernel-misc-vboxnetflt-%{version}-%{rel}@%{_kernel_ver_str} |
59d12745 | 739 | kernel-misc-vboxpci-%{version}-%{rel}@%{_kernel_ver_str} |
05f12a30 | 740 | |
fa974331 | 741 | On Guest Linux system you might want to install: |
dc0a2786 | 742 | kernel-misc-vboxguest-%{version}-%{rel}@%{_kernel_ver_str} |
ecfe25a3 | 743 | kernel-misc-vboxsf-%{version}-%{rel}@%{_kernel_ver_str} |
67a4f3c1 | 744 | kernel-misc-vboxvideo-%{version}-%{rel}@%{_kernel_ver_str} |
7841ddfd | 745 | |
d8ed80f4 | 746 | EOF |
747 | ||
3b63d3e8 | 748 | %postun |
749 | if [ "$1" = "0" ]; then | |
750 | %groupremove vbox | |
751 | fi | |
752 | ||
48363591 | 753 | %post -n kernel%{_alt_kernel}-misc-vboxdrv |
754 | %depmod %{_kernel_ver} | |
ece7f2f1 | 755 | %vbox_kernel_post -d vboxdrv VirtualBox Support Driver |
48363591 | 756 | |
270f67bc | 757 | %preun -n kernel%{_alt_kernel}-misc-vboxdrv |
758 | if [ "$1" = "0" ]; then | |
759 | %service vboxdrv stop | |
270f67bc | 760 | fi |
761 | ||
ece7f2f1 | 762 | %postun -n kernel%{_alt_kernel}-misc-vboxdrv |
d2a7514f ŁK |
763 | %depmod %{_kernel_ver} |
764 | ||
ece7f2f1 | 765 | %post -n kernel%{_alt_kernel}-misc-vboxnetadp |
d2a7514f | 766 | %depmod %{_kernel_ver} |
ece7f2f1 | 767 | %vbox_kernel_post -d vboxnetadp VirtualBox Network HostOnly driver |
d2a7514f | 768 | |
c1cd3b9a | 769 | %preun -n kernel%{_alt_kernel}-misc-vboxnetadp |
770 | if [ "$1" = "0" ]; then | |
771 | %service vboxnetadp stop | |
c1cd3b9a | 772 | fi |
773 | ||
ece7f2f1 | 774 | %postun -n kernel%{_alt_kernel}-misc-vboxnetadp |
1dda2f69 | 775 | %depmod %{_kernel_ver} |
776 | ||
ece7f2f1 | 777 | %post -n kernel%{_alt_kernel}-misc-vboxnetflt |
1dda2f69 | 778 | %depmod %{_kernel_ver} |
ece7f2f1 | 779 | %vbox_kernel_post -d vboxnetflt VirtualBox Network Filter driver |
1dda2f69 | 780 | |
11848f5b | 781 | %preun -n kernel%{_alt_kernel}-misc-vboxnetflt |
782 | if [ "$1" = "0" ]; then | |
783 | %service vboxnetflt stop | |
11848f5b | 784 | fi |
785 | ||
ece7f2f1 | 786 | %postun -n kernel%{_alt_kernel}-misc-vboxnetflt |
59d12745 | 787 | %depmod %{_kernel_ver} |
59d12745 | 788 | |
ece7f2f1 | 789 | %post -n kernel%{_alt_kernel}-misc-vboxpci |
59d12745 | 790 | %depmod %{_kernel_ver} |
ece7f2f1 | 791 | %vbox_kernel_post -d vboxpci VirtualBox PCI passthrough driver |
59d12745 KK |
792 | |
793 | %preun -n kernel%{_alt_kernel}-misc-vboxpci | |
794 | if [ "$1" = "0" ]; then | |
795 | %service vboxpci stop | |
59d12745 KK |
796 | fi |
797 | ||
ece7f2f1 | 798 | %postun -n kernel%{_alt_kernel}-misc-vboxpci |
74268e47 | 799 | %depmod %{_kernel_ver} |
800 | ||
ece7f2f1 JR |
801 | %post -n kernel%{_alt_kernel}-misc-vboxguest |
802 | %depmod %{_kernel_ver} | |
803 | %vbox_kernel_post -d vboxguest VirtualBox Guest additions driver | |
804 | ||
805 | %preun -n kernel%{_alt_kernel}-misc-vboxguest | |
806 | if [ "$1" = "0" ]; then | |
807 | %service vboxguest stop | |
808 | fi | |
809 | ||
810 | %postun -n kernel%{_alt_kernel}-misc-vboxguest | |
74268e47 | 811 | %depmod %{_kernel_ver} |
812 | ||
ece7f2f1 JR |
813 | %post -n kernel%{_alt_kernel}-misc-vboxsf |
814 | %depmod %{_kernel_ver} | |
815 | %vbox_kernel_post -d vboxsf VirtualBox Host file system access (Shared Folders) | |
816 | ||
ecfe25a3 | 817 | %preun -n kernel%{_alt_kernel}-misc-vboxsf |
ca8701ad | 818 | if [ "$1" = "0" ]; then |
ecfe25a3 | 819 | %service vboxsf stop |
ca8701ad | 820 | fi |
821 | ||
ece7f2f1 JR |
822 | %postun -n kernel%{_alt_kernel}-misc-vboxsf |
823 | %depmod %{_kernel_ver} | |
824 | ||
67a4f3c1 | 825 | %post -n kernel%{_alt_kernel}-misc-vboxvideo |
826 | %depmod %{_kernel_ver} | |
827 | ||
828 | %postun -n kernel%{_alt_kernel}-misc-vboxvideo | |
829 | %depmod %{_kernel_ver} | |
830 | ||
ece7f2f1 JR |
831 | %post kernel-init-host |
832 | /sbin/chkconfig --add vboxdrv | |
833 | /sbin/chkconfig --add vboxnetadp | |
834 | /sbin/chkconfig --add vboxnetflt | |
835 | /sbin/chkconfig --add vboxpci | |
836 | %systemd_reload | |
837 | ||
838 | %preun kernel-init-host | |
839 | if [ "$1" = "0" ]; then | |
840 | /sbin/chkconfig --del vboxdrv | |
841 | /sbin/chkconfig --del vboxnetadp | |
842 | /sbin/chkconfig --del vboxnetflt | |
843 | /sbin/chkconfig --del vboxpci | |
844 | fi | |
845 | ||
846 | %postun kernel-init-host | |
847 | %systemd_reload | |
848 | ||
849 | %post kernel-init-guest | |
850 | /sbin/chkconfig --add vboxguest | |
851 | /sbin/chkconfig --add vboxsf | |
852 | %systemd_reload | |
853 | ||
854 | %preun kernel-init-guest | |
855 | if [ "$1" = "0" ]; then | |
856 | /sbin/chkconfig --del vboxguest | |
857 | /sbin/chkconfig --del vboxsf | |
858 | fi | |
859 | ||
860 | %postun kernel-init-guest | |
861 | %systemd_reload | |
862 | ||
d1c4ec5b | 863 | %if %{with userspace} |
48363591 | 864 | %files |
865 | %defattr(644,root,root,755) | |
23790586 ER |
866 | %dir %{_libdir}/%{pname} |
867 | %dir %{_libdir}/%{pname}/ExtensionPacks | |
868 | %dir %{_libdir}/%{pname}/ExtensionPacks/VNC | |
869 | %dir %{_libdir}/%{pname}/ExtensionPacks/VNC/linux* | |
870 | %dir %{_libdir}/%{pname}/additions | |
871 | %dir %{_libdir}/%{pname}/components | |
872 | %dir %{_libdir}/%{pname}/nls | |
85b005e2 | 873 | %attr(755,root,root) %{_bindir}/VBoxBFE |
874 | %attr(755,root,root) %{_bindir}/VBoxHeadless | |
875 | %attr(755,root,root) %{_bindir}/VBoxManage | |
876 | %attr(755,root,root) %{_bindir}/VBoxSDL | |
877 | %attr(755,root,root) %{_bindir}/VBoxSVC | |
878 | %attr(755,root,root) %{_bindir}/VBoxTunctl | |
879 | %attr(755,root,root) %{_bindir}/VBoxXPCOMIPCD | |
48363591 | 880 | %attr(755,root,root) %{_bindir}/VirtualBox |
3ee6b9d9 | 881 | %attr(755,root,root) %{_sbindir}/mount.vdi |
23790586 ER |
882 | %attr(755,root,root) %{_libdir}/%{pname}/DBGCPlugInDiggers.so |
883 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAuth.so | |
884 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAuthSimple.so | |
885 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAutostart | |
886 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxBFE | |
887 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxBalloonCtrl | |
23790586 ER |
888 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDbg.so |
889 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDD2.so | |
890 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDD.so | |
891 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDDU.so | |
892 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDragAndDropSvc.so | |
893 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxExtPackHelperApp | |
894 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxGuestControlSvc.so | |
895 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxGuestPropSvc.so | |
896 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxHeadless | |
897 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxHostChannel.so | |
898 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxKeyboard.so | |
899 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxManage | |
8c76fad0 | 900 | %if %{with doc} |
23790586 | 901 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxManageHelp |
8c76fad0 | 902 | %endif |
23790586 ER |
903 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetAdpCtl |
904 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetDHCP | |
905 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLhostcrutil.so | |
906 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLhosterrorspu.so | |
907 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLrenderspu.so | |
908 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxPython*.so | |
909 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM.so | |
f701b529 | 910 | %ifarch %{ix86} |
23790586 ER |
911 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM32.so |
912 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM64.so | |
f701b529 | 913 | %endif |
23790586 ER |
914 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxRT.so |
915 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSDL | |
916 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedClipboard.so | |
917 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedCrOpenGL.so | |
918 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedFolders.so | |
919 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSVC | |
920 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSysInfo.sh | |
921 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxTestOGL | |
922 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxTunctl | |
923 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVMM.so | |
924 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVMMPreload | |
925 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMC.so | |
926 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMIPCD | |
927 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOM.so | |
928 | %attr(755,root,root) %{_libdir}/%{pname}/VirtualBox | |
929 | %attr(755,root,root) %{_libdir}/%{pname}/VirtualBox-wrapper.sh | |
930 | %attr(755,root,root) %{_libdir}/%{pname}/ExtensionPacks/VNC/linux*/VBoxVNC*.so | |
931 | %{_libdir}/%{pname}/VBoxDD2GC.gc | |
932 | %{_libdir}/%{pname}/VBoxDDGC.gc | |
933 | %{_libdir}/%{pname}/VMMGC.gc | |
934 | %{_libdir}/%{pname}/VBoxDD2R0.r0 | |
935 | %{_libdir}/%{pname}/VBoxDDR0.r0 | |
936 | %{_libdir}/%{pname}/VMMR0.r0 | |
937 | #%{_libdir}/%{pname}/EfiThunk | |
938 | %{_libdir}/%{pname}/VBoxEFI32.fd | |
939 | %{_libdir}/%{pname}/VBoxEFI64.fd | |
940 | %{_libdir}/%{pname}/components/VBoxXPCOMBase.xpt | |
941 | %{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack.xml | |
942 | %{_libdir}/%{pname}/components/VirtualBox_XPCOM.xpt | |
943 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxC.so | |
944 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxSVCM.so | |
945 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxXPCOMIPCC.so | |
946 | %lang(bg) %{_libdir}/%{pname}/nls/*_bg.qm | |
947 | %lang(ca) %{_libdir}/%{pname}/nls/*_ca.qm | |
948 | %lang(ca_VA) %{_libdir}/%{pname}/nls/*_ca_VA.qm | |
949 | %lang(cs) %{_libdir}/%{pname}/nls/*_cs.qm | |
950 | %lang(da) %{_libdir}/%{pname}/nls/*_da.qm | |
951 | %lang(de) %{_libdir}/%{pname}/nls/*_de.qm | |
952 | %lang(en) %{_libdir}/%{pname}/nls/*_en.qm | |
953 | %lang(es) %{_libdir}/%{pname}/nls/*_es.qm | |
954 | %lang(eu) %{_libdir}/%{pname}/nls/*_eu.qm | |
955 | %lang(fi) %{_libdir}/%{pname}/nls/*_fa_IR.qm | |
956 | %lang(fi) %{_libdir}/%{pname}/nls/*_fi.qm | |
957 | %lang(fr) %{_libdir}/%{pname}/nls/*_fr.qm | |
958 | %lang(gl_ES) %{_libdir}/%{pname}/nls/*_gl_ES.qm | |
959 | %lang(hu) %{_libdir}/%{pname}/nls/*_hu.qm | |
960 | %lang(id) %{_libdir}/%{pname}/nls/*_id.qm | |
961 | %lang(it) %{_libdir}/%{pname}/nls/*_it.qm | |
962 | %lang(ja) %{_libdir}/%{pname}/nls/*_ja.qm | |
963 | %lang(km_KH) %{_libdir}/%{pname}/nls/*_km_KH.qm | |
964 | %lang(ko) %{_libdir}/%{pname}/nls/*_ko.qm | |
965 | %lang(lt) %{_libdir}/%{pname}/nls/*_lt.qm | |
966 | %lang(nl) %{_libdir}/%{pname}/nls/*_nl.qm | |
967 | %lang(pl) %{_libdir}/%{pname}/nls/*_pl.qm | |
968 | %lang(pt) %{_libdir}/%{pname}/nls/*_pt.qm | |
969 | %lang(pt_BR) %{_libdir}/%{pname}/nls/*_pt_BR.qm | |
970 | %lang(ro) %{_libdir}/%{pname}/nls/*_ro.qm | |
971 | %lang(ru) %{_libdir}/%{pname}/nls/*_ru.qm | |
972 | %lang(sk) %{_libdir}/%{pname}/nls/*_sk.qm | |
973 | %lang(sr) %{_libdir}/%{pname}/nls/*_sr.qm | |
974 | %lang(sv) %{_libdir}/%{pname}/nls/*_sv.qm | |
975 | %lang(tr) %{_libdir}/%{pname}/nls/*_tr.qm | |
976 | %lang(uk) %{_libdir}/%{pname}/nls/*_uk.qm | |
977 | %lang(zh_CN) %{_libdir}/%{pname}/nls/*_zh_CN.qm | |
978 | %lang(zh_TW) %{_libdir}/%{pname}/nls/*_zh_TW.qm | |
9ce724ed | 979 | %{_pixmapsdir}/virtualbox.png |
dca6c443 | 980 | %{_desktopdir}/*.desktop |
23790586 ER |
981 | %{_libdir}/%{pname}/icons |
982 | %{_libdir}/%{pname}/virtualbox.xml | |
09c79ddb | 983 | |
12db98a7 JR |
984 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules |
985 | %attr(755,root,root) /lib/udev/VBoxCreateUSBNode.sh | |
986 | ||
ffb38bb6 | 987 | %files additions |
9dda6415 | 988 | %defattr(644,root,root,755) |
23790586 | 989 | %{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso |
ffb38bb6 | 990 | |
1067d08d ER |
991 | %files guest |
992 | %defattr(644,root,root,755) | |
c0372ee9 ER |
993 | # TODO: initscript for VBoxService |
994 | %attr(755,root,root) %{_bindir}/VBoxControl | |
995 | %attr(755,root,root) %{_bindir}/VBoxService | |
996 | ||
997 | %files guest-x11 | |
3d9b19d8 | 998 | %defattr(644,root,root,755) |
785c600a ER |
999 | # NOTE: unfinished, should contain .desktop files for starting up mouse |
1000 | # integration and other desktop services | |
89973837 | 1001 | # NOTE: the filelist is incomplete too |
90de3b27 | 1002 | %attr(755,root,root) %{_bindir}/VBoxClient |
90de3b27 ER |
1003 | /etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh |
1004 | /etc/xdg/autostart/vboxclient.desktop | |
1067d08d | 1005 | |
23790586 ER |
1006 | %attr(755,root,root) %{_libdir}/%{pname}/additions/autorun.sh |
1007 | %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd | |
1008 | %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd-service | |
1009 | %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd-x11 | |
744bc35e | 1010 | |
3613936b JR |
1011 | %files -n pam-pam_vbox |
1012 | %defattr(644,root,root,755) | |
3ee6b9d9 | 1013 | %attr(755,root,root) /%{_lib}/security/pam_vbox.so |
3613936b | 1014 | |
90de3b27 ER |
1015 | %if %{with doc} |
1016 | %files doc | |
1017 | %defattr(644,root,root,755) | |
f0a66b84 JR |
1018 | # this is a symlink... |
1019 | %doc %{_libdir}/%{pname}/UserManual.pdf | |
6ee3b66d | 1020 | %lang(fr) %doc %{_libdir}/%{pname}/UserManual_fr_FR.pdf |
f0a66b84 | 1021 | # ..to this file |
90de3b27 | 1022 | %doc %{outdir}/UserManual.pdf |
d43f5558 | 1023 | %lang(fr) %doc %{outdir}/UserManual_fr_FR.pdf |
90de3b27 ER |
1024 | %endif |
1025 | ||
09c79ddb | 1026 | %files -n xorg-driver-video-vboxvideo |
1027 | %defattr(644,root,root,755) | |
1028 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/vboxvideo_drv.so | |
27a1aef6 ER |
1029 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/vboxvideo_dri.so |
1030 | # vboxvideo_dri.so deps | |
1067d08d | 1031 | %attr(755,root,root) %{_libdir}/VBoxOGLarrayspu.so |
27a1aef6 ER |
1032 | %attr(755,root,root) %{_libdir}/VBoxOGLcrutil.so |
1033 | %attr(755,root,root) %{_libdir}/VBoxOGLerrorspu.so | |
1034 | %attr(755,root,root) %{_libdir}/VBoxOGLfeedbackspu.so | |
1035 | %attr(755,root,root) %{_libdir}/VBoxOGLpackspu.so | |
1036 | %attr(755,root,root) %{_libdir}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 1037 | %endif |
48363591 | 1038 | |
d1c4ec5b | 1039 | %if %{with kernel} |
ff1f2719 JR |
1040 | %files kernel-init-host |
1041 | %defattr(644,root,root,755) | |
1042 | %attr(754,root,root) /etc/rc.d/init.d/vboxdrv | |
1043 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetadp | |
1044 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetflt | |
1045 | %attr(754,root,root) /etc/rc.d/init.d/vboxpci | |
1046 | %{systemdunitdir}/vboxdrv.service | |
1047 | %{systemdunitdir}/vboxnetadp.service | |
1048 | %{systemdunitdir}/vboxnetflt.service | |
1049 | %{systemdunitdir}/vboxpci.service | |
1050 | ||
1051 | %files kernel-init-guest | |
74268e47 | 1052 | %defattr(644,root,root,755) |
dc0a2786 | 1053 | %attr(754,root,root) /etc/rc.d/init.d/vboxguest |
ff1f2719 | 1054 | %attr(754,root,root) /etc/rc.d/init.d/vboxsf |
35ccdfcc | 1055 | %{systemdunitdir}/vboxguest.service |
ff1f2719 JR |
1056 | %{systemdunitdir}/vboxsf.service |
1057 | ||
1058 | %files -n kernel%{_alt_kernel}-misc-vboxguest | |
1059 | %defattr(644,root,root,755) | |
1060 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxguest.conf | |
dc0a2786 | 1061 | /lib/modules/%{_kernel_ver}/misc/vboxguest.ko* |
74268e47 | 1062 | |
d1c4ec5b | 1063 | %files -n kernel%{_alt_kernel}-misc-vboxdrv |
48363591 | 1064 | %defattr(644,root,root,755) |
35ccdfcc | 1065 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxdrv.conf |
d1c4ec5b | 1066 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko* |
74268e47 | 1067 | |
d2a7514f ŁK |
1068 | %files -n kernel%{_alt_kernel}-misc-vboxnetadp |
1069 | %defattr(644,root,root,755) | |
35ccdfcc | 1070 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxnetadp.conf |
d2a7514f ŁK |
1071 | /lib/modules/%{_kernel_ver}/misc/vboxnetadp.ko* |
1072 | ||
1dda2f69 | 1073 | %files -n kernel%{_alt_kernel}-misc-vboxnetflt |
1074 | %defattr(644,root,root,755) | |
35ccdfcc | 1075 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxnetflt.conf |
1dda2f69 | 1076 | /lib/modules/%{_kernel_ver}/misc/vboxnetflt.ko* |
1077 | ||
59d12745 KK |
1078 | %files -n kernel%{_alt_kernel}-misc-vboxpci |
1079 | %defattr(644,root,root,755) | |
35ccdfcc | 1080 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxpci.conf |
59d12745 KK |
1081 | /lib/modules/%{_kernel_ver}/misc/vboxpci.ko* |
1082 | ||
ecfe25a3 | 1083 | %files -n kernel%{_alt_kernel}-misc-vboxsf |
74268e47 | 1084 | %defattr(644,root,root,755) |
35ccdfcc | 1085 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxsf.conf |
50863744 | 1086 | %attr(755,root,root) %{_sbindir}/mount.vboxsf |
ecfe25a3 | 1087 | /lib/modules/%{_kernel_ver}/misc/vboxsf.ko* |
67a4f3c1 | 1088 | |
1089 | %files -n kernel%{_alt_kernel}-misc-vboxvideo | |
1090 | %defattr(644,root,root,755) | |
1091 | /lib/modules/%{_kernel_ver}/misc/vboxvideo.ko* | |
1092 | %endif |