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