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