]>
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 | |
6ca4d491 | 50 | %define kbrs %(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo "BuildRequires:kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2" ; done) |
163ddb28 JR |
51 | %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) |
52 | %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) | |
53 | %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) | |
54 | ||
cd4d7202 | 55 | %define rel 2 |
33aeed61 | 56 | %define pname VirtualBox |
393ec35d ER |
57 | Summary: VirtualBox - x86 hardware virtualizer |
58 | Summary(pl.UTF-8): VirtualBox - wirtualizator sprzętu x86 | |
6ca4d491 | 59 | Name: %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel} |
453e6eef | 60 | Version: 4.3.6 |
6ca4d491 | 61 | Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}} |
48363591 | 62 | License: GPL v2 |
63 | Group: Applications/Emulators | |
33aeed61 | 64 | Source0: http://download.virtualbox.org/virtualbox/%{version}/%{pname}-%{version}.tar.bz2 |
453e6eef | 65 | # Source0-md5: 4bc874039f169215152fb40ca5062784 |
744bc35e | 66 | Source1: http://download.virtualbox.org/virtualbox/%{version}/VBoxGuestAdditions_%{version}.iso |
453e6eef | 67 | # Source1-md5: 13ea7dddbd3da36c76a6ee734a2b6a70 |
07e9b84d | 68 | Source2: vboxservice.init |
4365ecaf JR |
69 | Source3: vboxservice.service |
70 | Source4: %{pname}.sh | |
71 | Source5: mount.vdi | |
72 | Source6: udev.rules | |
73 | Source7: %{pname}-virtualbox-host-modules-load.conf | |
74 | Source8: %{pname}-virtualbox-guest-modules-load.conf | |
33aeed61 | 75 | Patch0: %{pname}-configure-spaces.patch |
db6f33e3 KK |
76 | Patch1: %{pname}-VBoxSysInfo.patch |
77 | Patch2: %{pname}-warning_workaround.patch | |
78 | Patch3: %{pname}-dri.patch | |
db6f33e3 | 79 | Patch5: xserver-1.12.patch |
d3884acf | 80 | Patch7: lightdm-greeter-glib-includes.patch |
8d08b907 | 81 | Patch8: lightdm-greeter-g++-link.patch |
acf12a87 | 82 | # ubuntu patches |
b980c81c ER |
83 | Patch10: 16-no-update.patch |
84 | Patch11: 18-system-xorg.patch | |
acf12a87 | 85 | # /ubuntu patches |
48363591 | 86 | URL: http://www.virtualbox.org/ |
83ffcfa8 | 87 | %if %{with userspace} |
ce9843cd ER |
88 | %ifarch %{x8664} |
89 | BuildRequires: gcc-multilib | |
90 | BuildRequires: glibc-devel(i686) | |
91 | BuildRequires: libstdc++-multilib-devel | |
4fff279a | 92 | BuildRequires: libstdc++-multilib-static |
ce9843cd | 93 | %endif |
ce9843cd ER |
94 | %if "%{pld_release}" == "ac" |
95 | BuildRequires: XFree86-devel | |
96 | %else | |
1abc0217 | 97 | BuildRequires: xorg-lib-libXcomposite-devel |
ce9843cd ER |
98 | BuildRequires: xorg-lib-libXcursor-devel |
99 | BuildRequires: xorg-lib-libXmu-devel | |
e649d11e | 100 | BuildRequires: xorg-proto-glproto-devel |
acf12a87 | 101 | BuildRequires: xorg-xserver-server-devel |
ce9843cd | 102 | %endif |
00149140 | 103 | BuildRequires: OpenGL-GLU-devel |
523e7409 | 104 | BuildRequires: OpenGL-devel |
cef75615 | 105 | BuildRequires: QtGui-devel |
2d17bb72 | 106 | BuildRequires: QtNetwork-devel |
dd64a424 | 107 | BuildRequires: QtOpenGL-devel |
c574efad | 108 | BuildRequires: SDL-devel >= 1.2.7 |
9a1cb119 | 109 | BuildRequires: acpica |
ba702945 | 110 | BuildRequires: alsa-lib-devel >= 1.0.6 |
e5aaadde | 111 | BuildRequires: bash |
48363591 | 112 | BuildRequires: bcc |
113 | BuildRequires: bin86 | |
07ef7f06 | 114 | BuildRequires: curl-devel |
fc19d844 | 115 | BuildRequires: device-mapper-devel |
8da42f47 | 116 | %{?with_doc:BuildRequires: docbook-dtd44-xml} |
df3c39bd | 117 | %{?with_lightdm:BuildRequires: fltk-devel} |
eba4b2aa | 118 | BuildRequires: gcc >= 5:3.2.3 |
55f7d7d3 | 119 | %{?with_webservice:BuildRequires: gsoap-devel} |
e9aa839a | 120 | BuildRequires: issue |
7733446a | 121 | BuildRequires: kBuild >= 0.1.9998.2700 |
48363591 | 122 | BuildRequires: libIDL-devel |
fa974331 | 123 | BuildRequires: libcap-static |
acf12a87 | 124 | BuildRequires: libdrm-devel |
ff01a704 | 125 | BuildRequires: libpng-devel >= 1.2.5 |
d22f0a53 | 126 | BuildRequires: libstdc++-devel >= 5:3.2.3 |
4fff279a | 127 | BuildRequires: libstdc++-static >= 5:3.2.3 |
48363591 | 128 | BuildRequires: libuuid-devel |
b75fd17a | 129 | BuildRequires: libvncserver-devel >= 0.9.9 |
df3c39bd | 130 | BuildRequires: libvpx-devel |
ba702945 | 131 | BuildRequires: libxml2-devel >= 2.6.26 |
76ea5ecb | 132 | BuildRequires: libxslt-devel >= 1.1.17 |
ba702945 | 133 | BuildRequires: libxslt-progs >= 1.1.17 |
7223ee37 | 134 | %{?with_lightdm:BuildRequires: lightdm-libs-qt-devel} |
744bc35e | 135 | BuildRequires: makeself |
90de3b27 | 136 | BuildRequires: mkisofs |
3613936b | 137 | BuildRequires: pam-devel |
acf12a87 | 138 | BuildRequires: pixman-devel |
0bf43862 | 139 | BuildRequires: pkgconfig |
ba702945 | 140 | BuildRequires: pulseaudio-devel >= 0.9.0 |
523e7409 | 141 | BuildRequires: python-devel |
6055e733 | 142 | BuildRequires: python-modules |
250583d4 | 143 | BuildRequires: qt4-build >= 4.2.0 |
2700662b | 144 | BuildRequires: qt4-linguist |
163ddb28 | 145 | BuildRequires: rpmbuild(macros) >= 1.678 |
1e840a77 | 146 | BuildRequires: sed >= 4.0 |
8da42f47 | 147 | %if %{with doc} |
744bc35e JR |
148 | BuildRequires: texlive-fonts-bitstream |
149 | BuildRequires: texlive-fonts-other | |
150 | BuildRequires: texlive-fonts-type1-bitstream | |
151 | BuildRequires: texlive-format-pdflatex | |
acf12a87 | 152 | BuildRequires: texlive-latex-ucs |
660fb056 | 153 | BuildRequires: texlive-xetex |
8da42f47 | 154 | %endif |
0bf43862 | 155 | BuildRequires: which |
e5aaadde | 156 | BuildRequires: xalan-c-devel >= 1.10.0 |
e5aaadde | 157 | BuildRequires: xerces-c-devel >= 2.6.0 |
fc19d844 | 158 | BuildRequires: yasm |
e5aaadde | 159 | BuildRequires: zlib-devel >= 1.2.1 |
23d9d34e | 160 | %endif |
6ca4d491 | 161 | %{?with_dist_kernel:%{expand:%kbrs}} |
0afa64ad | 162 | Requires(post,preun): /sbin/chkconfig |
5f1cec1f ER |
163 | Requires(postun): /usr/sbin/groupdel |
164 | Requires(pre): /usr/bin/getgid | |
165 | Requires(pre): /usr/sbin/groupadd | |
c061e8fb | 166 | Requires: QtCore >= 4.7.0 |
7b0aa429 | 167 | Requires: desktop-file-utils |
a9d4f661 ER |
168 | Requires: fontconfig |
169 | Requires: fonts-Type1-urw | |
b75fd17a | 170 | Requires: libvncserver >= 0.9.9 |
12db98a7 | 171 | Requires: udev-core |
fb661e50 | 172 | Suggests: gxmessage |
5f1cec1f | 173 | Provides: group(vbox) |
873b17cf | 174 | Obsoletes: VirtualBox-udev < 4.2.10-5 |
eba4b2aa | 175 | ExclusiveArch: %{ix86} %{x8664} |
48363591 | 176 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
177 | ||
eba4b2aa | 178 | %ifarch %{x8664} |
f377eb62 | 179 | %define vbox_arch amd64 |
5088674d | 180 | %else |
f377eb62 | 181 | %define vbox_arch x86 |
5088674d | 182 | %endif |
f377eb62 | 183 | %define vbox_platform linux.%{vbox_arch} |
27a1aef6 | 184 | %define outdir out/%{vbox_platform}/release/bin |
8d08b907 | 185 | %define objdir out/%{vbox_platform}/release/obj |
5088674d | 186 | |
48363591 | 187 | %description |
393ec35d | 188 | Oracle VirtualBox is a general-purpose full virtualizer for x86 |
48363591 | 189 | hardware. Targeted at server, desktop and embedded use, it is now the |
190 | only professional-quality virtualization solution that is also Open | |
191 | Source Software. | |
192 | ||
393ec35d | 193 | Some of the features of VirtualBox are: |
48363591 | 194 | |
393ec35d | 195 | Modularity: VirtualBox has an extremely modular design with |
48363591 | 196 | well-defined internal programming interfaces and a client/server |
197 | design. This makes it easy to control it from several interfaces at | |
198 | once: for example, you can start a virtual machine in a typical | |
199 | virtual machine GUI and then control that machine from the command | |
393ec35d ER |
200 | line. VirtualBox also comes with a full Software Development Kit: even |
201 | though it is Open Source Software, you don't have to hack the source | |
202 | to write a new interface for VirtualBox. | |
48363591 | 203 | |
204 | Virtual machine descriptions in XML: the configuration settings of | |
205 | virtual machines are stored entirely in XML and are independent of the | |
206 | local machines. Virtual machine definitions can therefore easily be | |
207 | ported to other computers. | |
208 | ||
1067d08d ER |
209 | You should install this package in your Host OS. |
210 | ||
fd8fc899 | 211 | %description -l pl.UTF-8 |
393ec35d ER |
212 | Oracle VirtualBox jest emulatorem sprzętu x86. Kierowany do zastosowań |
213 | serwerowych, desktopowych oraz wbudowanych jest obecnie jedynym | |
214 | wysokiej jakości rozwiązaniem wirtualizacyjnym dostępnym również jako | |
215 | Otwarte Oprogramowanie. | |
48363591 | 216 | |
fd8fc899 | 217 | Przykładowe cechy VirtualBoksa: |
48363591 | 218 | |
393ec35d | 219 | Modularność: VirtualBox jest wysoce zmodularyzowanym produktem z |
fd8fc899 JR |
220 | dobrze zaprojektowanym wewnętrznym interfejsem programowym typu |
221 | klient/serwer. Dzięki temu można łatwo kontrolować go za pomocą | |
222 | różnych interfejsów. Można na przykład uruchomić maszynę wirtualną z | |
223 | poziomu interfejsu graficznego, a później kontrolować ją z linii | |
393ec35d ER |
224 | poleceń. VirtualBox dostarcza również pełny pakiet deweloperski, co |
225 | pozwala stworzyć dowolny inny interfejs zarządzania maszyną wirtualną. | |
48363591 | 226 | |
fd8fc899 JR |
227 | Opisy maszyn wirtualnych w XML-u: konfiguracje poszczególnych maszyn |
228 | wirtualnych są w całości przechowywane w XML-u i są niezależne od | |
229 | lokalnej maszyny. Dzięki temu można szybko i łatwo przenieść | |
230 | konfigurację maszyny wirtualnej na inny komputer. | |
48363591 | 231 | |
90de3b27 ER |
232 | %package doc |
233 | Summary: VirtualBox documentation | |
234 | Group: Documentation | |
235 | ||
236 | %description doc | |
237 | This package contains VirtualBox User Manual. | |
238 | ||
ffb38bb6 ER |
239 | %package additions |
240 | Summary: VirtualBox Guest Additions | |
241 | Group: Base | |
242 | Requires: %{name} = %{version}-%{release} | |
243 | ||
00a4a7ca | 244 | %description additions |
ffb38bb6 ER |
245 | VirtualBox Guest Additions. |
246 | ||
247 | This package contains ISO9660 image with drivers for Guest OS. | |
248 | ||
1067d08d ER |
249 | You should install this package in your Host OS. |
250 | ||
251 | %package guest | |
c0372ee9 ER |
252 | Summary: VirtualBox Guest tools |
253 | Group: Base | |
ffb104d5 | 254 | Requires(post,preun): /sbin/chkconfig |
4365ecaf | 255 | Requires(post): systemd-units >= 38 |
ffb104d5 | 256 | Requires: rc-scripts |
2e3636e9 | 257 | Requires: systemd-units >= 38 |
3d9b19d8 ER |
258 | Suggests: kernel(vboxguest) |
259 | Suggests: kernel(vboxsf) | |
bf131a21 | 260 | Suggests: pam-pam_vbox |
c0372ee9 ER |
261 | |
262 | %description guest | |
263 | Tools that utilize kernel modules for supporting integration with the | |
264 | Host, including file sharing. | |
265 | ||
3d9b19d8 ER |
266 | You should install this package in your Guest OS for base VirtualBox |
267 | communication | |
c0372ee9 ER |
268 | |
269 | %package guest-x11 | |
1067d08d ER |
270 | Summary: VirtualBox Guest Additions |
271 | Group: Base | |
c0372ee9 | 272 | Requires: %{name}-guest = %{version}-%{release} |
1067d08d | 273 | Requires: xorg-driver-video-vboxvideo = %{version}-%{release} |
3d9b19d8 | 274 | Suggests: kernel(vboxvideo) |
873b17cf | 275 | Obsoletes: xorg-driver-input-vboxmouse < %{version}-%{release} |
1067d08d | 276 | |
c0372ee9 | 277 | %description guest-x11 |
3d9b19d8 ER |
278 | Tools for X11 session that utilize kernel modules for supporting |
279 | integration with the Host, like tracking of mouse pointer movement and | |
280 | X.org X11 video and mouse drivers | |
1067d08d | 281 | |
c0372ee9 | 282 | You should install this package in your Guest OS for X11 session. |
1067d08d | 283 | |
21a1d8ab ER |
284 | %package webservice |
285 | Summary: VirtualBox Web Service | |
286 | Group: Applications/Emulators | |
287 | Requires: %{name} = %{version}-%{release} | |
288 | ||
289 | %description webservice | |
290 | This package contains VirtualBox web service API daemon. It allows to | |
291 | control virtual machines via web interface. | |
292 | ||
9e4dd6a9 | 293 | %package -n lightdm-greeter-vbox |
8d08b907 ER |
294 | Summary: VirtualBox greeter for lightdm |
295 | Group: Themes | |
22380dc7 ER |
296 | # NOTE: '#' in url is lost because rpm treats it as comment, even hacking with |
297 | # macros doesn't help as rpmbuild takes final result to parse | |
8d08b907 | 298 | URL: http://www.virtualbox.org/manual/ch09.html#autologon_unix_lightdm |
4365ecaf | 299 | Requires: kernel(vboxguest) |
8d08b907 ER |
300 | Requires: lightdm >= 1.0.1 |
301 | Provides: lightdm-greeter | |
302 | ||
9e4dd6a9 | 303 | %description -n lightdm-greeter-vbox |
8d08b907 ER |
304 | VirtualBox greeter for LightDM. |
305 | ||
3613936b JR |
306 | %package -n pam-pam_vbox |
307 | Summary: PAM module to perform automated guest logons | |
308 | Group: Base | |
309 | ||
310 | %description -n pam-pam_vbox | |
3ee6b9d9 ER |
311 | PAM module (Pluggable Authentication Module) which can be used to |
312 | perform automated guest logons. | |
3613936b | 313 | |
fbea1005 | 314 | %package -n xorg-driver-video-vboxvideo |
393ec35d ER |
315 | Summary: X.org video driver for VirtualBox guest OS |
316 | Summary(pl.UTF-8): Sterownik grafiki dla systemu gościa w VirtualBoksie | |
fbea1005 | 317 | Group: X11/Applications |
20b8335d | 318 | Requires: Mesa-dri-driver-swrast |
fbea1005 ER |
319 | Requires: xorg-xserver-libdri >= 1.7.4 |
320 | Requires: xorg-xserver-server >= 1.0.99.901 | |
cd4d7202 | 321 | Requires: xorg-xserver-server(videodrv-abi) <= 15.0 |
fbea1005 | 322 | Requires: xorg-xserver-server(videodrv-abi) >= 2.0 |
2e3636e9 | 323 | Provides: xorg-driver-video |
fbea1005 ER |
324 | |
325 | %description -n xorg-driver-video-vboxvideo | |
393ec35d | 326 | X.org video driver for VirtualBox guest OS. |
fbea1005 ER |
327 | |
328 | %description -n xorg-driver-video-vboxvideo -l pl.UTF-8 | |
393ec35d | 329 | Sterownik grafiki dla systemu gościa w VirtualBoksie. |
fbea1005 | 330 | |
18adabff | 331 | # KERNEL PACKAGES |
b980c81c | 332 | |
18adabff | 333 | # KEEP ALL REGULAR SUBPACKAGES BEFORE KERNEL PACKAGES. |
b980c81c | 334 | |
163ddb28 JR |
335 | %define kernel_pkg()\ |
336 | %package -n kernel%{_alt_kernel}-virtualbox-guest\ | |
337 | Summary: VirtualBox kernel modules for Linux Guest\ | |
338 | Summary(pl.UTF-8): Moduły VirtualBoksa do jądra Linuksa dla systemu gościa\ | |
339 | Release: %{rel}@%{_kernel_ver_str}\ | |
340 | Group: Base/Kernel\ | |
341 | Requires(post,postun): /sbin/depmod\ | |
342 | Requires(post): systemd-units >= 38\ | |
343 | Requires: dev >= 2.9.0-7\ | |
344 | Requires: systemd-units >= 38\ | |
345 | %if %{with dist_kernel}\ | |
346 | %requires_releq_kernel\ | |
eb3ec0e6 | 347 | Requires: %{releq_kernel -n drm}\ |
163ddb28 JR |
348 | Requires(postun): %releq_kernel\ |
349 | %endif\ | |
163ddb28 JR |
350 | Provides: kernel(vboxguest) = %{version}-%{rel}\ |
351 | Provides: kernel(vboxsf) = %{version}-%{rel}\ | |
352 | Provides: kernel(vboxvideo) = %{version}-%{rel}\ | |
353 | Obsoletes: kernel-init-guest\ | |
354 | Conflicts: kernel%{_alt_kernel}-virtualbox-host\ | |
355 | \ | |
356 | %description -n kernel%{_alt_kernel}-virtualbox-guest\ | |
357 | This package contains VirtualBox Guest Additions for Linux Module,\ | |
358 | host file system access (Shared Folders) and DRM support for\ | |
359 | Linux guest system.\ | |
360 | \ | |
361 | %description -n kernel%{_alt_kernel}-virtualbox-guest -l pl.UTF-8\ | |
362 | Ten pakiet zawiera moduł jądra Linuksa vboxguest dla VirtualBoksa -\ | |
363 | dodatki dla systemu gościa, dostęp do plików systemu głównego z\ | |
364 | poziomu systemu gościa i sterownik obsługi DRM.\ | |
365 | \ | |
366 | %package -n kernel%{_alt_kernel}-virtualbox-host\ | |
367 | Summary: VirtualBox Support Drivers\ | |
368 | Summary(pl.UTF-8): Moduły jądra Linuksa dla VirtualBoksa\ | |
369 | Release: %{rel}@%{_kernel_ver_str}\ | |
370 | Group: Base/Kernel\ | |
371 | Requires(post,postun): /sbin/depmod\ | |
372 | Requires(post): systemd-units >= 38\ | |
373 | Requires: dev >= 2.9.0-7\ | |
374 | %if %{with dist_kernel}\ | |
375 | %requires_releq_kernel\ | |
376 | Requires(postun): %releq_kernel\ | |
377 | %endif\ | |
378 | Requires: systemd-units >= 38\ | |
163ddb28 JR |
379 | Provides: kernel(vboxdrv) = %{version}-%{rel}\ |
380 | Provides: kernel(vboxnetadp) = %{version}-%{rel}\ | |
381 | Provides: kernel(vboxnetflt) = %{version}-%{rel}\ | |
382 | Provides: kernel(vboxpci) = %{version}-%{rel}\ | |
383 | Obsoletes: kernel-init-host\ | |
384 | \ | |
385 | %description -n kernel%{_alt_kernel}-virtualbox-host\ | |
386 | This package contains VirtualBox Support Driver, Network Adapter\ | |
387 | Driver, Network Filter Driver and PCI card passthrough driver that\ | |
388 | works as host proxy between guest and PCI hardware.\ | |
389 | \ | |
390 | %description -n kernel%{_alt_kernel}-virtualbox-host -l pl.UTF-8\ | |
391 | Ten pakiet zawiera sterownik wsparcia dla systemu głównego, sterownik\ | |
392 | witrualnej karty sieciowej, sterownik filtrowania sieci dla systemu\ | |
393 | głównego oraz sterownik, ktory działa jako proxy między gościem i\ | |
394 | gospodarzem sprzętu PCI.\ | |
395 | \ | |
396 | %if %{with kernel}\ | |
397 | %files -n kernel%{_alt_kernel}-virtualbox-guest\ | |
398 | %defattr(644,root,root,755)\ | |
399 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/virtualbox-guest.conf\ | |
400 | /lib/modules/%{_kernel_ver}/misc/vboxguest.ko*\ | |
401 | /lib/modules/%{_kernel_ver}/misc/vboxsf.ko*\ | |
402 | /lib/modules/%{_kernel_ver}/misc/vboxvideo.ko*\ | |
403 | \ | |
404 | %files -n kernel%{_alt_kernel}-virtualbox-host\ | |
405 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/virtualbox-host.conf\ | |
406 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko*\ | |
407 | /lib/modules/%{_kernel_ver}/misc/vboxnetadp.ko*\ | |
408 | /lib/modules/%{_kernel_ver}/misc/vboxnetflt.ko*\ | |
409 | /lib/modules/%{_kernel_ver}/misc/vboxpci.ko*\ | |
410 | %endif\ | |
411 | \ | |
412 | %post -n kernel%{_alt_kernel}-virtualbox-guest\ | |
413 | %depmod %{_kernel_ver}\ | |
414 | \ | |
415 | %postun -n kernel%{_alt_kernel}-virtualbox-guest\ | |
416 | %depmod %{_kernel_ver}\ | |
417 | \ | |
418 | %post -n kernel%{_alt_kernel}-virtualbox-host\ | |
419 | %depmod %{_kernel_ver}\ | |
420 | \ | |
421 | %postun -n kernel%{_alt_kernel}-virtualbox-host\ | |
422 | %depmod %{_kernel_ver}\ | |
423 | %{nil} | |
424 | ||
425 | %define build_kernel_pkg()\ | |
426 | export KERN_DIR=%{_kernelsrcdir}\ | |
427 | cd PLD-MODULE-BUILD/HostDrivers\ | |
428 | %build_kernel_modules -m vboxdrv -C vboxdrv\ | |
429 | %build_kernel_modules -m vboxnetadp -C vboxnetadp\ | |
430 | %build_kernel_modules -m vboxnetflt -C vboxnetflt\ | |
431 | %build_kernel_modules -m vboxpci -C vboxpci\ | |
432 | cd ../GuestDrivers\ | |
433 | %build_kernel_modules -m vboxguest -C vboxguest\ | |
434 | cp -a vboxguest/Module.symvers vboxsf\ | |
435 | %build_kernel_modules -m vboxsf -C vboxsf -c\ | |
436 | %build_kernel_modules -m vboxvideo -C vboxvideo\ | |
437 | cd ../..\ | |
438 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/HostDrivers/vboxdrv/vboxdrv -d misc\ | |
439 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/HostDrivers/vboxnetadp/vboxnetadp -d misc\ | |
440 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/HostDrivers/vboxnetflt/vboxnetflt -d misc\ | |
441 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/HostDrivers/vboxpci/vboxpci -d misc\ | |
442 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/GuestDrivers/vboxguest/vboxguest -d misc\ | |
443 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/GuestDrivers/vboxsf/vboxsf -d misc\ | |
444 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/GuestDrivers/vboxvideo/vboxvideo -d misc\ | |
445 | %{nil} | |
446 | ||
447 | %{?with_kernel:%{expand:%kpkg}} | |
67a4f3c1 | 448 | |
48363591 | 449 | %prep |
33aeed61 | 450 | %setup -q -n %{pname}-%{version} |
e709ce6b | 451 | %patch0 -p1 |
db6f33e3 | 452 | %patch1 -p1 |
006342ee | 453 | %patch2 -p1 |
8473a80d | 454 | %patch3 -p1 |
9a7b1cdc | 455 | %patch5 -p1 |
d3884acf | 456 | %patch7 -p1 |
8d08b907 | 457 | %patch8 -p1 |
fddcb741 | 458 | |
744bc35e JR |
459 | %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \ |
460 | -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in | |
0b6de2b7 | 461 | |
f471b832 ER |
462 | # Respect LDFLAGS |
463 | %{__sed} -i -e "s@_LDFLAGS\.%{vbox_arch}*.*=@& %{rpmldflags}@g" \ | |
464 | -i Config.kmk src/libs/xpcom18a4/Config.kmk | |
465 | ||
4365ecaf | 466 | %{__sed} 's#@LIBDIR@#%{_libdir}#' < %{SOURCE4} > VirtualBox-wrapper.sh |
fa19f650 | 467 | |
1794e74d ER |
468 | install -d PLD-MODULE-BUILD/{GuestDrivers,HostDrivers} |
469 | cd PLD-MODULE-BUILD | |
470 | ../src/VBox/Additions/linux/export_modules guest-modules.tar.gz | |
471 | tar -zxf guest-modules.tar.gz -C GuestDrivers | |
472 | ||
cadbdf55 | 473 | ../src/VBox/HostDrivers/linux/export_modules host-modules.tar.gz --without-hardening |
1794e74d ER |
474 | tar -zxf host-modules.tar.gz -C HostDrivers |
475 | cd - | |
59d12745 KK |
476 | %patch10 -p1 |
477 | %patch11 -p1 | |
478 | ||
e9ed9ec1 ER |
479 | # using system kBuild package |
480 | %{__rm} -r kBuild | |
481 | ||
316a5697 ER |
482 | cat <<'EOF'>> LocalConfig.kmk |
483 | %{?with_verbose:KBUILD_VERBOSE=3} | |
484 | USERNAME=%(id -un) | |
485 | __VBOX_BUILD_PUBLISHER=_PLD | |
486 | VBOX_VERSION_STRING=$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)_PLD | |
487 | XSERVER_VERSION=%(rpm -q --queryformat '%{V}\n' xorg-xserver-server-devel | awk -F. '{ print $1 $2 }' 2>/dev/null || echo ERROR) | |
488 | VBOX_USE_SYSTEM_XORG_HEADERS=1 | |
489 | %if %{with lightdm} | |
490 | VBOX_WITH_LIGHTDM_GREETER=1 | |
491 | VBOX_WITH_LIGHTDM_GREETER_PACKING=1 | |
492 | %endif | |
493 | TOOL_GCC3_CFLAGS=%{rpmcflags} | |
494 | TOOL_GCC3_CXXFLAGS=%{rpmcxxflags} | |
495 | VBOX_GCC_OPT=%{rpmcxxflags} | |
496 | VBOX_WITH_TESTCASES= | |
497 | EOF | |
498 | ||
fddcb741 | 499 | %build |
83ffcfa8 | 500 | %if %{with userspace} |
106d8451 | 501 | ./configure \ |
ae1bbc88 | 502 | --with-gcc="%{__cc}" \ |
503 | --with-g++="%{__cxx}" \ | |
8da42f47 | 504 | %{!?with_doc:--disable-docs} \ |
744bc35e | 505 | --disable-java \ |
5a497466 | 506 | --disable-hardening \ |
01e414ba | 507 | --disable-kmods \ |
55f7d7d3 ER |
508 | --enable-vnc \ |
509 | %{__enable webservice} \ | |
510 | %{nil} | |
48363591 | 511 | |
89973837 | 512 | XSERVER_VERSION=$(rpm -q --queryformat '%{VERSION}\n' xorg-xserver-server-devel | awk -F. ' { print $1 $2 } ' 2> /dev/null || echo ERROR) |
316a5697 | 513 | kmk %{?_smp_mflags} |
74268e47 | 514 | |
744bc35e | 515 | %{__cc} %{rpmcflags} %{rpmldflags} -Wall -Werror src/VBox/Additions/linux/sharedfolders/{mount.vboxsf.c,vbsfmount.c} -o mount.vboxsf |
d1c4ec5b | 516 | %endif |
48363591 | 517 | |
51ef4838 JR |
518 | %{?with_kernel:%{expand:%bkpkg}} |
519 | ||
48363591 | 520 | %install |
521 | rm -rf $RPM_BUILD_ROOT | |
522 | ||
d1c4ec5b | 523 | %if %{with userspace} |
c11f39b3 | 524 | install -d $RPM_BUILD_ROOT{%{_bindir},/sbin,%{_sbindir},%{_libdir}/%{pname}/ExtensionPacks} \ |
744bc35e | 525 | $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \ |
12db98a7 | 526 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,dri,input} \ |
4365ecaf JR |
527 | $RPM_BUILD_ROOT{/lib/udev,/etc/udev/rules.d} \ |
528 | $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{systemdunitdir}} | |
a70507fb | 529 | |
dca6c443 ER |
530 | # test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition |
531 | if cp -al VBox.png $RPM_BUILD_ROOT/Vbox.png 2>/dev/null; then | |
532 | l=l | |
ffd7f18a | 533 | %{__rm} -f $RPM_BUILD_ROOT/VBox.png |
dca6c443 ER |
534 | fi |
535 | ||
33aeed61 | 536 | cp -a$l %{outdir}/* $RPM_BUILD_ROOT%{_libdir}/%{pname} |
b75fd17a KK |
537 | |
538 | %if %{with doc} | |
26489c61 | 539 | ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual.pdf |
6ee3b66d | 540 | ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual_fr_FR.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual_fr_FR.pdf |
b75fd17a | 541 | %endif |
dca6c443 | 542 | |
23790586 | 543 | install -d $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions |
6110bfb9 | 544 | cp -a$l %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso |
4365ecaf | 545 | install -p %{SOURCE5} $RPM_BUILD_ROOT/sbin/mount.vdi |
33aeed61 | 546 | install -p VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_libdir}/%{pname} |
5b399826 | 547 | for f in {VBox{BFE,Headless,Manage,SDL,SVC,Tunctl,XPCOMIPCD},VirtualBox}; do |
33aeed61 | 548 | ln -s %{_libdir}/%{pname}/VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/$f |
05f1b1f5 | 549 | done |
550 | ||
4365ecaf JR |
551 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxservice |
552 | install -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/vboxservice.service | |
553 | ||
ffd7f18a JR |
554 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/VBox.png,%{_pixmapsdir}/virtualbox.png} |
555 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname},%{_desktopdir}}/virtualbox.desktop | |
48363591 | 556 | |
ffd7f18a JR |
557 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxvideo_drv_system.so,%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so} |
558 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/VBoxOGL.so,%{_libdir}/xorg/modules/dri/vboxvideo_dri.so} | |
916ab34d | 559 | |
27a1aef6 | 560 | # XXX: where else to install them that vboxvideo_dri.so finds them? patch with rpath? |
ffd7f18a JR |
561 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLarrayspu.so |
562 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLcrutil.so | |
563 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLerrorspu.so | |
564 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLfeedbackspu.so | |
565 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpackspu.so | |
566 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 567 | |
4365ecaf | 568 | cp -a %{SOURCE6} $RPM_BUILD_ROOT/etc/udev/rules.d/virtualbox.rules |
12db98a7 | 569 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname},/lib/udev}/VBoxCreateUSBNode.sh |
dca6c443 | 570 | |
3613936b | 571 | install -d $RPM_BUILD_ROOT/%{_lib}/security |
ffd7f18a | 572 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,/%{_lib}/security}/pam_vbox.so |
3613936b | 573 | |
dca6c443 | 574 | # cleanup unpackaged |
ffd7f18a JR |
575 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/{src,sdk,testcase} |
576 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/src | |
577 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxkeyboard.tar.bz2 | |
578 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/tst* | |
579 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack-license.* | |
1067d08d ER |
580 | |
581 | # Guest Only Tools | |
90de3b27 | 582 | install -d $RPM_BUILD_ROOT/etc/{X11/xinit/xinitrc.d,xdg/autostart} |
ffd7f18a JR |
583 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxService |
584 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxClient | |
585 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxControl | |
90de3b27 ER |
586 | install -p -D src/VBox/Additions/x11/Installer/98vboxadd-xclient \ |
587 | $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh | |
588 | cp -p src/VBox/Additions/x11/Installer/vboxclient.desktop \ | |
589 | $RPM_BUILD_ROOT/etc/xdg/autostart/vboxclient.desktop | |
1067d08d | 590 | |
8d08b907 ER |
591 | %if %{with lightdm} |
592 | install -d $RPM_BUILD_ROOT%{_datadir}/xgreeters | |
29c4b6b6 | 593 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_sbindir}}/vbox-greeter |
8d08b907 ER |
594 | cp -p %{objdir}/Additions/Installer/linux/share/VBoxGuestAdditions/vbox-greeter.desktop $RPM_BUILD_ROOT%{_datadir}/xgreeters |
595 | %endif | |
596 | ||
dca6c443 | 597 | # unknown - checkme |
1067d08d | 598 | %if 1 |
ffd7f18a JR |
599 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPInstall |
600 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPLoggerCtl | |
601 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPUninstall | |
602 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBox.sh | |
603 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxshell.py | |
604 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/xpidl | |
605 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/runasroot.sh | |
606 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/load.sh | |
607 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/loadall.sh | |
608 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/CPUMInternal.d | |
609 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/cpumctx.d | |
610 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vbox-arch-types.d | |
611 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vbox-types.d | |
612 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vm.d | |
613 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/x86.d | |
614 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/testcase/%{vbox_arch}/vbox-vm-struct-test.d | |
615 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/helpers/generate_service_file | |
616 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/VBoxHeadlessXOrg.sh | |
617 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/generated.sh | |
618 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/init_template.sh | |
619 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/install_service | |
1067d08d | 620 | %endif |
dca6c443 | 621 | |
ffd7f18a | 622 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf |
e56dcfeb JR |
623 | |
624 | install -p mount.vboxsf $RPM_BUILD_ROOT/sbin/mount.vboxsf | |
da083e45 | 625 | %endif |
33233365 | 626 | |
da083e45 | 627 | %if %{with kernel} |
4365ecaf | 628 | install -d $RPM_BUILD_ROOT{/etc/modules-load.d,/sbin} |
163ddb28 JR |
629 | |
630 | cp -a PLD-MODULE-BUILD/installed/* $RPM_BUILD_ROOT | |
fa974331 | 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 |