]>
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 | |
cd1d5aec | 14 | %define rel 11 |
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} |
2a1b8e0a | 29 | Version: 1.6.2 |
fe3d1798 | 30 | Release: %{rel} |
48363591 | 31 | License: GPL v2 |
32 | Group: Applications/Emulators | |
2a1b8e0a | 33 | Source0: http://www.virtualbox.org/download/%{version}/%{pname}-%{version}-OSE.tar.bz2 |
34 | # Source0-md5: 0372a3a31326078f7849a0467d547a70 | |
0ada78a5 | 35 | Source1: http://www.virtualbox.org/download/%{version}/UserManual.pdf |
2a1b8e0a | 36 | # Source1-md5: 32505857b575f0fb6f71ba1738c1e102 |
5f8b0a92 | 37 | Source2: http://www.virtualbox.org/download/%{version}/VBoxGuestAdditions_%{version}.iso |
2a1b8e0a | 38 | # Source2-md5: 3cac7e911e545038102ff641cba66365 |
67ad4c40 | 39 | Source3: %{pname}-vboxdrv.init |
40 | Source4: %{pname}-vboxadd.init | |
41 | Source5: %{pname}.desktop | |
42 | Source6: %{pname}.sh | |
bd3faca3 | 43 | Patch0: %{pname}-configure.patch |
44 | Patch1: %{pname}-qt-paths.patch | |
45 | Patch2: %{pname}-shared-libstdc++.patch | |
46 | Patch3: %{pname}-disable-xclient-build.patch | |
fddcb741 | 47 | Patch4: %{pname}-configure-spaces.patch |
48363591 | 48 | URL: http://www.virtualbox.org/ |
83ffcfa8 | 49 | %if %{with userspace} |
ba702945 | 50 | BuildRequires: SDL-devel >= 1.2.7 |
51 | BuildRequires: alsa-lib-devel >= 1.0.6 | |
e5aaadde | 52 | BuildRequires: bash |
48363591 | 53 | BuildRequires: bcc |
54 | BuildRequires: bin86 | |
eba4b2aa | 55 | BuildRequires: gcc >= 5:3.2.3 |
77caaf74 | 56 | BuildRequires: gcc < 5:4.3 |
48363591 | 57 | BuildRequires: iasl |
83ffcfa8 | 58 | %endif |
0d1f6cd5 AM |
59 | %if %{with dist_kernel} |
60 | BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20 | |
0d1f6cd5 | 61 | %endif |
83ffcfa8 | 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 |
deb50564 | 246 | %setup -q -n %{pname}-%{version} |
48363591 | 247 | %patch0 -p0 |
248 | %patch1 -p0 | |
74268e47 | 249 | %patch2 -p1 |
23d9d34e | 250 | |
33233365 | 251 | %ifarch %{x8664} |
252 | %patch3 -p1 | |
253 | %endif | |
254 | ||
fddcb741 ER |
255 | %patch4 -p1 |
256 | ||
33233365 | 257 | cat <<'EOF' > udev.conf |
258 | KERNEL=="vboxdrv", NAME="%k", GROUP="vbox", MODE="0660" | |
67ad4c40 | 259 | KERNEL=="vboxadd", NAME="%k", GROUP="vbox", MODE="0660" |
33233365 | 260 | EOF |
23d9d34e | 261 | |
fdd1c725 | 262 | install %{SOURCE1} . |
fa19f650 | 263 | |
83ffcfa8 | 264 | rm -rf PLD-MODULE-BUILD && mkdir PLD-MODULE-BUILD && cd PLD-MODULE-BUILD |
265 | ../src/VBox/Additions/linux/export_modules modules.tar.gz | |
266 | tar -zxf modules.tar.gz && rm -f modules.tar.gz | |
267 | ../src/VBox/HostDrivers/Support/linux/export_modules modules.tar.gz && \ | |
268 | tar -zxf modules.tar.gz && rm -f modules.tar.gz | |
05f1b1f5 | 269 | |
8512deca ER |
270 | %ifarch %{x8664} |
271 | # HACK, is this really safe on x86_64? | |
272 | sed -i -e '/#.*define.*RTMEMALLOC_EXEC_HEAP/d' vboxadd/r0drv/linux/alloc-r0drv-linux.c vboxvfs/r0drv/linux/alloc-r0drv-linux.c | |
273 | %endif | |
274 | ||
fddcb741 | 275 | %build |
83ffcfa8 | 276 | %if %{with userspace} |
106d8451 | 277 | ./configure \ |
278 | --with-gcc="%{__cc}" \ | |
05f1b1f5 | 279 | --with-g++="%{__cxx}" \ |
ba2565fd | 280 | --disable-kmods |
48363591 | 281 | |
74268e47 | 282 | . ./env.sh && kmk -j1 |
48363591 | 283 | %endif |
74268e47 | 284 | |
285 | %if %{with kernel} | |
83ffcfa8 | 286 | cd PLD-MODULE-BUILD |
74268e47 | 287 | %build_kernel_modules -m vboxadd -C vboxadd |
288 | %build_kernel_modules -m vboxdrv -C vboxdrv | |
0da669b5 | 289 | cp -a vboxadd/Module.symvers vboxvfs |
83ffcfa8 | 290 | %build_kernel_modules -m vboxvfs -C vboxvfs -c |
74268e47 | 291 | cd .. |
d1c4ec5b | 292 | %endif |
48363591 | 293 | |
294 | %install | |
295 | rm -rf $RPM_BUILD_ROOT | |
296 | ||
d1c4ec5b | 297 | %if %{with userspace} |
48363591 | 298 | install -d \ |
d89980c7 | 299 | $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir}} \ |
67ad4c40 | 300 | $RPM_BUILD_ROOT%{_libdir}/VirtualBox |
a70507fb | 301 | |
67ad4c40 | 302 | install %{SOURCE6} $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 |
67ad4c40 | 337 | install %{SOURCE5} $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} |
70fe9387 | 344 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d |
67ad4c40 | 345 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxdrv |
346 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxadd | |
83ffcfa8 | 347 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxadd/vboxadd -d misc |
348 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxdrv/vboxdrv -d misc | |
349 | %install_kernel_modules -m PLD-MODULE-BUILD/vboxvfs/vboxvfs -d misc | |
d1c4ec5b | 350 | %endif |
05f1b1f5 | 351 | |
48363591 | 352 | %clean |
353 | rm -rf $RPM_BUILD_ROOT | |
354 | ||
3b63d3e8 | 355 | %pre |
356 | %groupadd -g 221 -r -f vbox | |
357 | ||
14561782 | 358 | %post |
d8ed80f4 | 359 | cat << 'EOF' |
360 | NOTE: You must also install kernel module for this software to work | |
7d4acef5 ER |
361 | kernel-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} |
362 | kernel-desktop-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
363 | kernel-laptop-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
364 | kernel-vanilla-misc-vboxdrv-%{version}-%{rel}@%{_kernel_ver_str} | |
d8ed80f4 | 365 | etc. |
366 | ||
7d4acef5 | 367 | Depending on which kernel brand You use. |
d8ed80f4 | 368 | |
369 | EOF | |
370 | ||
3b63d3e8 | 371 | %postun |
372 | if [ "$1" = "0" ]; then | |
373 | %groupremove vbox | |
374 | fi | |
375 | ||
74268e47 | 376 | %post -n kernel%{_alt_kernel}-misc-vboxadd |
377 | %depmod %{_kernel_ver} | |
270f67bc | 378 | /sbin/chkconfig --add vboxadd |
379 | %service vboxadd restart "VirtualBox OSE guest additions driver" | |
74268e47 | 380 | |
381 | %postun -n kernel%{_alt_kernel}-misc-vboxadd | |
382 | %depmod %{_kernel_ver} | |
383 | ||
270f67bc | 384 | %preun -n kernel%{_alt_kernel}-misc-vboxadd |
385 | if [ "$1" = "0" ]; then | |
386 | %service vboxadd stop | |
387 | /sbin/chkconfig --del vboxadd | |
388 | fi | |
389 | ||
48363591 | 390 | %post -n kernel%{_alt_kernel}-misc-vboxdrv |
391 | %depmod %{_kernel_ver} | |
270f67bc | 392 | /sbin/chkconfig --add vboxdrv |
393 | %service vboxdrv restart "VirtualBox OSE driver" | |
48363591 | 394 | |
395 | %postun -n kernel%{_alt_kernel}-misc-vboxdrv | |
396 | %depmod %{_kernel_ver} | |
397 | ||
270f67bc | 398 | %preun -n kernel%{_alt_kernel}-misc-vboxdrv |
399 | if [ "$1" = "0" ]; then | |
400 | %service vboxdrv stop | |
401 | /sbin/chkconfig --del vboxdrv | |
402 | fi | |
403 | ||
74268e47 | 404 | %post -n kernel%{_alt_kernel}-misc-vboxvfs |
405 | %depmod %{_kernel_ver} | |
406 | ||
407 | %postun -n kernel%{_alt_kernel}-misc-vboxvfs | |
408 | %depmod %{_kernel_ver} | |
409 | ||
d1c4ec5b | 410 | %if %{with userspace} |
48363591 | 411 | %files |
412 | %defattr(644,root,root,755) | |
7d1c0a63 | 413 | %doc UserManual.pdf |
8833bce1 | 414 | %dir %{_libdir}/VirtualBox |
916ab34d | 415 | %dir %{_libdir}/VirtualBox/additions |
8833bce1 | 416 | %dir %{_libdir}/VirtualBox/components |
417 | %dir %{_libdir}/VirtualBox/nls | |
4c18fded | 418 | %attr(755,root,root) %{_bindir}/mountvboxsf |
419 | %attr(755,root,root) %{_bindir}/vditool | |
48363591 | 420 | %attr(755,root,root) %{_bindir}/VBox* |
421 | %attr(755,root,root) %{_bindir}/VirtualBox | |
fdd1c725 | 422 | %attr(755,root,root) %{_libdir}/VirtualBox/vditool |
05f1b1f5 | 423 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSVC |
424 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxBFE | |
425 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxManage | |
426 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxSDL | |
427 | %attr(755,root,root) %{_libdir}/VirtualBox/VBoxXPCOMIPCD | |
8833bce1 | 428 | %attr(755,root,root) %{_libdir}/VirtualBox/VBox*.so |
9a6c7384 AM |
429 | %ifarch %{x8664} |
430 | %attr(755,root,root) %{_libdir}/VirtualBox/VBox*.rel | |
431 | %endif | |
fdd1c725 | 432 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox |
433 | %attr(755,root,root) %{_libdir}/VirtualBox/VirtualBox-wrapper.sh | |
05f1b1f5 | 434 | %{_libdir}/VirtualBox/*.gc |
435 | %{_libdir}/VirtualBox/*.r0 | |
05f1b1f5 | 436 | %{_libdir}/VirtualBox/*.xpt |
916ab34d | 437 | %{_libdir}/VirtualBox/additions/* |
05f1b1f5 | 438 | %{_libdir}/VirtualBox/components/* |
89ce7412 | 439 | %lang(ar) %{_libdir}/VirtualBox/nls/*_ar.qm |
72d5ea57 | 440 | %lang(ca) %{_libdir}/VirtualBox/nls/*_ca.qm |
89ce7412 | 441 | %lang(cs) %{_libdir}/VirtualBox/nls/*_cs.qm |
442 | %lang(de) %{_libdir}/VirtualBox/nls/*_de.qm | |
443 | %lang(es) %{_libdir}/VirtualBox/nls/*_es.qm | |
444 | %lang(eu) %{_libdir}/VirtualBox/nls/*_eu.qm | |
445 | %lang(fi) %{_libdir}/VirtualBox/nls/*_fi.qm | |
446 | %lang(fr) %{_libdir}/VirtualBox/nls/*_fr.qm | |
447 | %lang(hu) %{_libdir}/VirtualBox/nls/*_hu.qm | |
72d5ea57 | 448 | %lang(id) %{_libdir}/VirtualBox/nls/*_id.qm |
89ce7412 | 449 | %lang(it) %{_libdir}/VirtualBox/nls/*_it.qm |
450 | %lang(ja) %{_libdir}/VirtualBox/nls/*_ja.qm | |
451 | %lang(ko) %{_libdir}/VirtualBox/nls/*_ko.qm | |
72d5ea57 | 452 | %lang(nl) %{_libdir}/VirtualBox/nls/*_nl.qm |
89ce7412 | 453 | %lang(pl) %{_libdir}/VirtualBox/nls/*_pl.qm |
52b59a1b | 454 | %lang(pt) %{_libdir}/VirtualBox/nls/*_pt.qm |
89ce7412 | 455 | %lang(pt_BR) %{_libdir}/VirtualBox/nls/*_pt_BR.qm |
89ce7412 | 456 | %lang(ro) %{_libdir}/VirtualBox/nls/*_ro.qm |
457 | %lang(ru) %{_libdir}/VirtualBox/nls/*_ru.qm | |
458 | %lang(sk) %{_libdir}/VirtualBox/nls/*_sk.qm | |
72d5ea57 | 459 | %lang(sr) %{_libdir}/VirtualBox/nls/*_sr.qm |
89ce7412 | 460 | %lang(sv) %{_libdir}/VirtualBox/nls/*_sv.qm |
72d5ea57 | 461 | %lang(tr) %{_libdir}/VirtualBox/nls/*_tr.qm |
89ce7412 | 462 | %lang(zh_CN) %{_libdir}/VirtualBox/nls/*_zh_CN.qm |
463 | %lang(zh_TW) %{_libdir}/VirtualBox/nls/*_zh_TW.qm | |
d89980c7 | 464 | %{_pixmapsdir}/VBox.png |
bd3faca3 | 465 | %{_desktopdir}/%{pname}.desktop |
09c79ddb | 466 | |
abb636b9 | 467 | %files udev |
468 | %defattr(644,root,root,755) | |
469 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules | |
470 | ||
23d9d34e | 471 | # Drivers are for Guest OS, which is 32-bit. |
472 | %ifnarch %{x8664} | |
09c79ddb | 473 | %files -n xorg-driver-input-vboxmouse |
474 | %defattr(644,root,root,755) | |
475 | %attr(755,root,root) %{_libdir}/xorg/modules/input/vboxmouse_drv.so | |
476 | ||
477 | %files -n xorg-driver-video-vboxvideo | |
478 | %defattr(644,root,root,755) | |
479 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/vboxvideo_drv.so | |
d1c4ec5b | 480 | %endif |
23d9d34e | 481 | %endif |
48363591 | 482 | |
d1c4ec5b | 483 | %if %{with kernel} |
74268e47 | 484 | %files -n kernel%{_alt_kernel}-misc-vboxadd |
485 | %defattr(644,root,root,755) | |
67ad4c40 | 486 | %attr(754,root,root) /etc/rc.d/init.d/vboxadd |
74268e47 | 487 | /lib/modules/%{_kernel_ver}/misc/vboxadd.ko* |
488 | ||
d1c4ec5b | 489 | %files -n kernel%{_alt_kernel}-misc-vboxdrv |
48363591 | 490 | %defattr(644,root,root,755) |
67ad4c40 | 491 | %attr(754,root,root) /etc/rc.d/init.d/vboxdrv |
d1c4ec5b | 492 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko* |
74268e47 | 493 | |
494 | %files -n kernel%{_alt_kernel}-misc-vboxvfs | |
495 | %defattr(644,root,root,755) | |
496 | /lib/modules/%{_kernel_ver}/misc/vboxvfs.ko* | |
05f1b1f5 | 497 | %endif |