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