/[packages]/cauldron/virtualbox/current/SPECS/virtualbox.spec
ViewVC logotype

Contents of /cauldron/virtualbox/current/SPECS/virtualbox.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1511 - (show annotations) (download)
Sun Jan 9 02:47:24 2011 UTC (11 years, 7 months ago) by ahmad
File size: 17215 byte(s)
- really disable patch16
- drop patches 7 and 17 not needed anymore

1 %define ver 4.0.0
2 %define rel 1
3 %define version %{ver}%{?svndate:.%{svndate}}
4 %define release %mkrel %{rel}
5 %define kname vboxdrv
6 %define oname VirtualBox
7 %define srcname %{oname}-%{version}
8 %define distname %{oname}-%{version}_OSE
9 %define dirname vbox-ose
10 %define pkgver %{ver}%{?svndate:-%{svndate}}
11
12 %define vboxlibdir %{_libdir}/%{name}
13 %define vboxdatadir %{_datadir}/%{name}
14
15 %define build_additions 1
16 %define build_doc 1
17
18 %ifarch %{ix86}
19 %define vbox_platform linux.x86
20 %endif
21 %ifarch x86_64
22 %define vbox_platform linux.amd64
23 %endif
24
25 # nuke vbox-specific dependencies
26 %define _provides_exceptions ^VBox
27 %define _requires_exceptions ^VBox
28
29 %define x11_server_majorver %(pkg-config --modversion xorg-server|awk -F. '{print $1$2}')
30
31 Summary: A general-purpose full virtualizer for x86 hardware
32 Name: virtualbox
33 Version: %{version}
34 Release: %{release}
35 Source0: http://download.virtualbox.org/virtualbox/%ver/%{srcname}.tar.bz2
36 Source2: virtualbox.init
37 Source10: virtualbox.png
38 Source11: virtualbox.16.png
39 Source12: virtualbox.48.png
40 Patch1: VirtualBox-libpath.patch
41 Patch2: VirtualBox-1.5.6_OSE-kernelrelease.patch
42 Patch4: VirtualBox-1.6.0_OSE-futex.patch
43 Patch5: virtualbox-fix-vboxadd-req.patch
44 # (fc) 1.6.0-2mdv fix initscript name in VBox.sh script
45 Patch6: VirtualBox-1.6.0_OSE-initscriptname.patch
46 # (hk) fix build kernel-headers-2.6.29*
47 Patch10: VirtualBox-kernel-headers-2.6.29.patch
48 # (fc) 2.2.0-1mdv disable update notification (Debian)
49 Patch12: 16-no-update.patch
50 #Patch16: virtualbox-default-to-mandriva.patch
51
52 # don't check for:
53 # - mkisofs: we're not going to build the additions .iso file
54 # - makeself: we're not going to create the stanalone .run installers
55 Patch18: virtualbox-4.0.0-dont-check-for-mkisofs-or-makeself.patch
56
57 License: GPLv2
58 Group: Emulators
59 Url: http://www.virtualbox.org/
60 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
61 ExclusiveArch: %{ix86} x86_64
62 Requires(post): rpm-helper
63 Requires(preun): rpm-helper
64 Requires(postun): rpm-helper
65 %if %{mdkversion} >= 200800
66 Requires: kmod(vboxdrv) = %{version}
67 %else
68 Requires: dkms-%{name} = %{version}-%{release}
69 %endif
70 Conflicts: dkms-%{name} <= 1.5.0-%{mkrel 4}
71 Suggests: %{name}-doc
72 BuildRequires: dev86, iasl
73 BuildRequires: zlib-devel
74 BuildRequires: libxcursor-devel
75 BuildRequires: libxmu-devel
76 BuildRequires: SDL-devel, libqt4-devel >= 4.4.0
77 BuildRequires: qt4-linguist
78 BuildRequires: libIDL-devel, libext2fs-devel
79 BuildRequires: libxslt-proc, libxslt-devel
80 BuildRequires: hal-devel, libxt-devel, libstdc++-static-devel
81 BuildRequires: python-devel
82 BuildRequires: libcap-devel
83 BuildRequires: libxrandr-devel libxinerama-devel
84 BuildRequires: pulseaudio-devel
85 BuildRequires: kernel-devel-latest
86 BuildRequires: mesaglu-devel mesagl-devel libxmu-devel
87 BuildRequires: gsoap
88 BuildRequires: openssl-devel
89 BuildRequires: curl-devel
90 BuildRequires: dkms-minimal
91 BuildRequires: libpam-devel
92 BuildRequires: gawk
93 BuildRequires: x11-server-devel
94 BuildRequires: java-rpmbuild
95 %if %build_doc
96 # for building the user manual pdf file
97 BuildRequires: tetex-latex
98 %endif
99 BuildRequires: libxslt-devel
100
101 %description
102 VirtualBox Open Source Edition (OSE) is a general-purpose full
103 virtualizer for x86 hardware.
104
105 %package -n dkms-%{name}
106 Summary: VirtualBox OSE kernel module
107 Group: System/Kernel and hardware
108 Requires(post): dkms
109 Requires(preun): dkms
110 Conflicts: dkms-vboxadditions
111
112 %description -n dkms-%{name}
113 Kernel support for VirtualBox OSE.
114
115 %if %{build_additions}
116 %package guest-additions
117 Summary: Additions for VirtualBox OSE guest systems
118 Group: Emulators
119 Requires: kmod(vboxguest)
120 Requires: kmod(vboxsf)
121 Requires: kmod(vboxvideo)
122 Requires: x11-driver-input-vboxmouse
123 Requires: x11-driver-video-vboxvideo
124 Requires(post): rpm-helper
125 Requires(preun): rpm-helper
126
127 %description guest-additions
128 This packages contains additions for VirtualBox OSE guest systems.
129 It allows to share files with the host system, copy/paste between
130 guest and host, and sync time with host.
131
132 %package -n dkms-vboxadditions
133 Summary: Kernel module for VirtualBox OSE additions
134 Group: System/Kernel and hardware
135 Requires(post): dkms
136 Requires(preun): dkms
137 Obsoletes: dkms-vboxadd < %{version}-%{release}
138 Provides: dkms-vboxvfs = %{version}-%{release}
139 Obsoletes: dkms-vboxvfs < %{version}-%{release}
140 Provides: dkms-vboxsf = %{version}-%{release}
141 Obsoletes: dkms-vboxsf < %{version}-%{release}
142 Provides: dkms-vboxvideo = %{version}-%{release}
143 Obsoletes: dkms-vboxvideo < %{version}-%{release}
144 Conflicts: dkms-%{name}
145
146 %description -n dkms-vboxadditions
147 Kernel module for VirtualBox OSE additions.
148
149 %package -n x11-driver-input-vboxmouse
150 Summary: The X.org driver for mouse in VirtualBox guests
151 Group: System/X11
152 Suggests: virtualbox-guest-additions
153 Requires: x11-server-common %(xserver-sdk-abi-requires xinput)
154
155 %description -n x11-driver-input-vboxmouse
156 The X.org driver for mouse in VirtualBox guests
157
158 %package -n x11-driver-video-vboxvideo
159 Summary: The X.org driver for video in VirtualBox guests
160 Group: System/X11
161 Suggests: virtualbox-guest-additions
162 Requires: x11-server-common %(xserver-sdk-abi-requires videodrv)
163
164
165 %description -n x11-driver-video-vboxvideo
166 The X.org driver for video in VirtualBox guests
167 %endif
168
169 %if %build_doc
170 %package doc
171 Summary: The user manual PDF file for %{name}
172 Group: System/X11
173
174 %description doc
175 This package contains the user manual PDF file for %{name}.
176 %endif
177
178 %prep
179 %setup -q -n %{distname}
180 %patch1 -p1 -b .libpath-3.2.6
181 %patch2 -p1 -b .kernelrelease
182 %patch4 -p1 -b .futex
183 %patch5 -p1 -b .fix-timesync-req
184 %patch6 -p1 -b .initscriptname
185 %patch10 -p1 -b .kernel-headers-2.6.29
186 %patch12 -p1 -b .disable-update
187 #%patch16 -p1 -b .default-to-mandriva
188
189 %patch18 -p1 -b .mkisofs-makeself
190
191 rm -rf fake-linux/
192 cp -a $(ls -1dtr /usr/src/linux-* | tail -n 1) fake-linux
193
194 cat << EOF > LocalConfig.kmk
195 VBOX_PATH_APP_PRIVATE_ARCH:=%{vboxlibdir}
196 VBOX_WITH_ORIGIN:=
197 VBOX_WITH_RUNPATH:=%{vboxlibdir}
198 VBOX_PATH_APP_PRIVATE:=%{vboxdatadir}
199 VBOX_WITH_TESTCASES =
200 VBOX_WITH_TESTSUITE:=
201 VBOX_JAVA_HOME := %{java_home}
202 VBOX_WITHOUT_ADDITIONS_ISO := 1
203 EOF
204
205 %build
206 #make -C fake-linux prepare
207 export LIBPATH_LIB="%{_lib}"
208 ./configure --enable-webservice \
209 --with-linux=$PWD/fake-linux \
210 --disable-pulse \
211 %if ! %build_doc
212 --disable-docs
213 %endif
214
215 %if !%{build_additions}
216 sed -rie 's/(VBOX_WITH_LINUX_ADDITIONS\s+:=\s+).*/\1/' AutoConfig.kmk
217 echo VBOX_WITHOUT_ADDITIONS=1 >> LocalConfig.kmk
218 %endif
219
220 . ./env.sh
221 kmk %_smp_mflags all
222
223 %install
224 rm -rf %{buildroot}
225
226 # install vbox components
227 mkdir -p %{buildroot}%{vboxlibdir} %{buildroot}%{vboxdatadir}
228
229 (cd out/%{vbox_platform}/release/bin && tar cf - --exclude=additions .) | \
230 (cd %{buildroot}%{vboxlibdir} && tar xf -)
231
232 # move noarch files to vboxdatadir
233 mv %{buildroot}%{vboxlibdir}/{VBox*.sh,nls,*.desktop,*.png} %{buildroot}%{vboxdatadir}
234
235 # install service
236 mkdir -p %{buildroot}%{_initrddir}
237 install -m755 %{SOURCE2} %{buildroot}%{_initrddir}/%{name}
238
239 # install wrappers
240 mkdir -p %{buildroot}%{_sysconfdir}/vbox
241 cat > %{buildroot}%{_sysconfdir}/vbox/vbox.cfg << EOF
242 # VirtualBox installation directory
243 INSTALL_DIR="%{vboxlibdir}"
244 EOF
245 mkdir -p %{buildroot}%{_bindir}
246 ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/%{oname}
247 ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/VBoxManage
248 ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/VBoxSDL
249 ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/VBoxHeadless
250 ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/vboxwebsrv
251
252 # provide network control tools in bindir
253 ln -s %{vboxlibdir}/VBoxTunctl %{buildroot}%{_bindir}/VBoxTunctl
254 ln -s %{vboxlibdir}/VBoxNetAdpCtl %{buildroot}%{_bindir}/VBoxNetAdpCtl
255 ln -s %{vboxlibdir}/VBoxNetDHCP %{buildroot}%{_bindir}/VBoxNetDHCP
256
257 install -d %{buildroot}/var/run/%{oname}
258
259 # install dkms sources
260 mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
261 cat > vboxbuild << EOF
262 #!/bin/sh
263 set -e
264 make -C %{kname} KERN_DIR=\$1
265 cp -f %{kname}/Module.symvers vboxnetflt
266 cp -f %{kname}/Module.symvers vboxnetadp
267 make -C vboxnetflt KERN_DIR=\$1
268 make -C vboxnetadp KERN_DIR=\$1
269 EOF
270 install -m 0755 vboxbuild %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
271 mv %{buildroot}%{vboxlibdir}/src/* %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
272 cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
273 MAKE[0]="./vboxbuild \$kernel_source_dir"
274 PACKAGE_NAME=%{name}
275 PACKAGE_VERSION=%{version}-%{release}
276 DEST_MODULE_LOCATION[0]=/kernel/3rdparty/vbox
277 BUILT_MODULE_LOCATION[0]=%{kname}/
278 BUILT_MODULE_NAME[0]=%{kname}
279 DEST_MODULE_LOCATION[1]=/kernel/3rdparty/vbox
280 BUILT_MODULE_LOCATION[1]=vboxnetflt/
281 BUILT_MODULE_NAME[1]=vboxnetflt
282 DEST_MODULE_LOCATION[2]=/kernel/3rdparty/vbox
283 BUILT_MODULE_LOCATION[2]=vboxnetadp/
284 BUILT_MODULE_NAME[2]=vboxnetadp
285 AUTOINSTALL=yes
286 EOF
287
288 # install udev rules
289 mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d/
290 cat > %{buildroot}%{_sysconfdir}/udev/rules.d/%{name}.rules << EOF
291 KERNEL=="%{kname}", MODE="0600"
292 EOF
293 cat > %{buildroot}%{_sysconfdir}/udev/rules.d/vbox-additions.rules << EOF
294 KERNEL=="vboxguest", NAME="vboxguest", OWNER="root", MODE="0660"
295 KERNEL=="vboxuser", NAME="vboxuser", OWNER="root", MODE="0666"
296 EOF
297
298 # install additions
299 %if %{build_additions}
300 # vboxadd-timesync should probably be renamed vboxadd now, but renaming initscripts
301 # cleanly is hacky business
302 install -m755 src/VBox/Additions/linux/installer/vboxadd-service.sh %{buildroot}%{_initrddir}/vboxadd-timesync
303
304 # install the udev rule and 50-vboxmouse.conf for newer releases with Xserver >= 1.9
305 install -m644 src/VBox/Additions/linux/installer/70-xorg-vboxmouse.rules %{buildroot}%{_sysconfdir}/udev/rules.d/
306 install -D -m644 src/VBox/Additions/x11/Installer/50-vboxmouse.conf %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/50-vboxmouse.conf
307
308 install -d %{buildroot}%{_sysconfdir}/X11/xinit.d
309 install -m755 src/VBox/Additions/x11/Installer/98vboxadd-xclient %{buildroot}%{_sysconfdir}/X11/xinit.d
310
311 pushd out/%{vbox_platform}/release/bin/additions
312 install -d %{buildroot}/sbin %{buildroot}%{_sbindir} %{buildroot}/%{_libdir}/dri
313 install -m755 mount.vboxsf %{buildroot}/sbin/mount.vboxsf
314 install -m755 VBoxService %{buildroot}%{_sbindir}
315
316 install -m755 VBoxClient %{buildroot}%{_bindir}
317 install -m755 VBoxControl %{buildroot}%{_bindir}
318
319 install -m755 VBoxOGL*.so %{buildroot}%{_libdir}
320 ln -s -f ../VBoxOGL.so %{buildroot}%{_libdir}/dri/vboxvideo_dri.so
321
322 install -d %{buildroot}%{_sysconfdir}/modprobe.preload.d
323 cat > %{buildroot}%{_sysconfdir}/modprobe.preload.d/vbox-guest-additions << EOF
324 vboxguest
325 EOF
326 install -d %{buildroot}%{_libdir}/xorg/modules/{input,drivers}
327 install vboxmouse_drv_%{x11_server_majorver}.so %{buildroot}%{_libdir}/xorg/modules/input/vboxmouse_drv.so
328 install vboxvideo_drv_%{x11_server_majorver}.so %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so
329
330 mkdir -p %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}
331 cat > %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/dkms.conf << EOF
332 PACKAGE_NAME=vboxadditions
333 PACKAGE_VERSION=%{version}-%{release}
334 MAKE[0]="make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxguest &&
335 cp \$dkms_tree/\$module/\$module_version/build/vboxguest/Module.symvers \$dkms_tree/\$module/\$module_version/build/vboxsf &&
336 make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxsf &&
337 cp \$dkms_tree/\$module/\$module_version/build/vboxsf/Module.symvers \$dkms_tree/\$module/\$module_version/build/vboxvideo &&
338 make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxvideo"
339 EOF
340 i=0
341 for kmod in vboxguest vboxsf vboxvideo; do
342 mkdir -p %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/$kmod
343 cp -a src/$kmod/* %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/$kmod/
344 cat >> %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/dkms.conf << EOF
345 DEST_MODULE_LOCATION[$i]=/kernel/3rdparty/vbox
346 BUILT_MODULE_LOCATION[$i]=$kmod/
347 BUILT_MODULE_NAME[$i]=$kmod
348 EOF
349 i=$((i+1))
350 done
351 cat >> %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/dkms.conf << EOF
352 CLEAN="make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxguest clean &&
353 make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxsf clean &&
354 make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxvideo clean "
355 AUTOINSTALL=yes
356 EOF
357 popd
358 sed 's/^\(.package.*-kernel-\)\(.*-latest\)\(.*\)\\$/\1\2\3Obsoletes: vboxsf-kernel-\2 vboxvideo-kernel-\2\\n\\/' /etc/dkms/template-dkms-mkrpm.spec > %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/vboxadditions-dkms-mkrpm.spec
359 %endif
360
361 # install icons
362 mkdir -p %{buildroot}%{_iconsdir}
363 install -m644 %{SOURCE10} %{buildroot}%{_iconsdir}/%{name}.png
364 mkdir -p %{buildroot}%{_miconsdir}
365 install -m644 %{SOURCE11} %{buildroot}%{_miconsdir}/%{name}.png
366 mkdir -p %{buildroot}%{_liconsdir}
367 install -m644 %{SOURCE12} %{buildroot}%{_liconsdir}/%{name}.png
368
369 # install menu entries
370
371 mkdir -p %{buildroot}%{_datadir}/applications
372 cat > %{buildroot}%{_datadir}/applications/mageia-%{name}.desktop << EOF
373 [Desktop Entry]
374 Name=VirtualBox OSE
375 Comment=Full virtualizer for x86 hardware
376 Exec=%{_bindir}/%{oname}
377 Icon=%{name}
378 Type=Application
379 Terminal=false
380 Categories=X-MandrivaLinux-MoreApplications-Emulators;Emulator;
381 EOF
382
383 # add missing makefile for kernel module
384 install -m644 src/VBox/HostDrivers/Support/linux/Makefile %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
385
386 # remove unpackaged files
387 rm -rf %{buildroot}%{vboxlibdir}/{src,sdk,testcase}
388 rm -f %{buildroot}%{vboxlibdir}/tst*
389 rm -f %{buildroot}%{vboxlibdir}/vboxkeyboard.tar.gz
390 rm -f %{buildroot}%{vboxlibdir}/SUP*
391 rm -f %{buildroot}%{vboxlibdir}/xpidl
392
393 # install PAM module:
394 install -D -m755 out/%{vbox_platform}/release/bin/additions/pam_vbox.so %{buildroot}/%{_lib}/security/pam_vbox.so
395
396 %clean
397 rm -rf %{buildroot}
398
399 %post
400 %_post_service %{name}
401
402 %postun
403 if [ "$1" -ge "1" ]; then
404 /sbin/service %{name} condrestart > /dev/null 2>&1 || :
405 fi
406
407 %preun
408 %_preun_service %{name}
409
410 %post -n dkms-%{name}
411 set -x
412 /usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}
413 /usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} &&
414 /usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release}
415 /sbin/rmmod vboxnetflt &>/dev/null
416 /sbin/rmmod vboxnetadp &>/dev/null
417 /sbin/rmmod %{kname} &>/dev/null
418 /sbin/modprobe %{kname} &>/dev/null
419 /sbin/modprobe vboxnetflt &>/dev/null
420 /sbin/modprobe vboxnetadp &>/dev/null
421 :
422
423 %preun -n dkms-%{name}
424 if [ "$1" = "0" ]; then
425 /sbin/rmmod vboxnetadp >/dev/null 2>&1
426 /sbin/rmmod vboxnetflt >/dev/null 2>&1
427 /sbin/rmmod %{kname} >/dev/null 2>&1
428 fi
429 set -x
430 /usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || :
431
432 %if %{build_additions}
433 %post guest-additions
434 %_post_service vboxadd-timesync
435
436 %preun guest-additions
437 %_preun_service vboxadd-timesync
438
439 %post -n dkms-vboxadditions
440 set -x
441 /usr/sbin/dkms --rpm_safe_upgrade add -m vboxadditions -v %{version}-%{release}
442 /usr/sbin/dkms --rpm_safe_upgrade build -m vboxadditions -v %{version}-%{release} &&
443 /usr/sbin/dkms --rpm_safe_upgrade install -m vboxadditions -v %{version}-%{release}
444 :
445
446 %preun -n dkms-vboxadditions
447 set -x
448 /usr/sbin/dkms --rpm_safe_upgrade remove -m vboxadditions -v %{version}-%{release} --all
449 :
450
451 %endif
452
453 %files
454 %defattr(-,root,root)
455 %config %{_sysconfdir}/vbox/vbox.cfg
456 %{_bindir}/%{oname}
457 %{_bindir}/VBoxManage
458 %{_bindir}/VBoxSDL
459 %{_bindir}/VBoxHeadless
460 %{_bindir}/VBoxTunctl
461 %{_bindir}/VBoxNetAdpCtl
462 %{_bindir}/VBoxNetDHCP
463 %{_bindir}/vboxwebsrv
464 %{vboxlibdir}
465 %attr(4711,root,root) %{vboxlibdir}/VBoxHeadless
466 %attr(4711,root,root) %{vboxlibdir}/VBoxSDL
467 %attr(4711,root,root) %{vboxlibdir}/VirtualBox
468 %attr(4711,root,root) %{vboxlibdir}/VBoxNetAdpCtl
469 %attr(4711,root,root) %{vboxlibdir}/VBoxNetDHCP
470 %attr(644,root,root) %{vboxlibdir}/*.gc
471 %attr(644,root,root) %{vboxlibdir}/*.r0
472 %if %build_doc
473 %exclude %{vboxlibdir}/UserManual.pdf
474 %endif
475 %{vboxdatadir}
476 # initscripts integration
477 %{_initrddir}/%{name}
478 %config %{_sysconfdir}/udev/rules.d/%{name}.rules
479 %dir /var/run/%{oname}
480 # desktop integration
481 %{_iconsdir}/*.png
482 %{_miconsdir}/*.png
483 %{_liconsdir}/*.png
484 %{_datadir}/applications/mandriva-%{name}.desktop
485
486 %files -n dkms-%{name}
487 %defattr(-,root,root)
488 %{_usr}/src/%{name}-%{version}-%{release}
489
490 %if %{build_additions}
491 %files guest-additions
492 %defattr(-,root,root)
493 /%{_lib}/security/pam_vbox.so
494 /sbin/mount.vboxsf
495 %{_initrddir}/vboxadd-timesync
496 %{_sbindir}/VBoxService
497 %{_bindir}/VBoxClient
498 %{_bindir}/VBoxControl
499 %{_sysconfdir}/udev/rules.d/vbox-additions.rules
500 %{_sysconfdir}/X11/xinit.d/98vboxadd-xclient
501 %{_sysconfdir}/modprobe.preload.d/vbox-guest-additions
502
503 %files -n x11-driver-input-vboxmouse
504 %defattr(-,root,root)
505 %{_libdir}/xorg/modules/input/vboxmouse_drv.so
506 %{_sysconfdir}/udev/rules.d/70-xorg-vboxmouse.rules
507 %{_sysconfdir}/X11/xorg.conf.d/50-vboxmouse.conf
508
509 %files -n x11-driver-video-vboxvideo
510 %defattr(-,root,root)
511 %{_libdir}/VBoxOGL*
512 %{_libdir}/xorg/modules/drivers/vboxvideo_drv.so
513 %{_libdir}/dri/vboxvideo_dri.so
514
515 %files -n dkms-vboxadditions
516 %defattr(-,root,root)
517 %{_usr}/src/vbox*-%{version}-%{release}
518
519 %endif
520
521 %if %build_doc
522 %files doc
523 %defattr(-,root,root)
524 %{vboxlibdir}/UserManual.pdf
525 %endif

  ViewVC Help
Powered by ViewVC 1.1.28