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