]>
Commit | Line | Data |
---|---|---|
744bc35e JR |
1 | # TODO |
2 | # - java bindings | |
74268e47 | 3 | # - Package SDK. |
ffb38bb6 | 4 | # - Check License of VBoxGuestAdditions_*.iso, it's probably not GPL v2. |
5f8b0a92 | 5 | # If so check if it is distributable. |
21a1d8ab | 6 | # - guest x11 additions: currently incomplete/untested |
23790586 | 7 | # - enable VDE networking: --enable-vde |
21a1d8ab ER |
8 | # - initscripts for webservice |
9 | # - install systemd vboxservice.service | |
48363591 | 10 | # |
11 | # Conditional build: | |
8da42f47 | 12 | %bcond_without doc # don't build the documentation |
48363591 | 13 | %bcond_without dist_kernel # without distribution kernel |
d1c4ec5b | 14 | %bcond_without kernel # don't build kernel module |
d1c4ec5b | 15 | %bcond_without userspace # don't build userspace package |
21a1d8ab | 16 | %bcond_with webservice # webservice (SOAP) support |
7223ee37 | 17 | %bcond_without lightdm # lightdm greeter |
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 | |
600ebcbf | 35 | %define rel 0.1 |
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} |
600ebcbf | 40 | Version: 4.3.0 |
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 |
600ebcbf | 45 | # Source0-md5: 1f49237686d095859f3dbea0941f8b12 |
744bc35e | 46 | Source1: http://download.virtualbox.org/virtualbox/%{version}/VBoxGuestAdditions_%{version}.iso |
600ebcbf | 47 | # Source1-md5: 6b72a59aba1660afa4f430faa88d727a |
07e9b84d | 48 | Source2: vboxservice.init |
33aeed61 JR |
49 | Source3: %{pname}-vboxdrv.init |
50 | Source4: %{pname}-vboxguest.init | |
51 | Source5: %{pname}-vboxnetflt.init | |
52 | Source6: %{pname}-vboxsf.init | |
53 | Source7: %{pname}-vboxnetadp.init | |
54 | Source8: %{pname}-vboxpci.init | |
55 | Source9: %{pname}.sh | |
59d12745 KK |
56 | Source10: mount.vdi |
57 | Source11: udev.rules | |
33aeed61 JR |
58 | Source12: %{pname}-vboxdrv-modules-load.conf |
59 | Source13: %{pname}-vboxguest-modules-load.conf | |
60 | Source14: %{pname}-vboxnetflt-modules-load.conf | |
61 | Source15: %{pname}-vboxsf-modules-load.conf | |
62 | Source16: %{pname}-vboxnetadp-modules-load.conf | |
63 | Source17: %{pname}-vboxpci-modules-load.conf | |
64 | Patch0: %{pname}-configure-spaces.patch | |
db6f33e3 KK |
65 | Patch1: %{pname}-VBoxSysInfo.patch |
66 | Patch2: %{pname}-warning_workaround.patch | |
67 | Patch3: %{pname}-dri.patch | |
68 | Patch4: %{pname}-disable_build_NetBiosBin.patch | |
69 | Patch5: xserver-1.12.patch | |
d3884acf | 70 | Patch7: lightdm-greeter-glib-includes.patch |
8d08b907 | 71 | Patch8: lightdm-greeter-g++-link.patch |
acf12a87 | 72 | # ubuntu patches |
b980c81c ER |
73 | Patch10: 16-no-update.patch |
74 | Patch11: 18-system-xorg.patch | |
acf12a87 | 75 | # /ubuntu patches |
48363591 | 76 | URL: http://www.virtualbox.org/ |
83ffcfa8 | 77 | %if %{with userspace} |
ce9843cd ER |
78 | %ifarch %{x8664} |
79 | BuildRequires: gcc-multilib | |
80 | BuildRequires: glibc-devel(i686) | |
81 | BuildRequires: libstdc++-multilib-devel | |
4fff279a | 82 | BuildRequires: libstdc++-multilib-static |
ce9843cd | 83 | %endif |
ce9843cd ER |
84 | %if "%{pld_release}" == "ac" |
85 | BuildRequires: XFree86-devel | |
86 | %else | |
1abc0217 | 87 | BuildRequires: xorg-lib-libXcomposite-devel |
ce9843cd ER |
88 | BuildRequires: xorg-lib-libXcursor-devel |
89 | BuildRequires: xorg-lib-libXmu-devel | |
e649d11e | 90 | BuildRequires: xorg-proto-glproto-devel |
acf12a87 | 91 | BuildRequires: xorg-xserver-server-devel |
ce9843cd | 92 | %endif |
00149140 | 93 | BuildRequires: OpenGL-GLU-devel |
523e7409 | 94 | BuildRequires: OpenGL-devel |
cef75615 | 95 | BuildRequires: QtGui-devel |
2d17bb72 | 96 | BuildRequires: QtNetwork-devel |
dd64a424 | 97 | BuildRequires: QtOpenGL-devel |
c574efad | 98 | BuildRequires: SDL-devel >= 1.2.7 |
9a1cb119 | 99 | BuildRequires: acpica |
ba702945 | 100 | BuildRequires: alsa-lib-devel >= 1.0.6 |
e5aaadde | 101 | BuildRequires: bash |
48363591 | 102 | BuildRequires: bcc |
103 | BuildRequires: bin86 | |
07ef7f06 | 104 | BuildRequires: curl-devel |
fc19d844 | 105 | BuildRequires: device-mapper-devel |
8da42f47 | 106 | %{?with_doc:BuildRequires: docbook-dtd44-xml} |
eba4b2aa | 107 | BuildRequires: gcc >= 5:3.2.3 |
55f7d7d3 | 108 | %{?with_webservice:BuildRequires: gsoap-devel} |
e9aa839a | 109 | BuildRequires: issue |
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 |
7223ee37 | 122 | %{?with_lightdm:BuildRequires: lightdm-libs-qt-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 |
0ccbe8d9 | 133 | BuildRequires: rpmbuild(macros) >= 1.664 |
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 |
8d08b907 | 175 | %define objdir out/%{vbox_platform}/release/obj |
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 | |
21a1d8ab ER |
291 | %package webservice |
292 | Summary: VirtualBox Web Service | |
293 | Group: Applications/Emulators | |
294 | Requires: %{name} = %{version}-%{release} | |
295 | ||
296 | %description webservice | |
297 | This package contains VirtualBox web service API daemon. It allows to | |
298 | control virtual machines via web interface. | |
299 | ||
9e4dd6a9 | 300 | %package -n lightdm-greeter-vbox |
8d08b907 ER |
301 | Summary: VirtualBox greeter for lightdm |
302 | Group: Themes | |
22380dc7 ER |
303 | # NOTE: '#' in url is lost because rpm treats it as comment, even hacking with |
304 | # macros doesn't help as rpmbuild takes final result to parse | |
8d08b907 | 305 | URL: http://www.virtualbox.org/manual/ch09.html#autologon_unix_lightdm |
54cba4c4 | 306 | Requires: kernel%{_alt_kernel}-misc-vboxguest |
8d08b907 ER |
307 | Requires: lightdm >= 1.0.1 |
308 | Provides: lightdm-greeter | |
309 | ||
9e4dd6a9 | 310 | %description -n lightdm-greeter-vbox |
8d08b907 ER |
311 | VirtualBox greeter for LightDM. |
312 | ||
3613936b JR |
313 | %package -n pam-pam_vbox |
314 | Summary: PAM module to perform automated guest logons | |
315 | Group: Base | |
316 | ||
317 | %description -n pam-pam_vbox | |
3ee6b9d9 ER |
318 | PAM module (Pluggable Authentication Module) which can be used to |
319 | perform automated guest logons. | |
3613936b | 320 | |
fbea1005 | 321 | %package -n xorg-driver-video-vboxvideo |
393ec35d ER |
322 | Summary: X.org video driver for VirtualBox guest OS |
323 | Summary(pl.UTF-8): Sterownik grafiki dla systemu gościa w VirtualBoksie | |
fbea1005 | 324 | Group: X11/Applications |
20b8335d | 325 | Requires: Mesa-dri-driver-swrast |
fbea1005 ER |
326 | Requires: xorg-xserver-libdri >= 1.7.4 |
327 | Requires: xorg-xserver-server >= 1.0.99.901 | |
c8a0226f | 328 | Requires: xorg-xserver-server(videodrv-abi) <= 14.1 |
fbea1005 ER |
329 | Requires: xorg-xserver-server(videodrv-abi) >= 2.0 |
330 | ||
331 | %description -n xorg-driver-video-vboxvideo | |
393ec35d | 332 | X.org video driver for VirtualBox guest OS. |
fbea1005 ER |
333 | |
334 | %description -n xorg-driver-video-vboxvideo -l pl.UTF-8 | |
393ec35d | 335 | Sterownik grafiki dla systemu gościa w VirtualBoksie. |
fbea1005 | 336 | |
ff1f2719 JR |
337 | %package kernel-init-host |
338 | Summary: SysV initscripts for host kernel modules | |
339 | Group: Base/Kernel | |
340 | ||
341 | %description kernel-init-host | |
342 | SysV initscripts for host kernel modules. | |
343 | ||
344 | %package kernel-init-guest | |
345 | Summary: SysV initscripts for guest kernel modules | |
346 | Group: Base/Kernel | |
347 | ||
348 | %description kernel-init-guest | |
349 | SysV initscripts for guest kernel modules. | |
350 | ||
18adabff | 351 | # KERNEL PACKAGES |
b980c81c | 352 | |
18adabff | 353 | # KEEP ALL REGULAR SUBPACKAGES BEFORE KERNEL PACKAGES. |
b980c81c | 354 | |
dc0a2786 | 355 | %package -n kernel%{_alt_kernel}-misc-vboxguest |
393ec35d ER |
356 | Summary: VirtualBox Guest Additions for Linux Module |
357 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
fe3d1798 | 358 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 359 | Group: Base/Kernel |
360 | Requires(post,postun): /sbin/depmod | |
de615b50 | 361 | Requires(post): systemd-units >= 38 |
74268e47 | 362 | Requires: dev >= 2.9.0-7 |
363 | %if %{with dist_kernel} | |
364 | %requires_releq_kernel | |
ca8701ad | 365 | Requires(postun): %releq_kernel |
74268e47 | 366 | %endif |
de615b50 | 367 | Requires: systemd-units >= 38 |
ff1f2719 | 368 | Suggests: %{name}-kernel-init-guest >= %{version}-%{rel} |
dc0a2786 AG |
369 | Provides: kernel(vboxguest) = %{version}-%{rel} |
370 | Obsoletes: kernel%{_alt_kernel}-misc-vboxadd | |
f7de19b3 | 371 | Conflicts: kernel%{_alt_kernel}-misc-vboxdrv |
74268e47 | 372 | |
dc0a2786 | 373 | %description -n kernel%{_alt_kernel}-misc-vboxguest |
393ec35d | 374 | VirtualBox Guest Additions for Linux Module. |
74268e47 | 375 | |
91e5103c ER |
376 | You should install this package in your Guest OS. |
377 | ||
dc0a2786 | 378 | %description -n kernel%{_alt_kernel}-misc-vboxguest -l pl.UTF-8 |
393ec35d ER |
379 | Moduł jądra Linuksa vboxguest dla VirtualBoksa - dodatki dla systemu |
380 | gościa. | |
74268e47 | 381 | |
48363591 | 382 | %package -n kernel%{_alt_kernel}-misc-vboxdrv |
393ec35d ER |
383 | Summary: VirtualBox Support Driver |
384 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
fe3d1798 | 385 | Release: %{rel}@%{_kernel_ver_str} |
48363591 | 386 | Group: Base/Kernel |
387 | Requires(post,postun): /sbin/depmod | |
de615b50 | 388 | Requires(post): systemd-units >= 38 |
48363591 | 389 | Requires: dev >= 2.9.0-7 |
390 | %if %{with dist_kernel} | |
d6f0c54e | 391 | %requires_releq_kernel |
392 | Requires(postun): %releq_kernel | |
48363591 | 393 | %endif |
de615b50 | 394 | Requires: systemd-units >= 38 |
ff1f2719 | 395 | Suggests: %{name}-kernel-init-host >= %{version}-%{rel} |
fe3d1798 | 396 | Provides: kernel(vboxdrv) = %{version}-%{rel} |
48363591 | 397 | |
398 | %description -n kernel%{_alt_kernel}-misc-vboxdrv | |
393ec35d | 399 | VirtualBox Support Driver. |
48363591 | 400 | |
91e5103c ER |
401 | You should install this package in your Host OS. |
402 | ||
fd8fc899 | 403 | %description -n kernel%{_alt_kernel}-misc-vboxdrv -l pl.UTF-8 |
393ec35d ER |
404 | Moduł jądra Linuksa dla VirtualBoksa - sterownik wsparcia dla systemu |
405 | głównego. | |
48363591 | 406 | |
d2a7514f | 407 | %package -n kernel%{_alt_kernel}-misc-vboxnetadp |
393ec35d ER |
408 | Summary: VirtualBox Network Adapter Driver |
409 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
d2a7514f ŁK |
410 | Release: %{rel}@%{_kernel_ver_str} |
411 | Group: Base/Kernel | |
412 | Requires(post,postun): /sbin/depmod | |
de615b50 | 413 | Requires(post): systemd-units >= 38 |
d2a7514f ŁK |
414 | Requires: dev >= 2.9.0-7 |
415 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
416 | %if %{with dist_kernel} | |
417 | %requires_releq_kernel | |
418 | Requires(postun): %releq_kernel | |
419 | %endif | |
de615b50 | 420 | Requires: systemd-units >= 38 |
ff1f2719 | 421 | Suggests: %{name}-kernel-init-host >= %{version}-%{rel} |
d2a7514f ŁK |
422 | Provides: kernel(vboxnetflt) = %{version}-%{rel} |
423 | ||
424 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp | |
393ec35d | 425 | VirtualBox Network Adapter Driver. |
d2a7514f | 426 | |
91e5103c ER |
427 | You should install this package in your Host OS. |
428 | ||
d2a7514f | 429 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp -l pl.UTF-8 |
393ec35d | 430 | Moduł jądra Linuksa dla VirtualBoksa - sterownik witrualnej karty |
9dda6415 | 431 | sieciowej. |
d2a7514f | 432 | |
1dda2f69 | 433 | %package -n kernel%{_alt_kernel}-misc-vboxnetflt |
393ec35d ER |
434 | Summary: VirtualBox Network Filter Driver |
435 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
1dda2f69 | 436 | Release: %{rel}@%{_kernel_ver_str} |
437 | Group: Base/Kernel | |
438 | Requires(post,postun): /sbin/depmod | |
de615b50 | 439 | Requires(post): systemd-units >= 38 |
1dda2f69 | 440 | Requires: dev >= 2.9.0-7 |
441 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
442 | %if %{with dist_kernel} | |
443 | %requires_releq_kernel | |
444 | Requires(postun): %releq_kernel | |
445 | %endif | |
de615b50 | 446 | Requires: systemd-units >= 38 |
ff1f2719 | 447 | Suggests: %{name}-kernel-init-host >= %{version}-%{rel} |
1dda2f69 | 448 | Provides: kernel(vboxnetflt) = %{version}-%{rel} |
449 | ||
450 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt | |
393ec35d | 451 | VirtualBox Network Filter Driver. |
1dda2f69 | 452 | |
91e5103c ER |
453 | You should install this package in your Host OS. |
454 | ||
1dda2f69 | 455 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt -l pl.UTF-8 |
393ec35d ER |
456 | Moduł jądra Linuksa dla VirtualBoksa - sterownik filtrowania sieci dla |
457 | systemu głównego. | |
1dda2f69 | 458 | |
59d12745 | 459 | %package -n kernel%{_alt_kernel}-misc-vboxpci |
393ec35d ER |
460 | Summary: VirtualBox PCI card passthrough Driver |
461 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
59d12745 KK |
462 | Release: %{rel}@%{_kernel_ver_str} |
463 | Group: Base/Kernel | |
464 | Requires(post,postun): /sbin/depmod | |
de615b50 | 465 | Requires(post): systemd-units >= 38 |
59d12745 KK |
466 | Requires: dev >= 2.9.0-7 |
467 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
468 | %if %{with dist_kernel} | |
469 | %requires_releq_kernel | |
470 | Requires(postun): %releq_kernel | |
471 | %endif | |
de615b50 | 472 | Requires: systemd-units >= 38 |
ff1f2719 | 473 | Suggests: %{name}-kernel-init-host >= %{version}-%{rel} |
59d12745 KK |
474 | Provides: kernel(vboxpci) = %{version}-%{rel} |
475 | ||
476 | %description -n kernel%{_alt_kernel}-misc-vboxpci | |
393ec35d ER |
477 | VirtualBox PCI card passthrough driver that works as host proxy |
478 | between guest and PCI hardware. | |
59d12745 KK |
479 | |
480 | You should install this package in your Host OS. | |
481 | ||
482 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt -l pl.UTF-8 | |
393ec35d ER |
483 | Moduł jądra Linuksa dla VirtualBoksa - sterownik, ktory działa jako |
484 | proxy między gościem i gospodarzem sprzętu PCI. | |
59d12745 | 485 | |
ecfe25a3 | 486 | %package -n kernel%{_alt_kernel}-misc-vboxsf |
393ec35d ER |
487 | Summary: Host file system access (Shared Folders) for VirtualBox |
488 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
fe3d1798 | 489 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 490 | Group: Base/Kernel |
491 | Requires(post,postun): /sbin/depmod | |
de615b50 | 492 | Requires(post): systemd-units >= 38 |
74268e47 | 493 | Requires: dev >= 2.9.0-7 |
dc0a2786 | 494 | Requires: kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 495 | %if %{with dist_kernel} |
496 | %requires_releq_kernel | |
497 | Requires(postun): %releq_kernel | |
498 | %endif | |
de615b50 | 499 | Requires: systemd-units >= 38 |
ff1f2719 | 500 | Suggests: %{name}-kernel-init-guest >= %{version}-%{rel} |
ecfe25a3 PS |
501 | Provides: kernel(vboxsf) = %{version}-%{rel} |
502 | Obsoletes: kernel%{_alt_kernel}-misc-vboxvfs | |
74268e47 | 503 | |
ecfe25a3 | 504 | %description -n kernel%{_alt_kernel}-misc-vboxsf |
393ec35d | 505 | Host file system access (Shared Folders) for VirtualBox. |
74268e47 | 506 | |
91e5103c ER |
507 | You should install this package in your Guest OS. |
508 | ||
ecfe25a3 | 509 | %description -n kernel%{_alt_kernel}-misc-vboxsf -l pl.UTF-8 |
393ec35d | 510 | Moduł jądra Linuksa dla VirtualBoksa - dostęp do plików systemu |
4f09a416 | 511 | głównego z poziomu systemu gościa. |
74268e47 | 512 | |
735b33d6 | 513 | %package -n kernel%{_alt_kernel}-video-vboxvideo |
393ec35d ER |
514 | Summary: DRM support for VirtualBox |
515 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa | |
67a4f3c1 | 516 | Release: %{rel}@%{_kernel_ver_str} |
517 | Group: Base/Kernel | |
518 | Requires(post,postun): /sbin/depmod | |
519 | Requires: dev >= 2.9.0-7 | |
520 | %if %{with dist_kernel} | |
521 | %requires_releq_kernel | |
d14fba96 | 522 | %requires_releq_kernel -n drm |
67a4f3c1 | 523 | Requires(postun): %releq_kernel |
524 | %endif | |
525 | Provides: kernel(vboxvideo) = %{version}-%{rel} | |
526 | ||
735b33d6 | 527 | %description -n kernel%{_alt_kernel}-video-vboxvideo |
393ec35d | 528 | DRM support for VirtualBox. |
67a4f3c1 | 529 | |
91e5103c ER |
530 | You should install this package in your Guest OS. |
531 | ||
735b33d6 | 532 | %description -n kernel%{_alt_kernel}-video-vboxvideo -l pl.UTF-8 |
393ec35d | 533 | Moduł jądra Linuksa dla VirtualBoksa - sterownik obsługi DRM. |
67a4f3c1 | 534 | |
48363591 | 535 | %prep |
33aeed61 | 536 | %setup -q -n %{pname}-%{version} |
e709ce6b | 537 | %patch0 -p1 |
db6f33e3 | 538 | %patch1 -p1 |
006342ee | 539 | %patch2 -p1 |
8473a80d | 540 | %patch3 -p1 |
600ebcbf | 541 | #%patch4 -p1 |
9a7b1cdc | 542 | %patch5 -p1 |
d3884acf | 543 | %patch7 -p1 |
8d08b907 | 544 | %patch8 -p1 |
fddcb741 | 545 | |
744bc35e JR |
546 | %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \ |
547 | -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in | |
0b6de2b7 | 548 | |
f471b832 ER |
549 | # Respect LDFLAGS |
550 | %{__sed} -i -e "s@_LDFLAGS\.%{vbox_arch}*.*=@& %{rpmldflags}@g" \ | |
551 | -i Config.kmk src/libs/xpcom18a4/Config.kmk | |
552 | ||
553 | %{__sed} 's#@LIBDIR@#%{_libdir}#' < %{SOURCE9} > VirtualBox-wrapper.sh | |
fa19f650 | 554 | |
1794e74d ER |
555 | install -d PLD-MODULE-BUILD/{GuestDrivers,HostDrivers} |
556 | cd PLD-MODULE-BUILD | |
557 | ../src/VBox/Additions/linux/export_modules guest-modules.tar.gz | |
558 | tar -zxf guest-modules.tar.gz -C GuestDrivers | |
559 | ||
cadbdf55 | 560 | ../src/VBox/HostDrivers/linux/export_modules host-modules.tar.gz --without-hardening |
1794e74d ER |
561 | tar -zxf host-modules.tar.gz -C HostDrivers |
562 | cd - | |
59d12745 KK |
563 | %patch10 -p1 |
564 | %patch11 -p1 | |
565 | ||
e9ed9ec1 ER |
566 | # using system kBuild package |
567 | %{__rm} -r kBuild | |
568 | ||
316a5697 ER |
569 | cat <<'EOF'>> LocalConfig.kmk |
570 | %{?with_verbose:KBUILD_VERBOSE=3} | |
571 | USERNAME=%(id -un) | |
572 | __VBOX_BUILD_PUBLISHER=_PLD | |
573 | VBOX_VERSION_STRING=$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)_PLD | |
574 | XSERVER_VERSION=%(rpm -q --queryformat '%{V}\n' xorg-xserver-server-devel | awk -F. '{ print $1 $2 }' 2>/dev/null || echo ERROR) | |
575 | VBOX_USE_SYSTEM_XORG_HEADERS=1 | |
576 | %if %{with lightdm} | |
577 | VBOX_WITH_LIGHTDM_GREETER=1 | |
578 | VBOX_WITH_LIGHTDM_GREETER_PACKING=1 | |
579 | %endif | |
580 | TOOL_GCC3_CFLAGS=%{rpmcflags} | |
581 | TOOL_GCC3_CXXFLAGS=%{rpmcxxflags} | |
582 | VBOX_GCC_OPT=%{rpmcxxflags} | |
583 | VBOX_WITH_TESTCASES= | |
584 | EOF | |
585 | ||
fddcb741 | 586 | %build |
83ffcfa8 | 587 | %if %{with userspace} |
106d8451 | 588 | ./configure \ |
ae1bbc88 | 589 | --with-gcc="%{__cc}" \ |
590 | --with-g++="%{__cxx}" \ | |
8da42f47 | 591 | %{!?with_doc:--disable-docs} \ |
744bc35e | 592 | --disable-java \ |
5a497466 | 593 | --disable-hardening \ |
01e414ba | 594 | --disable-kmods \ |
55f7d7d3 ER |
595 | --enable-vnc \ |
596 | %{__enable webservice} \ | |
597 | %{nil} | |
48363591 | 598 | |
89973837 | 599 | XSERVER_VERSION=$(rpm -q --queryformat '%{VERSION}\n' xorg-xserver-server-devel | awk -F. ' { print $1 $2 } ' 2> /dev/null || echo ERROR) |
316a5697 | 600 | kmk %{?_smp_mflags} |
48363591 | 601 | %endif |
74268e47 | 602 | |
603 | %if %{with kernel} | |
cdeeee90 | 604 | export KERN_DIR=%{_kernelsrcdir} |
1794e74d ER |
605 | cd PLD-MODULE-BUILD/HostDrivers |
606 | %build_kernel_modules -m vboxdrv -C vboxdrv | |
607 | %build_kernel_modules -m vboxnetadp -C vboxnetadp | |
608 | %build_kernel_modules -m vboxnetflt -C vboxnetflt | |
59d12745 | 609 | %build_kernel_modules -m vboxpci -C vboxpci |
1794e74d ER |
610 | |
611 | cd ../GuestDrivers | |
dc0a2786 | 612 | %build_kernel_modules -m vboxguest -C vboxguest |
ecfe25a3 PS |
613 | cp -a vboxguest/Module.symvers vboxsf |
614 | %build_kernel_modules -m vboxsf -C vboxsf -c | |
76273613 | 615 | %build_kernel_modules -m vboxvideo -C vboxvideo |
1794e74d | 616 | cd ../.. |
744bc35e | 617 | %{__cc} %{rpmcflags} %{rpmldflags} -Wall -Werror src/VBox/Additions/linux/sharedfolders/{mount.vboxsf.c,vbsfmount.c} -o mount.vboxsf |
d1c4ec5b | 618 | %endif |
48363591 | 619 | |
620 | %install | |
621 | rm -rf $RPM_BUILD_ROOT | |
622 | ||
d1c4ec5b | 623 | %if %{with userspace} |
c11f39b3 | 624 | install -d $RPM_BUILD_ROOT{%{_bindir},/sbin,%{_sbindir},%{_libdir}/%{pname}/ExtensionPacks} \ |
744bc35e | 625 | $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \ |
12db98a7 | 626 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,dri,input} \ |
eddcf7c3 | 627 | $RPM_BUILD_ROOT{/lib/udev,/etc/udev/rules.d} |
a70507fb | 628 | |
dca6c443 ER |
629 | # test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition |
630 | if cp -al VBox.png $RPM_BUILD_ROOT/Vbox.png 2>/dev/null; then | |
631 | l=l | |
ffd7f18a | 632 | %{__rm} -f $RPM_BUILD_ROOT/VBox.png |
dca6c443 ER |
633 | fi |
634 | ||
33aeed61 | 635 | cp -a$l %{outdir}/* $RPM_BUILD_ROOT%{_libdir}/%{pname} |
b75fd17a KK |
636 | |
637 | %if %{with doc} | |
26489c61 | 638 | ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual.pdf |
6ee3b66d | 639 | ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual_fr_FR.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual_fr_FR.pdf |
b75fd17a | 640 | %endif |
dca6c443 | 641 | |
23790586 | 642 | install -d $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions |
6110bfb9 | 643 | cp -a$l %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso |
c11f39b3 | 644 | install -p %{SOURCE10} $RPM_BUILD_ROOT/sbin/mount.vdi |
33aeed61 | 645 | install -p VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_libdir}/%{pname} |
5b399826 | 646 | for f in {VBox{BFE,Headless,Manage,SDL,SVC,Tunctl,XPCOMIPCD},VirtualBox}; do |
33aeed61 | 647 | ln -s %{_libdir}/%{pname}/VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/$f |
05f1b1f5 | 648 | done |
649 | ||
ffd7f18a JR |
650 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/VBox.png,%{_pixmapsdir}/virtualbox.png} |
651 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname},%{_desktopdir}}/virtualbox.desktop | |
48363591 | 652 | |
ffd7f18a JR |
653 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxvideo_drv_system.so,%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so} |
654 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/VBoxOGL.so,%{_libdir}/xorg/modules/dri/vboxvideo_dri.so} | |
916ab34d | 655 | |
27a1aef6 | 656 | # XXX: where else to install them that vboxvideo_dri.so finds them? patch with rpath? |
ffd7f18a JR |
657 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLarrayspu.so |
658 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLcrutil.so | |
659 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLerrorspu.so | |
660 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLfeedbackspu.so | |
661 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpackspu.so | |
662 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 663 | |
59d12745 | 664 | cp -a %{SOURCE11} $RPM_BUILD_ROOT/etc/udev/rules.d/virtualbox.rules |
12db98a7 | 665 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname},/lib/udev}/VBoxCreateUSBNode.sh |
dca6c443 | 666 | |
3613936b | 667 | install -d $RPM_BUILD_ROOT/%{_lib}/security |
ffd7f18a | 668 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,/%{_lib}/security}/pam_vbox.so |
3613936b | 669 | |
dca6c443 | 670 | # cleanup unpackaged |
ffd7f18a JR |
671 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/{src,sdk,testcase} |
672 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/src | |
673 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxkeyboard.tar.bz2 | |
674 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/tst* | |
675 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack-license.* | |
1067d08d ER |
676 | |
677 | # Guest Only Tools | |
90de3b27 | 678 | install -d $RPM_BUILD_ROOT/etc/{X11/xinit/xinitrc.d,xdg/autostart} |
ffd7f18a JR |
679 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxService |
680 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxClient | |
681 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxControl | |
90de3b27 ER |
682 | install -p -D src/VBox/Additions/x11/Installer/98vboxadd-xclient \ |
683 | $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh | |
684 | cp -p src/VBox/Additions/x11/Installer/vboxclient.desktop \ | |
685 | $RPM_BUILD_ROOT/etc/xdg/autostart/vboxclient.desktop | |
1067d08d | 686 | |
8d08b907 ER |
687 | %if %{with lightdm} |
688 | install -d $RPM_BUILD_ROOT%{_datadir}/xgreeters | |
29c4b6b6 | 689 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_sbindir}}/vbox-greeter |
8d08b907 ER |
690 | cp -p %{objdir}/Additions/Installer/linux/share/VBoxGuestAdditions/vbox-greeter.desktop $RPM_BUILD_ROOT%{_datadir}/xgreeters |
691 | %endif | |
692 | ||
dca6c443 | 693 | # unknown - checkme |
1067d08d | 694 | %if 1 |
ffd7f18a JR |
695 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPInstall |
696 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPLoggerCtl | |
697 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPUninstall | |
698 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBox.sh | |
699 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxshell.py | |
700 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/xpidl | |
701 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/runasroot.sh | |
702 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/load.sh | |
703 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/loadall.sh | |
704 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/CPUMInternal.d | |
705 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/cpumctx.d | |
706 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vbox-arch-types.d | |
707 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vbox-types.d | |
708 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vm.d | |
709 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/x86.d | |
710 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/testcase/%{vbox_arch}/vbox-vm-struct-test.d | |
711 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/helpers/generate_service_file | |
712 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/VBoxHeadlessXOrg.sh | |
713 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/generated.sh | |
714 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/init_template.sh | |
715 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/install_service | |
1067d08d | 716 | %endif |
dca6c443 ER |
717 | |
718 | # packaged by kernel part | |
ffd7f18a | 719 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf |
da083e45 | 720 | %endif |
33233365 | 721 | |
da083e45 | 722 | %if %{with kernel} |
c11f39b3 | 723 | install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,modules-load.d},/sbin,%{systemdunitdir}} |
07e9b84d | 724 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxservice |
70ce4861 | 725 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxdrv |
dc0a2786 | 726 | install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxguest |
70ce4861 | 727 | install -p %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetflt |
b06d932c | 728 | install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxsf |
c1cd3b9a | 729 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetadp |
59d12745 | 730 | install -p %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxpci |
1794e74d ER |
731 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxdrv/vboxdrv -d misc |
732 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxnetadp/vboxnetadp -d misc | |
733 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxnetflt/vboxnetflt -d misc | |
59d12745 | 734 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxpci/vboxpci -d misc |
1794e74d ER |
735 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxguest/vboxguest -d misc |
736 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxsf/vboxsf -d misc | |
76273613 | 737 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxvideo/vboxvideo -d misc |
fa974331 | 738 | |
c11f39b3 | 739 | install -p mount.vboxsf $RPM_BUILD_ROOT/sbin/mount.vboxsf |
50863744 | 740 | |
35ccdfcc | 741 | # Tell systemd to load modules |
b980c81c ER |
742 | cp -p %{SOURCE12} $RPM_BUILD_ROOT/etc/modules-load.d/vboxdrv.conf |
743 | cp -p %{SOURCE13} $RPM_BUILD_ROOT/etc/modules-load.d/vboxguest.conf | |
744 | cp -p %{SOURCE14} $RPM_BUILD_ROOT/etc/modules-load.d/vboxnetflt.conf | |
745 | cp -p %{SOURCE15} $RPM_BUILD_ROOT/etc/modules-load.d/vboxsf.conf | |
746 | cp -p %{SOURCE16} $RPM_BUILD_ROOT/etc/modules-load.d/vboxnetadp.conf | |
747 | cp -p %{SOURCE17} $RPM_BUILD_ROOT/etc/modules-load.d/vboxpci.conf | |
35ccdfcc JR |
748 | |
749 | # And mask module-loading services | |
750 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxdrv.service | |
751 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxguest.service | |
752 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxnetflt.service | |
753 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxsf.service | |
754 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxnetadp.service | |
755 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/vboxpci.service | |
d1c4ec5b | 756 | %endif |
05f1b1f5 | 757 | |
48363591 | 758 | %clean |
759 | rm -rf $RPM_BUILD_ROOT | |
760 | ||
3b63d3e8 | 761 | %pre |
762 | %groupadd -g 221 -r -f vbox | |
763 | ||
14561782 | 764 | %post |
1403ac49 | 765 | %update_desktop_database |
12db98a7 JR |
766 | for i in /sys/bus/usb/devices/*; do |
767 | if [ -r "$i/dev" ]; then | |
768 | dev="`cat "$i/dev" 2>/dev/null || true`" | |
769 | major="`expr "$dev" : '\(.*\):' 2> /dev/null || true`" | |
770 | minor="`expr "$dev" : '.*:\(.*\)' 2> /dev/null || true`" | |
771 | class="`cat $i/bDeviceClass 2> /dev/null || true`" | |
772 | /lib/udev/VBoxCreateUSBNode.sh "$major" "$minor" "$class" vbox 2>/dev/null | |
773 | fi | |
774 | done | |
1403ac49 | 775 | |
d8ed80f4 | 776 | cat << 'EOF' |
3ee6b9d9 | 777 | You must install vboxdrv kernel module for this software to work: |
7841ddfd ER |
778 | kernel-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} |
779 | ||
780 | Additionally you might want to install: | |
d2a7514f | 781 | kernel-misc-vboxnetadp-%{version}-%{rel}@%{_kernel_ver_str} |
05f12a30 | 782 | kernel-misc-vboxnetflt-%{version}-%{rel}@%{_kernel_ver_str} |
59d12745 | 783 | kernel-misc-vboxpci-%{version}-%{rel}@%{_kernel_ver_str} |
05f12a30 | 784 | |
fa974331 | 785 | On Guest Linux system you might want to install: |
dc0a2786 | 786 | kernel-misc-vboxguest-%{version}-%{rel}@%{_kernel_ver_str} |
ecfe25a3 | 787 | kernel-misc-vboxsf-%{version}-%{rel}@%{_kernel_ver_str} |
735b33d6 | 788 | kernel-video-vboxvideo-%{version}-%{rel}@%{_kernel_ver_str} |
7841ddfd | 789 | |
d8ed80f4 | 790 | EOF |
791 | ||
3b63d3e8 | 792 | %postun |
793 | if [ "$1" = "0" ]; then | |
794 | %groupremove vbox | |
795 | fi | |
796 | ||
07e9b84d | 797 | %post guest |
31e46441 ER |
798 | /sbin/chkconfig --add vboxservice |
799 | %service vboxservice restart | |
07e9b84d | 800 | |
b93128e2 | 801 | %preun guest |
07e9b84d | 802 | if [ "$1" = "0" ]; then |
31e46441 ER |
803 | /sbin/chkconfig --del vboxservice |
804 | %service vboxservice -q stop | |
07e9b84d ER |
805 | fi |
806 | ||
2bd15040 ER |
807 | %pre -n lightdm-greeter-vbox |
808 | %addusertogroup xdm vbox | |
809 | ||
48363591 | 810 | %post -n kernel%{_alt_kernel}-misc-vboxdrv |
811 | %depmod %{_kernel_ver} | |
ece7f2f1 | 812 | %vbox_kernel_post -d vboxdrv VirtualBox Support Driver |
48363591 | 813 | |
270f67bc | 814 | %preun -n kernel%{_alt_kernel}-misc-vboxdrv |
815 | if [ "$1" = "0" ]; then | |
816 | %service vboxdrv stop | |
270f67bc | 817 | fi |
818 | ||
ece7f2f1 | 819 | %postun -n kernel%{_alt_kernel}-misc-vboxdrv |
d2a7514f ŁK |
820 | %depmod %{_kernel_ver} |
821 | ||
ece7f2f1 | 822 | %post -n kernel%{_alt_kernel}-misc-vboxnetadp |
d2a7514f | 823 | %depmod %{_kernel_ver} |
ece7f2f1 | 824 | %vbox_kernel_post -d vboxnetadp VirtualBox Network HostOnly driver |
d2a7514f | 825 | |
c1cd3b9a | 826 | %preun -n kernel%{_alt_kernel}-misc-vboxnetadp |
827 | if [ "$1" = "0" ]; then | |
828 | %service vboxnetadp stop | |
c1cd3b9a | 829 | fi |
830 | ||
ece7f2f1 | 831 | %postun -n kernel%{_alt_kernel}-misc-vboxnetadp |
1dda2f69 | 832 | %depmod %{_kernel_ver} |
833 | ||
ece7f2f1 | 834 | %post -n kernel%{_alt_kernel}-misc-vboxnetflt |
1dda2f69 | 835 | %depmod %{_kernel_ver} |
ece7f2f1 | 836 | %vbox_kernel_post -d vboxnetflt VirtualBox Network Filter driver |
1dda2f69 | 837 | |
11848f5b | 838 | %preun -n kernel%{_alt_kernel}-misc-vboxnetflt |
839 | if [ "$1" = "0" ]; then | |
840 | %service vboxnetflt stop | |
11848f5b | 841 | fi |
842 | ||
ece7f2f1 | 843 | %postun -n kernel%{_alt_kernel}-misc-vboxnetflt |
59d12745 | 844 | %depmod %{_kernel_ver} |
59d12745 | 845 | |
ece7f2f1 | 846 | %post -n kernel%{_alt_kernel}-misc-vboxpci |
59d12745 | 847 | %depmod %{_kernel_ver} |
ece7f2f1 | 848 | %vbox_kernel_post -d vboxpci VirtualBox PCI passthrough driver |
59d12745 KK |
849 | |
850 | %preun -n kernel%{_alt_kernel}-misc-vboxpci | |
851 | if [ "$1" = "0" ]; then | |
852 | %service vboxpci stop | |
59d12745 KK |
853 | fi |
854 | ||
ece7f2f1 | 855 | %postun -n kernel%{_alt_kernel}-misc-vboxpci |
74268e47 | 856 | %depmod %{_kernel_ver} |
857 | ||
ece7f2f1 JR |
858 | %post -n kernel%{_alt_kernel}-misc-vboxguest |
859 | %depmod %{_kernel_ver} | |
860 | %vbox_kernel_post -d vboxguest VirtualBox Guest additions driver | |
861 | ||
862 | %preun -n kernel%{_alt_kernel}-misc-vboxguest | |
863 | if [ "$1" = "0" ]; then | |
864 | %service vboxguest stop | |
865 | fi | |
866 | ||
867 | %postun -n kernel%{_alt_kernel}-misc-vboxguest | |
74268e47 | 868 | %depmod %{_kernel_ver} |
869 | ||
ece7f2f1 JR |
870 | %post -n kernel%{_alt_kernel}-misc-vboxsf |
871 | %depmod %{_kernel_ver} | |
872 | %vbox_kernel_post -d vboxsf VirtualBox Host file system access (Shared Folders) | |
873 | ||
ecfe25a3 | 874 | %preun -n kernel%{_alt_kernel}-misc-vboxsf |
ca8701ad | 875 | if [ "$1" = "0" ]; then |
ecfe25a3 | 876 | %service vboxsf stop |
ca8701ad | 877 | fi |
878 | ||
ece7f2f1 JR |
879 | %postun -n kernel%{_alt_kernel}-misc-vboxsf |
880 | %depmod %{_kernel_ver} | |
881 | ||
735b33d6 | 882 | %post -n kernel%{_alt_kernel}-video-vboxvideo |
67a4f3c1 | 883 | %depmod %{_kernel_ver} |
884 | ||
735b33d6 | 885 | %postun -n kernel%{_alt_kernel}-video-vboxvideo |
67a4f3c1 | 886 | %depmod %{_kernel_ver} |
887 | ||
ece7f2f1 JR |
888 | %post kernel-init-host |
889 | /sbin/chkconfig --add vboxdrv | |
890 | /sbin/chkconfig --add vboxnetadp | |
891 | /sbin/chkconfig --add vboxnetflt | |
892 | /sbin/chkconfig --add vboxpci | |
893 | %systemd_reload | |
894 | ||
895 | %preun kernel-init-host | |
896 | if [ "$1" = "0" ]; then | |
897 | /sbin/chkconfig --del vboxdrv | |
898 | /sbin/chkconfig --del vboxnetadp | |
899 | /sbin/chkconfig --del vboxnetflt | |
900 | /sbin/chkconfig --del vboxpci | |
901 | fi | |
902 | ||
903 | %postun kernel-init-host | |
904 | %systemd_reload | |
905 | ||
906 | %post kernel-init-guest | |
907 | /sbin/chkconfig --add vboxguest | |
908 | /sbin/chkconfig --add vboxsf | |
909 | %systemd_reload | |
910 | ||
911 | %preun kernel-init-guest | |
912 | if [ "$1" = "0" ]; then | |
913 | /sbin/chkconfig --del vboxguest | |
914 | /sbin/chkconfig --del vboxsf | |
915 | fi | |
916 | ||
917 | %postun kernel-init-guest | |
918 | %systemd_reload | |
919 | ||
d1c4ec5b | 920 | %if %{with userspace} |
48363591 | 921 | %files |
922 | %defattr(644,root,root,755) | |
23790586 ER |
923 | %dir %{_libdir}/%{pname} |
924 | %dir %{_libdir}/%{pname}/ExtensionPacks | |
925 | %dir %{_libdir}/%{pname}/ExtensionPacks/VNC | |
926 | %dir %{_libdir}/%{pname}/ExtensionPacks/VNC/linux* | |
927 | %dir %{_libdir}/%{pname}/additions | |
928 | %dir %{_libdir}/%{pname}/components | |
929 | %dir %{_libdir}/%{pname}/nls | |
85b005e2 | 930 | %attr(755,root,root) %{_bindir}/VBoxBFE |
931 | %attr(755,root,root) %{_bindir}/VBoxHeadless | |
932 | %attr(755,root,root) %{_bindir}/VBoxManage | |
933 | %attr(755,root,root) %{_bindir}/VBoxSDL | |
934 | %attr(755,root,root) %{_bindir}/VBoxSVC | |
935 | %attr(755,root,root) %{_bindir}/VBoxTunctl | |
936 | %attr(755,root,root) %{_bindir}/VBoxXPCOMIPCD | |
48363591 | 937 | %attr(755,root,root) %{_bindir}/VirtualBox |
c11f39b3 | 938 | %attr(755,root,root) /sbin/mount.vdi |
23790586 ER |
939 | %attr(755,root,root) %{_libdir}/%{pname}/DBGCPlugInDiggers.so |
940 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAuth.so | |
941 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAuthSimple.so | |
942 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAutostart | |
943 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxBFE | |
944 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxBalloonCtrl | |
23790586 ER |
945 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDbg.so |
946 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDD2.so | |
947 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDD.so | |
948 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDDU.so | |
949 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDragAndDropSvc.so | |
950 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxExtPackHelperApp | |
951 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxGuestControlSvc.so | |
952 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxGuestPropSvc.so | |
953 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxHeadless | |
954 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxHostChannel.so | |
955 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxKeyboard.so | |
956 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxManage | |
8c76fad0 | 957 | %if %{with doc} |
23790586 | 958 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxManageHelp |
8c76fad0 | 959 | %endif |
23790586 ER |
960 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetAdpCtl |
961 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetDHCP | |
962 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLhostcrutil.so | |
963 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLhosterrorspu.so | |
964 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLrenderspu.so | |
965 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxPython*.so | |
966 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM.so | |
f701b529 | 967 | %ifarch %{ix86} |
23790586 ER |
968 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM32.so |
969 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM64.so | |
f701b529 | 970 | %endif |
23790586 ER |
971 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxRT.so |
972 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSDL | |
973 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedClipboard.so | |
974 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedCrOpenGL.so | |
975 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedFolders.so | |
976 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSVC | |
977 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSysInfo.sh | |
978 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxTestOGL | |
979 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxTunctl | |
980 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVMM.so | |
981 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVMMPreload | |
982 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMC.so | |
983 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMIPCD | |
984 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOM.so | |
985 | %attr(755,root,root) %{_libdir}/%{pname}/VirtualBox | |
986 | %attr(755,root,root) %{_libdir}/%{pname}/VirtualBox-wrapper.sh | |
987 | %attr(755,root,root) %{_libdir}/%{pname}/ExtensionPacks/VNC/linux*/VBoxVNC*.so | |
988 | %{_libdir}/%{pname}/VBoxDD2GC.gc | |
989 | %{_libdir}/%{pname}/VBoxDDGC.gc | |
990 | %{_libdir}/%{pname}/VMMGC.gc | |
991 | %{_libdir}/%{pname}/VBoxDD2R0.r0 | |
992 | %{_libdir}/%{pname}/VBoxDDR0.r0 | |
993 | %{_libdir}/%{pname}/VMMR0.r0 | |
994 | #%{_libdir}/%{pname}/EfiThunk | |
995 | %{_libdir}/%{pname}/VBoxEFI32.fd | |
996 | %{_libdir}/%{pname}/VBoxEFI64.fd | |
997 | %{_libdir}/%{pname}/components/VBoxXPCOMBase.xpt | |
998 | %{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack.xml | |
999 | %{_libdir}/%{pname}/components/VirtualBox_XPCOM.xpt | |
1000 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxC.so | |
1001 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxSVCM.so | |
1002 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxXPCOMIPCC.so | |
1003 | %lang(bg) %{_libdir}/%{pname}/nls/*_bg.qm | |
1004 | %lang(ca) %{_libdir}/%{pname}/nls/*_ca.qm | |
1005 | %lang(ca_VA) %{_libdir}/%{pname}/nls/*_ca_VA.qm | |
1006 | %lang(cs) %{_libdir}/%{pname}/nls/*_cs.qm | |
1007 | %lang(da) %{_libdir}/%{pname}/nls/*_da.qm | |
1008 | %lang(de) %{_libdir}/%{pname}/nls/*_de.qm | |
1009 | %lang(en) %{_libdir}/%{pname}/nls/*_en.qm | |
1010 | %lang(es) %{_libdir}/%{pname}/nls/*_es.qm | |
1011 | %lang(eu) %{_libdir}/%{pname}/nls/*_eu.qm | |
1012 | %lang(fi) %{_libdir}/%{pname}/nls/*_fa_IR.qm | |
1013 | %lang(fi) %{_libdir}/%{pname}/nls/*_fi.qm | |
1014 | %lang(fr) %{_libdir}/%{pname}/nls/*_fr.qm | |
1015 | %lang(gl_ES) %{_libdir}/%{pname}/nls/*_gl_ES.qm | |
1016 | %lang(hu) %{_libdir}/%{pname}/nls/*_hu.qm | |
1017 | %lang(id) %{_libdir}/%{pname}/nls/*_id.qm | |
1018 | %lang(it) %{_libdir}/%{pname}/nls/*_it.qm | |
1019 | %lang(ja) %{_libdir}/%{pname}/nls/*_ja.qm | |
1020 | %lang(km_KH) %{_libdir}/%{pname}/nls/*_km_KH.qm | |
1021 | %lang(ko) %{_libdir}/%{pname}/nls/*_ko.qm | |
1022 | %lang(lt) %{_libdir}/%{pname}/nls/*_lt.qm | |
1023 | %lang(nl) %{_libdir}/%{pname}/nls/*_nl.qm | |
1024 | %lang(pl) %{_libdir}/%{pname}/nls/*_pl.qm | |
1025 | %lang(pt) %{_libdir}/%{pname}/nls/*_pt.qm | |
1026 | %lang(pt_BR) %{_libdir}/%{pname}/nls/*_pt_BR.qm | |
1027 | %lang(ro) %{_libdir}/%{pname}/nls/*_ro.qm | |
1028 | %lang(ru) %{_libdir}/%{pname}/nls/*_ru.qm | |
1029 | %lang(sk) %{_libdir}/%{pname}/nls/*_sk.qm | |
1030 | %lang(sr) %{_libdir}/%{pname}/nls/*_sr.qm | |
1031 | %lang(sv) %{_libdir}/%{pname}/nls/*_sv.qm | |
1032 | %lang(tr) %{_libdir}/%{pname}/nls/*_tr.qm | |
1033 | %lang(uk) %{_libdir}/%{pname}/nls/*_uk.qm | |
1034 | %lang(zh_CN) %{_libdir}/%{pname}/nls/*_zh_CN.qm | |
1035 | %lang(zh_TW) %{_libdir}/%{pname}/nls/*_zh_TW.qm | |
9ce724ed | 1036 | %{_pixmapsdir}/virtualbox.png |
dca6c443 | 1037 | %{_desktopdir}/*.desktop |
23790586 ER |
1038 | %{_libdir}/%{pname}/icons |
1039 | %{_libdir}/%{pname}/virtualbox.xml | |
09c79ddb | 1040 | |
12db98a7 JR |
1041 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules |
1042 | %attr(755,root,root) /lib/udev/VBoxCreateUSBNode.sh | |
1043 | ||
ffb38bb6 | 1044 | %files additions |
9dda6415 | 1045 | %defattr(644,root,root,755) |
23790586 | 1046 | %{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso |
ffb38bb6 | 1047 | |
1067d08d ER |
1048 | %files guest |
1049 | %defattr(644,root,root,755) | |
c11f39b3 | 1050 | %attr(755,root,root) /sbin/mount.vboxsf |
07e9b84d | 1051 | %attr(754,root,root) /etc/rc.d/init.d/vboxservice |
c0372ee9 ER |
1052 | %attr(755,root,root) %{_bindir}/VBoxControl |
1053 | %attr(755,root,root) %{_bindir}/VBoxService | |
1054 | ||
1055 | %files guest-x11 | |
3d9b19d8 | 1056 | %defattr(644,root,root,755) |
785c600a ER |
1057 | # NOTE: unfinished, should contain .desktop files for starting up mouse |
1058 | # integration and other desktop services | |
89973837 | 1059 | # NOTE: the filelist is incomplete too |
90de3b27 | 1060 | %attr(755,root,root) %{_bindir}/VBoxClient |
90de3b27 ER |
1061 | /etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh |
1062 | /etc/xdg/autostart/vboxclient.desktop | |
1067d08d | 1063 | |
23790586 ER |
1064 | %attr(755,root,root) %{_libdir}/%{pname}/additions/autorun.sh |
1065 | %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd | |
1066 | %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd-service | |
1067 | %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd-x11 | |
744bc35e | 1068 | |
21a1d8ab ER |
1069 | %if %{with webservice} |
1070 | %files webservice | |
1071 | %defattr(644,root,root,755) | |
1072 | %attr(755,root,root) %{_libdir}/%{pname}/vboxwebsrv | |
1073 | %attr(755,root,root) %{_libdir}/%{pname}/webtest | |
1074 | %endif | |
1075 | ||
8d08b907 | 1076 | %if %{with lightdm} |
9e4dd6a9 | 1077 | %files -n lightdm-greeter-vbox |
8d08b907 ER |
1078 | %defattr(644,root,root,755) |
1079 | %attr(755,root,root) %{_sbindir}/vbox-greeter | |
1080 | %{_datadir}/xgreeters/vbox-greeter.desktop | |
1081 | %endif | |
1082 | ||
3613936b JR |
1083 | %files -n pam-pam_vbox |
1084 | %defattr(644,root,root,755) | |
3ee6b9d9 | 1085 | %attr(755,root,root) /%{_lib}/security/pam_vbox.so |
3613936b | 1086 | |
90de3b27 ER |
1087 | %if %{with doc} |
1088 | %files doc | |
1089 | %defattr(644,root,root,755) | |
f0a66b84 JR |
1090 | # this is a symlink... |
1091 | %doc %{_libdir}/%{pname}/UserManual.pdf | |
6ee3b66d | 1092 | %lang(fr) %doc %{_libdir}/%{pname}/UserManual_fr_FR.pdf |
f0a66b84 | 1093 | # ..to this file |
90de3b27 | 1094 | %doc %{outdir}/UserManual.pdf |
d43f5558 | 1095 | %lang(fr) %doc %{outdir}/UserManual_fr_FR.pdf |
90de3b27 ER |
1096 | %endif |
1097 | ||
09c79ddb | 1098 | %files -n xorg-driver-video-vboxvideo |
1099 | %defattr(644,root,root,755) | |
1100 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/vboxvideo_drv.so | |
27a1aef6 ER |
1101 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/vboxvideo_dri.so |
1102 | # vboxvideo_dri.so deps | |
1067d08d | 1103 | %attr(755,root,root) %{_libdir}/VBoxOGLarrayspu.so |
27a1aef6 ER |
1104 | %attr(755,root,root) %{_libdir}/VBoxOGLcrutil.so |
1105 | %attr(755,root,root) %{_libdir}/VBoxOGLerrorspu.so | |
1106 | %attr(755,root,root) %{_libdir}/VBoxOGLfeedbackspu.so | |
1107 | %attr(755,root,root) %{_libdir}/VBoxOGLpackspu.so | |
1108 | %attr(755,root,root) %{_libdir}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 1109 | %endif |
48363591 | 1110 | |
d1c4ec5b | 1111 | %if %{with kernel} |
ff1f2719 JR |
1112 | %files kernel-init-host |
1113 | %defattr(644,root,root,755) | |
1114 | %attr(754,root,root) /etc/rc.d/init.d/vboxdrv | |
1115 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetadp | |
1116 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetflt | |
1117 | %attr(754,root,root) /etc/rc.d/init.d/vboxpci | |
1118 | %{systemdunitdir}/vboxdrv.service | |
1119 | %{systemdunitdir}/vboxnetadp.service | |
1120 | %{systemdunitdir}/vboxnetflt.service | |
1121 | %{systemdunitdir}/vboxpci.service | |
1122 | ||
1123 | %files kernel-init-guest | |
74268e47 | 1124 | %defattr(644,root,root,755) |
dc0a2786 | 1125 | %attr(754,root,root) /etc/rc.d/init.d/vboxguest |
ff1f2719 | 1126 | %attr(754,root,root) /etc/rc.d/init.d/vboxsf |
35ccdfcc | 1127 | %{systemdunitdir}/vboxguest.service |
ff1f2719 JR |
1128 | %{systemdunitdir}/vboxsf.service |
1129 | ||
1130 | %files -n kernel%{_alt_kernel}-misc-vboxguest | |
1131 | %defattr(644,root,root,755) | |
1132 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxguest.conf | |
dc0a2786 | 1133 | /lib/modules/%{_kernel_ver}/misc/vboxguest.ko* |
74268e47 | 1134 | |
d1c4ec5b | 1135 | %files -n kernel%{_alt_kernel}-misc-vboxdrv |
48363591 | 1136 | %defattr(644,root,root,755) |
35ccdfcc | 1137 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxdrv.conf |
d1c4ec5b | 1138 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko* |
74268e47 | 1139 | |
d2a7514f ŁK |
1140 | %files -n kernel%{_alt_kernel}-misc-vboxnetadp |
1141 | %defattr(644,root,root,755) | |
35ccdfcc | 1142 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxnetadp.conf |
d2a7514f ŁK |
1143 | /lib/modules/%{_kernel_ver}/misc/vboxnetadp.ko* |
1144 | ||
1dda2f69 | 1145 | %files -n kernel%{_alt_kernel}-misc-vboxnetflt |
1146 | %defattr(644,root,root,755) | |
35ccdfcc | 1147 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxnetflt.conf |
1dda2f69 | 1148 | /lib/modules/%{_kernel_ver}/misc/vboxnetflt.ko* |
1149 | ||
59d12745 KK |
1150 | %files -n kernel%{_alt_kernel}-misc-vboxpci |
1151 | %defattr(644,root,root,755) | |
35ccdfcc | 1152 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxpci.conf |
59d12745 KK |
1153 | /lib/modules/%{_kernel_ver}/misc/vboxpci.ko* |
1154 | ||
ecfe25a3 | 1155 | %files -n kernel%{_alt_kernel}-misc-vboxsf |
74268e47 | 1156 | %defattr(644,root,root,755) |
35ccdfcc | 1157 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/vboxsf.conf |
ecfe25a3 | 1158 | /lib/modules/%{_kernel_ver}/misc/vboxsf.ko* |
67a4f3c1 | 1159 | |
735b33d6 | 1160 | %files -n kernel%{_alt_kernel}-video-vboxvideo |
67a4f3c1 | 1161 | %defattr(644,root,root,755) |
1162 | /lib/modules/%{_kernel_ver}/misc/vboxvideo.ko* | |
1163 | %endif |