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