]>
Commit | Line | Data |
---|---|---|
744bc35e JR |
1 | # TODO |
2 | # - java bindings | |
74268e47 | 3 | # - Package SDK. |
ffb38bb6 | 4 | # - Check License of VBoxGuestAdditions_*.iso, it's probably not GPL v2. |
5f8b0a92 | 5 | # If so check if it is distributable. |
21a1d8ab | 6 | # - guest x11 additions: currently incomplete/untested |
23790586 | 7 | # - enable VDE networking: --enable-vde |
21a1d8ab | 8 | # - initscripts for webservice |
48363591 | 9 | # |
10 | # Conditional build: | |
8da42f47 | 11 | %bcond_without doc # don't build the documentation |
48363591 | 12 | %bcond_without dist_kernel # without distribution kernel |
d1c4ec5b | 13 | %bcond_without kernel # don't build kernel module |
d1c4ec5b | 14 | %bcond_without userspace # don't build userspace package |
21a1d8ab | 15 | %bcond_with webservice # webservice (SOAP) support |
7223ee37 | 16 | %bcond_without lightdm # lightdm greeter |
bddee32c | 17 | %bcond_without verbose |
cc9d49be | 18 | %bcond_with force_userspace # force userspace build (useful if alt_kernel is set) |
05f1b1f5 | 19 | |
8833bce1 | 20 | %if %{without kernel} |
21 | %undefine with_dist_kernel | |
22 | %endif | |
bd3faca3 | 23 | %if "%{_alt_kernel}" != "%{nil}" |
24 | %undefine with_userspace | |
25 | %endif | |
cc9d49be AG |
26 | %if %{with force_userspace} |
27 | %define with_userspace 1 | |
28 | %endif | |
05f9288a ER |
29 | %if %{without userspace} |
30 | # nothing to be placed to debuginfo package | |
31 | %define _enable_debug_packages 0 | |
32 | %endif | |
bd3faca3 | 33 | |
600ebcbf | 34 | %define rel 0.1 |
33aeed61 | 35 | %define pname VirtualBox |
393ec35d ER |
36 | Summary: VirtualBox - x86 hardware virtualizer |
37 | Summary(pl.UTF-8): VirtualBox - wirtualizator sprzętu x86 | |
33aeed61 | 38 | Name: %{pname}%{_alt_kernel} |
600ebcbf | 39 | Version: 4.3.0 |
fe3d1798 | 40 | Release: %{rel} |
48363591 | 41 | License: GPL v2 |
42 | Group: Applications/Emulators | |
33aeed61 | 43 | Source0: http://download.virtualbox.org/virtualbox/%{version}/%{pname}-%{version}.tar.bz2 |
600ebcbf | 44 | # Source0-md5: 1f49237686d095859f3dbea0941f8b12 |
744bc35e | 45 | Source1: http://download.virtualbox.org/virtualbox/%{version}/VBoxGuestAdditions_%{version}.iso |
600ebcbf | 46 | # Source1-md5: 6b72a59aba1660afa4f430faa88d727a |
07e9b84d | 47 | Source2: vboxservice.init |
4365ecaf JR |
48 | Source3: vboxservice.service |
49 | Source4: %{pname}.sh | |
50 | Source5: mount.vdi | |
51 | Source6: udev.rules | |
52 | Source7: %{pname}-virtualbox-host-modules-load.conf | |
53 | Source8: %{pname}-virtualbox-guest-modules-load.conf | |
33aeed61 | 54 | Patch0: %{pname}-configure-spaces.patch |
db6f33e3 KK |
55 | Patch1: %{pname}-VBoxSysInfo.patch |
56 | Patch2: %{pname}-warning_workaround.patch | |
57 | Patch3: %{pname}-dri.patch | |
db6f33e3 | 58 | Patch5: xserver-1.12.patch |
d3884acf | 59 | Patch7: lightdm-greeter-glib-includes.patch |
8d08b907 | 60 | Patch8: lightdm-greeter-g++-link.patch |
acf12a87 | 61 | # ubuntu patches |
b980c81c ER |
62 | Patch10: 16-no-update.patch |
63 | Patch11: 18-system-xorg.patch | |
acf12a87 | 64 | # /ubuntu patches |
48363591 | 65 | URL: http://www.virtualbox.org/ |
83ffcfa8 | 66 | %if %{with userspace} |
ce9843cd ER |
67 | %ifarch %{x8664} |
68 | BuildRequires: gcc-multilib | |
69 | BuildRequires: glibc-devel(i686) | |
70 | BuildRequires: libstdc++-multilib-devel | |
4fff279a | 71 | BuildRequires: libstdc++-multilib-static |
ce9843cd | 72 | %endif |
ce9843cd ER |
73 | %if "%{pld_release}" == "ac" |
74 | BuildRequires: XFree86-devel | |
75 | %else | |
1abc0217 | 76 | BuildRequires: xorg-lib-libXcomposite-devel |
ce9843cd ER |
77 | BuildRequires: xorg-lib-libXcursor-devel |
78 | BuildRequires: xorg-lib-libXmu-devel | |
e649d11e | 79 | BuildRequires: xorg-proto-glproto-devel |
acf12a87 | 80 | BuildRequires: xorg-xserver-server-devel |
ce9843cd | 81 | %endif |
00149140 | 82 | BuildRequires: OpenGL-GLU-devel |
523e7409 | 83 | BuildRequires: OpenGL-devel |
cef75615 | 84 | BuildRequires: QtGui-devel |
2d17bb72 | 85 | BuildRequires: QtNetwork-devel |
dd64a424 | 86 | BuildRequires: QtOpenGL-devel |
c574efad | 87 | BuildRequires: SDL-devel >= 1.2.7 |
9a1cb119 | 88 | BuildRequires: acpica |
ba702945 | 89 | BuildRequires: alsa-lib-devel >= 1.0.6 |
e5aaadde | 90 | BuildRequires: bash |
48363591 | 91 | BuildRequires: bcc |
92 | BuildRequires: bin86 | |
07ef7f06 | 93 | BuildRequires: curl-devel |
fc19d844 | 94 | BuildRequires: device-mapper-devel |
8da42f47 | 95 | %{?with_doc:BuildRequires: docbook-dtd44-xml} |
eba4b2aa | 96 | BuildRequires: gcc >= 5:3.2.3 |
55f7d7d3 | 97 | %{?with_webservice:BuildRequires: gsoap-devel} |
e9aa839a | 98 | BuildRequires: issue |
7733446a | 99 | BuildRequires: kBuild >= 0.1.9998.2700 |
48363591 | 100 | BuildRequires: libIDL-devel |
fa974331 | 101 | BuildRequires: libcap-static |
acf12a87 | 102 | BuildRequires: libdrm-devel |
ff01a704 | 103 | BuildRequires: libpng-devel >= 1.2.5 |
d22f0a53 | 104 | BuildRequires: libstdc++-devel >= 5:3.2.3 |
4fff279a | 105 | BuildRequires: libstdc++-static >= 5:3.2.3 |
48363591 | 106 | BuildRequires: libuuid-devel |
b75fd17a | 107 | BuildRequires: libvncserver-devel >= 0.9.9 |
ba702945 | 108 | BuildRequires: libxml2-devel >= 2.6.26 |
76ea5ecb | 109 | BuildRequires: libxslt-devel >= 1.1.17 |
ba702945 | 110 | BuildRequires: libxslt-progs >= 1.1.17 |
7223ee37 | 111 | %{?with_lightdm:BuildRequires: lightdm-libs-qt-devel} |
744bc35e | 112 | BuildRequires: makeself |
90de3b27 | 113 | BuildRequires: mkisofs |
3613936b | 114 | BuildRequires: pam-devel |
acf12a87 | 115 | BuildRequires: pixman-devel |
0bf43862 | 116 | BuildRequires: pkgconfig |
ba702945 | 117 | BuildRequires: pulseaudio-devel >= 0.9.0 |
523e7409 | 118 | BuildRequires: python-devel |
6055e733 | 119 | BuildRequires: python-modules |
250583d4 | 120 | BuildRequires: qt4-build >= 4.2.0 |
2700662b | 121 | BuildRequires: qt4-linguist |
0ccbe8d9 | 122 | BuildRequires: rpmbuild(macros) >= 1.664 |
1e840a77 | 123 | BuildRequires: sed >= 4.0 |
8da42f47 | 124 | %if %{with doc} |
744bc35e JR |
125 | BuildRequires: texlive-fonts-bitstream |
126 | BuildRequires: texlive-fonts-other | |
127 | BuildRequires: texlive-fonts-type1-bitstream | |
128 | BuildRequires: texlive-format-pdflatex | |
acf12a87 | 129 | BuildRequires: texlive-latex-ucs |
660fb056 | 130 | BuildRequires: texlive-xetex |
8da42f47 | 131 | %endif |
0bf43862 | 132 | BuildRequires: which |
e5aaadde | 133 | BuildRequires: xalan-c-devel >= 1.10.0 |
e5aaadde | 134 | BuildRequires: xerces-c-devel >= 2.6.0 |
fc19d844 | 135 | BuildRequires: yasm |
e5aaadde | 136 | BuildRequires: zlib-devel >= 1.2.1 |
23d9d34e | 137 | %endif |
ce9843cd ER |
138 | %if %{with dist_kernel} |
139 | BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20 | |
83ffcfa8 | 140 | %endif |
0afa64ad | 141 | Requires(post,preun): /sbin/chkconfig |
5f1cec1f ER |
142 | Requires(postun): /usr/sbin/groupdel |
143 | Requires(pre): /usr/bin/getgid | |
144 | Requires(pre): /usr/sbin/groupadd | |
c061e8fb | 145 | Requires: QtCore >= 4.7.0 |
7b0aa429 | 146 | Requires: desktop-file-utils |
a9d4f661 ER |
147 | Requires: fontconfig |
148 | Requires: fonts-Type1-urw | |
b75fd17a | 149 | Requires: libvncserver >= 0.9.9 |
12db98a7 | 150 | Requires: udev-core |
fb661e50 | 151 | Suggests: gxmessage |
5f1cec1f | 152 | Provides: group(vbox) |
873b17cf | 153 | Obsoletes: VirtualBox-udev < 4.2.10-5 |
eba4b2aa | 154 | ExclusiveArch: %{ix86} %{x8664} |
48363591 | 155 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
156 | ||
eba4b2aa | 157 | %ifarch %{x8664} |
f377eb62 | 158 | %define vbox_arch amd64 |
5088674d | 159 | %else |
f377eb62 | 160 | %define vbox_arch x86 |
5088674d | 161 | %endif |
f377eb62 | 162 | %define vbox_platform linux.%{vbox_arch} |
27a1aef6 | 163 | %define outdir out/%{vbox_platform}/release/bin |
8d08b907 | 164 | %define objdir out/%{vbox_platform}/release/obj |
5088674d | 165 | |
dd65fabb PS |
166 | # workaround buggy 'file' results: |
167 | # | |
168 | # EfiThunk: \0 | |
169 | # qt_ro.qm: \0 "<\270d\030\312\357\234\225\315!\034\277`\241\275\335B" | |
170 | # VBoxEFI32.fd: \0 | |
171 | # VBoxEFI64.fd: \0 | |
172 | # | |
173 | # which lead to 'Stripping ... ELF shared libraries... (...)/nls/qt_ro.qm: File format not recognized' | |
4365ecaf | 174 | #define _noautostrip .*%{_libdir}/%{name}/.* |
ece7f2f1 | 175 | |
48363591 | 176 | %description |
393ec35d | 177 | Oracle VirtualBox is a general-purpose full virtualizer for x86 |
48363591 | 178 | hardware. Targeted at server, desktop and embedded use, it is now the |
179 | only professional-quality virtualization solution that is also Open | |
180 | Source Software. | |
181 | ||
393ec35d | 182 | Some of the features of VirtualBox are: |
48363591 | 183 | |
393ec35d | 184 | Modularity: VirtualBox has an extremely modular design with |
48363591 | 185 | well-defined internal programming interfaces and a client/server |
186 | design. This makes it easy to control it from several interfaces at | |
187 | once: for example, you can start a virtual machine in a typical | |
188 | virtual machine GUI and then control that machine from the command | |
393ec35d ER |
189 | line. VirtualBox also comes with a full Software Development Kit: even |
190 | though it is Open Source Software, you don't have to hack the source | |
191 | to write a new interface for VirtualBox. | |
48363591 | 192 | |
193 | Virtual machine descriptions in XML: the configuration settings of | |
194 | virtual machines are stored entirely in XML and are independent of the | |
195 | local machines. Virtual machine definitions can therefore easily be | |
196 | ported to other computers. | |
197 | ||
1067d08d ER |
198 | You should install this package in your Host OS. |
199 | ||
fd8fc899 | 200 | %description -l pl.UTF-8 |
393ec35d ER |
201 | Oracle VirtualBox jest emulatorem sprzętu x86. Kierowany do zastosowań |
202 | serwerowych, desktopowych oraz wbudowanych jest obecnie jedynym | |
203 | wysokiej jakości rozwiązaniem wirtualizacyjnym dostępnym również jako | |
204 | Otwarte Oprogramowanie. | |
48363591 | 205 | |
fd8fc899 | 206 | Przykładowe cechy VirtualBoksa: |
48363591 | 207 | |
393ec35d | 208 | Modularność: VirtualBox jest wysoce zmodularyzowanym produktem z |
fd8fc899 JR |
209 | dobrze zaprojektowanym wewnętrznym interfejsem programowym typu |
210 | klient/serwer. Dzięki temu można łatwo kontrolować go za pomocą | |
211 | różnych interfejsów. Można na przykład uruchomić maszynę wirtualną z | |
212 | poziomu interfejsu graficznego, a później kontrolować ją z linii | |
393ec35d ER |
213 | poleceń. VirtualBox dostarcza również pełny pakiet deweloperski, co |
214 | pozwala stworzyć dowolny inny interfejs zarządzania maszyną wirtualną. | |
48363591 | 215 | |
fd8fc899 JR |
216 | Opisy maszyn wirtualnych w XML-u: konfiguracje poszczególnych maszyn |
217 | wirtualnych są w całości przechowywane w XML-u i są niezależne od | |
218 | lokalnej maszyny. Dzięki temu można szybko i łatwo przenieść | |
219 | konfigurację maszyny wirtualnej na inny komputer. | |
48363591 | 220 | |
90de3b27 ER |
221 | %package doc |
222 | Summary: VirtualBox documentation | |
223 | Group: Documentation | |
224 | ||
225 | %description doc | |
226 | This package contains VirtualBox User Manual. | |
227 | ||
ffb38bb6 ER |
228 | %package additions |
229 | Summary: VirtualBox Guest Additions | |
230 | Group: Base | |
231 | Requires: %{name} = %{version}-%{release} | |
232 | ||
00a4a7ca | 233 | %description additions |
ffb38bb6 ER |
234 | VirtualBox Guest Additions. |
235 | ||
236 | This package contains ISO9660 image with drivers for Guest OS. | |
237 | ||
1067d08d ER |
238 | You should install this package in your Host OS. |
239 | ||
240 | %package guest | |
c0372ee9 ER |
241 | Summary: VirtualBox Guest tools |
242 | Group: Base | |
ffb104d5 | 243 | Requires(post,preun): /sbin/chkconfig |
4365ecaf JR |
244 | Requires(post): systemd-units >= 38 |
245 | Requires: systemd-units >= 38 | |
ffb104d5 | 246 | Requires: rc-scripts |
3d9b19d8 ER |
247 | Suggests: kernel(vboxguest) |
248 | Suggests: kernel(vboxsf) | |
bf131a21 | 249 | Suggests: pam-pam_vbox |
c0372ee9 ER |
250 | |
251 | %description guest | |
252 | Tools that utilize kernel modules for supporting integration with the | |
253 | Host, including file sharing. | |
254 | ||
3d9b19d8 ER |
255 | You should install this package in your Guest OS for base VirtualBox |
256 | communication | |
c0372ee9 ER |
257 | |
258 | %package guest-x11 | |
1067d08d ER |
259 | Summary: VirtualBox Guest Additions |
260 | Group: Base | |
c0372ee9 | 261 | Requires: %{name}-guest = %{version}-%{release} |
1067d08d | 262 | Requires: xorg-driver-video-vboxvideo = %{version}-%{release} |
3d9b19d8 | 263 | Suggests: kernel(vboxvideo) |
873b17cf | 264 | Obsoletes: xorg-driver-input-vboxmouse < %{version}-%{release} |
1067d08d | 265 | |
c0372ee9 | 266 | %description guest-x11 |
3d9b19d8 ER |
267 | Tools for X11 session that utilize kernel modules for supporting |
268 | integration with the Host, like tracking of mouse pointer movement and | |
269 | X.org X11 video and mouse drivers | |
1067d08d | 270 | |
c0372ee9 | 271 | You should install this package in your Guest OS for X11 session. |
1067d08d | 272 | |
21a1d8ab ER |
273 | %package webservice |
274 | Summary: VirtualBox Web Service | |
275 | Group: Applications/Emulators | |
276 | Requires: %{name} = %{version}-%{release} | |
277 | ||
278 | %description webservice | |
279 | This package contains VirtualBox web service API daemon. It allows to | |
280 | control virtual machines via web interface. | |
281 | ||
9e4dd6a9 | 282 | %package -n lightdm-greeter-vbox |
8d08b907 ER |
283 | Summary: VirtualBox greeter for lightdm |
284 | Group: Themes | |
22380dc7 ER |
285 | # NOTE: '#' in url is lost because rpm treats it as comment, even hacking with |
286 | # macros doesn't help as rpmbuild takes final result to parse | |
8d08b907 | 287 | URL: http://www.virtualbox.org/manual/ch09.html#autologon_unix_lightdm |
4365ecaf | 288 | Requires: kernel(vboxguest) |
8d08b907 ER |
289 | Requires: lightdm >= 1.0.1 |
290 | Provides: lightdm-greeter | |
291 | ||
9e4dd6a9 | 292 | %description -n lightdm-greeter-vbox |
8d08b907 ER |
293 | VirtualBox greeter for LightDM. |
294 | ||
3613936b JR |
295 | %package -n pam-pam_vbox |
296 | Summary: PAM module to perform automated guest logons | |
297 | Group: Base | |
298 | ||
299 | %description -n pam-pam_vbox | |
3ee6b9d9 ER |
300 | PAM module (Pluggable Authentication Module) which can be used to |
301 | perform automated guest logons. | |
3613936b | 302 | |
fbea1005 | 303 | %package -n xorg-driver-video-vboxvideo |
393ec35d ER |
304 | Summary: X.org video driver for VirtualBox guest OS |
305 | Summary(pl.UTF-8): Sterownik grafiki dla systemu gościa w VirtualBoksie | |
fbea1005 | 306 | Group: X11/Applications |
20b8335d | 307 | Requires: Mesa-dri-driver-swrast |
fbea1005 ER |
308 | Requires: xorg-xserver-libdri >= 1.7.4 |
309 | Requires: xorg-xserver-server >= 1.0.99.901 | |
c8a0226f | 310 | Requires: xorg-xserver-server(videodrv-abi) <= 14.1 |
fbea1005 ER |
311 | Requires: xorg-xserver-server(videodrv-abi) >= 2.0 |
312 | ||
313 | %description -n xorg-driver-video-vboxvideo | |
393ec35d | 314 | X.org video driver for VirtualBox guest OS. |
fbea1005 ER |
315 | |
316 | %description -n xorg-driver-video-vboxvideo -l pl.UTF-8 | |
393ec35d | 317 | Sterownik grafiki dla systemu gościa w VirtualBoksie. |
fbea1005 | 318 | |
18adabff | 319 | # KERNEL PACKAGES |
b980c81c | 320 | |
18adabff | 321 | # KEEP ALL REGULAR SUBPACKAGES BEFORE KERNEL PACKAGES. |
b980c81c | 322 | |
4365ecaf JR |
323 | %package -n kernel%{_alt_kernel}-virtualbox-guest |
324 | Summary: VirtualBox kernel modules for Linux Guest | |
325 | Summary(pl.UTF-8): Moduły VirtualBoksa do jądra Linuksa dla systemu gościa | |
fe3d1798 | 326 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 327 | Group: Base/Kernel |
328 | Requires(post,postun): /sbin/depmod | |
de615b50 | 329 | Requires(post): systemd-units >= 38 |
74268e47 | 330 | Requires: dev >= 2.9.0-7 |
4365ecaf | 331 | Requires: systemd-units >= 38 |
74268e47 | 332 | %if %{with dist_kernel} |
333 | %requires_releq_kernel | |
4365ecaf | 334 | %requires_releq_kernel -n drm |
ca8701ad | 335 | Requires(postun): %releq_kernel |
74268e47 | 336 | %endif |
ff1f2719 | 337 | Suggests: %{name}-kernel-init-guest >= %{version}-%{rel} |
dc0a2786 | 338 | Provides: kernel(vboxguest) = %{version}-%{rel} |
4365ecaf JR |
339 | Provides: kernel(vboxsf) = %{version}-%{rel} |
340 | Provides: kernel(vboxvideo) = %{version}-%{rel} | |
341 | Obsoletes: kernel-init-guest | |
342 | Conflicts: kernel%{_alt_kernel}-virtualbox-host | |
343 | ||
344 | %description -n kernel%{_alt_kernel}-virtualbox-guest | |
345 | This package contains VirtualBox Guest Additions for Linux Module, | |
346 | host file system access (Shared Folders) and DRM support for | |
347 | Linux guest system. | |
348 | ||
349 | %description -n kernel%{_alt_kernel}-virtualbox-guest -l pl.UTF-8 | |
350 | Ten pakiet zawiera moduł jądra Linuksa vboxguest dla VirtualBoksa - | |
351 | dodatki dla systemu gościa, dostęp do plików systemu głównego z | |
352 | poziomu systemu gościa i sterownik obsługi DRM. | |
353 | ||
354 | %package -n kernel%{_alt_kernel}-virtualbox-host | |
355 | Summary: VirtualBox Support Drivers | |
356 | Summary(pl.UTF-8): Moduły jądra Linuksa dla VirtualBoksa | |
fe3d1798 | 357 | Release: %{rel}@%{_kernel_ver_str} |
48363591 | 358 | Group: Base/Kernel |
359 | Requires(post,postun): /sbin/depmod | |
de615b50 | 360 | Requires(post): systemd-units >= 38 |
48363591 | 361 | Requires: dev >= 2.9.0-7 |
362 | %if %{with dist_kernel} | |
d6f0c54e | 363 | %requires_releq_kernel |
364 | Requires(postun): %releq_kernel | |
48363591 | 365 | %endif |
de615b50 | 366 | Requires: systemd-units >= 38 |
ff1f2719 | 367 | Suggests: %{name}-kernel-init-host >= %{version}-%{rel} |
fe3d1798 | 368 | Provides: kernel(vboxdrv) = %{version}-%{rel} |
4365ecaf | 369 | Provides: kernel(vboxnetadp) = %{version}-%{rel} |
1dda2f69 | 370 | Provides: kernel(vboxnetflt) = %{version}-%{rel} |
59d12745 | 371 | Provides: kernel(vboxpci) = %{version}-%{rel} |
4365ecaf | 372 | Obsoletes: kernel-init-host |
59d12745 | 373 | |
4365ecaf JR |
374 | %description -n kernel%{_alt_kernel}-virtualbox-host |
375 | This package contains VirtualBox Support Driver, Network Adapter | |
376 | Driver, Network Filter Driver and PCI card passthrough driver that | |
377 | works as host proxy between guest and PCI hardware. | |
91e5103c | 378 | |
4365ecaf JR |
379 | %description -n kernel%{_alt_kernel}-virtualbox-host -l pl.UTF-8 |
380 | Ten pakiet zawiera sterownik wsparcia dla systemu głównego, sterownik | |
381 | witrualnej karty sieciowej, sterownik filtrowania sieci dla systemu | |
382 | głównego oraz sterownik, ktory działa jako proxy między gościem i | |
383 | gospodarzem sprzętu PCI. | |
67a4f3c1 | 384 | |
48363591 | 385 | %prep |
33aeed61 | 386 | %setup -q -n %{pname}-%{version} |
e709ce6b | 387 | %patch0 -p1 |
db6f33e3 | 388 | %patch1 -p1 |
006342ee | 389 | %patch2 -p1 |
8473a80d | 390 | %patch3 -p1 |
9a7b1cdc | 391 | %patch5 -p1 |
d3884acf | 392 | %patch7 -p1 |
8d08b907 | 393 | %patch8 -p1 |
fddcb741 | 394 | |
744bc35e JR |
395 | %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \ |
396 | -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in | |
0b6de2b7 | 397 | |
f471b832 ER |
398 | # Respect LDFLAGS |
399 | %{__sed} -i -e "s@_LDFLAGS\.%{vbox_arch}*.*=@& %{rpmldflags}@g" \ | |
400 | -i Config.kmk src/libs/xpcom18a4/Config.kmk | |
401 | ||
4365ecaf | 402 | %{__sed} 's#@LIBDIR@#%{_libdir}#' < %{SOURCE4} > VirtualBox-wrapper.sh |
fa19f650 | 403 | |
1794e74d ER |
404 | install -d PLD-MODULE-BUILD/{GuestDrivers,HostDrivers} |
405 | cd PLD-MODULE-BUILD | |
406 | ../src/VBox/Additions/linux/export_modules guest-modules.tar.gz | |
407 | tar -zxf guest-modules.tar.gz -C GuestDrivers | |
408 | ||
cadbdf55 | 409 | ../src/VBox/HostDrivers/linux/export_modules host-modules.tar.gz --without-hardening |
1794e74d ER |
410 | tar -zxf host-modules.tar.gz -C HostDrivers |
411 | cd - | |
59d12745 KK |
412 | %patch10 -p1 |
413 | %patch11 -p1 | |
414 | ||
e9ed9ec1 ER |
415 | # using system kBuild package |
416 | %{__rm} -r kBuild | |
417 | ||
316a5697 ER |
418 | cat <<'EOF'>> LocalConfig.kmk |
419 | %{?with_verbose:KBUILD_VERBOSE=3} | |
420 | USERNAME=%(id -un) | |
421 | __VBOX_BUILD_PUBLISHER=_PLD | |
422 | VBOX_VERSION_STRING=$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)_PLD | |
423 | XSERVER_VERSION=%(rpm -q --queryformat '%{V}\n' xorg-xserver-server-devel | awk -F. '{ print $1 $2 }' 2>/dev/null || echo ERROR) | |
424 | VBOX_USE_SYSTEM_XORG_HEADERS=1 | |
425 | %if %{with lightdm} | |
426 | VBOX_WITH_LIGHTDM_GREETER=1 | |
427 | VBOX_WITH_LIGHTDM_GREETER_PACKING=1 | |
428 | %endif | |
429 | TOOL_GCC3_CFLAGS=%{rpmcflags} | |
430 | TOOL_GCC3_CXXFLAGS=%{rpmcxxflags} | |
431 | VBOX_GCC_OPT=%{rpmcxxflags} | |
432 | VBOX_WITH_TESTCASES= | |
433 | EOF | |
434 | ||
fddcb741 | 435 | %build |
83ffcfa8 | 436 | %if %{with userspace} |
106d8451 | 437 | ./configure \ |
ae1bbc88 | 438 | --with-gcc="%{__cc}" \ |
439 | --with-g++="%{__cxx}" \ | |
8da42f47 | 440 | %{!?with_doc:--disable-docs} \ |
744bc35e | 441 | --disable-java \ |
5a497466 | 442 | --disable-hardening \ |
01e414ba | 443 | --disable-kmods \ |
55f7d7d3 ER |
444 | --enable-vnc \ |
445 | %{__enable webservice} \ | |
446 | %{nil} | |
48363591 | 447 | |
89973837 | 448 | XSERVER_VERSION=$(rpm -q --queryformat '%{VERSION}\n' xorg-xserver-server-devel | awk -F. ' { print $1 $2 } ' 2> /dev/null || echo ERROR) |
316a5697 | 449 | kmk %{?_smp_mflags} |
48363591 | 450 | %endif |
74268e47 | 451 | |
452 | %if %{with kernel} | |
cdeeee90 | 453 | export KERN_DIR=%{_kernelsrcdir} |
1794e74d ER |
454 | cd PLD-MODULE-BUILD/HostDrivers |
455 | %build_kernel_modules -m vboxdrv -C vboxdrv | |
456 | %build_kernel_modules -m vboxnetadp -C vboxnetadp | |
457 | %build_kernel_modules -m vboxnetflt -C vboxnetflt | |
59d12745 | 458 | %build_kernel_modules -m vboxpci -C vboxpci |
1794e74d ER |
459 | |
460 | cd ../GuestDrivers | |
dc0a2786 | 461 | %build_kernel_modules -m vboxguest -C vboxguest |
ecfe25a3 PS |
462 | cp -a vboxguest/Module.symvers vboxsf |
463 | %build_kernel_modules -m vboxsf -C vboxsf -c | |
76273613 | 464 | %build_kernel_modules -m vboxvideo -C vboxvideo |
1794e74d | 465 | cd ../.. |
744bc35e | 466 | %{__cc} %{rpmcflags} %{rpmldflags} -Wall -Werror src/VBox/Additions/linux/sharedfolders/{mount.vboxsf.c,vbsfmount.c} -o mount.vboxsf |
d1c4ec5b | 467 | %endif |
48363591 | 468 | |
469 | %install | |
470 | rm -rf $RPM_BUILD_ROOT | |
471 | ||
d1c4ec5b | 472 | %if %{with userspace} |
c11f39b3 | 473 | install -d $RPM_BUILD_ROOT{%{_bindir},/sbin,%{_sbindir},%{_libdir}/%{pname}/ExtensionPacks} \ |
744bc35e | 474 | $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \ |
12db98a7 | 475 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,dri,input} \ |
4365ecaf JR |
476 | $RPM_BUILD_ROOT{/lib/udev,/etc/udev/rules.d} \ |
477 | $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{systemdunitdir}} | |
a70507fb | 478 | |
dca6c443 ER |
479 | # test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition |
480 | if cp -al VBox.png $RPM_BUILD_ROOT/Vbox.png 2>/dev/null; then | |
481 | l=l | |
ffd7f18a | 482 | %{__rm} -f $RPM_BUILD_ROOT/VBox.png |
dca6c443 ER |
483 | fi |
484 | ||
33aeed61 | 485 | cp -a$l %{outdir}/* $RPM_BUILD_ROOT%{_libdir}/%{pname} |
b75fd17a KK |
486 | |
487 | %if %{with doc} | |
26489c61 | 488 | ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual.pdf |
6ee3b66d | 489 | ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual_fr_FR.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual_fr_FR.pdf |
b75fd17a | 490 | %endif |
dca6c443 | 491 | |
23790586 | 492 | install -d $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions |
6110bfb9 | 493 | cp -a$l %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso |
4365ecaf | 494 | install -p %{SOURCE5} $RPM_BUILD_ROOT/sbin/mount.vdi |
33aeed61 | 495 | install -p VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_libdir}/%{pname} |
5b399826 | 496 | for f in {VBox{BFE,Headless,Manage,SDL,SVC,Tunctl,XPCOMIPCD},VirtualBox}; do |
33aeed61 | 497 | ln -s %{_libdir}/%{pname}/VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/$f |
05f1b1f5 | 498 | done |
499 | ||
4365ecaf JR |
500 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxservice |
501 | install -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/vboxservice.service | |
502 | ||
ffd7f18a JR |
503 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/VBox.png,%{_pixmapsdir}/virtualbox.png} |
504 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname},%{_desktopdir}}/virtualbox.desktop | |
48363591 | 505 | |
ffd7f18a JR |
506 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxvideo_drv_system.so,%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so} |
507 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/VBoxOGL.so,%{_libdir}/xorg/modules/dri/vboxvideo_dri.so} | |
916ab34d | 508 | |
27a1aef6 | 509 | # XXX: where else to install them that vboxvideo_dri.so finds them? patch with rpath? |
ffd7f18a JR |
510 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLarrayspu.so |
511 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLcrutil.so | |
512 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLerrorspu.so | |
513 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLfeedbackspu.so | |
514 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpackspu.so | |
515 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 516 | |
4365ecaf | 517 | cp -a %{SOURCE6} $RPM_BUILD_ROOT/etc/udev/rules.d/virtualbox.rules |
12db98a7 | 518 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname},/lib/udev}/VBoxCreateUSBNode.sh |
dca6c443 | 519 | |
3613936b | 520 | install -d $RPM_BUILD_ROOT/%{_lib}/security |
ffd7f18a | 521 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,/%{_lib}/security}/pam_vbox.so |
3613936b | 522 | |
dca6c443 | 523 | # cleanup unpackaged |
ffd7f18a JR |
524 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/{src,sdk,testcase} |
525 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/src | |
526 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxkeyboard.tar.bz2 | |
527 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/tst* | |
528 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack-license.* | |
1067d08d ER |
529 | |
530 | # Guest Only Tools | |
90de3b27 | 531 | install -d $RPM_BUILD_ROOT/etc/{X11/xinit/xinitrc.d,xdg/autostart} |
ffd7f18a JR |
532 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxService |
533 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxClient | |
534 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxControl | |
90de3b27 ER |
535 | install -p -D src/VBox/Additions/x11/Installer/98vboxadd-xclient \ |
536 | $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh | |
537 | cp -p src/VBox/Additions/x11/Installer/vboxclient.desktop \ | |
538 | $RPM_BUILD_ROOT/etc/xdg/autostart/vboxclient.desktop | |
1067d08d | 539 | |
8d08b907 ER |
540 | %if %{with lightdm} |
541 | install -d $RPM_BUILD_ROOT%{_datadir}/xgreeters | |
29c4b6b6 | 542 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_sbindir}}/vbox-greeter |
8d08b907 ER |
543 | cp -p %{objdir}/Additions/Installer/linux/share/VBoxGuestAdditions/vbox-greeter.desktop $RPM_BUILD_ROOT%{_datadir}/xgreeters |
544 | %endif | |
545 | ||
dca6c443 | 546 | # unknown - checkme |
1067d08d | 547 | %if 1 |
ffd7f18a JR |
548 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPInstall |
549 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPLoggerCtl | |
550 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPUninstall | |
551 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBox.sh | |
552 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxshell.py | |
553 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/xpidl | |
554 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/runasroot.sh | |
555 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/load.sh | |
556 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/loadall.sh | |
557 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/CPUMInternal.d | |
558 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/cpumctx.d | |
559 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vbox-arch-types.d | |
560 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vbox-types.d | |
561 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vm.d | |
562 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/x86.d | |
563 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/testcase/%{vbox_arch}/vbox-vm-struct-test.d | |
564 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/helpers/generate_service_file | |
565 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/VBoxHeadlessXOrg.sh | |
566 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/generated.sh | |
567 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/init_template.sh | |
568 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/install_service | |
1067d08d | 569 | %endif |
dca6c443 ER |
570 | |
571 | # packaged by kernel part | |
ffd7f18a | 572 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf |
da083e45 | 573 | %endif |
33233365 | 574 | |
da083e45 | 575 | %if %{with kernel} |
4365ecaf | 576 | install -d $RPM_BUILD_ROOT{/etc/modules-load.d,/sbin} |
1794e74d ER |
577 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxdrv/vboxdrv -d misc |
578 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxnetadp/vboxnetadp -d misc | |
579 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxnetflt/vboxnetflt -d misc | |
59d12745 | 580 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxpci/vboxpci -d misc |
1794e74d ER |
581 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxguest/vboxguest -d misc |
582 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxsf/vboxsf -d misc | |
76273613 | 583 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxvideo/vboxvideo -d misc |
fa974331 | 584 | |
c11f39b3 | 585 | install -p mount.vboxsf $RPM_BUILD_ROOT/sbin/mount.vboxsf |
50863744 | 586 | |
35ccdfcc | 587 | # Tell systemd to load modules |
4365ecaf JR |
588 | cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/modules-load.d/virtualbox-host.conf |
589 | cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/modules-load.d/virtualbox-guest.conf | |
d1c4ec5b | 590 | %endif |
05f1b1f5 | 591 | |
48363591 | 592 | %clean |
593 | rm -rf $RPM_BUILD_ROOT | |
594 | ||
3b63d3e8 | 595 | %pre |
596 | %groupadd -g 221 -r -f vbox | |
597 | ||
14561782 | 598 | %post |
1403ac49 | 599 | %update_desktop_database |
12db98a7 JR |
600 | for i in /sys/bus/usb/devices/*; do |
601 | if [ -r "$i/dev" ]; then | |
602 | dev="`cat "$i/dev" 2>/dev/null || true`" | |
603 | major="`expr "$dev" : '\(.*\):' 2> /dev/null || true`" | |
604 | minor="`expr "$dev" : '.*:\(.*\)' 2> /dev/null || true`" | |
605 | class="`cat $i/bDeviceClass 2> /dev/null || true`" | |
606 | /lib/udev/VBoxCreateUSBNode.sh "$major" "$minor" "$class" vbox 2>/dev/null | |
607 | fi | |
608 | done | |
1403ac49 | 609 | |
d8ed80f4 | 610 | cat << 'EOF' |
4365ecaf JR |
611 | You must install vboxdrv kernel modules for this software to work: |
612 | kernel%{_alt_kernel}-virtualbox-host-%{version}-%{rel}@%{_kernel_ver_str} | |
05f12a30 | 613 | |
fa974331 | 614 | On Guest Linux system you might want to install: |
4365ecaf | 615 | kernel%{_alt_kernel}-virtualbox-guest-%{version}-%{rel}@%{_kernel_ver_str} |
7841ddfd | 616 | |
d8ed80f4 | 617 | EOF |
618 | ||
3b63d3e8 | 619 | %postun |
620 | if [ "$1" = "0" ]; then | |
621 | %groupremove vbox | |
622 | fi | |
623 | ||
07e9b84d | 624 | %post guest |
31e46441 ER |
625 | /sbin/chkconfig --add vboxservice |
626 | %service vboxservice restart | |
4365ecaf | 627 | %systemd_post vboxservice.service |
07e9b84d | 628 | |
b93128e2 | 629 | %preun guest |
07e9b84d | 630 | if [ "$1" = "0" ]; then |
31e46441 ER |
631 | /sbin/chkconfig --del vboxservice |
632 | %service vboxservice -q stop | |
07e9b84d | 633 | fi |
4365ecaf | 634 | %systemd_preun vboxservice.service |
07e9b84d | 635 | |
4365ecaf JR |
636 | %postun guest |
637 | %systemd_reload | |
ece7f2f1 | 638 | |
4365ecaf JR |
639 | %triggerpostun guest -- VirtualBox-guest < 4.3.0-1 |
640 | %systemd_trigger vboxservice.service | |
ece7f2f1 | 641 | |
4365ecaf JR |
642 | %pre -n lightdm-greeter-vbox |
643 | %addusertogroup xdm vbox | |
74268e47 | 644 | |
4365ecaf | 645 | %post -n kernel%{_alt_kernel}-virtualbox-guest |
ece7f2f1 | 646 | %depmod %{_kernel_ver} |
ca8701ad | 647 | |
4365ecaf | 648 | %postun -n kernel%{_alt_kernel}-virtualbox-guest |
ece7f2f1 JR |
649 | %depmod %{_kernel_ver} |
650 | ||
4365ecaf | 651 | %post -n kernel%{_alt_kernel}-virtualbox-host |
67a4f3c1 | 652 | %depmod %{_kernel_ver} |
653 | ||
4365ecaf | 654 | %postun -n kernel%{_alt_kernel}-virtualbox-host |
67a4f3c1 | 655 | %depmod %{_kernel_ver} |
656 | ||
d1c4ec5b | 657 | %if %{with userspace} |
48363591 | 658 | %files |
659 | %defattr(644,root,root,755) | |
23790586 ER |
660 | %dir %{_libdir}/%{pname} |
661 | %dir %{_libdir}/%{pname}/ExtensionPacks | |
662 | %dir %{_libdir}/%{pname}/ExtensionPacks/VNC | |
663 | %dir %{_libdir}/%{pname}/ExtensionPacks/VNC/linux* | |
664 | %dir %{_libdir}/%{pname}/additions | |
665 | %dir %{_libdir}/%{pname}/components | |
666 | %dir %{_libdir}/%{pname}/nls | |
85b005e2 | 667 | %attr(755,root,root) %{_bindir}/VBoxBFE |
668 | %attr(755,root,root) %{_bindir}/VBoxHeadless | |
669 | %attr(755,root,root) %{_bindir}/VBoxManage | |
670 | %attr(755,root,root) %{_bindir}/VBoxSDL | |
671 | %attr(755,root,root) %{_bindir}/VBoxSVC | |
672 | %attr(755,root,root) %{_bindir}/VBoxTunctl | |
673 | %attr(755,root,root) %{_bindir}/VBoxXPCOMIPCD | |
48363591 | 674 | %attr(755,root,root) %{_bindir}/VirtualBox |
c11f39b3 | 675 | %attr(755,root,root) /sbin/mount.vdi |
23790586 ER |
676 | %attr(755,root,root) %{_libdir}/%{pname}/DBGCPlugInDiggers.so |
677 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAuth.so | |
678 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAuthSimple.so | |
679 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAutostart | |
23790586 | 680 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxBalloonCtrl |
23790586 ER |
681 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDbg.so |
682 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDD2.so | |
683 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDD.so | |
684 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDDU.so | |
685 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDragAndDropSvc.so | |
686 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxExtPackHelperApp | |
687 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxGuestControlSvc.so | |
688 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxGuestPropSvc.so | |
689 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxHeadless | |
690 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxHostChannel.so | |
691 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxKeyboard.so | |
692 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxManage | |
7733446a JR |
693 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetNAT |
694 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVolInfo | |
695 | %attr(755,root,root) %{_libdir}/%{pname}/iPxeBaseBin | |
8c76fad0 | 696 | %if %{with doc} |
23790586 | 697 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxManageHelp |
8c76fad0 | 698 | %endif |
23790586 ER |
699 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetAdpCtl |
700 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetDHCP | |
701 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLhostcrutil.so | |
702 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLhosterrorspu.so | |
703 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLrenderspu.so | |
704 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxPython*.so | |
705 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM.so | |
f701b529 | 706 | %ifarch %{ix86} |
23790586 ER |
707 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM32.so |
708 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM64.so | |
f701b529 | 709 | %endif |
23790586 ER |
710 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxRT.so |
711 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSDL | |
712 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedClipboard.so | |
713 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedCrOpenGL.so | |
714 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedFolders.so | |
715 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSVC | |
716 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSysInfo.sh | |
717 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxTestOGL | |
718 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxTunctl | |
719 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVMM.so | |
720 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVMMPreload | |
721 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMC.so | |
722 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMIPCD | |
723 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOM.so | |
724 | %attr(755,root,root) %{_libdir}/%{pname}/VirtualBox | |
725 | %attr(755,root,root) %{_libdir}/%{pname}/VirtualBox-wrapper.sh | |
726 | %attr(755,root,root) %{_libdir}/%{pname}/ExtensionPacks/VNC/linux*/VBoxVNC*.so | |
7733446a | 727 | %{_libdir}/%{pname}/VBoxDD2GC.debug |
23790586 | 728 | %{_libdir}/%{pname}/VBoxDD2GC.gc |
7733446a | 729 | %{_libdir}/%{pname}/VBoxDD2R0.debug |
23790586 | 730 | %{_libdir}/%{pname}/VBoxDD2R0.r0 |
7733446a JR |
731 | %{_libdir}/%{pname}/VBoxDDGC.debug |
732 | %{_libdir}/%{pname}/VBoxDDGC.gc | |
733 | %{_libdir}/%{pname}/VBoxDDR0.debug | |
23790586 | 734 | %{_libdir}/%{pname}/VBoxDDR0.r0 |
23790586 ER |
735 | %{_libdir}/%{pname}/VBoxEFI32.fd |
736 | %{_libdir}/%{pname}/VBoxEFI64.fd | |
7733446a JR |
737 | %{_libdir}/%{pname}/VMMGC.debug |
738 | %{_libdir}/%{pname}/VMMGC.gc | |
739 | %{_libdir}/%{pname}/VMMR0.debug | |
740 | %{_libdir}/%{pname}/VMMR0.r0 | |
23790586 ER |
741 | %{_libdir}/%{pname}/components/VBoxXPCOMBase.xpt |
742 | %{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack.xml | |
743 | %{_libdir}/%{pname}/components/VirtualBox_XPCOM.xpt | |
744 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxC.so | |
745 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxSVCM.so | |
746 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxXPCOMIPCC.so | |
747 | %lang(bg) %{_libdir}/%{pname}/nls/*_bg.qm | |
748 | %lang(ca) %{_libdir}/%{pname}/nls/*_ca.qm | |
749 | %lang(ca_VA) %{_libdir}/%{pname}/nls/*_ca_VA.qm | |
750 | %lang(cs) %{_libdir}/%{pname}/nls/*_cs.qm | |
751 | %lang(da) %{_libdir}/%{pname}/nls/*_da.qm | |
752 | %lang(de) %{_libdir}/%{pname}/nls/*_de.qm | |
753 | %lang(en) %{_libdir}/%{pname}/nls/*_en.qm | |
754 | %lang(es) %{_libdir}/%{pname}/nls/*_es.qm | |
755 | %lang(eu) %{_libdir}/%{pname}/nls/*_eu.qm | |
756 | %lang(fi) %{_libdir}/%{pname}/nls/*_fa_IR.qm | |
757 | %lang(fi) %{_libdir}/%{pname}/nls/*_fi.qm | |
758 | %lang(fr) %{_libdir}/%{pname}/nls/*_fr.qm | |
759 | %lang(gl_ES) %{_libdir}/%{pname}/nls/*_gl_ES.qm | |
760 | %lang(hu) %{_libdir}/%{pname}/nls/*_hu.qm | |
761 | %lang(id) %{_libdir}/%{pname}/nls/*_id.qm | |
762 | %lang(it) %{_libdir}/%{pname}/nls/*_it.qm | |
763 | %lang(ja) %{_libdir}/%{pname}/nls/*_ja.qm | |
764 | %lang(km_KH) %{_libdir}/%{pname}/nls/*_km_KH.qm | |
765 | %lang(ko) %{_libdir}/%{pname}/nls/*_ko.qm | |
766 | %lang(lt) %{_libdir}/%{pname}/nls/*_lt.qm | |
767 | %lang(nl) %{_libdir}/%{pname}/nls/*_nl.qm | |
768 | %lang(pl) %{_libdir}/%{pname}/nls/*_pl.qm | |
769 | %lang(pt) %{_libdir}/%{pname}/nls/*_pt.qm | |
770 | %lang(pt_BR) %{_libdir}/%{pname}/nls/*_pt_BR.qm | |
771 | %lang(ro) %{_libdir}/%{pname}/nls/*_ro.qm | |
772 | %lang(ru) %{_libdir}/%{pname}/nls/*_ru.qm | |
773 | %lang(sk) %{_libdir}/%{pname}/nls/*_sk.qm | |
774 | %lang(sr) %{_libdir}/%{pname}/nls/*_sr.qm | |
775 | %lang(sv) %{_libdir}/%{pname}/nls/*_sv.qm | |
776 | %lang(tr) %{_libdir}/%{pname}/nls/*_tr.qm | |
777 | %lang(uk) %{_libdir}/%{pname}/nls/*_uk.qm | |
778 | %lang(zh_CN) %{_libdir}/%{pname}/nls/*_zh_CN.qm | |
779 | %lang(zh_TW) %{_libdir}/%{pname}/nls/*_zh_TW.qm | |
9ce724ed | 780 | %{_pixmapsdir}/virtualbox.png |
dca6c443 | 781 | %{_desktopdir}/*.desktop |
23790586 ER |
782 | %{_libdir}/%{pname}/icons |
783 | %{_libdir}/%{pname}/virtualbox.xml | |
09c79ddb | 784 | |
12db98a7 JR |
785 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules |
786 | %attr(755,root,root) /lib/udev/VBoxCreateUSBNode.sh | |
787 | ||
ffb38bb6 | 788 | %files additions |
9dda6415 | 789 | %defattr(644,root,root,755) |
23790586 | 790 | %{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso |
ffb38bb6 | 791 | |
1067d08d ER |
792 | %files guest |
793 | %defattr(644,root,root,755) | |
c11f39b3 | 794 | %attr(755,root,root) /sbin/mount.vboxsf |
07e9b84d | 795 | %attr(754,root,root) /etc/rc.d/init.d/vboxservice |
4365ecaf | 796 | %{systemdunitdir}/vboxservice.service |
c0372ee9 ER |
797 | %attr(755,root,root) %{_bindir}/VBoxControl |
798 | %attr(755,root,root) %{_bindir}/VBoxService | |
799 | ||
800 | %files guest-x11 | |
3d9b19d8 | 801 | %defattr(644,root,root,755) |
785c600a ER |
802 | # NOTE: unfinished, should contain .desktop files for starting up mouse |
803 | # integration and other desktop services | |
89973837 | 804 | # NOTE: the filelist is incomplete too |
90de3b27 | 805 | %attr(755,root,root) %{_bindir}/VBoxClient |
90de3b27 ER |
806 | /etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh |
807 | /etc/xdg/autostart/vboxclient.desktop | |
1067d08d | 808 | |
23790586 ER |
809 | %attr(755,root,root) %{_libdir}/%{pname}/additions/autorun.sh |
810 | %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd | |
811 | %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd-service | |
812 | %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd-x11 | |
744bc35e | 813 | |
21a1d8ab ER |
814 | %if %{with webservice} |
815 | %files webservice | |
816 | %defattr(644,root,root,755) | |
817 | %attr(755,root,root) %{_libdir}/%{pname}/vboxwebsrv | |
818 | %attr(755,root,root) %{_libdir}/%{pname}/webtest | |
819 | %endif | |
820 | ||
8d08b907 | 821 | %if %{with lightdm} |
9e4dd6a9 | 822 | %files -n lightdm-greeter-vbox |
8d08b907 ER |
823 | %defattr(644,root,root,755) |
824 | %attr(755,root,root) %{_sbindir}/vbox-greeter | |
825 | %{_datadir}/xgreeters/vbox-greeter.desktop | |
826 | %endif | |
827 | ||
3613936b JR |
828 | %files -n pam-pam_vbox |
829 | %defattr(644,root,root,755) | |
3ee6b9d9 | 830 | %attr(755,root,root) /%{_lib}/security/pam_vbox.so |
3613936b | 831 | |
90de3b27 ER |
832 | %if %{with doc} |
833 | %files doc | |
834 | %defattr(644,root,root,755) | |
f0a66b84 JR |
835 | # this is a symlink... |
836 | %doc %{_libdir}/%{pname}/UserManual.pdf | |
6ee3b66d | 837 | %lang(fr) %doc %{_libdir}/%{pname}/UserManual_fr_FR.pdf |
f0a66b84 | 838 | # ..to this file |
90de3b27 | 839 | %doc %{outdir}/UserManual.pdf |
d43f5558 | 840 | %lang(fr) %doc %{outdir}/UserManual_fr_FR.pdf |
90de3b27 ER |
841 | %endif |
842 | ||
09c79ddb | 843 | %files -n xorg-driver-video-vboxvideo |
844 | %defattr(644,root,root,755) | |
845 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/vboxvideo_drv.so | |
27a1aef6 ER |
846 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/vboxvideo_dri.so |
847 | # vboxvideo_dri.so deps | |
1067d08d | 848 | %attr(755,root,root) %{_libdir}/VBoxOGLarrayspu.so |
27a1aef6 ER |
849 | %attr(755,root,root) %{_libdir}/VBoxOGLcrutil.so |
850 | %attr(755,root,root) %{_libdir}/VBoxOGLerrorspu.so | |
851 | %attr(755,root,root) %{_libdir}/VBoxOGLfeedbackspu.so | |
852 | %attr(755,root,root) %{_libdir}/VBoxOGLpackspu.so | |
853 | %attr(755,root,root) %{_libdir}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 854 | %endif |
48363591 | 855 | |
d1c4ec5b | 856 | %if %{with kernel} |
4365ecaf | 857 | %files -n kernel%{_alt_kernel}-virtualbox-guest |
74268e47 | 858 | %defattr(644,root,root,755) |
4365ecaf | 859 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/virtualbox-guest.conf |
dc0a2786 | 860 | /lib/modules/%{_kernel_ver}/misc/vboxguest.ko* |
4365ecaf JR |
861 | /lib/modules/%{_kernel_ver}/misc/vboxsf.ko* |
862 | /lib/modules/%{_kernel_ver}/misc/vboxvideo.ko* | |
74268e47 | 863 | |
4365ecaf JR |
864 | %files -n kernel%{_alt_kernel}-virtualbox-host |
865 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/virtualbox-host.conf | |
d1c4ec5b | 866 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko* |
d2a7514f | 867 | /lib/modules/%{_kernel_ver}/misc/vboxnetadp.ko* |
1dda2f69 | 868 | /lib/modules/%{_kernel_ver}/misc/vboxnetflt.ko* |
59d12745 | 869 | /lib/modules/%{_kernel_ver}/misc/vboxpci.ko* |
67a4f3c1 | 870 | %endif |