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