]>
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 | |
b8593b70 | 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} |
b8593b70 | 50 | Version: 5.2.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 |
b8593b70 | 55 | # Source0-md5: 2017d33ff65c2a80448a7be9e2ff434d |
744bc35e | 56 | Source1: http://download.virtualbox.org/virtualbox/%{version}/VBoxGuestAdditions_%{version}.iso |
b8593b70 | 57 | # Source1-md5: d64765ac94463b9fd0c7599d6e63c739 |
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 |
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 |
fdf4c273 | 132 | BuildRequires: kBuild >= 0.1.9998.3093 |
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 | |
5750e90b JP |
194 | %define filterout -Werror=format-security |
195 | ||
48363591 | 196 | %description |
393ec35d | 197 | Oracle VirtualBox is a general-purpose full virtualizer for x86 |
48363591 | 198 | hardware. Targeted at server, desktop and embedded use, it is now the |
199 | only professional-quality virtualization solution that is also Open | |
200 | Source Software. | |
201 | ||
393ec35d | 202 | Some of the features of VirtualBox are: |
48363591 | 203 | |
393ec35d | 204 | Modularity: VirtualBox has an extremely modular design with |
48363591 | 205 | well-defined internal programming interfaces and a client/server |
206 | design. This makes it easy to control it from several interfaces at | |
207 | once: for example, you can start a virtual machine in a typical | |
208 | virtual machine GUI and then control that machine from the command | |
393ec35d ER |
209 | line. VirtualBox also comes with a full Software Development Kit: even |
210 | though it is Open Source Software, you don't have to hack the source | |
211 | to write a new interface for VirtualBox. | |
48363591 | 212 | |
213 | Virtual machine descriptions in XML: the configuration settings of | |
214 | virtual machines are stored entirely in XML and are independent of the | |
215 | local machines. Virtual machine definitions can therefore easily be | |
216 | ported to other computers. | |
217 | ||
1067d08d ER |
218 | You should install this package in your Host OS. |
219 | ||
fd8fc899 | 220 | %description -l pl.UTF-8 |
393ec35d ER |
221 | Oracle VirtualBox jest emulatorem sprzętu x86. Kierowany do zastosowań |
222 | serwerowych, desktopowych oraz wbudowanych jest obecnie jedynym | |
223 | wysokiej jakości rozwiązaniem wirtualizacyjnym dostępnym również jako | |
224 | Otwarte Oprogramowanie. | |
48363591 | 225 | |
fd8fc899 | 226 | Przykładowe cechy VirtualBoksa: |
48363591 | 227 | |
393ec35d | 228 | Modularność: VirtualBox jest wysoce zmodularyzowanym produktem z |
fd8fc899 JR |
229 | dobrze zaprojektowanym wewnętrznym interfejsem programowym typu |
230 | klient/serwer. Dzięki temu można łatwo kontrolować go za pomocą | |
231 | różnych interfejsów. Można na przykład uruchomić maszynę wirtualną z | |
232 | poziomu interfejsu graficznego, a później kontrolować ją z linii | |
393ec35d ER |
233 | poleceń. VirtualBox dostarcza również pełny pakiet deweloperski, co |
234 | pozwala stworzyć dowolny inny interfejs zarządzania maszyną wirtualną. | |
48363591 | 235 | |
fd8fc899 JR |
236 | Opisy maszyn wirtualnych w XML-u: konfiguracje poszczególnych maszyn |
237 | wirtualnych są w całości przechowywane w XML-u i są niezależne od | |
238 | lokalnej maszyny. Dzięki temu można szybko i łatwo przenieść | |
239 | konfigurację maszyny wirtualnej na inny komputer. | |
48363591 | 240 | |
501bee39 ER |
241 | %package gui |
242 | Summary: Qt GUI part for VirtualBox | |
243 | Group: X11/Applications | |
244 | Requires: %{name} = %{version}-%{release} | |
d19b622b | 245 | Requires: Qt5Core >= %{qtver} |
923cea18 | 246 | Requires: Qt5Gui-platform-xcb >= %{qtver} |
501bee39 ER |
247 | Requires: desktop-file-utils |
248 | Requires: desktop-file-utils | |
249 | Requires: fontconfig | |
250 | Requires: fonts-Type1-urw | |
44a0c82d ER |
251 | Requires: gtk-update-icon-cache |
252 | Requires: hicolor-icon-theme | |
501bee39 | 253 | Requires: shared-mime-info |
923cea18 JR |
254 | Suggests: Qt5Gui-platform-xcb-glx >= %{qtver} |
255 | Suggests: Qt5Gui-platform-xcb-egl >= %{qtver} | |
501bee39 | 256 | Suggests: gxmessage |
6f37454e | 257 | Conflicts: %{name} < 4.3.8-3 |
501bee39 ER |
258 | |
259 | %description gui | |
260 | Qt GUI part for VirtualBox. | |
261 | ||
90de3b27 ER |
262 | %package doc |
263 | Summary: VirtualBox documentation | |
264 | Group: Documentation | |
265 | ||
266 | %description doc | |
267 | This package contains VirtualBox User Manual. | |
268 | ||
ffb38bb6 ER |
269 | %package additions |
270 | Summary: VirtualBox Guest Additions | |
271 | Group: Base | |
b9cc0b23 | 272 | Requires: %{name} = %{version} |
44a0c82d ER |
273 | %if "%{_rpmversion}" >= "5" |
274 | BuildArch: noarch | |
275 | %endif | |
ffb38bb6 | 276 | |
00a4a7ca | 277 | %description additions |
ffb38bb6 ER |
278 | VirtualBox Guest Additions. |
279 | ||
280 | This package contains ISO9660 image with drivers for Guest OS. | |
281 | ||
1067d08d ER |
282 | You should install this package in your Host OS. |
283 | ||
284 | %package guest | |
c0372ee9 ER |
285 | Summary: VirtualBox Guest tools |
286 | Group: Base | |
551622b8 | 287 | Provides: group(vboxsf) |
4365ecaf | 288 | Requires(post): systemd-units >= 38 |
551622b8 ER |
289 | Requires(post,preun): /sbin/chkconfig |
290 | Requires(postun): /usr/sbin/groupdel | |
291 | Requires(pre): /usr/bin/getgid | |
292 | Requires(pre): /usr/sbin/groupadd | |
ffb104d5 | 293 | Requires: rc-scripts |
2e3636e9 | 294 | Requires: systemd-units >= 38 |
3d9b19d8 ER |
295 | Suggests: kernel(vboxguest) |
296 | Suggests: kernel(vboxsf) | |
bf131a21 | 297 | Suggests: pam-pam_vbox |
c0372ee9 ER |
298 | |
299 | %description guest | |
300 | Tools that utilize kernel modules for supporting integration with the | |
301 | Host, including file sharing. | |
302 | ||
3d9b19d8 ER |
303 | You should install this package in your Guest OS for base VirtualBox |
304 | communication | |
c0372ee9 ER |
305 | |
306 | %package guest-x11 | |
307e824c ER |
307 | Summary: VirtualBox Guest X11 Additions |
308 | Group: X11/Applications | |
c0372ee9 | 309 | Requires: %{name}-guest = %{version}-%{release} |
307e824c | 310 | Requires: xorg-app-xrandr |
1067d08d | 311 | Requires: xorg-driver-video-vboxvideo = %{version}-%{release} |
bff0e4ba | 312 | Requires: kernel(vboxvideo) |
873b17cf | 313 | Obsoletes: xorg-driver-input-vboxmouse < %{version}-%{release} |
1067d08d | 314 | |
c0372ee9 | 315 | %description guest-x11 |
3d9b19d8 ER |
316 | Tools for X11 session that utilize kernel modules for supporting |
317 | integration with the Host, like tracking of mouse pointer movement and | |
318 | X.org X11 video and mouse drivers | |
1067d08d | 319 | |
c0372ee9 | 320 | You should install this package in your Guest OS for X11 session. |
1067d08d | 321 | |
21a1d8ab ER |
322 | %package webservice |
323 | Summary: VirtualBox Web Service | |
324 | Group: Applications/Emulators | |
325 | Requires: %{name} = %{version}-%{release} | |
326 | ||
327 | %description webservice | |
328 | This package contains VirtualBox web service API daemon. It allows to | |
329 | control virtual machines via web interface. | |
330 | ||
9e4dd6a9 | 331 | %package -n lightdm-greeter-vbox |
8d08b907 ER |
332 | Summary: VirtualBox greeter for lightdm |
333 | Group: Themes | |
22380dc7 ER |
334 | # NOTE: '#' in url is lost because rpm treats it as comment, even hacking with |
335 | # macros doesn't help as rpmbuild takes final result to parse | |
8d08b907 | 336 | URL: http://www.virtualbox.org/manual/ch09.html#autologon_unix_lightdm |
650ee651 | 337 | Requires: %{name} = %{version}-%{release} |
4365ecaf | 338 | Requires: kernel(vboxguest) |
8d08b907 | 339 | Requires: lightdm >= 1.0.1 |
7d778590 | 340 | Requires: pam-pam_vbox = %{version}-%{release} |
8d08b907 ER |
341 | Provides: lightdm-greeter |
342 | ||
9e4dd6a9 | 343 | %description -n lightdm-greeter-vbox |
8d08b907 ER |
344 | VirtualBox greeter for LightDM. |
345 | ||
3613936b JR |
346 | %package -n pam-pam_vbox |
347 | Summary: PAM module to perform automated guest logons | |
348 | Group: Base | |
349 | ||
350 | %description -n pam-pam_vbox | |
3ee6b9d9 ER |
351 | PAM module (Pluggable Authentication Module) which can be used to |
352 | perform automated guest logons. | |
3613936b | 353 | |
fbea1005 | 354 | %package -n xorg-driver-video-vboxvideo |
393ec35d ER |
355 | Summary: X.org video driver for VirtualBox guest OS |
356 | Summary(pl.UTF-8): Sterownik grafiki dla systemu gościa w VirtualBoksie | |
fbea1005 | 357 | Group: X11/Applications |
20b8335d | 358 | Requires: Mesa-dri-driver-swrast |
0ad0a572 | 359 | Requires: xorg-driver-video-modesetting |
fbea1005 ER |
360 | Requires: xorg-xserver-libdri >= 1.7.4 |
361 | Requires: xorg-xserver-server >= 1.0.99.901 | |
a4654d40 | 362 | %{?requires_xorg_xserver_videodrv} |
7e84622a ER |
363 | Provides: OpenGL = 2.1 |
364 | Provides: OpenGL-GLX = 1.3 | |
7e84622a | 365 | Provides: xorg-xserver-module(glx) |
fbea1005 ER |
366 | |
367 | %description -n xorg-driver-video-vboxvideo | |
393ec35d | 368 | X.org video driver for VirtualBox guest OS. |
fbea1005 ER |
369 | |
370 | %description -n xorg-driver-video-vboxvideo -l pl.UTF-8 | |
393ec35d | 371 | Sterownik grafiki dla systemu gościa w VirtualBoksie. |
fbea1005 | 372 | |
988a8f09 ER |
373 | %package -n dkms-vboxguest |
374 | Summary: VirtualBox kernel modules source for Linux Guest | |
375 | Summary(pl.UTF-8): Moduły VirtualBoksa do jądra Linuksa dla systemu gościa | |
376 | License: GPL v2+ | |
377 | Group: Base/Kernel | |
62c43b99 | 378 | Requires: dkms |
988a8f09 ER |
379 | %if "%{_rpmversion}" >= "5" |
380 | BuildArch: noarch | |
381 | %endif | |
382 | ||
383 | %description -n dkms-vboxguest | |
384 | This package contains DKMS-ready VirtualBox Guest Additions for Linux | |
385 | Module, host file system access (Shared Folders) and DRM support for | |
386 | Linux guest system. | |
387 | ||
388 | %description -n dkms-vboxguest -l pl.UTF-8 | |
389 | Ten pakiet zawiera moduł jądra Linuksa vboxguest dla VirtualBoksa - | |
390 | dodatki dla systemu gościa, dostęp do plików systemu głównego z | |
391 | poziomu systemu gościa i sterownik obsługi DRM. | |
392 | ||
393 | %package -n dkms-vboxhost | |
394 | Summary: VirtualBox Support Drivers source | |
395 | Summary(pl.UTF-8): Moduły jądra Linuksa dla VirtualBoksa | |
396 | License: GPL v2+ | |
397 | Group: Base/Kernel | |
62c43b99 | 398 | Requires: dkms |
988a8f09 ER |
399 | %if "%{_rpmversion}" >= "5" |
400 | BuildArch: noarch | |
401 | %endif | |
402 | ||
403 | %description -n dkms-vboxhost | |
404 | This package contains DKMS enabled sourcecode of VirtualBox Support | |
405 | Driver, Network Adapter Driver, Network Filter Driver and PCI card | |
406 | passthrough driver that works as host proxy between guest and PCI | |
407 | hardware. | |
408 | ||
409 | %description -n dkms-vboxhost -l pl.UTF-8 | |
410 | Ten pakiet zawiera sterownik wsparcia dla systemu głównego, sterownik | |
411 | witrualnej karty sieciowej, sterownik filtrowania sieci dla systemu | |
412 | głównego oraz sterownik, ktory działa jako proxy między gościem i | |
413 | gospodarzem sprzętu PCI. | |
414 | ||
18adabff | 415 | # KERNEL PACKAGES |
b980c81c | 416 | |
18adabff | 417 | # KEEP ALL REGULAR SUBPACKAGES BEFORE KERNEL PACKAGES. |
b980c81c | 418 | |
163ddb28 JR |
419 | %define kernel_pkg()\ |
420 | %package -n kernel%{_alt_kernel}-virtualbox-guest\ | |
421 | Summary: VirtualBox kernel modules for Linux Guest\ | |
422 | Summary(pl.UTF-8): Moduły VirtualBoksa do jądra Linuksa dla systemu gościa\ | |
423 | Release: %{rel}@%{_kernel_ver_str}\ | |
424 | Group: Base/Kernel\ | |
425 | Requires(post,postun): /sbin/depmod\ | |
426 | Requires(post): systemd-units >= 38\ | |
427 | Requires: dev >= 2.9.0-7\ | |
428 | Requires: systemd-units >= 38\ | |
163ddb28 | 429 | %requires_releq_kernel\ |
eb3ec0e6 | 430 | Requires: %{releq_kernel -n drm}\ |
163ddb28 | 431 | Requires(postun): %releq_kernel\ |
163ddb28 JR |
432 | Provides: kernel(vboxguest) = %{version}-%{rel}\ |
433 | Provides: kernel(vboxsf) = %{version}-%{rel}\ | |
434 | Provides: kernel(vboxvideo) = %{version}-%{rel}\ | |
435 | Obsoletes: kernel-init-guest\ | |
436 | Conflicts: kernel%{_alt_kernel}-virtualbox-host\ | |
437 | \ | |
438 | %description -n kernel%{_alt_kernel}-virtualbox-guest\ | |
439 | This package contains VirtualBox Guest Additions for Linux Module,\ | |
440 | host file system access (Shared Folders) and DRM support for\ | |
441 | Linux guest system.\ | |
442 | \ | |
443 | %description -n kernel%{_alt_kernel}-virtualbox-guest -l pl.UTF-8\ | |
444 | Ten pakiet zawiera moduł jądra Linuksa vboxguest dla VirtualBoksa -\ | |
445 | dodatki dla systemu gościa, dostęp do plików systemu głównego z\ | |
446 | poziomu systemu gościa i sterownik obsługi DRM.\ | |
447 | \ | |
448 | %package -n kernel%{_alt_kernel}-virtualbox-host\ | |
449 | Summary: VirtualBox Support Drivers\ | |
450 | Summary(pl.UTF-8): Moduły jądra Linuksa dla VirtualBoksa\ | |
451 | Release: %{rel}@%{_kernel_ver_str}\ | |
452 | Group: Base/Kernel\ | |
453 | Requires(post,postun): /sbin/depmod\ | |
454 | Requires(post): systemd-units >= 38\ | |
455 | Requires: dev >= 2.9.0-7\ | |
163ddb28 JR |
456 | %requires_releq_kernel\ |
457 | Requires(postun): %releq_kernel\ | |
163ddb28 | 458 | Requires: systemd-units >= 38\ |
163ddb28 JR |
459 | Provides: kernel(vboxdrv) = %{version}-%{rel}\ |
460 | Provides: kernel(vboxnetadp) = %{version}-%{rel}\ | |
461 | Provides: kernel(vboxnetflt) = %{version}-%{rel}\ | |
462 | Provides: kernel(vboxpci) = %{version}-%{rel}\ | |
463 | Obsoletes: kernel-init-host\ | |
464 | \ | |
465 | %description -n kernel%{_alt_kernel}-virtualbox-host\ | |
466 | This package contains VirtualBox Support Driver, Network Adapter\ | |
467 | Driver, Network Filter Driver and PCI card passthrough driver that\ | |
468 | works as host proxy between guest and PCI hardware.\ | |
469 | \ | |
470 | %description -n kernel%{_alt_kernel}-virtualbox-host -l pl.UTF-8\ | |
471 | Ten pakiet zawiera sterownik wsparcia dla systemu głównego, sterownik\ | |
472 | witrualnej karty sieciowej, sterownik filtrowania sieci dla systemu\ | |
473 | głównego oraz sterownik, ktory działa jako proxy między gościem i\ | |
474 | gospodarzem sprzętu PCI.\ | |
475 | \ | |
476 | %if %{with kernel}\ | |
477 | %files -n kernel%{_alt_kernel}-virtualbox-guest\ | |
478 | %defattr(644,root,root,755)\ | |
479 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/virtualbox-guest.conf\ | |
8abc05df | 480 | %if %{_kernel_version_code} < %{_kernel_version_magic 4 16 0}\ |
163ddb28 | 481 | /lib/modules/%{_kernel_ver}/misc/vboxguest.ko*\ |
8abc05df | 482 | %endif\ |
163ddb28 | 483 | /lib/modules/%{_kernel_ver}/misc/vboxsf.ko*\ |
14c2cd1f | 484 | %if %{_kernel_version_code} < %{_kernel_version_magic 4 13 0}\ |
163ddb28 | 485 | /lib/modules/%{_kernel_ver}/misc/vboxvideo.ko*\ |
14c2cd1f | 486 | %endif\ |
163ddb28 JR |
487 | \ |
488 | %files -n kernel%{_alt_kernel}-virtualbox-host\ | |
489 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/virtualbox-host.conf\ | |
490 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko*\ | |
491 | /lib/modules/%{_kernel_ver}/misc/vboxnetadp.ko*\ | |
492 | /lib/modules/%{_kernel_ver}/misc/vboxnetflt.ko*\ | |
493 | /lib/modules/%{_kernel_ver}/misc/vboxpci.ko*\ | |
494 | %endif\ | |
495 | \ | |
496 | %post -n kernel%{_alt_kernel}-virtualbox-guest\ | |
497 | %depmod %{_kernel_ver}\ | |
498 | \ | |
499 | %postun -n kernel%{_alt_kernel}-virtualbox-guest\ | |
500 | %depmod %{_kernel_ver}\ | |
501 | \ | |
502 | %post -n kernel%{_alt_kernel}-virtualbox-host\ | |
503 | %depmod %{_kernel_ver}\ | |
504 | \ | |
505 | %postun -n kernel%{_alt_kernel}-virtualbox-host\ | |
506 | %depmod %{_kernel_ver}\ | |
507 | %{nil} | |
508 | ||
509 | %define build_kernel_pkg()\ | |
510 | export KERN_DIR=%{_kernelsrcdir}\ | |
511 | cd PLD-MODULE-BUILD/HostDrivers\ | |
512 | %build_kernel_modules -m vboxdrv -C vboxdrv\ | |
513 | %build_kernel_modules -m vboxnetadp -C vboxnetadp\ | |
514 | %build_kernel_modules -m vboxnetflt -C vboxnetflt\ | |
515 | %build_kernel_modules -m vboxpci -C vboxpci\ | |
516 | cd ../GuestDrivers\ | |
801a2b31 | 517 | %if %{_kernel_version_code} < %{_kernel_version_magic 4 16 0}\ |
163ddb28 JR |
518 | %build_kernel_modules -m vboxguest -C vboxguest\ |
519 | cp -a vboxguest/Module.symvers vboxsf\ | |
801a2b31 | 520 | %endif\ |
163ddb28 | 521 | %build_kernel_modules -m vboxsf -C vboxsf -c\ |
14c2cd1f | 522 | %if %{_kernel_version_code} < %{_kernel_version_magic 4 13 0}\ |
163ddb28 | 523 | %build_kernel_modules -m vboxvideo -C vboxvideo\ |
14c2cd1f | 524 | %endif\ |
163ddb28 | 525 | cd ../..\ |
801a2b31 JP |
526 | %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\ |
527 | %if %{_kernel_version_code} < %{_kernel_version_magic 4 16 0}\ | |
528 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/GuestDrivers/vboxguest/vboxguest -d misc\ | |
529 | %endif\ | |
14c2cd1f JP |
530 | %if %{_kernel_version_code} < %{_kernel_version_magic 4 13 0}\ |
531 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/GuestDrivers/vboxvideo/vboxvideo -d misc\ | |
532 | %endif\ | |
163ddb28 JR |
533 | %{nil} |
534 | ||
a59a82ea | 535 | %{?with_kernel:%{expand:%create_kernel_packages}} |
67a4f3c1 | 536 | |
48363591 | 537 | %prep |
33aeed61 | 538 | %setup -q -n %{pname}-%{version} |
e709ce6b | 539 | %patch0 -p1 |
db6f33e3 | 540 | %patch1 -p1 |
006342ee | 541 | %patch2 -p1 |
8473a80d | 542 | %patch3 -p1 |
44a0c82d | 543 | %patch4 -p1 |
9a7b1cdc | 544 | %patch5 -p1 |
44a0c82d | 545 | %patch6 -p1 |
d3884acf | 546 | %patch7 -p1 |
8d08b907 | 547 | %patch8 -p1 |
621cd96c | 548 | %patch9 -p1 |
077e37dc | 549 | %patch10 -p1 |
8c008609 | 550 | %if %{with all_langs} |
fdf4c273 | 551 | %patch11 -p0 |
8c008609 | 552 | %endif |
fdf4c273 | 553 | %patch12 -p1 |
d5e18103 | 554 | %patch13 -p1 |
fdf4c273 | 555 | %patch14 -p0 |
66afd212 | 556 | %patch15 -p0 |
1792543c | 557 | %patch16 -p0 |
07fc1266 | 558 | %patch17 -p1 |
fddcb741 | 559 | |
744bc35e JR |
560 | %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \ |
561 | -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in | |
0b6de2b7 | 562 | |
f471b832 ER |
563 | # Respect LDFLAGS |
564 | %{__sed} -i -e "s@_LDFLAGS\.%{vbox_arch}*.*=@& %{rpmldflags}@g" \ | |
565 | -i Config.kmk src/libs/xpcom18a4/Config.kmk | |
566 | ||
44a0c82d | 567 | %{__sed} -i -e 's#@INSTALL_DIR@#%{_libdir}/%{pname}#' src/VBox/Installer/linux/VBox.sh |
fa19f650 | 568 | |
bc1ca596 | 569 | %if %{with kernel} |
1794e74d ER |
570 | install -d PLD-MODULE-BUILD/{GuestDrivers,HostDrivers} |
571 | cd PLD-MODULE-BUILD | |
fdf4c273 | 572 | ../src/VBox/Additions/linux/export_modules.sh guest-modules.tar.gz |
1794e74d ER |
573 | tar -zxf guest-modules.tar.gz -C GuestDrivers |
574 | ||
fdf4c273 | 575 | ../src/VBox/HostDrivers/linux/export_modules.sh host-modules.tar.gz --without-hardening |
1794e74d ER |
576 | tar -zxf host-modules.tar.gz -C HostDrivers |
577 | cd - | |
077e37dc | 578 | %endif |
59d12745 | 579 | |
e9ed9ec1 ER |
580 | # using system kBuild package |
581 | %{__rm} -r kBuild | |
582 | ||
621cd96c ER |
583 | # use linux icon for now |
584 | cp -p src/VBox/Frontends/VirtualBox/images/os_{linux26,pld}.png | |
585 | cp -p src/VBox/Frontends/VirtualBox/images/os_{linux26,pld}_64.png | |
586 | ||
29ed465a JP |
587 | # don't force whole userspace to be built with -fPIC |
588 | # see https://www.virtualbox.org/pipermail/vbox-dev/2015-February/012863.html | |
589 | %define filterout_c -fPIC | |
590 | %define filterout_cxx -fPIC | |
591 | ||
316a5697 ER |
592 | cat <<'EOF'>> LocalConfig.kmk |
593 | %{?with_verbose:KBUILD_VERBOSE=3} | |
594 | USERNAME=%(id -un) | |
a174188e | 595 | VBOX_BUILD_PUBLISHER=_PLD |
316a5697 ER |
596 | VBOX_VERSION_STRING=$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)_PLD |
597 | XSERVER_VERSION=%(rpm -q --queryformat '%{V}\n' xorg-xserver-server-devel | awk -F. '{ print $1 $2 }' 2>/dev/null || echo ERROR) | |
598 | VBOX_USE_SYSTEM_XORG_HEADERS=1 | |
fdf4c273 | 599 | VBOX_USE_SYSTEM_GL_HEADERS=1 |
316a5697 ER |
600 | %if %{with lightdm} |
601 | VBOX_WITH_LIGHTDM_GREETER=1 | |
602 | VBOX_WITH_LIGHTDM_GREETER_PACKING=1 | |
603 | %endif | |
604 | TOOL_GCC3_CFLAGS=%{rpmcflags} | |
605 | TOOL_GCC3_CXXFLAGS=%{rpmcxxflags} | |
606 | VBOX_GCC_OPT=%{rpmcxxflags} | |
44a0c82d ER |
607 | |
608 | VBOX_PATH_APP_PRIVATE_ARCH := %{_libdir}/%{pname} | |
609 | VBOX_PATH_APP_PRIVATE := %{_datadir}/%{pname} | |
610 | VBOX_PATH_SHARED_LIBS := $(VBOX_PATH_APP_PRIVATE_ARCH) | |
611 | VBOX_WITH_ORIGIN := | |
612 | VBOX_WITH_RUNPATH := $(VBOX_PATH_APP_PRIVATE_ARCH) | |
613 | #VBOX_PATH_APP_DOCS := %{_docdir}/%{pname}-doc-%{version} | |
8c008609 | 614 | VBOX_PATH_DOCBOOK_DTD := %{_datadir}/sgml/docbook/xml-dtd-4.4 |
44a0c82d ER |
615 | |
616 | # don't build testcases to save time, they are not needed for the package | |
617 | VBOX_WITH_TESTCASES := | |
618 | VBOX_WITH_TESTSUITE := | |
640931aa JP |
619 | |
620 | VBOX_WITH_VRDP_RDESKTOP= | |
077fc60d | 621 | VBOX_WITH_MULTIVERSION_PYTHON=0 |
316a5697 ER |
622 | EOF |
623 | ||
29ed465a JP |
624 | %undefine filterout_c |
625 | %undefine filterout_cxx | |
626 | ||
fddcb741 | 627 | %build |
83ffcfa8 | 628 | %if %{with userspace} |
106d8451 | 629 | ./configure \ |
ae1bbc88 | 630 | --with-gcc="%{__cc}" \ |
631 | --with-g++="%{__cxx}" \ | |
8da42f47 | 632 | %{!?with_doc:--disable-docs} \ |
744bc35e | 633 | --disable-java \ |
5a497466 | 634 | --disable-hardening \ |
01e414ba | 635 | --disable-kmods \ |
55f7d7d3 | 636 | --enable-vnc \ |
d7e93912 | 637 | %{!?with_gui:--disable-qt} \ |
55f7d7d3 ER |
638 | %{__enable webservice} \ |
639 | %{nil} | |
48363591 | 640 | |
147c698e | 641 | . "$PWD/env.sh" |
316a5697 | 642 | kmk %{?_smp_mflags} |
d1c4ec5b | 643 | %endif |
48363591 | 644 | |
a59a82ea | 645 | %{?with_kernel:%{expand:%build_kernel_packages}} |
51ef4838 | 646 | |
48363591 | 647 | %install |
648 | rm -rf $RPM_BUILD_ROOT | |
649 | ||
d1c4ec5b | 650 | %if %{with userspace} |
c11f39b3 | 651 | install -d $RPM_BUILD_ROOT{%{_bindir},/sbin,%{_sbindir},%{_libdir}/%{pname}/ExtensionPacks} \ |
501bee39 | 652 | $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_datadir}/mime/packages} \ |
eee69130 | 653 | $RPM_BUILD_ROOT/etc/sysconfig \ |
2daf9ea4 | 654 | $RPM_BUILD_ROOT%{_sysconfdir}/vbox/autostart \ |
12db98a7 | 655 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,dri,input} \ |
4365ecaf | 656 | $RPM_BUILD_ROOT{/lib/udev,/etc/udev/rules.d} \ |
44a0c82d | 657 | $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{systemdunitdir},%{_usrsrc}} |
a70507fb | 658 | |
dca6c443 | 659 | # test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition |
632ec0b7 | 660 | if cp -al COPYING $RPM_BUILD_ROOT/COPYING; then |
dca6c443 | 661 | l=l |
44a0c82d | 662 | %{__rm} $RPM_BUILD_ROOT/COPYING |
dca6c443 ER |
663 | fi |
664 | ||
244b344b JP |
665 | install -d $RPM_BUILD_ROOT%{_datadir}/%{pname} |
666 | ||
33aeed61 | 667 | cp -a$l %{outdir}/* $RPM_BUILD_ROOT%{_libdir}/%{pname} |
244b344b JP |
668 | cp -p$l %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{pname}/VBoxGuestAdditions.iso || |
669 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/%{pname}/VBoxGuestAdditions.iso | |
48363591 | 670 | |
d7e93912 ER |
671 | %if %{without gui} |
672 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/icons | |
673 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/virtualbox.xml | |
674 | %endif | |
675 | ||
44a0c82d | 676 | # vboxvideo |
ffd7f18a | 677 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/VBoxOGL.so,%{_libdir}/xorg/modules/dri/vboxvideo_dri.so} |
27a1aef6 | 678 | # XXX: where else to install them that vboxvideo_dri.so finds them? patch with rpath? |
349989a6 | 679 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxEGL.so |
ffd7f18a JR |
680 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLarrayspu.so |
681 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLcrutil.so | |
682 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLerrorspu.so | |
683 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLfeedbackspu.so | |
684 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpackspu.so | |
685 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 686 | |
1067d08d | 687 | # Guest Only Tools |
ffd7f18a JR |
688 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxClient |
689 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxControl | |
44a0c82d | 690 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxService |
4e3859c5 | 691 | install -d $RPM_BUILD_ROOT/etc/xdg/autostart |
90de3b27 ER |
692 | cp -p src/VBox/Additions/x11/Installer/vboxclient.desktop \ |
693 | $RPM_BUILD_ROOT/etc/xdg/autostart/vboxclient.desktop | |
4e3859c5 | 694 | install -p src/VBox/Additions/x11/Installer/98vboxadd-xclient $RPM_BUILD_ROOT%{_bindir}/VBoxClient-all |
44a0c82d | 695 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxservice |
122ca0f2 ER |
696 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/vboxservice.service |
697 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/vboxservice | |
1067d08d | 698 | |
38d06cb9 ER |
699 | install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxautostart |
700 | %{__sed} -i -e 's#@INSTALL_DIR@#%{_libdir}/%{pname}#' $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxautostart | |
701 | cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/vbox | |
702 | ||
8d08b907 ER |
703 | %if %{with lightdm} |
704 | install -d $RPM_BUILD_ROOT%{_datadir}/xgreeters | |
29c4b6b6 | 705 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_sbindir}}/vbox-greeter |
fdf4c273 | 706 | cp -p %{objdir}/Additions/Installer/linux/other/vbox-greeter.desktop $RPM_BUILD_ROOT%{_datadir}/xgreeters |
8d08b907 ER |
707 | %endif |
708 | ||
bc1ca596 ER |
709 | %if %{with dkms} |
710 | mv $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/src $RPM_BUILD_ROOT%{_usrsrc}/vboxguest-%{version}-%{rel} | |
711 | %endif | |
712 | ||
44a0c82d ER |
713 | # pam |
714 | install -d $RPM_BUILD_ROOT/%{_lib}/security | |
715 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,/%{_lib}/security}/pam_vbox.so | |
716 | ||
717 | # mount.vboxsf | |
fa478ef5 | 718 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf $RPM_BUILD_ROOT/sbin/mount.vboxsf |
44a0c82d ER |
719 | |
720 | # mount.vdi | |
721 | install -p %{SOURCE5} $RPM_BUILD_ROOT/sbin/mount.vdi | |
722 | ||
723 | # these belong to .iso | |
724 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/autorun.sh | |
725 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/runasroot.sh | |
726 | ||
ce061de6 ER |
727 | # unknown - checkme |
728 | %if 1 | |
ffd7f18a JR |
729 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPInstall |
730 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPLoggerCtl | |
731 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPUninstall | |
ffd7f18a JR |
732 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/load.sh |
733 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/loadall.sh | |
44a0c82d ER |
734 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxshell.py |
735 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/xpidl | |
1067d08d | 736 | %endif |
dca6c443 | 737 | |
d19b622b JP |
738 | # manual installation steps based on src/VBox/Installer/linux/install.sh |
739 | ln -sf %{_libdir}/%{pname}/VBox.sh $RPM_BUILD_ROOT%{_bindir}/VirtualBox | |
740 | ln -sf %{_libdir}/%{pname}/VBox.sh $RPM_BUILD_ROOT%{_bindir}/VBoxManage | |
741 | ln -sf %{_libdir}/%{pname}/VBox.sh $RPM_BUILD_ROOT%{_bindir}/VBoxSDL | |
742 | ln -sf %{_libdir}/%{pname}/VBox.sh $RPM_BUILD_ROOT%{_bindir}/VBoxVRDP | |
743 | ln -sf %{_libdir}/%{pname}/VBox.sh $RPM_BUILD_ROOT%{_bindir}/VBoxHeadless | |
744 | ln -sf %{_libdir}/%{pname}/VBox.sh $RPM_BUILD_ROOT%{_bindir}/VBoxBalloonCtrl | |
745 | ln -sf %{_libdir}/%{pname}/VBox.sh $RPM_BUILD_ROOT%{_bindir}/VBoxAutostart | |
746 | ln -sf %{_libdir}/%{pname}/VBox.sh $RPM_BUILD_ROOT%{_bindir}/vboxwebsrv | |
747 | ln -sf %{_libdir}/%{pname}/vbox-img $RPM_BUILD_ROOT%{_bindir}/vbox-img | |
748 | ln -sf %{_libdir}/%{pname}/VBox.sh $RPM_BUILD_ROOT%{_bindir}/VBoxDTrace | |
d19b622b JP |
749 | cp -p $RPM_BUILD_ROOT%{_libdir}/%{pname}/icons/128x128/virtualbox.png $RPM_BUILD_ROOT%{_pixmapsdir}/virtualbox.png |
750 | mv $RPM_BUILD_ROOT%{_libdir}/%{pname}/virtualbox.desktop $RPM_BUILD_ROOT%{_desktopdir}/virtualbox.desktop | |
751 | mv $RPM_BUILD_ROOT%{_libdir}/%{pname}/virtualbox.xml $RPM_BUILD_ROOT%{_datadir}/mime/packages/virtualbox.xml | |
752 | ||
c88c6ac8 JP |
753 | mv $RPM_BUILD_ROOT%{_libdir}/%{pname}/nls $RPM_BUILD_ROOT%{_datadir}/%{pname} |
754 | ||
d19b622b JP |
755 | ( |
756 | cd $RPM_BUILD_ROOT%{_libdir}/%{pname}/icons | |
757 | for i in *; do | |
758 | cd $i | |
759 | for j in *; do | |
760 | if expr "$j" : "virtualbox\..*" > /dev/null; then | |
761 | dst=apps | |
762 | else | |
763 | dst=mimetypes | |
764 | fi | |
765 | if [ ! -e $RPM_BUILD_ROOT%{_iconsdir}/hicolor/$i/$dst ]; then | |
766 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/$i/$dst | |
767 | fi | |
768 | mv $RPM_BUILD_ROOT%{_libdir}/%{pname}/icons/$i/$j $RPM_BUILD_ROOT%{_iconsdir}/hicolor/$i/$dst/$j | |
769 | done | |
770 | cd - | |
771 | done | |
772 | ) | |
e56dcfeb | 773 | |
e6d149f0 | 774 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/icons |
d19b622b JP |
775 | |
776 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname},/lib/udev}/VBoxCreateUSBNode.sh | |
aac4c380 | 777 | cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/udev/rules.d/60-vboxdrv.rules |
44a0c82d | 778 | |
bc1ca596 | 779 | %if %{with dkms} |
d19b622b | 780 | mv $RPM_BUILD_ROOT%{_libdir}/%{pname}/src $RPM_BUILD_ROOT%{_usrsrc}/vboxhost-%{version}-%{rel} |
bc1ca596 ER |
781 | %endif |
782 | ||
44a0c82d ER |
783 | # cleanup unpackaged |
784 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/{sdk,testcase} | |
785 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace | |
44a0c82d ER |
786 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxkeyboard.tar.bz2 |
787 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/tst* | |
788 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/generated.sh | |
789 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack-license.* | |
44a0c82d | 790 | |
d7e93912 | 791 | %if %{with gui} |
44a0c82d ER |
792 | # weird icon size |
793 | %{__rm} -r $RPM_BUILD_ROOT%{_iconsdir}/hicolor/40x40 | |
d7e93912 ER |
794 | %endif |
795 | ||
44a0c82d | 796 | # duplicate, we already have virtualbox.png (128x128), this is 32x32 |
d19b622b | 797 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBox.png |
44a0c82d ER |
798 | |
799 | %if %{with doc} | |
800 | ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual.pdf | |
8c008609 | 801 | %if %{with all_langs} |
4f88ff56 | 802 | ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual_fr_FR.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual_fr_FR.pdf |
44a0c82d | 803 | %endif |
c38a3946 | 804 | %endif |
8c008609 | 805 | %endif |
988a8f09 | 806 | |
da083e45 | 807 | %if %{with kernel} |
4365ecaf | 808 | install -d $RPM_BUILD_ROOT{/etc/modules-load.d,/sbin} |
163ddb28 JR |
809 | |
810 | cp -a PLD-MODULE-BUILD/installed/* $RPM_BUILD_ROOT | |
fa974331 | 811 | |
35ccdfcc | 812 | # Tell systemd to load modules |
4365ecaf JR |
813 | cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/modules-load.d/virtualbox-host.conf |
814 | cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/modules-load.d/virtualbox-guest.conf | |
d1c4ec5b | 815 | %endif |
05f1b1f5 | 816 | |
48363591 | 817 | %clean |
818 | rm -rf $RPM_BUILD_ROOT | |
819 | ||
3b63d3e8 | 820 | %pre |
821 | %groupadd -g 221 -r -f vbox | |
822 | ||
14561782 | 823 | %post |
38d06cb9 ER |
824 | /sbin/chkconfig --add vboxautostart |
825 | %service -n vboxautostart restart | |
826 | ||
12db98a7 JR |
827 | for i in /sys/bus/usb/devices/*; do |
828 | if [ -r "$i/dev" ]; then | |
829 | dev="`cat "$i/dev" 2>/dev/null || true`" | |
830 | major="`expr "$dev" : '\(.*\):' 2> /dev/null || true`" | |
831 | minor="`expr "$dev" : '.*:\(.*\)' 2> /dev/null || true`" | |
832 | class="`cat $i/bDeviceClass 2> /dev/null || true`" | |
833 | /lib/udev/VBoxCreateUSBNode.sh "$major" "$minor" "$class" vbox 2>/dev/null | |
834 | fi | |
835 | done | |
1403ac49 | 836 | |
d8ed80f4 | 837 | cat << 'EOF' |
4365ecaf | 838 | You must install vboxdrv kernel modules for this software to work: |
163ddb28 | 839 | kernel*-virtualbox-host-%{version}-%{rel}@* |
05f12a30 | 840 | |
fa974331 | 841 | On Guest Linux system you might want to install: |
163ddb28 | 842 | kernel*-virtualbox-guest-%{version}-%{rel}@* |
7841ddfd | 843 | |
d8ed80f4 | 844 | EOF |
845 | ||
38d06cb9 ER |
846 | %preun |
847 | if [ "$1" = "0" ]; then | |
848 | /sbin/chkconfig --del vboxautostart | |
849 | %service vboxautostart -q stop | |
850 | fi | |
851 | ||
852 | ||
3b63d3e8 | 853 | %postun |
854 | if [ "$1" = "0" ]; then | |
855 | %groupremove vbox | |
856 | fi | |
857 | ||
501bee39 ER |
858 | %post gui |
859 | %update_desktop_database | |
44a0c82d | 860 | %update_icon_cache hicolor |
501bee39 ER |
861 | %update_mime_database |
862 | ||
863 | %postun gui | |
864 | %update_desktop_database | |
44a0c82d | 865 | %update_icon_cache hicolor |
501bee39 ER |
866 | %update_mime_database |
867 | ||
551622b8 ER |
868 | %pre guest |
869 | # Add a group "vboxsf" for Shared Folders access | |
870 | # All users which want to access the auto-mounted Shared Folders have to be added to this group. | |
871 | %groupadd -g 266 -r -f vboxsf | |
872 | ||
07e9b84d | 873 | %post guest |
31e46441 ER |
874 | /sbin/chkconfig --add vboxservice |
875 | %service vboxservice restart | |
4365ecaf | 876 | %systemd_post vboxservice.service |
07e9b84d | 877 | |
b93128e2 | 878 | %preun guest |
07e9b84d | 879 | if [ "$1" = "0" ]; then |
31e46441 ER |
880 | /sbin/chkconfig --del vboxservice |
881 | %service vboxservice -q stop | |
07e9b84d | 882 | fi |
4365ecaf | 883 | %systemd_preun vboxservice.service |
07e9b84d | 884 | |
4365ecaf | 885 | %postun guest |
551622b8 ER |
886 | if [ "$1" = "0" ]; then |
887 | %groupremove vboxsf | |
888 | fi | |
4365ecaf | 889 | %systemd_reload |
ece7f2f1 | 890 | |
4365ecaf JR |
891 | %triggerpostun guest -- VirtualBox-guest < 4.3.0-1 |
892 | %systemd_trigger vboxservice.service | |
ece7f2f1 | 893 | |
4365ecaf JR |
894 | %pre -n lightdm-greeter-vbox |
895 | %addusertogroup xdm vbox | |
74268e47 | 896 | |
988a8f09 | 897 | %post -n dkms-vboxguest |
988a8f09 ER |
898 | dkms add -m vboxguest -v %{version}-%{rel} --rpm_safe_upgrade && \ |
899 | dkms build -m vboxguest -v %{version}-%{rel} --rpm_safe_upgrade && \ | |
900 | dkms install -m vboxguest -v %{version}-%{rel} --rpm_safe_upgrade || : | |
901 | ||
902 | %preun -n dkms-vboxguest | |
988a8f09 ER |
903 | dkms remove -m vboxguest -v %{version}-%{rel} --rpm_safe_upgrade --all || : |
904 | ||
905 | %post -n dkms-vboxhost | |
988a8f09 ER |
906 | dkms add -m vboxhost -v %{version}-%{rel} --rpm_safe_upgrade && \ |
907 | dkms build -m vboxhost -v %{version}-%{rel} --rpm_safe_upgrade && \ | |
908 | dkms install -m vboxhost -v %{version}-%{rel} --rpm_safe_upgrade || : | |
909 | ||
910 | %preun -n dkms-vboxhost | |
988a8f09 ER |
911 | dkms remove -m vboxhost -v %{version}-%{rel} --rpm_safe_upgrade --all || : |
912 | ||
d1c4ec5b | 913 | %if %{with userspace} |
48363591 | 914 | %files |
915 | %defattr(644,root,root,755) | |
2daf9ea4 ER |
916 | %dir %attr(751,root,root) %{_sysconfdir}/vbox |
917 | %dir %attr(770,root,vbox) %{_sysconfdir}/vbox/autostart | |
38d06cb9 ER |
918 | %attr(640,root,vbox) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vbox/autostart.cfg |
919 | %attr(754,root,root) /etc/rc.d/init.d/vboxautostart | |
44a0c82d | 920 | %attr(755,root,root) /sbin/mount.vdi |
753cf356 ER |
921 | %attr(755,root,root) %{_bindir}/VBoxAutostart |
922 | %attr(755,root,root) %{_bindir}/VBoxBalloonCtrl | |
8c008609 | 923 | %attr(755,root,root) %{_bindir}/VBoxDTrace |
85b005e2 | 924 | %attr(755,root,root) %{_bindir}/VBoxHeadless |
925 | %attr(755,root,root) %{_bindir}/VBoxManage | |
926 | %attr(755,root,root) %{_bindir}/VBoxSDL | |
4c9a69b2 | 927 | %attr(755,root,root) %{_bindir}/VBoxVRDP |
8c008609 | 928 | %attr(755,root,root) %{_bindir}/vbox-img |
44a0c82d | 929 | %dir %{_libdir}/%{pname} |
753cf356 | 930 | # libraries |
8c008609 | 931 | %attr(755,root,root) %{_libdir}/%{pname}/DbgPlugInDiggers.so |
23790586 ER |
932 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAuth.so |
933 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAuthSimple.so | |
23790586 | 934 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDD.so |
753cf356 | 935 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDD2.so |
23790586 ER |
936 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDDU.so |
937 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDragAndDropSvc.so | |
23790586 ER |
938 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxGuestControlSvc.so |
939 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxGuestPropSvc.so | |
23790586 ER |
940 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxHostChannel.so |
941 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxKeyboard.so | |
23790586 ER |
942 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLhostcrutil.so |
943 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLhosterrorspu.so | |
944 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLrenderspu.so | |
945 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxPython*.so | |
946 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM.so | |
753cf356 ER |
947 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxRT.so |
948 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedClipboard.so | |
949 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedCrOpenGL.so | |
950 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedFolders.so | |
951 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVMM.so | |
952 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOM.so | |
953 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMC.so | |
f701b529 | 954 | %ifarch %{ix86} |
23790586 ER |
955 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM32.so |
956 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM64.so | |
f701b529 | 957 | %endif |
753cf356 ER |
958 | |
959 | # binaries | |
d19b622b | 960 | %attr(755,root,root) %{_libdir}/%{pname}/VBox.sh |
753cf356 ER |
961 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAutostart |
962 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxBalloonCtrl | |
d19b622b | 963 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDTrace |
753cf356 ER |
964 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxExtPackHelperApp |
965 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxHeadless | |
966 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxManage | |
967 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetAdpCtl | |
968 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetDHCP | |
969 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetNAT | |
23790586 | 970 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSDL |
23790586 | 971 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSVC |
d19b622b | 972 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxTunctl |
23790586 | 973 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVMMPreload |
753cf356 | 974 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVolInfo |
23790586 | 975 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMIPCD |
753cf356 ER |
976 | %attr(755,root,root) %{_libdir}/%{pname}/iPxeBaseBin |
977 | %if %{with doc} | |
978 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxManageHelp | |
979 | %endif | |
28b5d8a8 | 980 | %dir %{_libdir}/%{pname}/tools |
fdf4c273 JP |
981 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTCat |
982 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTChMod | |
8c008609 | 983 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTDbgSymCache |
28b5d8a8 | 984 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTGzip |
f93501c2 | 985 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTHttp |
fdf4c273 JP |
986 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTIsoMaker |
987 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTKrnlModInfo | |
28b5d8a8 | 988 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTLdrFlt |
fdf4c273 | 989 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTLs |
28b5d8a8 | 990 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTManifest |
fdf4c273 | 991 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTMkDir |
28b5d8a8 | 992 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTRm |
fdf4c273 | 993 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTRmDir |
28b5d8a8 JP |
994 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTShutdown |
995 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTSignTool | |
996 | %attr(755,root,root) %{_libdir}/%{pname}/tools/RTTar | |
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 |