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