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