]>
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 | |
c875c0ef | 35 | %define rel 2 |
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} |
fb54c8b5 | 41 | Version: 4.1.0 |
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 |
fb54c8b5 | 46 | # Source0-md5: 02556a6b4877cfdfbaa3ce0a0c0dcf31 |
744bc35e | 47 | Source1: http://download.virtualbox.org/virtualbox/%{version}/VBoxGuestAdditions_%{version}.iso |
fb54c8b5 | 48 | # Source1-md5: 0f4cd4926333d0567e8dea7faf3138c7 |
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 |
59d12745 KK |
54 | Source8: %{pname}-vboxpci.init |
55 | Source9: %{pname}.sh | |
56 | Source10: mount.vdi | |
57 | Source11: udev.rules | |
f1590463 | 58 | Patch0: %{pname}-configure-spaces.patch |
59 | Patch1: %{pname}-export_modules.patch | |
60 | Patch2: %{pname}-VBoxSysInfo.patch | |
61 | Patch3: %{pname}-warning_workaround.patch | |
62 | Patch4: %{pname}-vnc.patch | |
9a7b1cdc | 63 | Patch5: %{pname}-dri.patch |
59d12745 KK |
64 | Patch6: %{pname}-disable_build_NetBiosBin.patch |
65 | Patch7: %{pname}-build.patch | |
acf12a87 | 66 | # ubuntu patches |
59d12745 KK |
67 | Patch10: 16-no-update.patch |
68 | Patch11: 18-system-xorg.patch | |
acf12a87 | 69 | # /ubuntu patches |
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 |
01e414ba | 109 | BuildRequires: libvncserver-devel >= 0.9.7 |
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 | ||
18adabff ER |
290 | # KERNEL PACKAGES |
291 | # KEEP ALL REGULAR SUBPACKAGES BEFORE KERNEL PACKAGES. | |
dc0a2786 | 292 | %package -n kernel%{_alt_kernel}-misc-vboxguest |
b0444796 | 293 | Summary: VirtualBox OSE Guest Additions for Linux Module |
ea074a55 | 294 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
fe3d1798 | 295 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 296 | Group: Base/Kernel |
297 | Requires(post,postun): /sbin/depmod | |
298 | Requires: dev >= 2.9.0-7 | |
299 | %if %{with dist_kernel} | |
300 | %requires_releq_kernel | |
ca8701ad | 301 | Requires(postun): %releq_kernel |
74268e47 | 302 | %endif |
dc0a2786 AG |
303 | Provides: kernel(vboxguest) = %{version}-%{rel} |
304 | Obsoletes: kernel%{_alt_kernel}-misc-vboxadd | |
f7de19b3 | 305 | Conflicts: kernel%{_alt_kernel}-misc-vboxdrv |
74268e47 | 306 | |
dc0a2786 | 307 | %description -n kernel%{_alt_kernel}-misc-vboxguest |
b0444796 | 308 | VirtualBox OSE Guest Additions for Linux Module. |
74268e47 | 309 | |
91e5103c ER |
310 | You should install this package in your Guest OS. |
311 | ||
dc0a2786 | 312 | %description -n kernel%{_alt_kernel}-misc-vboxguest -l pl.UTF-8 |
9dda6415 ER |
313 | Moduł jądra Linuksa vboxguest dla VirtualBoksa OSE - dodatki dla |
314 | systemu gościa. | |
74268e47 | 315 | |
48363591 | 316 | %package -n kernel%{_alt_kernel}-misc-vboxdrv |
b0444796 | 317 | Summary: VirtualBox OSE Support Driver |
ea074a55 | 318 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
fe3d1798 | 319 | Release: %{rel}@%{_kernel_ver_str} |
48363591 | 320 | Group: Base/Kernel |
321 | Requires(post,postun): /sbin/depmod | |
322 | Requires: dev >= 2.9.0-7 | |
323 | %if %{with dist_kernel} | |
d6f0c54e | 324 | %requires_releq_kernel |
325 | Requires(postun): %releq_kernel | |
48363591 | 326 | %endif |
fe3d1798 | 327 | Provides: kernel(vboxdrv) = %{version}-%{rel} |
48363591 | 328 | |
329 | %description -n kernel%{_alt_kernel}-misc-vboxdrv | |
b0444796 | 330 | VirtualBox OSE Support Driver. |
48363591 | 331 | |
91e5103c ER |
332 | You should install this package in your Host OS. |
333 | ||
fd8fc899 | 334 | %description -n kernel%{_alt_kernel}-misc-vboxdrv -l pl.UTF-8 |
ea074a55 | 335 | Moduł jądra Linuksa dla VirtualBoksa OSE - sterownik wsparcia dla |
336 | systemu głównego. | |
48363591 | 337 | |
d2a7514f | 338 | %package -n kernel%{_alt_kernel}-misc-vboxnetadp |
9dda6415 | 339 | Summary: VirtualBox OSE Network Adapter Driver |
d2a7514f ŁK |
340 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
341 | Release: %{rel}@%{_kernel_ver_str} | |
342 | Group: Base/Kernel | |
343 | Requires(post,postun): /sbin/depmod | |
344 | Requires: dev >= 2.9.0-7 | |
345 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
346 | %if %{with dist_kernel} | |
347 | %requires_releq_kernel | |
348 | Requires(postun): %releq_kernel | |
349 | %endif | |
350 | Provides: kernel(vboxnetflt) = %{version}-%{rel} | |
351 | ||
352 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp | |
353 | VirtualBox OSE Network Adapter Driver. | |
354 | ||
91e5103c ER |
355 | You should install this package in your Host OS. |
356 | ||
d2a7514f | 357 | %description -n kernel%{_alt_kernel}-misc-vboxnetadp -l pl.UTF-8 |
9dda6415 ER |
358 | Moduł jądra Linuksa dla VirtualBoksa OSE - sterownik witrualnej karty |
359 | sieciowej. | |
d2a7514f | 360 | |
1dda2f69 | 361 | %package -n kernel%{_alt_kernel}-misc-vboxnetflt |
9dda6415 | 362 | Summary: VirtualBox OSE Network Filter Driver |
ea074a55 | 363 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
1dda2f69 | 364 | Release: %{rel}@%{_kernel_ver_str} |
365 | Group: Base/Kernel | |
366 | Requires(post,postun): /sbin/depmod | |
367 | Requires: dev >= 2.9.0-7 | |
368 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
369 | %if %{with dist_kernel} | |
370 | %requires_releq_kernel | |
371 | Requires(postun): %releq_kernel | |
372 | %endif | |
373 | Provides: kernel(vboxnetflt) = %{version}-%{rel} | |
374 | ||
375 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt | |
ea074a55 | 376 | VirtualBox OSE Network Filter Driver. |
1dda2f69 | 377 | |
91e5103c ER |
378 | You should install this package in your Host OS. |
379 | ||
1dda2f69 | 380 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt -l pl.UTF-8 |
4f09a416 ER |
381 | Moduł jądra Linuksa dla VirtualBoksa OSE - sterownik filtrowania sieci |
382 | dla systemu głównego. | |
1dda2f69 | 383 | |
59d12745 KK |
384 | %package -n kernel%{_alt_kernel}-misc-vboxpci |
385 | Summary: VirtualBox OSE PCI card passthrough Driver | |
386 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE | |
387 | Release: %{rel}@%{_kernel_ver_str} | |
388 | Group: Base/Kernel | |
389 | Requires(post,postun): /sbin/depmod | |
390 | Requires: dev >= 2.9.0-7 | |
391 | Requires: kernel%{_alt_kernel}-misc-vboxdrv | |
392 | %if %{with dist_kernel} | |
393 | %requires_releq_kernel | |
394 | Requires(postun): %releq_kernel | |
395 | %endif | |
396 | Provides: kernel(vboxpci) = %{version}-%{rel} | |
397 | ||
398 | %description -n kernel%{_alt_kernel}-misc-vboxpci | |
399 | VirtualBox OSE PCI card passthrough driver that works as host proxy between | |
400 | guest and PCI hardware. | |
401 | ||
402 | You should install this package in your Host OS. | |
403 | ||
404 | %description -n kernel%{_alt_kernel}-misc-vboxnetflt -l pl.UTF-8 | |
405 | Moduł jądra Linuksa dla VirtualBoksa OSE - sterownik, ktory działa jako proxy | |
406 | między gościem i gospodarzem sprzętu PCI. | |
407 | ||
ecfe25a3 PS |
408 | %package -n kernel%{_alt_kernel}-misc-vboxsf |
409 | Summary: Host file system access (Shared Folders) for VirtualBox OSE | |
ea074a55 | 410 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE |
fe3d1798 | 411 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 412 | Group: Base/Kernel |
413 | Requires(post,postun): /sbin/depmod | |
414 | Requires: dev >= 2.9.0-7 | |
dc0a2786 | 415 | Requires: kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 416 | %if %{with dist_kernel} |
417 | %requires_releq_kernel | |
418 | Requires(postun): %releq_kernel | |
419 | %endif | |
ecfe25a3 PS |
420 | Provides: kernel(vboxsf) = %{version}-%{rel} |
421 | Obsoletes: kernel%{_alt_kernel}-misc-vboxvfs | |
74268e47 | 422 | |
ecfe25a3 PS |
423 | %description -n kernel%{_alt_kernel}-misc-vboxsf |
424 | Host file system access (Shared Folders) for VirtualBox OSE. | |
74268e47 | 425 | |
91e5103c ER |
426 | You should install this package in your Guest OS. |
427 | ||
ecfe25a3 | 428 | %description -n kernel%{_alt_kernel}-misc-vboxsf -l pl.UTF-8 |
4f09a416 ER |
429 | Moduł jądra Linuksa dla VirtualBoksa OSE - dostęp do plików systemu |
430 | głównego z poziomu systemu gościa. | |
74268e47 | 431 | |
67a4f3c1 | 432 | %package -n kernel%{_alt_kernel}-misc-vboxvideo |
433 | Summary: DRM support for VirtualBox OSE | |
434 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa OSE | |
435 | Release: %{rel}@%{_kernel_ver_str} | |
436 | Group: Base/Kernel | |
437 | Requires(post,postun): /sbin/depmod | |
438 | Requires: dev >= 2.9.0-7 | |
439 | %if %{with dist_kernel} | |
440 | %requires_releq_kernel | |
d0471f70 | 441 | %if "%{rpm_build_macros}" >= "1.531" |
d14fba96 | 442 | %requires_releq_kernel -n drm |
d0471f70 | 443 | %endif |
67a4f3c1 | 444 | Requires(postun): %releq_kernel |
445 | %endif | |
446 | Provides: kernel(vboxvideo) = %{version}-%{rel} | |
447 | ||
448 | %description -n kernel%{_alt_kernel}-misc-vboxvideo | |
449 | DRM support for VirtualBox OSE. | |
450 | ||
91e5103c ER |
451 | You should install this package in your Guest OS. |
452 | ||
67a4f3c1 | 453 | %description -n kernel%{_alt_kernel}-misc-vboxvideo -l pl.UTF-8 |
454 | Moduł jądra Linuksa dla VirtualBoksa OSE - sterownik obsługi DRM. | |
455 | ||
48363591 | 456 | %prep |
506ebac4 | 457 | %setup -q -n %{pname}-%{version}_OSE |
e709ce6b | 458 | %patch0 -p1 |
006342ee AM |
459 | %patch1 -p1 |
460 | %patch2 -p1 | |
8473a80d | 461 | %patch3 -p1 |
dced50c1 | 462 | %patch4 -p1 |
9a7b1cdc | 463 | %patch5 -p1 |
59d12745 KK |
464 | %patch6 -p1 |
465 | %patch7 -p1 | |
fddcb741 | 466 | |
744bc35e JR |
467 | %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \ |
468 | -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in | |
0b6de2b7 | 469 | |
59d12745 | 470 | sed 's#@LIBDIR@#%{_libdir}#' < %{SOURCE9} > VirtualBox-wrapper.sh |
fa19f650 | 471 | |
1794e74d ER |
472 | install -d PLD-MODULE-BUILD/{GuestDrivers,HostDrivers} |
473 | cd PLD-MODULE-BUILD | |
474 | ../src/VBox/Additions/linux/export_modules guest-modules.tar.gz | |
475 | tar -zxf guest-modules.tar.gz -C GuestDrivers | |
476 | ||
cadbdf55 | 477 | ../src/VBox/HostDrivers/linux/export_modules host-modules.tar.gz --without-hardening |
1794e74d ER |
478 | tar -zxf host-modules.tar.gz -C HostDrivers |
479 | cd - | |
59d12745 KK |
480 | %patch10 -p1 |
481 | %patch11 -p1 | |
482 | ||
05f1b1f5 | 483 | |
fddcb741 | 484 | %build |
83ffcfa8 | 485 | %if %{with userspace} |
c6e3c003 | 486 | echo "VBOX_WITH_TESTCASES := " > LocalConfig.kmk |
106d8451 | 487 | ./configure \ |
ae1bbc88 | 488 | --with-gcc="%{__cc}" \ |
489 | --with-g++="%{__cxx}" \ | |
8da42f47 | 490 | %{!?with_doc:--disable-docs} \ |
744bc35e | 491 | --disable-java \ |
5a497466 | 492 | --disable-hardening \ |
01e414ba JR |
493 | --disable-kmods \ |
494 | --enable-vnc | |
48363591 | 495 | |
89973837 | 496 | XSERVER_VERSION=$(rpm -q --queryformat '%{VERSION}\n' xorg-xserver-server-devel | awk -F. ' { print $1 $2 } ' 2> /dev/null || echo ERROR) |
0864aefd | 497 | . ./env.sh && \ |
acf12a87 AM |
498 | kmk -j1 \ |
499 | %{?with_verbose:KBUILD_VERBOSE=3} \ | |
500 | USER=$(id -un) \ | |
89973837 ER |
501 | VBOX_VERSION_STRING='$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)'_PLD \ |
502 | XSERVER_VERSION="$XSERVER_VERSION" | |
48363591 | 503 | %endif |
74268e47 | 504 | |
505 | %if %{with kernel} | |
1794e74d ER |
506 | cd PLD-MODULE-BUILD/HostDrivers |
507 | %build_kernel_modules -m vboxdrv -C vboxdrv | |
508 | %build_kernel_modules -m vboxnetadp -C vboxnetadp | |
509 | %build_kernel_modules -m vboxnetflt -C vboxnetflt | |
59d12745 | 510 | %build_kernel_modules -m vboxpci -C vboxpci |
1794e74d ER |
511 | |
512 | cd ../GuestDrivers | |
dc0a2786 | 513 | %build_kernel_modules -m vboxguest -C vboxguest |
ecfe25a3 PS |
514 | cp -a vboxguest/Module.symvers vboxsf |
515 | %build_kernel_modules -m vboxsf -C vboxsf -c | |
67a4f3c1 | 516 | %build_kernel_modules -m vboxvideo -C vboxvideo_drm |
1794e74d | 517 | cd ../.. |
744bc35e | 518 | %{__cc} %{rpmcflags} %{rpmldflags} -Wall -Werror src/VBox/Additions/linux/sharedfolders/{mount.vboxsf.c,vbsfmount.c} -o mount.vboxsf |
d1c4ec5b | 519 | %endif |
48363591 | 520 | |
521 | %install | |
522 | rm -rf $RPM_BUILD_ROOT | |
523 | ||
d1c4ec5b | 524 | %if %{with userspace} |
744bc35e JR |
525 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/%{pname}/ExtensionPacks} \ |
526 | $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \ | |
dca6c443 | 527 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,dri,input} |
a70507fb | 528 | |
dca6c443 ER |
529 | # test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition |
530 | if cp -al VBox.png $RPM_BUILD_ROOT/Vbox.png 2>/dev/null; then | |
531 | l=l | |
532 | rm -f $RPM_BUILD_ROOT/VBox.png | |
533 | fi | |
534 | ||
744bc35e | 535 | cp -a$l %{outdir}/* $RPM_BUILD_ROOT%{_libdir}/%{pname} |
dca6c443 | 536 | |
744bc35e | 537 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/VirtualBox/additions/VBoxGuestAdditions.iso |
59d12745 | 538 | install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sbindir}/mount.vdi |
dca6c443 | 539 | install -p VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_libdir}/%{pname} |
5b399826 | 540 | for f in {VBox{BFE,Headless,Manage,SDL,SVC,Tunctl,XPCOMIPCD},VirtualBox}; do |
dca6c443 | 541 | ln -s %{_libdir}/%{pname}/VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/$f |
05f1b1f5 | 542 | done |
543 | ||
9ce724ed | 544 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/VBox.png,%{_pixmapsdir}/virtualbox.png} |
7bb1ab10 | 545 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname},%{_desktopdir}}/virtualbox.desktop |
48363591 | 546 | |
acf12a87 AM |
547 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxmouse_drv.so,%{_libdir}/xorg/modules/input/vboxmouse_drv.so} |
548 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxvideo_drv.so,%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so} | |
dca6c443 ER |
549 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/VBoxOGL.so,%{_libdir}/xorg/modules/dri/vboxvideo_dri.so} |
550 | # xorg other driver versions | |
d0471f70 ER |
551 | rm -vf $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/vboxmouse_drv*.{o,so} |
552 | rm -vf $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/vboxvideo_drv*.{o,so} | |
916ab34d | 553 | |
27a1aef6 | 554 | # XXX: where else to install them that vboxvideo_dri.so finds them? patch with rpath? |
1067d08d | 555 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLarrayspu.so |
dca6c443 | 556 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLcrutil.so |
dca6c443 ER |
557 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLerrorspu.so |
558 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLfeedbackspu.so | |
1067d08d | 559 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpackspu.so |
dca6c443 | 560 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpassthroughspu.so |
d1c4ec5b | 561 | |
33233365 | 562 | install -d $RPM_BUILD_ROOT/etc/udev/rules.d |
59d12745 | 563 | cp -a %{SOURCE11} $RPM_BUILD_ROOT/etc/udev/rules.d/virtualbox.rules |
dca6c443 | 564 | |
3613936b JR |
565 | install -d $RPM_BUILD_ROOT/%{_lib}/security |
566 | mv $RPM_BUILD_ROOT{%{_libdir}/VirtualBox/additions,/%{_lib}/security}/pam_vbox.so | |
567 | ||
dca6c443 ER |
568 | # cleanup unpackaged |
569 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/{src,sdk,testcase} | |
570 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/src | |
3613936b | 571 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxkeyboard.tar.bz2 |
dca6c443 ER |
572 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/tst* |
573 | ||
1067d08d ER |
574 | # IPRT Testcase / Tool - Source Code Massager. |
575 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/scm | |
576 | ||
577 | # Guest Only Tools | |
90de3b27 | 578 | install -d $RPM_BUILD_ROOT/etc/{X11/xinit/xinitrc.d,xdg/autostart} |
1067d08d | 579 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxService |
90de3b27 ER |
580 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxClient |
581 | mv $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxControl | |
582 | install -p -D src/VBox/Additions/x11/Installer/98vboxadd-xclient \ | |
583 | $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh | |
584 | cp -p src/VBox/Additions/x11/Installer/vboxclient.desktop \ | |
585 | $RPM_BUILD_ROOT/etc/xdg/autostart/vboxclient.desktop | |
1067d08d | 586 | |
dca6c443 | 587 | # unknown - checkme |
1067d08d | 588 | %if 1 |
dca6c443 ER |
589 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPInstall |
590 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPLoggerCtl | |
591 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPUninstall | |
592 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBox.sh | |
dca6c443 ER |
593 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxshell.py |
594 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/xpidl | |
1067d08d | 595 | %endif |
dca6c443 ER |
596 | |
597 | # packaged by kernel part | |
598 | rm $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf | |
da083e45 | 599 | %endif |
33233365 | 600 | |
da083e45 | 601 | %if %{with kernel} |
50863744 | 602 | install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,modprobe.d},%{_sbindir}} |
70ce4861 | 603 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxdrv |
dc0a2786 | 604 | install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxguest |
70ce4861 | 605 | install -p %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetflt |
b06d932c | 606 | install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxsf |
c1cd3b9a | 607 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetadp |
59d12745 | 608 | install -p %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxpci |
1794e74d ER |
609 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxdrv/vboxdrv -d misc |
610 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxnetadp/vboxnetadp -d misc | |
611 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxnetflt/vboxnetflt -d misc | |
59d12745 | 612 | %install_kernel_modules -m PLD-MODULE-BUILD/HostDrivers/vboxpci/vboxpci -d misc |
1794e74d ER |
613 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxguest/vboxguest -d misc |
614 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxsf/vboxsf -d misc | |
615 | %install_kernel_modules -m PLD-MODULE-BUILD/GuestDrivers/vboxvideo_drm/vboxvideo -d misc | |
fa974331 | 616 | |
50863744 ER |
617 | install -p mount.vboxsf $RPM_BUILD_ROOT%{_sbindir}/mount.vboxsf |
618 | ||
d1c4ec5b | 619 | %endif |
05f1b1f5 | 620 | |
48363591 | 621 | %clean |
622 | rm -rf $RPM_BUILD_ROOT | |
623 | ||
3b63d3e8 | 624 | %pre |
625 | %groupadd -g 221 -r -f vbox | |
626 | ||
14561782 | 627 | %post |
d8ed80f4 | 628 | cat << 'EOF' |
3ee6b9d9 | 629 | You must install vboxdrv kernel module for this software to work: |
7841ddfd ER |
630 | kernel-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} |
631 | ||
632 | Additionally you might want to install: | |
d2a7514f | 633 | kernel-misc-vboxnetadp-%{version}-%{rel}@%{_kernel_ver_str} |
05f12a30 | 634 | kernel-misc-vboxnetflt-%{version}-%{rel}@%{_kernel_ver_str} |
59d12745 | 635 | kernel-misc-vboxpci-%{version}-%{rel}@%{_kernel_ver_str} |
05f12a30 | 636 | |
fa974331 | 637 | On Guest Linux system you might want to install: |
dc0a2786 | 638 | kernel-misc-vboxguest-%{version}-%{rel}@%{_kernel_ver_str} |
ecfe25a3 | 639 | kernel-misc-vboxsf-%{version}-%{rel}@%{_kernel_ver_str} |
67a4f3c1 | 640 | kernel-misc-vboxvideo-%{version}-%{rel}@%{_kernel_ver_str} |
7841ddfd | 641 | |
d8ed80f4 | 642 | EOF |
643 | ||
3b63d3e8 | 644 | %postun |
645 | if [ "$1" = "0" ]; then | |
646 | %groupremove vbox | |
647 | fi | |
648 | ||
dc0a2786 | 649 | %post -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 650 | %depmod %{_kernel_ver} |
dc0a2786 AG |
651 | /sbin/chkconfig --add vboxguest |
652 | %service vboxguest restart "VirtualBox OSE Guest additions driver" | |
74268e47 | 653 | |
dc0a2786 | 654 | %postun -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 655 | %depmod %{_kernel_ver} |
656 | ||
dc0a2786 | 657 | %preun -n kernel%{_alt_kernel}-misc-vboxguest |
270f67bc | 658 | if [ "$1" = "0" ]; then |
dc0a2786 AG |
659 | %service vboxguest stop |
660 | /sbin/chkconfig --del vboxguest | |
270f67bc | 661 | fi |
662 | ||
48363591 | 663 | %post -n kernel%{_alt_kernel}-misc-vboxdrv |
664 | %depmod %{_kernel_ver} | |
270f67bc | 665 | /sbin/chkconfig --add vboxdrv |
ffb38bb6 | 666 | %service vboxdrv restart "VirtualBox OSE Support Driver" |
48363591 | 667 | |
668 | %postun -n kernel%{_alt_kernel}-misc-vboxdrv | |
669 | %depmod %{_kernel_ver} | |
670 | ||
270f67bc | 671 | %preun -n kernel%{_alt_kernel}-misc-vboxdrv |
672 | if [ "$1" = "0" ]; then | |
673 | %service vboxdrv stop | |
674 | /sbin/chkconfig --del vboxdrv | |
675 | fi | |
676 | ||
d2a7514f ŁK |
677 | %post -n kernel%{_alt_kernel}-misc-vboxnetadp |
678 | %depmod %{_kernel_ver} | |
c1cd3b9a | 679 | /sbin/chkconfig --add vboxnetadp |
680 | %service vboxnetadp restart "VirtualBox OSE Network HostOnly driver" | |
d2a7514f ŁK |
681 | |
682 | %postun -n kernel%{_alt_kernel}-misc-vboxnetadp | |
683 | %depmod %{_kernel_ver} | |
684 | ||
c1cd3b9a | 685 | %preun -n kernel%{_alt_kernel}-misc-vboxnetadp |
686 | if [ "$1" = "0" ]; then | |
687 | %service vboxnetadp stop | |
688 | /sbin/chkconfig --del vboxnetadp | |
689 | fi | |
690 | ||
1dda2f69 | 691 | %post -n kernel%{_alt_kernel}-misc-vboxnetflt |
692 | %depmod %{_kernel_ver} | |
11848f5b | 693 | /sbin/chkconfig --add vboxnetflt |
fd488e66 | 694 | %service vboxnetflt restart "VirtualBox OSE Network Filter driver" |
1dda2f69 | 695 | |
696 | %postun -n kernel%{_alt_kernel}-misc-vboxnetflt | |
697 | %depmod %{_kernel_ver} | |
698 | ||
11848f5b | 699 | %preun -n kernel%{_alt_kernel}-misc-vboxnetflt |
700 | if [ "$1" = "0" ]; then | |
701 | %service vboxnetflt stop | |
702 | /sbin/chkconfig --del vboxnetflt | |
703 | fi | |
704 | ||
59d12745 KK |
705 | %post -n kernel%{_alt_kernel}-misc-vboxpci |
706 | %depmod %{_kernel_ver} | |
707 | /sbin/chkconfig --add vboxpci | |
708 | %service vboxnetflt restart "VirtualBox OSE PCI passthrough driver" | |
709 | ||
710 | %postun -n kernel%{_alt_kernel}-misc-vboxpci | |
711 | %depmod %{_kernel_ver} | |
712 | ||
713 | %preun -n kernel%{_alt_kernel}-misc-vboxpci | |
714 | if [ "$1" = "0" ]; then | |
715 | %service vboxpci stop | |
716 | /sbin/chkconfig --del vboxpci | |
717 | fi | |
718 | ||
ecfe25a3 | 719 | %post -n kernel%{_alt_kernel}-misc-vboxsf |
74268e47 | 720 | %depmod %{_kernel_ver} |
ecfe25a3 PS |
721 | /sbin/chkconfig --add vboxsf |
722 | %service vboxsf restart "VirtualBox OSE Host file system access (Shared Folders)" | |
74268e47 | 723 | |
ecfe25a3 | 724 | %postun -n kernel%{_alt_kernel}-misc-vboxsf |
74268e47 | 725 | %depmod %{_kernel_ver} |
726 | ||
ecfe25a3 | 727 | %preun -n kernel%{_alt_kernel}-misc-vboxsf |
ca8701ad | 728 | if [ "$1" = "0" ]; then |
ecfe25a3 PS |
729 | %service vboxsf stop |
730 | /sbin/chkconfig --del vboxsf | |
ca8701ad | 731 | fi |
732 | ||
67a4f3c1 | 733 | %post -n kernel%{_alt_kernel}-misc-vboxvideo |
734 | %depmod %{_kernel_ver} | |
735 | ||
736 | %postun -n kernel%{_alt_kernel}-misc-vboxvideo | |
737 | %depmod %{_kernel_ver} | |
738 | ||
d1c4ec5b | 739 | %if %{with userspace} |
48363591 | 740 | %files |
741 | %defattr(644,root,root,755) | |
8833bce1 | 742 | %dir %{_libdir}/VirtualBox |
744bc35e | 743 | %dir %{_libdir}/VirtualBox/ExtensionPacks |
916ab34d | 744 | %dir %{_libdir}/VirtualBox/additions |
8833bce1 | 745 | %dir %{_libdir}/VirtualBox/components |
746 | %dir %{_libdir}/VirtualBox/nls | |
85b005e2 | 747 | %attr(755,root,root) %{_bindir}/VBoxBFE |
748 | %attr(755,root,root) %{_bindir}/VBoxHeadless | |
749 | %attr(755,root,root) %{_bindir}/VBoxManage | |
750 | %attr(755,root,root) %{_bindir}/VBoxSDL | |
751 | %attr(755,root,root) %{_bindir}/VBoxSVC | |
752 | %attr(755,root,root) %{_bindir}/VBoxTunctl | |
753 | %attr(755,root,root) %{_bindir}/VBoxXPCOMIPCD | |
48363591 | 754 | %attr(755,root,root) %{_bindir}/VirtualBox |
3ee6b9d9 | 755 | %attr(755,root,root) %{_sbindir}/mount.vdi |
744bc35e JR |
756 | %attr(755,root,root) %{_libdir}/VirtualBox/DBGCPlugInDiggers.so |
757 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxAuth.so | |
758 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxAuthSimple.so | |
05f1b1f5 | 759 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxBFE |
59d12745 | 760 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxBalloonCtrl |
744bc35e JR |
761 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxCreateUSBNode.sh |
762 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDbg.so | |
85b005e2 | 763 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDD2.so |
744bc35e | 764 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDD.so |
85b005e2 | 765 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxDDU.so |
744bc35e | 766 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxExtPackHelperApp |
3613936b | 767 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxGuestControlSvc.so |
85b005e2 | 768 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxGuestPropSvc.so |
744bc35e | 769 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxHeadless |
85b005e2 | 770 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxKeyboard.so |
744bc35e | 771 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxManage |
5b399826 MM |
772 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxNetAdpCtl |
773 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxNetDHCP | |
85b005e2 | 774 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLhostcrutil.so |
775 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLhosterrorspu.so | |
776 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxOGLrenderspu.so | |
6935b837 | 777 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxPython*.so |
85b005e2 | 778 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM.so |
f701b529 | 779 | %ifarch %{ix86} |
5b399826 MM |
780 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM32.so |
781 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxREM64.so | |
f701b529 | 782 | %endif |
85b005e2 | 783 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxRT.so |
744bc35e | 784 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSDL |
85b005e2 | 785 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedClipboard.so |
786 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedCrOpenGL.so | |
787 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSharedFolders.so | |
744bc35e JR |
788 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSVC |
789 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSysInfo.sh | |
790 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxTestOGL | |
791 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxTunctl | |
85b005e2 | 792 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxVMM.so |
85b005e2 | 793 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOMC.so |
744bc35e JR |
794 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOMIPCD |
795 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOM.so | |
fdd1c725 | 796 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox |
797 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox-wrapper.sh | |
85b005e2 | 798 | %{_libdir}/VirtualBox/VBoxDD2GC.gc |
799 | %{_libdir}/VirtualBox/VBoxDDGC.gc | |
800 | %{_libdir}/VirtualBox/VMMGC.gc | |
801 | %{_libdir}/VirtualBox/VBoxDD2R0.r0 | |
802 | %{_libdir}/VirtualBox/VBoxDDR0.r0 | |
803 | %{_libdir}/VirtualBox/VMMR0.r0 | |
1067d08d ER |
804 | %{_libdir}/VirtualBox/EfiThunk |
805 | %{_libdir}/VirtualBox/VBoxEFI32.fd | |
806 | %{_libdir}/VirtualBox/VBoxEFI64.fd | |
85b005e2 | 807 | %{_libdir}/VirtualBox/components/VBoxXPCOMBase.xpt |
85b005e2 | 808 | %{_libdir}/VirtualBox/components/VirtualBox_XPCOM.xpt |
dca6c443 ER |
809 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxC.so |
810 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxSVCM.so | |
811 | %attr(755,root,root) %{_libdir}/VirtualBox/components/VBoxXPCOMIPCC.so | |
89ce7412 | 812 | %lang(ar) %{_libdir}/VirtualBox/nls/*_ar.qm |
c5e10a4d | 813 | %lang(bg) %{_libdir}/VirtualBox/nls/*_bg.qm |
72d5ea57 | 814 | %lang(ca) %{_libdir}/VirtualBox/nls/*_ca.qm |
3613936b | 815 | %lang(ca_VA) %{_libdir}/VirtualBox/nls/*_ca_VA.qm |
89ce7412 | 816 | %lang(cs) %{_libdir}/VirtualBox/nls/*_cs.qm |
dc0a2786 | 817 | %lang(da) %{_libdir}/VirtualBox/nls/*_da.qm |
89ce7412 | 818 | %lang(de) %{_libdir}/VirtualBox/nls/*_de.qm |
11de52da | 819 | %lang(el) %{_libdir}/VirtualBox/nls/*_el.qm |
3613936b | 820 | %lang(en) %{_libdir}/VirtualBox/nls/*_en.qm |
89ce7412 | 821 | %lang(es) %{_libdir}/VirtualBox/nls/*_es.qm |
822 | %lang(eu) %{_libdir}/VirtualBox/nls/*_eu.qm | |
823 | %lang(fi) %{_libdir}/VirtualBox/nls/*_fi.qm | |
824 | %lang(fr) %{_libdir}/VirtualBox/nls/*_fr.qm | |
3613936b | 825 | %lang(gl_ES) %{_libdir}/VirtualBox/nls/*_gl_ES.qm |
89ce7412 | 826 | %lang(hu) %{_libdir}/VirtualBox/nls/*_hu.qm |
72d5ea57 | 827 | %lang(id) %{_libdir}/VirtualBox/nls/*_id.qm |
89ce7412 | 828 | %lang(it) %{_libdir}/VirtualBox/nls/*_it.qm |
829 | %lang(ja) %{_libdir}/VirtualBox/nls/*_ja.qm | |
c5e10a4d | 830 | %lang(km_KH) %{_libdir}/VirtualBox/nls/*_km_KH.qm |
89ce7412 | 831 | %lang(ko) %{_libdir}/VirtualBox/nls/*_ko.qm |
938d5b7f | 832 | %lang(lt) %{_libdir}/VirtualBox/nls/*_lt.qm |
72d5ea57 | 833 | %lang(nl) %{_libdir}/VirtualBox/nls/*_nl.qm |
89ce7412 | 834 | %lang(pl) %{_libdir}/VirtualBox/nls/*_pl.qm |
52b59a1b | 835 | %lang(pt) %{_libdir}/VirtualBox/nls/*_pt.qm |
89ce7412 | 836 | %lang(pt_BR) %{_libdir}/VirtualBox/nls/*_pt_BR.qm |
89ce7412 | 837 | %lang(ro) %{_libdir}/VirtualBox/nls/*_ro.qm |
838 | %lang(ru) %{_libdir}/VirtualBox/nls/*_ru.qm | |
839 | %lang(sk) %{_libdir}/VirtualBox/nls/*_sk.qm | |
72d5ea57 | 840 | %lang(sr) %{_libdir}/VirtualBox/nls/*_sr.qm |
89ce7412 | 841 | %lang(sv) %{_libdir}/VirtualBox/nls/*_sv.qm |
72d5ea57 | 842 | %lang(tr) %{_libdir}/VirtualBox/nls/*_tr.qm |
85b005e2 | 843 | %lang(uk) %{_libdir}/VirtualBox/nls/*_uk.qm |
89ce7412 | 844 | %lang(zh_CN) %{_libdir}/VirtualBox/nls/*_zh_CN.qm |
845 | %lang(zh_TW) %{_libdir}/VirtualBox/nls/*_zh_TW.qm | |
9ce724ed | 846 | %{_pixmapsdir}/virtualbox.png |
dca6c443 | 847 | %{_desktopdir}/*.desktop |
ddf75c51 | 848 | %{_libdir}/VirtualBox/icons |
744bc35e | 849 | %{_libdir}/VirtualBox/virtualbox.xml |
09c79ddb | 850 | |
ffb38bb6 | 851 | %files additions |
9dda6415 | 852 | %defattr(644,root,root,755) |
ffb38bb6 ER |
853 | %{_libdir}/VirtualBox/additions/VBoxGuestAdditions.iso |
854 | ||
1067d08d ER |
855 | %files guest |
856 | %defattr(644,root,root,755) | |
785c600a ER |
857 | # NOTE: unfinished, should contain .desktop files for starting up mouse |
858 | # integration and other desktop services | |
89973837 | 859 | # NOTE: the filelist is incomplete too |
90de3b27 ER |
860 | %attr(755,root,root) %{_bindir}/VBoxClient |
861 | %attr(755,root,root) %{_bindir}/VBoxControl | |
862 | %attr(755,root,root) %{_bindir}/VBoxService | |
863 | /etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh | |
864 | /etc/xdg/autostart/vboxclient.desktop | |
1067d08d | 865 | |
744bc35e JR |
866 | %attr(755,root,root) %{_libdir}/VirtualBox/additions/autorun.sh |
867 | %attr(755,root,root) %{_libdir}/VirtualBox/additions/vboxadd | |
868 | %attr(755,root,root) %{_libdir}/VirtualBox/additions/vboxadd-service | |
869 | %attr(755,root,root) %{_libdir}/VirtualBox/additions/vboxadd-x11 | |
870 | ||
3613936b JR |
871 | %files -n pam-pam_vbox |
872 | %defattr(644,root,root,755) | |
3ee6b9d9 | 873 | %attr(755,root,root) /%{_lib}/security/pam_vbox.so |
3613936b | 874 | |
90de3b27 ER |
875 | %if %{with doc} |
876 | %files doc | |
877 | %defattr(644,root,root,755) | |
878 | %doc %{outdir}/UserManual.pdf | |
879 | %endif | |
880 | ||
abb636b9 | 881 | %files udev |
882 | %defattr(644,root,root,755) | |
883 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules | |
884 | ||
09c79ddb | 885 | %files -n xorg-driver-input-vboxmouse |
886 | %defattr(644,root,root,755) | |
887 | %attr(755,root,root) %{_libdir}/xorg/modules/input/vboxmouse_drv.so | |
888 | ||
889 | %files -n xorg-driver-video-vboxvideo | |
890 | %defattr(644,root,root,755) | |
891 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/vboxvideo_drv.so | |
27a1aef6 ER |
892 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/vboxvideo_dri.so |
893 | # vboxvideo_dri.so deps | |
1067d08d | 894 | %attr(755,root,root) %{_libdir}/VBoxOGLarrayspu.so |
27a1aef6 ER |
895 | %attr(755,root,root) %{_libdir}/VBoxOGLcrutil.so |
896 | %attr(755,root,root) %{_libdir}/VBoxOGLerrorspu.so | |
897 | %attr(755,root,root) %{_libdir}/VBoxOGLfeedbackspu.so | |
898 | %attr(755,root,root) %{_libdir}/VBoxOGLpackspu.so | |
899 | %attr(755,root,root) %{_libdir}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 900 | %endif |
48363591 | 901 | |
d1c4ec5b | 902 | %if %{with kernel} |
dc0a2786 | 903 | %files -n kernel%{_alt_kernel}-misc-vboxguest |
74268e47 | 904 | %defattr(644,root,root,755) |
dc0a2786 AG |
905 | %attr(754,root,root) /etc/rc.d/init.d/vboxguest |
906 | /lib/modules/%{_kernel_ver}/misc/vboxguest.ko* | |
74268e47 | 907 | |
d1c4ec5b | 908 | %files -n kernel%{_alt_kernel}-misc-vboxdrv |
48363591 | 909 | %defattr(644,root,root,755) |
67ad4c40 | 910 | %attr(754,root,root) /etc/rc.d/init.d/vboxdrv |
d1c4ec5b | 911 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko* |
74268e47 | 912 | |
d2a7514f ŁK |
913 | %files -n kernel%{_alt_kernel}-misc-vboxnetadp |
914 | %defattr(644,root,root,755) | |
c1cd3b9a | 915 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetadp |
d2a7514f ŁK |
916 | /lib/modules/%{_kernel_ver}/misc/vboxnetadp.ko* |
917 | ||
1dda2f69 | 918 | %files -n kernel%{_alt_kernel}-misc-vboxnetflt |
919 | %defattr(644,root,root,755) | |
11848f5b | 920 | %attr(754,root,root) /etc/rc.d/init.d/vboxnetflt |
1dda2f69 | 921 | /lib/modules/%{_kernel_ver}/misc/vboxnetflt.ko* |
922 | ||
59d12745 KK |
923 | %files -n kernel%{_alt_kernel}-misc-vboxpci |
924 | %defattr(644,root,root,755) | |
925 | %attr(754,root,root) /etc/rc.d/init.d/vboxpci | |
926 | /lib/modules/%{_kernel_ver}/misc/vboxpci.ko* | |
927 | ||
ecfe25a3 | 928 | %files -n kernel%{_alt_kernel}-misc-vboxsf |
74268e47 | 929 | %defattr(644,root,root,755) |
b06d932c | 930 | %attr(754,root,root) /etc/rc.d/init.d/vboxsf |
50863744 | 931 | %attr(755,root,root) %{_sbindir}/mount.vboxsf |
ecfe25a3 | 932 | /lib/modules/%{_kernel_ver}/misc/vboxsf.ko* |
67a4f3c1 | 933 | |
934 | %files -n kernel%{_alt_kernel}-misc-vboxvideo | |
935 | %defattr(644,root,root,755) | |
936 | /lib/modules/%{_kernel_ver}/misc/vboxvideo.ko* | |
937 | %endif |