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