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