]>
Commit | Line | Data |
---|---|---|
48363591 | 1 | # |
2 | # TODO: | |
74268e47 | 3 | # - Find how to compile with PLD CFLAGS/CXXFLAGS/LDFLAGS. |
74268e47 | 4 | # - Package SDK. |
09c79ddb | 5 | # - Package utils (and write initscripts ?) for Guest OS. |
5f8b0a92 | 6 | # - Check License of VBoxGuestAdditions_*.iso, it's propably not GPL v2. |
7 | # If so check if it is distributable. | |
48363591 | 8 | # |
9 | # Conditional build: | |
10 | %bcond_without dist_kernel # without distribution kernel | |
d1c4ec5b | 11 | %bcond_without kernel # don't build kernel module |
d1c4ec5b | 12 | %bcond_without userspace # don't build userspace package |
05f1b1f5 | 13 | |
c6320e73 | 14 | %define rel 2 |
05f1b1f5 | 15 | |
8833bce1 | 16 | %if %{without kernel} |
17 | %undefine with_dist_kernel | |
18 | %endif | |
19 | ||
bd3faca3 | 20 | %if "%{_alt_kernel}" != "%{nil}" |
21 | %undefine with_userspace | |
22 | %endif | |
23 | ||
24 | %define pname VirtualBox | |
25 | ||
93ccc0e8 ER |
26 | Summary: VirtualBox OSE - x86 hardware virtualizer |
27 | Summary(pl.UTF-8): VirtualBox OSE - wirtualizator sprzętu x86 | |
bd3faca3 | 28 | Name: %{pname}%{_alt_kernel} |
d1034316 | 29 | Version: 1.6.0 |
fe3d1798 | 30 | Release: %{rel} |
48363591 | 31 | License: GPL v2 |
32 | Group: Applications/Emulators | |
d1034316 | 33 | # Source can't be downloaded directly anymore, you may get it manually from |
34 | # http://www.virtualbox.org/wiki/Downloads | |
35 | Source0: %{pname}-%{version}-OSE.tar.bz2 | |
36 | # Source0-md5: 44692aa0e7a8cb6bb36f367d67d78d6a | |
0ada78a5 | 37 | Source1: http://www.virtualbox.org/download/%{version}/UserManual.pdf |
d1034316 | 38 | # Source1-md5: e21694fd087b42173bca3fc9af068f22 |
5f8b0a92 | 39 | Source2: http://www.virtualbox.org/download/%{version}/VBoxGuestAdditions_%{version}.iso |
d1034316 | 40 | # Source2-md5: e90b718aa806845194fd411e3dbf78ff |
bd3faca3 | 41 | Source3: %{pname}.init |
42 | Source4: %{pname}.desktop | |
43 | Source5: %{pname}.sh | |
44 | Patch0: %{pname}-configure.patch | |
45 | Patch1: %{pname}-qt-paths.patch | |
46 | Patch2: %{pname}-shared-libstdc++.patch | |
47 | Patch3: %{pname}-disable-xclient-build.patch | |
fddcb741 | 48 | Patch4: %{pname}-configure-spaces.patch |
c6320e73 | 49 | Patch5: %{pname}-no-screen-size-limit.patch |
48363591 | 50 | URL: http://www.virtualbox.org/ |
83ffcfa8 | 51 | %if %{with userspace} |
ba702945 | 52 | BuildRequires: SDL-devel >= 1.2.7 |
53 | BuildRequires: alsa-lib-devel >= 1.0.6 | |
e5aaadde | 54 | BuildRequires: bash |
48363591 | 55 | BuildRequires: bcc |
56 | BuildRequires: bin86 | |
eba4b2aa | 57 | BuildRequires: gcc >= 5:3.2.3 |
48363591 | 58 | BuildRequires: iasl |
83ffcfa8 | 59 | %endif |
60 | %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20} | |
61 | %if %{with userspace} | |
b92729d9 | 62 | BuildRequires: Qt3Support-devel |
48363591 | 63 | BuildRequires: libIDL-devel |
ba702945 | 64 | BuildRequires: libpng >= 1.2.5 |
d22f0a53 | 65 | BuildRequires: libstdc++-devel >= 5:3.2.3 |
48363591 | 66 | BuildRequires: libuuid-devel |
ba702945 | 67 | BuildRequires: libxml2-devel >= 2.6.26 |
76ea5ecb | 68 | BuildRequires: libxslt-devel >= 1.1.17 |
ba702945 | 69 | BuildRequires: libxslt-progs >= 1.1.17 |
0bf43862 | 70 | BuildRequires: pkgconfig |
ba702945 | 71 | BuildRequires: pulseaudio-devel >= 0.9.0 |
e5aaadde | 72 | BuildRequires: qt-devel >= 6:3.3.6 |
d6f0c54e | 73 | BuildRequires: qt-linguist |
ba702945 | 74 | BuildRequires: qt4-build >= 4.2.0 |
83ffcfa8 | 75 | %endif |
76 | BuildRequires: rpmbuild(macros) >= 1.379 | |
77 | %if %{with userspace} | |
0bf43862 | 78 | BuildRequires: which |
e5aaadde | 79 | BuildRequires: xalan-c-devel >= 1.10.0 |
e5aaadde | 80 | BuildRequires: xerces-c-devel >= 2.6.0 |
eba4b2aa | 81 | BuildRequires: xorg-lib-libXcursor-devel |
e5aaadde | 82 | BuildRequires: zlib-devel >= 1.2.1 |
23d9d34e | 83 | %ifarch %{x8664} |
84 | BuildRequires: gcc-multilib | |
51d2ebb8 | 85 | BuildRequires: glibc-devel(i686) |
23d9d34e | 86 | BuildRequires: libstdc++-multilib-devel |
23d9d34e | 87 | %endif |
83ffcfa8 | 88 | %endif |
0afa64ad | 89 | Requires(post,preun): /sbin/chkconfig |
5f1cec1f ER |
90 | Requires(postun): /usr/sbin/groupdel |
91 | Requires(pre): /usr/bin/getgid | |
92 | Requires(pre): /usr/sbin/groupadd | |
fb661e50 | 93 | Suggests: gxmessage |
5f1cec1f | 94 | Provides: group(vbox) |
eba4b2aa | 95 | ExclusiveArch: %{ix86} %{x8664} |
48363591 | 96 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
97 | ||
eba4b2aa | 98 | %ifarch %{x8664} |
fe3d1798 | 99 | %define outdir amd64 |
5088674d | 100 | %else |
fe3d1798 | 101 | %define outdir x86 |
5088674d | 102 | %endif |
103 | ||
48363591 | 104 | %description |
93ccc0e8 | 105 | InnoTek VirtualBox OSE is a general-purpose full virtualizer for x86 |
48363591 | 106 | hardware. Targeted at server, desktop and embedded use, it is now the |
107 | only professional-quality virtualization solution that is also Open | |
108 | Source Software. | |
109 | ||
93ccc0e8 | 110 | Some of the features of VirtualBox OSE are: |
48363591 | 111 | |
93ccc0e8 | 112 | Modularity: VirtualBox OSE has an extremely modular design with |
48363591 | 113 | well-defined internal programming interfaces and a client/server |
114 | design. This makes it easy to control it from several interfaces at | |
115 | once: for example, you can start a virtual machine in a typical | |
116 | virtual machine GUI and then control that machine from the command | |
2df47f85 | 117 | line. VirtualBox OSE also comes with a full Software Development Kit: |
118 | even though it is Open Source Software, you don't have to hack the | |
119 | source to write a new interface for VirtualBox OSE. | |
48363591 | 120 | |
121 | Virtual machine descriptions in XML: the configuration settings of | |
122 | virtual machines are stored entirely in XML and are independent of the | |
123 | local machines. Virtual machine definitions can therefore easily be | |
124 | ported to other computers. | |
125 | ||
fd8fc899 | 126 | %description -l pl.UTF-8 |
93ccc0e8 | 127 | InnoTek VirtualBox OSE jest emulatorem sprzętu x86. Kierowany do |
fd8fc899 JR |
128 | zastosowań serwerowych, desktopowych oraz wbudowanych jest obecnie |
129 | jedynym wysokiej jakości rozwiązaniem wirtualizacyjnym dostępnym | |
130 | również jako Otwarte Oprogramowanie. | |
48363591 | 131 | |
fd8fc899 | 132 | Przykładowe cechy VirtualBoksa: |
48363591 | 133 | |
93ccc0e8 | 134 | Modularność: VirtualBox OSE jest wysoce zmodularyzowanym produktem z |
fd8fc899 JR |
135 | dobrze zaprojektowanym wewnętrznym interfejsem programowym typu |
136 | klient/serwer. Dzięki temu można łatwo kontrolować go za pomocą | |
137 | różnych interfejsów. Można na przykład uruchomić maszynę wirtualną z | |
138 | poziomu interfejsu graficznego, a później kontrolować ją z linii | |
2df47f85 | 139 | poleceń. VirtualBox OSE dostarcza również pełny pakiet deweloperski, |
140 | co pozwala stworzyć dowolny inny interfejs zarządzania maszyną | |
141 | wirtualną. | |
48363591 | 142 | |
fd8fc899 JR |
143 | Opisy maszyn wirtualnych w XML-u: konfiguracje poszczególnych maszyn |
144 | wirtualnych są w całości przechowywane w XML-u i są niezależne od | |
145 | lokalnej maszyny. Dzięki temu można szybko i łatwo przenieść | |
146 | konfigurację maszyny wirtualnej na inny komputer. | |
48363591 | 147 | |
abb636b9 | 148 | %package udev |
93ccc0e8 | 149 | Summary: udev rules for VirtualBox OSE kernel modules |
da083e45 | 150 | Summary(pl.UTF-8): Reguły udev dla modułów jądra Linuksa dla VirtualBoksa |
8512deca | 151 | Release: %{rel} |
abb636b9 | 152 | Group: Base/Kernel |
153 | Requires: udev | |
154 | ||
155 | %description udev | |
2df47f85 | 156 | udev rules for VirtualBox OSE kernel modules. |
abb636b9 | 157 | |
158 | %description udev -l pl.UTF-8 | |
2df47f85 | 159 | Reguły udev dla modułów jądra Linuksa dla VirtualBoksa. |
abb636b9 | 160 | |
74268e47 | 161 | %package -n kernel%{_alt_kernel}-misc-vboxadd |
93ccc0e8 | 162 | Summary: Linux kernel module for VirtualBox OSE |
74268e47 | 163 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa |
fe3d1798 | 164 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 165 | Group: Base/Kernel |
166 | Requires(post,postun): /sbin/depmod | |
167 | Requires: dev >= 2.9.0-7 | |
168 | %if %{with dist_kernel} | |
169 | %requires_releq_kernel | |
abb636b9 | 170 | #Requires(postun): %%releq_kernel |
74268e47 | 171 | %endif |
fe3d1798 | 172 | Provides: kernel(vboxadd) = %{version}-%{rel} |
74268e47 | 173 | |
174 | %description -n kernel%{_alt_kernel}-misc-vboxadd | |
93ccc0e8 | 175 | Linux kernel module vboxadd for VirtualBox OSE. |
74268e47 | 176 | |
177 | %description -n kernel%{_alt_kernel}-misc-vboxadd -l pl.UTF-8 | |
178 | Moduł jądra Linuksa vboxadd dla VirtualBoksa. | |
179 | ||
48363591 | 180 | %package -n kernel%{_alt_kernel}-misc-vboxdrv |
93ccc0e8 | 181 | Summary: Linux kernel module for VirtualBox OSE |
4dab3322 | 182 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa |
fe3d1798 | 183 | Release: %{rel}@%{_kernel_ver_str} |
48363591 | 184 | Group: Base/Kernel |
185 | Requires(post,postun): /sbin/depmod | |
186 | Requires: dev >= 2.9.0-7 | |
187 | %if %{with dist_kernel} | |
d6f0c54e | 188 | %requires_releq_kernel |
189 | Requires(postun): %releq_kernel | |
48363591 | 190 | %endif |
fe3d1798 | 191 | Provides: kernel(vboxdrv) = %{version}-%{rel} |
48363591 | 192 | |
193 | %description -n kernel%{_alt_kernel}-misc-vboxdrv | |
93ccc0e8 | 194 | Linux kernel module vboxdrv for VirtualBox OSE. |
48363591 | 195 | |
fd8fc899 JR |
196 | %description -n kernel%{_alt_kernel}-misc-vboxdrv -l pl.UTF-8 |
197 | Moduł jądra Linuksa vboxdrv dla VirtualBoksa. | |
48363591 | 198 | |
74268e47 | 199 | %package -n kernel%{_alt_kernel}-misc-vboxvfs |
93ccc0e8 | 200 | Summary: Linux kernel module for VirtualBox OSE |
74268e47 | 201 | Summary(pl.UTF-8): Moduł jądra Linuksa dla VirtualBoksa |
fe3d1798 | 202 | Release: %{rel}@%{_kernel_ver_str} |
74268e47 | 203 | Group: Base/Kernel |
204 | Requires(post,postun): /sbin/depmod | |
205 | Requires: dev >= 2.9.0-7 | |
206 | %if %{with dist_kernel} | |
207 | %requires_releq_kernel | |
208 | Requires(postun): %releq_kernel | |
209 | %endif | |
fe3d1798 | 210 | Provides: kernel(vboxvfs) = %{version}-%{rel} |
74268e47 | 211 | |
212 | %description -n kernel%{_alt_kernel}-misc-vboxvfs | |
93ccc0e8 | 213 | Linux kernel module vboxvfs for VirtualBox OSE. |
74268e47 | 214 | |
215 | %description -n kernel%{_alt_kernel}-misc-vboxvfs -l pl.UTF-8 | |
216 | Moduł jądra Linuksa vboxvfs dla VirtualBoksa. | |
217 | ||
09c79ddb | 218 | %package -n xorg-driver-input-vboxmouse |
93ccc0e8 | 219 | Summary: X.org mouse driver for VirtualBox OSE guest OS |
fe3d1798 JB |
220 | Summary(pl.UTF-8): Sterownik myszy dla systemu gościa w VirtualBoksie |
221 | Release: %{rel} | |
09c79ddb | 222 | Group: X11/Applications |
223 | Requires: xorg-xserver-server >= 1.0.99.901 | |
224 | ||
225 | %description -n xorg-driver-input-vboxmouse | |
93ccc0e8 | 226 | X.org mouse driver for VirtualBox OSE guest OS. |
09c79ddb | 227 | |
228 | %description -n xorg-driver-input-vboxmouse -l pl.UTF-8 | |
fe3d1798 | 229 | Sterownik myszy dla systemu gościa w VirtualBoksie. |
09c79ddb | 230 | |
231 | %package -n xorg-driver-video-vboxvideo | |
93ccc0e8 | 232 | Summary: X.org video driver for VirtualBox OSE guest OS |
fe3d1798 JB |
233 | Summary(pl.UTF-8): Sterownik grafiki dla systemu gościa w VirtualBoksie |
234 | Release: %{rel} | |
09c79ddb | 235 | Group: X11/Applications |
236 | Requires: xorg-xserver-server >= 1.0.99.901 | |
237 | ||
238 | %description -n xorg-driver-video-vboxvideo | |
93ccc0e8 | 239 | X.org video driver for VirtualBox OSE guest OS. |
09c79ddb | 240 | |
241 | %description -n xorg-driver-video-vboxvideo -l pl.UTF-8 | |
fe3d1798 | 242 | Sterownik grafiki dla systemu gościa w VirtualBoksie. |
09c79ddb | 243 | |
48363591 | 244 | %prep |
bd3faca3 | 245 | %setup -q -n %{pname}-%{version}_OSE |
48363591 | 246 | %patch0 -p0 |
247 | %patch1 -p0 | |
74268e47 | 248 | %patch2 -p1 |
23d9d34e | 249 | |
33233365 | 250 | %ifarch %{x8664} |
251 | %patch3 -p1 | |
252 | %endif | |
253 | ||
fddcb741 | 254 | %patch4 -p1 |
c6320e73 | 255 | %patch5 -p1 |
fddcb741 | 256 | |
33233365 | 257 | cat <<'EOF' > udev.conf |
258 | KERNEL=="vboxdrv", NAME="%k", GROUP="vbox", MODE="0660" | |
259 | EOF | |
23d9d34e | 260 | |
fdd1c725 | 261 | install %{SOURCE1} . |
fa19f650 | 262 | |
83ffcfa8 | 263 | rm -rf PLD-MODULE-BUILD && mkdir PLD-MODULE-BUILD && cd PLD-MODULE-BUILD |
264 | ../src/VBox/Additions/linux/export_modules modules.tar.gz | |
265 | tar -zxf modules.tar.gz && rm -f modules.tar.gz | |
266 | ../src/VBox/HostDrivers/Support/linux/export_modules modules.tar.gz && \ | |
267 | tar -zxf modules.tar.gz && rm -f modules.tar.gz | |
05f1b1f5 | 268 | |
8512deca ER |
269 | %ifarch %{x8664} |
270 | # HACK, is this really safe on x86_64? | |
271 | sed -i -e '/#.*define.*RTMEMALLOC_EXEC_HEAP/d' vboxadd/r0drv/linux/alloc-r0drv-linux.c vboxvfs/r0drv/linux/alloc-r0drv-linux.c | |
272 | %endif | |
273 | ||
fddcb741 | 274 | %build |
83ffcfa8 | 275 | %if %{with userspace} |
106d8451 | 276 | ./configure \ |
277 | --with-gcc="%{__cc}" \ | |
05f1b1f5 | 278 | --with-g++="%{__cxx}" \ |
ba2565fd | 279 | --disable-kmods |
48363591 | 280 | |
74268e47 | 281 | . ./env.sh && kmk -j1 |
48363591 | 282 | %endif |
74268e47 | 283 | |
284 | %if %{with kernel} | |
83ffcfa8 | 285 | cd PLD-MODULE-BUILD |
74268e47 | 286 | %build_kernel_modules -m vboxadd -C vboxadd |
287 | %build_kernel_modules -m vboxdrv -C vboxdrv | |
0da669b5 | 288 | cp -a vboxadd/Module.symvers vboxvfs |
83ffcfa8 | 289 | %build_kernel_modules -m vboxvfs -C vboxvfs -c |
74268e47 | 290 | cd .. |
d1c4ec5b | 291 | %endif |
48363591 | 292 | |
293 | %install | |
294 | rm -rf $RPM_BUILD_ROOT | |
295 | ||
d1c4ec5b | 296 | %if %{with userspace} |
48363591 | 297 | install -d \ |
d89980c7 | 298 | $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir}} \ |
05f1b1f5 | 299 | $RPM_BUILD_ROOT%{_libdir}/VirtualBox \ |
c7f37a9d | 300 | $RPM_BUILD_ROOT/etc/rc.d/init.d |
05f1b1f5 | 301 | |
a70507fb | 302 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/virtualbox |
303 | ||
304 | install %{SOURCE5} $RPM_BUILD_ROOT%{_libdir}/VirtualBox/VirtualBox-wrapper.sh | |
09c79ddb | 305 | for f in {VBox{BFE,Manage,SDL,SVC,XPCOMIPCD},VirtualBox,vditool}; do |
fe3d1798 | 306 | install out/linux.%{outdir}/release/bin/$f $RPM_BUILD_ROOT%{_libdir}/VirtualBox/$f |
fdd1c725 | 307 | ln -s %{_libdir}/VirtualBox/VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/$f |
05f1b1f5 | 308 | done |
309 | ||
9a6c7384 AM |
310 | %ifarch %{x8664} |
311 | install out/linux.%{outdir}/release/bin/VBox*.rel \ | |
312 | $RPM_BUILD_ROOT%{_libdir}/VirtualBox | |
313 | %endif | |
314 | ||
315 | install out/linux.%{outdir}/release/bin/VBox*.so \ | |
48363591 | 316 | $RPM_BUILD_ROOT%{_libdir}/VirtualBox |
fe3d1798 | 317 | install out/linux.%{outdir}/release/bin/{VBox{DD,DD2}{GC.gc,R0.r0},VMM{GC.gc,R0.r0},*.xpt} \ |
48363591 | 318 | $RPM_BUILD_ROOT%{_libdir}/VirtualBox |
319 | ||
916ab34d | 320 | install -d $RPM_BUILD_ROOT%{_libdir}/VirtualBox/additions |
8833bce1 | 321 | install -d $RPM_BUILD_ROOT%{_libdir}/VirtualBox/nls |
916ab34d | 322 | |
5877f605 | 323 | install %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/VirtualBox/additions/VBoxGuestAdditions.iso |
fe3d1798 JB |
324 | cp -a out/linux.%{outdir}/release/bin/components $RPM_BUILD_ROOT%{_libdir}/VirtualBox |
325 | cp -a out/linux.%{outdir}/release/bin/nls/* $RPM_BUILD_ROOT%{_libdir}/VirtualBox/nls | |
8833bce1 | 326 | |
fe3d1798 | 327 | install out/linux.%{outdir}/release/bin/additions/mountvboxsf \ |
09c79ddb | 328 | $RPM_BUILD_ROOT%{_bindir} |
329 | ||
c7f37a9d ER |
330 | %ifnarch %{x8664} |
331 | install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,input} | |
53741724 | 332 | install out/linux.%{outdir}/release/bin/additions/vboxmouse_drv_14.so \ |
09c79ddb | 333 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/input/vboxmouse_drv.so |
53741724 | 334 | install out/linux.%{outdir}/release/bin/additions/vboxvideo_drv_14.so \ |
09c79ddb | 335 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so |
c7f37a9d | 336 | %endif |
09c79ddb | 337 | |
fe3d1798 | 338 | install out/linux.%{outdir}/release/bin/VBox.png $RPM_BUILD_ROOT%{_pixmapsdir}/VBox.png |
bd3faca3 | 339 | install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}/%{pname}.desktop |
d1c4ec5b | 340 | |
33233365 | 341 | install -d $RPM_BUILD_ROOT/etc/udev/rules.d |
342 | install udev.conf $RPM_BUILD_ROOT/etc/udev/rules.d/virtualbox.rules | |
da083e45 | 343 | %endif |
33233365 | 344 | |
da083e45 | 345 | %if %{with kernel} |
83ffcfa8 | 346 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxadd/vboxadd -d misc |
347 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxdrv/vboxdrv -d misc | |
348 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxvfs/vboxvfs -d misc | |
d1c4ec5b | 349 | %endif |
05f1b1f5 | 350 | |
48363591 | 351 | %clean |
352 | rm -rf $RPM_BUILD_ROOT | |
353 | ||
3b63d3e8 | 354 | %pre |
355 | %groupadd -g 221 -r -f vbox | |
356 | ||
0afa64ad | 357 | %post |
358 | /sbin/chkconfig --add virtualbox | |
78d4e0de | 359 | %service virtualbox restart "VirtualBox OSE" |
0afa64ad | 360 | |
361 | %preun | |
362 | if [ "$1" = "0" ]; then | |
363 | %service virtualbox stop | |
364 | /sbin/chkconfig --del virtualbox | |
365 | fi | |
366 | ||
3b63d3e8 | 367 | %postun |
368 | if [ "$1" = "0" ]; then | |
369 | %groupremove vbox | |
370 | fi | |
371 | ||
74268e47 | 372 | %post -n kernel%{_alt_kernel}-misc-vboxadd |
373 | %depmod %{_kernel_ver} | |
374 | ||
375 | %postun -n kernel%{_alt_kernel}-misc-vboxadd | |
376 | %depmod %{_kernel_ver} | |
377 | ||
48363591 | 378 | %post -n kernel%{_alt_kernel}-misc-vboxdrv |
379 | %depmod %{_kernel_ver} | |
380 | ||
381 | %postun -n kernel%{_alt_kernel}-misc-vboxdrv | |
382 | %depmod %{_kernel_ver} | |
383 | ||
74268e47 | 384 | %post -n kernel%{_alt_kernel}-misc-vboxvfs |
385 | %depmod %{_kernel_ver} | |
386 | ||
387 | %postun -n kernel%{_alt_kernel}-misc-vboxvfs | |
388 | %depmod %{_kernel_ver} | |
389 | ||
d1c4ec5b | 390 | %if %{with userspace} |
48363591 | 391 | %files |
392 | %defattr(644,root,root,755) | |
7d1c0a63 | 393 | %doc UserManual.pdf |
8833bce1 | 394 | %dir %{_libdir}/VirtualBox |
916ab34d | 395 | %dir %{_libdir}/VirtualBox/additions |
8833bce1 | 396 | %dir %{_libdir}/VirtualBox/components |
397 | %dir %{_libdir}/VirtualBox/nls | |
a70507fb | 398 | %attr(754,root,root) /etc/rc.d/init.d/virtualbox |
4c18fded | 399 | %attr(755,root,root) %{_bindir}/mountvboxsf |
400 | %attr(755,root,root) %{_bindir}/vditool | |
48363591 | 401 | %attr(755,root,root) %{_bindir}/VBox* |
402 | %attr(755,root,root) %{_bindir}/VirtualBox | |
fdd1c725 | 403 | %attr(755,root,root) %{_libdir}/VirtualBox/vditool |
05f1b1f5 | 404 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSVC |
405 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxBFE | |
406 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxManage | |
407 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSDL | |
408 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOMIPCD | |
8833bce1 | 409 | %attr(755,root,root) %{_libdir}/VirtualBox/VBox*.so |
9a6c7384 AM |
410 | %ifarch %{x8664} |
411 | %attr(755,root,root) %{_libdir}/VirtualBox/VBox*.rel | |
412 | %endif | |
fdd1c725 | 413 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox |
414 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox-wrapper.sh | |
05f1b1f5 | 415 | %{_libdir}/VirtualBox/*.gc |
416 | %{_libdir}/VirtualBox/*.r0 | |
05f1b1f5 | 417 | %{_libdir}/VirtualBox/*.xpt |
916ab34d | 418 | %{_libdir}/VirtualBox/additions/* |
05f1b1f5 | 419 | %{_libdir}/VirtualBox/components/* |
89ce7412 | 420 | %lang(ar) %{_libdir}/VirtualBox/nls/*_ar.qm |
72d5ea57 | 421 | %lang(ca) %{_libdir}/VirtualBox/nls/*_ca.qm |
89ce7412 | 422 | %lang(cs) %{_libdir}/VirtualBox/nls/*_cs.qm |
423 | %lang(de) %{_libdir}/VirtualBox/nls/*_de.qm | |
424 | %lang(es) %{_libdir}/VirtualBox/nls/*_es.qm | |
425 | %lang(eu) %{_libdir}/VirtualBox/nls/*_eu.qm | |
426 | %lang(fi) %{_libdir}/VirtualBox/nls/*_fi.qm | |
427 | %lang(fr) %{_libdir}/VirtualBox/nls/*_fr.qm | |
428 | %lang(hu) %{_libdir}/VirtualBox/nls/*_hu.qm | |
72d5ea57 | 429 | %lang(id) %{_libdir}/VirtualBox/nls/*_id.qm |
89ce7412 | 430 | %lang(it) %{_libdir}/VirtualBox/nls/*_it.qm |
431 | %lang(ja) %{_libdir}/VirtualBox/nls/*_ja.qm | |
432 | %lang(ko) %{_libdir}/VirtualBox/nls/*_ko.qm | |
72d5ea57 | 433 | %lang(nl) %{_libdir}/VirtualBox/nls/*_nl.qm |
89ce7412 | 434 | %lang(pl) %{_libdir}/VirtualBox/nls/*_pl.qm |
52b59a1b | 435 | %lang(pt) %{_libdir}/VirtualBox/nls/*_pt.qm |
89ce7412 | 436 | %lang(pt_BR) %{_libdir}/VirtualBox/nls/*_pt_BR.qm |
89ce7412 | 437 | %lang(ro) %{_libdir}/VirtualBox/nls/*_ro.qm |
438 | %lang(ru) %{_libdir}/VirtualBox/nls/*_ru.qm | |
439 | %lang(sk) %{_libdir}/VirtualBox/nls/*_sk.qm | |
72d5ea57 | 440 | %lang(sr) %{_libdir}/VirtualBox/nls/*_sr.qm |
89ce7412 | 441 | %lang(sv) %{_libdir}/VirtualBox/nls/*_sv.qm |
72d5ea57 | 442 | %lang(tr) %{_libdir}/VirtualBox/nls/*_tr.qm |
89ce7412 | 443 | %lang(zh_CN) %{_libdir}/VirtualBox/nls/*_zh_CN.qm |
444 | %lang(zh_TW) %{_libdir}/VirtualBox/nls/*_zh_TW.qm | |
d89980c7 | 445 | %{_pixmapsdir}/VBox.png |
bd3faca3 | 446 | %{_desktopdir}/%{pname}.desktop |
09c79ddb | 447 | |
abb636b9 | 448 | %files udev |
449 | %defattr(644,root,root,755) | |
450 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules | |
451 | ||
23d9d34e | 452 | # Drivers are for Guest OS, which is 32-bit. |
453 | %ifnarch %{x8664} | |
09c79ddb | 454 | %files -n xorg-driver-input-vboxmouse |
455 | %defattr(644,root,root,755) | |
456 | %attr(755,root,root) %{_libdir}/xorg/modules/input/vboxmouse_drv.so | |
457 | ||
458 | %files -n xorg-driver-video-vboxvideo | |
459 | %defattr(644,root,root,755) | |
460 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/vboxvideo_drv.so | |
d1c4ec5b | 461 | %endif |
23d9d34e | 462 | %endif |
48363591 | 463 | |
d1c4ec5b | 464 | %if %{with kernel} |
74268e47 | 465 | %files -n kernel%{_alt_kernel}-misc-vboxadd |
466 | %defattr(644,root,root,755) | |
467 | /lib/modules/%{_kernel_ver}/misc/vboxadd.ko* | |
468 | ||
d1c4ec5b | 469 | %files -n kernel%{_alt_kernel}-misc-vboxdrv |
48363591 | 470 | %defattr(644,root,root,755) |
d1c4ec5b | 471 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko* |
74268e47 | 472 | |
473 | %files -n kernel%{_alt_kernel}-misc-vboxvfs | |
474 | %defattr(644,root,root,755) | |
475 | /lib/modules/%{_kernel_ver}/misc/vboxvfs.ko* | |
05f1b1f5 | 476 | %endif |