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