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