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