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