source: projects/specs/trunk/V/VirtualBox/VirtualBox-vl.spec @ 4526

Revision 4526, 33.9 KB checked in by shaolin, 13 years ago (diff)
Line 
1%define version 4.1.0
2%define release 2%{?_dist_release}
3
4%define kname   vboxdrv
5%define oname   VirtualBox
6%define srcname %{oname}-%{version}
7%define distname        %{oname}-%{version}_OSE
8%define dirname vbox-ose
9%define pkgver  %{version}
10
11%define vboxlibdir      %{_libdir}/%{name}
12%define vboxdatadir     %{_datadir}/%{name}
13
14%define build_additions 1
15%define build_doc 0
16
17%ifarch %{ix86}
18%define vbox_platform linux.x86
19%endif
20%ifarch x86_64
21%define vbox_platform linux.amd64
22%endif
23
24# nuke vbox-specific dependencies
25%define _provides_exceptions ^VBox
26%define _requires_exceptions ^VBox
27
28%if %{?_dist_release} >= vl6
29%define xserverabi 110
30%else
31%define xserverabi 16
32%endif
33
34Summary:        A general-purpose full virtualizer for x86 hardware
35Summary(ja):    汎用の x86 ハードウエア完全仮想化ソフトウエア
36Name:           VirtualBox
37Version:        %{version}
38Release:        %{release}
39License:        GPL
40Group:          Development/Tools
41Url:            http://www.virtualbox.org/
42
43Source0:        http://download.virtualbox.org/virtualbox/%ver/%{srcname}.tar.bz2
44Source2:        virtualbox.init.vine
45Source3:        vboxadd-timesync.vine
46Source4:        60-vboxadd.perms
47Source10:       VirtualBox.png
48Patch2:         VirtualBox-4.0.6-kernelrelease.patch
49Patch4:         VirtualBox-1.6.0_OSE-futex.patch
50Patch5:         virtualbox-fix-vboxadd-req.patch
51# (fc) 1.6.0-2mdv fix initscript name in VBox.sh script
52Patch6:         VirtualBox-1.6.0_OSE-initscriptname.patch
53# (hk) fix build kernel-headers-2.6.29*
54Patch10:        VirtualBox-kernel-headers-2.6.29.patch
55# (fc) 2.2.0-1mdv disable update notification (Debian)
56Patch12:        16-no-update.patch
57# don't check for:
58# mkisofs: we're not going to build the additions .iso file
59# makeself: we're not going to create the stanalone .run installers
60Patch18:        virtualbox-4.0.0-dont-check-for-mkisofs-or-makeself.patch
61
62# fixed on upstream - will be included in future releases
63# see: http://www.virtualbox.org/ticket/9305
64Patch50:        VirtualBox-4.1.0-fix_kernel_panic_on_shutdown.patch
65
66# vine
67Patch100:       VirtualBox-2.2.2-buildfix.patch
68Patch101:       Virtualbox-4.1.0-vboxpci-build.patch
69Patch110:       VirtualBox-3.2.4-vine.patch
70
71BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
72ExclusiveArch:  %{ix86} x86_64
73Requires:       dkms-%{name} = %{version}-%{release}
74BuildRequires:  dev86, iasl
75BuildRequires:  zlib-devel
76BuildRequires:  libXcursor-devel
77BuildRequires:  libXmu-devel
78BuildRequires:  SDL-devel
79BuildRequires:  qt4-devel
80BuildRequires:  libIDL-devel
81BuildRequires:  e2fsprogs-devel
82BuildRequires:  libxslt-devel
83BuildRequires:  xerces-c-devel, xalan-c-devel
84BuildRequires:  hal-devel
85BuildRequires:  libXt-devel
86BuildRequires:  libstdc++34-devel
87BuildRequires:  python-devel
88BuildRequires:  libcap-devel
89BuildRequires:  pulseaudio-libs-devel
90BuildRequires:  kernel-devel
91BuildRequires:  mesa-libGL-devel
92BuildRequires:  mesa-libGLU-devel
93BuildRequires:  gsoap-devel
94BuildRequires:  curl-devel
95BuildRequires:  alsa-lib-devel
96BuildRequires:  dkms
97BuildRequires:  kBuild >= 0.1.5p2
98BuildRequires:  yasm
99BuildRequires:  qt4-designer
100BuildRequires:  pam-devel
101%ifarch x86_64
102BuildRequires:  compat32-glibc-devel
103%endif
104BuildRequires:  java-1.6.0-openjdk-devel
105%if %{build_doc}
106BuildRequires:  task-texlive
107BuildRequires:  texlive-collection-fontsextra
108%endif
109
110%description
111VirtualBox Open Source Edition (OSE) is a general-purpose full
112virtualizer for x86 hardware.
113
114%description -l ja
115VirtualBox Open Source Edition (OSE) は汎用の x86 ハードウエア
116完全仮想化ソフトウエアです。
117
118%package -n     dkms-%{name}
119Summary:        VirtualBox OSE kernel module
120Summary(ja):    VirtualBox OSE カーネルモジュール
121Group:          System Environment/Kernel
122Requires(post):   dkms
123Requires(preun):  dkms
124
125%description -n dkms-%{name}
126Kernel support for VirtualBox OSE.
127
128%description -l ja -n dkms-%{name}
129VirtualBox OSE のカーネルサポートパッケージです。
130
131%if %{build_additions}
132%package        guest-additions
133Summary:        Additions for VirtualBox OSE guest systems
134Summary(ja):    VirtualBox OSE ゲストシステム用の追加モジュール
135Group:          System Environment/Kernel
136Requires:       dkms-vboxadd = %{version}-%{release}
137Requires:       dkms-vboxvfs = %{version}-%{release}
138Requires:       dkms-vboxvideo = %{version}-%{release}
139Requires:       xorg-x11-drv-vboxmouse
140Requires:       xorg-x11-drv-vboxvideo
141Requires:       xorg-x11-server-utils
142
143%description    guest-additions
144This packages contains additions for VirtualBox OSE guest systems.
145It allows to share files with the host system, copy/paste between
146guest and host, and sync time with host.
147
148%description -l ja guest-additions
149このパッケージには VirtualBox OSE ゲストシステムのための追加モジュール
150が含まれています。これを利用することでホストシステムとファイルを共有し
151たり、ゲスト/ホスト間でカット&ペーストを行ったり、ホストと時刻同期をし
152たりすることができます。
153
154%package -n     dkms-vboxadd
155Summary:        Kernel module for VirtualBox OSE additions
156Summary(ja):    VirtualBox OSE additions のカーネルモジュール
157Group:          System Environment/Kernel
158Requires(post):   dkms
159Requires(preun):  dkms
160Provides:       dkms-vboxvfs = %{version}-%{release}
161Obsoletes:      dkms-vboxvfs < %{version}-%{release}
162Provides:       dkms-vboxsf = %{version}-%{release}
163Obsoletes:      dkms-vboxsf < %{version}-%{release}
164Provides:       dkms-vboxvideo = %{version}-%{release}
165Obsoletes:      dkms-vboxvideo < %{version}-%{release}
166
167%description -n dkms-vboxadd
168Kernel module for VirtualBox OSE additions.
169
170%description -l ja -n dkms-vboxadd
171VirtualBox OSE 追加モジュールのためのカーネルモジュールです。
172
173%package -n     xorg-x11-drv-vboxmouse
174Summary:        X.org X11 input driver for VirtualBox mouse
175Summary:        X.org X11 VirtualBox マウス入力ドライバ
176Group:          User Interface/X Hardware Support
177Requires:       %{name}-guest-additions
178
179%description -n xorg-x11-drv-vboxmouse
180The X.org driver for mouse in VirtualBox guests
181
182%description -l ja -n xorg-x11-drv-vboxmouse
183VirtualBox のゲストシステム用の X.org マウスドライバです。
184
185%package -n     xorg-x11-drv-vboxvideo
186Summary:        X.org X11 video driver for VirtualBox guests
187Summary(ja):    X.org X11 VirtualBox ビデオドライバ
188Group:          User Interface/X Hardware Support
189Requires:       %{name}-guest-additions
190
191%description -n xorg-x11-drv-vboxvideo
192The X.org driver for video in VirtualBox guests
193
194%description -l ja -n xorg-x11-drv-vboxvideo
195VirtualBox のゲストシステム用の X.org ビデオドライバです。
196
197%endif
198
199%prep
200%setup -q -n %{distname}
201%patch2 -p1 -b .kernelrelease
202%patch4 -p1 -b .futex
203%patch5 -p1 -b .fix-timesync-req
204%patch6 -p1 -b .initscriptname
205%patch10 -p1 -b .kernel-headers-2.6.29
206%patch12 -p1 -b .disable-update
207%patch18 -p1 -b .mkisofs-makeself
208%patch50 -p1 -b .fix_panic
209%patch100 -p1 -b .buildfix
210%patch101 -p1 -b .vboxpci-build
211%patch110 -p1 -b .vine
212
213# remove prebuilt binaries
214rm -rf kBuild tools
215
216cat << EOF > LocalConfig.kmk
217VBOX_PATH_APP_PRIVATE_ARCH:=%{vboxlibdir}
218VBOX_WITH_ORIGIN:=
219VBOX_WITH_RUNPATH:=%{vboxlibdir}
220VBOX_PATH_APP_PRIVATE:=%{vboxdatadir}
221VBOX_WITH_TESTCASES:=
222VBOX_WITH_TESTSUITE:=
223VBOX_JAVA_HOME := %{_prefix}/lib/jvm/java-openjdk/
224VBOX_WITHOUT_ADDITIONS_ISO := 1
225EOF
226
227%build
228
229./configure \
230  --with-linux=$PWD/fake-linux \
231  --disable-kmods \
232%if ! %{build_doc}
233  --disable-docs
234%endif
235
236%if !%{build_additions}
237sed -rie 's/(VBOX_WITH_LINUX_ADDITIONS\s+:=\s+).*/\1/' AutoConfig.kmk
238echo VBOX_WITHOUT_ADDITIONS=1 >> LocalConfig.kmk
239%endif
240
241. ./env.sh
242kmk KBUILD_VERBOSE=2 \
243    TOOL_YASM_AS=yasm \
244    VBOX_WITH_REGISTRATION_REQUEST= \
245    %{?_smp_mflags} all
246
247%install
248rm -rf %{buildroot}
249
250# install vbox components
251mkdir -p %{buildroot}%{vboxlibdir} %{buildroot}%{vboxdatadir}
252
253(cd out/%{vbox_platform}/release/bin && tar cf - --exclude=additions .) | \
254(cd %{buildroot}%{vboxlibdir} && tar xf -)
255
256# move noarch files to vboxdatadir
257mv %{buildroot}%{vboxlibdir}/{VBox*.sh,nls,*.desktop,*.png} %{buildroot}%{vboxdatadir}
258
259# install service
260mkdir -p %{buildroot}%{_initrddir}
261install -m755 %{SOURCE2} %{buildroot}%{_initrddir}/virtualbox
262
263# install wrappers
264mkdir -p %{buildroot}%{_sysconfdir}/vbox
265cat > %{buildroot}%{_sysconfdir}/vbox/vbox.cfg << EOF
266# VirtualBox installation directory
267INSTALL_DIR="%{vboxlibdir}"
268EOF
269mkdir -p %{buildroot}%{_bindir}
270ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/%{name}
271ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/VBoxManage
272ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/VBoxSDL
273ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/VBoxHeadless
274#ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/vboxwebsrv
275
276# provide network control tools in bindir
277ln -s %{vboxlibdir}/VBoxTunctl %{buildroot}%{_bindir}/VBoxTunctl
278ln -s %{vboxlibdir}/VBoxNetAdpCtl %{buildroot}%{_bindir}/VBoxNetAdpCtl
279ln -s %{vboxlibdir}/VBoxNetDHCP %{buildroot}%{_bindir}/VBoxNetDHCP
280
281install -d %{buildroot}/var/run/%{name}
282
283# install dkms sources
284mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
285cat > vboxbuild << EOF
286#!/bin/sh
287set -e
288make -C %{kname} KERN_DIR=\$1
289cp -f %{kname}/Module.symvers vboxnetflt
290cp -f %{kname}/Module.symvers vboxnetadp
291make -C vboxnetflt KERN_DIR=\$1
292make -C vboxnetadp KERN_DIR=\$1
293EOF
294install -m 0755 vboxbuild %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
295mv %{buildroot}%{vboxlibdir}/src/* %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
296cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
297MAKE[0]="./vboxbuild \$kernel_source_dir"
298PACKAGE_NAME=%{name}
299PACKAGE_VERSION=%{version}-%{release}
300DEST_MODULE_LOCATION[0]=/kernel/3rdparty/vbox
301BUILT_MODULE_LOCATION[0]=%{kname}/
302BUILT_MODULE_NAME[0]=%{kname}
303DEST_MODULE_LOCATION[1]=/kernel/3rdparty/vbox
304BUILT_MODULE_LOCATION[1]=vboxnetflt/
305BUILT_MODULE_NAME[1]=vboxnetflt
306DEST_MODULE_LOCATION[2]=/kernel/3rdparty/vbox
307BUILT_MODULE_LOCATION[2]=vboxnetadp/
308BUILT_MODULE_NAME[2]=vboxnetadp
309AUTOINSTALL=yes
310EOF
311
312# install udev rules
313mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d/
314cat > %{buildroot}%{_sysconfdir}/udev/rules.d/%{name}.rules << EOF
315KERNEL=="%{kname}", MODE="0666"
316EOF
317cat > %{buildroot}%{_sysconfdir}/udev/rules.d/vbox-additions.rules << EOF
318KERNEL=="vboxguest", NAME="vboxguest", OWNER="root", MODE="0660"
319KERNEL=="vboxuser", NAME="vboxuser", OWNER="root", MODE="0666"
320EOF
321
322# install additions
323%if %{build_additions}
324mkdir -p %{buildroot}%{_datadir}/hal/fdi/policy/20thirdparty
325install -m755 %SOURCE3 %{buildroot}%{_initrddir}/vboxadd-timesync
326
327%if %{_dist_release} < vl6
328install -m644 src/VBox/Additions/linux/installer/90-vboxguest.fdi %{buildroot}%{_datadir}/hal/fdi/policy/20thirdparty/90-vboxguest.fdi
329%endif
330install -d %{buildroot}%{_sysconfdir}/udev/rules.d/
331install -m644 src/VBox/Additions/linux/installer/70-xorg-vboxmouse.rules %{buildroot}%{_sysconfdir}/udev/rules.d/
332install -d %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
333install -m644 src/VBox/Additions/x11/Installer/50-vboxmouse.conf %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
334
335install -d %{buildroot}%{_sysconfdir}/X11/xinit.d
336install -m755 src/VBox/Additions/x11/Installer/98vboxadd-xclient %{buildroot}%{_sysconfdir}/X11/xinit.d
337
338pushd out/%{vbox_platform}/release/bin/additions
339  install -d %{buildroot}/sbin %{buildroot}%{_sbindir} %{buildroot}/%{_libdir}/dri
340  install -m755 mount.vboxsf %{buildroot}/sbin/mount.vboxsf
341  install -m755 VBoxService %{buildroot}%{_sbindir}
342
343  install -d %{buildroot}%{_sysconfdir}/security/console.perms.d/
344  install -m644 %{SOURCE4} %{buildroot}%{_sysconfdir}/security/console.perms.d/
345
346  install -m755 VBoxClient %{buildroot}%{_bindir}
347  install -m755 VBoxControl %{buildroot}%{_bindir}
348
349  install -m755 VBoxOGL*.so %{buildroot}%{_libdir}
350  ln -s -f ../VBoxOGL.so %{buildroot}%{_libdir}/dri/vboxvideo_dri.so
351
352  install -d %{buildroot}%{_sysconfdir}/modprobe.preload.d
353  cat > %{buildroot}%{_sysconfdir}/modprobe.preload.d/vbox-guest-additions << EOF
354vboxadd
355EOF
356
357  install -d %{buildroot}%{_libdir}/xorg/modules/{input,drivers}
358  install vboxmouse_drv_%{xserverabi}.so %{buildroot}%{_libdir}/xorg/modules/input/vboxmouse_drv.so
359  install vboxvideo_drv_%{xserverabi}.so %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so
360
361  mkdir -p %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}
362  cat > %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/dkms.conf << EOF
363PACKAGE_NAME=vboxadditions
364PACKAGE_VERSION=%{version}-%{release}
365MAKE[0]="make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxguest &&
366cp
367\$dkms_tree/\$module/\$module_version/build/vboxguest/Module.symvers \$dkms_tree/\$module/\$module_version/build/vboxsf &&
368make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxsf &&
369cp \$dkms_tree/\$module/\$module_version/build/vboxsf/Module.symvers \$dkms_tree/\$module/\$module_version/build/vboxvideo &&
370make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxvideo"
371EOF
372
373  i=0
374  for kmod in vboxguest vboxsf vboxvideo; do
375    mkdir -p %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/$kmod
376    cp -a src/$kmod/* %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/$kmod/
377    cat >> %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/dkms.conf << EOF
378DEST_MODULE_LOCATION[$i]=/kernel/3rdparty/vbox
379BUILT_MODULE_LOCATION[$i]=$kmod/
380BUILT_MODULE_NAME[$i]=$kmod
381EOF
382    i=$((i+1))
383  done
384  cat >> %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/dkms.conf << EOF
385CLEAN="make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxguest clean &&
386make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxsf clean &&
387make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxvideo clean "
388AUTOINSTALL=yes
389EOF
390popd
391  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
392%endif
393
394# install icons
395mkdir -p %{buildroot}%{_iconsdir}
396install -m644 %{SOURCE10} %{buildroot}%{_iconsdir}/
397
398# install menu entries
399
400mkdir -p %{buildroot}%{_datadir}/applications
401cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
402[Desktop Entry]
403Name=VirtualBox
404Comment=Full virtualizer for x86 hardware
405Comment[ja]=x86 ハードウエアの完全仮想化システム
406Exec=%{_bindir}/%{name}
407Icon=%{name}
408Type=Application
409Terminal=false
410Categories=System;Emulator;
411EOF
412
413# add missing makefile for kernel module
414install -m644 src/VBox/HostDrivers/Support/linux/Makefile %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
415
416# remove unpackaged files
417rm -rf %{buildroot}%{vboxlibdir}/{src,sdk,testcase}
418rm  -f %{buildroot}%{vboxlibdir}/tst*
419rm  -f %{buildroot}%{vboxlibdir}/vboxkeyboard.tar.gz
420rm  -f %{buildroot}%{vboxlibdir}/SUP*
421rm  -f %{buildroot}%{vboxlibdir}/xpidl
422
423%clean
424rm -rf %{buildroot}
425
426%post
427/sbin/chkconfig --add virtualbox
428
429%postun
430if [ "$1" -ge "1" ]; then
431  /sbin/service virtualbox condrestart > /dev/null 2>&1 || :
432fi
433
434%preun
435if [ $1 = 0 ]; then
436    service virtualbox stop > /dev/null 2>&1 ||:
437    /sbin/chkconfig --del virtualbox
438fi
439       
440
441%post -n dkms-%{name}
442set -x
443/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release} ||:
444/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} ||:
445/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} --force ||:
446/sbin/modprobe %{kname} >/dev/null 2>&1 || :
447/sbin/modprobe vboxnetflt >/dev/null 2>&1 || :
448
449%preun -n dkms-%{name}
450# rmmod can fail
451/sbin/rmmod vboxnetflt >/dev/null 2>&1
452/sbin/rmmod %{kname} >/dev/null 2>&1
453set -x
454/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || :
455
456%if %{build_additions}
457%post guest-additions
458/sbin/chkconfig --add vboxadd-timesync
459
460%postun guest-additions
461if [ "$1" -ge "1" ]; then
462  /sbin/service vboxadd-timesync condrestart > /dev/null 2>&1 || :
463fi
464
465%preun guest-additions
466if [ $1 = 0 ]; then
467    service vboxadd-timesync stop > /dev/null 2>&1 ||:
468    /sbin/chkconfig --del vboxadd-timesync
469fi
470
471%post -n dkms-vboxadd
472set -x
473/usr/sbin/dkms --rpm_safe_upgrade add -m vboxadditions -v %{version}-%{release} ||:
474/usr/sbin/dkms --rpm_safe_upgrade build -m vboxadditions -v %{version}-%{release} ||:
475/usr/sbin/dkms --rpm_safe_upgrade install -m vboxadditions -v %{version}-%{release} ||:
476:
477
478%preun -n dkms-vboxadd
479set -x
480/usr/sbin/dkms --rpm_safe_upgrade remove -m vboxadditions -v %{version}-%{release} --all ||:
481:
482
483%endif
484
485%files
486%defattr(-,root,root)
487%config %{_sysconfdir}/vbox/vbox.cfg
488%{_bindir}/%{name}
489%{_bindir}/VBoxManage
490%{_bindir}/VBoxSDL
491%{_bindir}/VBoxHeadless
492%{_bindir}/VBoxTunctl
493%{_bindir}/VBoxNetAdpCtl
494%{_bindir}/VBoxNetDHCP
495#%{_bindir}/vboxwebsrv
496%{vboxlibdir}
497%attr(4711,root,root) %{vboxlibdir}/VBoxHeadless
498%attr(4711,root,root) %{vboxlibdir}/VBoxSDL
499%attr(4711,root,root) %{vboxlibdir}/%{name}
500%attr(4711,root,root) %{vboxlibdir}/VBoxNetAdpCtl
501%attr(4711,root,root) %{vboxlibdir}/VBoxNetDHCP
502%attr(644,root,root) %{vboxlibdir}/*.gc
503%attr(644,root,root) %{vboxlibdir}/*.r0
504%{vboxdatadir}
505# initscripts integration
506%{_initrddir}/virtualbox
507%config %{_sysconfdir}/udev/rules.d/%{name}.rules
508%dir /var/run/%{name}
509# desktop integration
510%{_iconsdir}/*.png
511%{_datadir}/applications/%{name}.desktop
512
513%files -n dkms-%{name}
514%defattr(-,root,root)
515%{_usr}/src/%{name}-%{version}-%{release}
516
517%if %{build_additions}
518%files guest-additions
519%defattr(-,root,root)
520/sbin/mount.vboxsf
521%{_initrddir}/vboxadd-timesync
522%{_sbindir}/VBoxService
523%{_bindir}/VBoxClient
524%{_bindir}/VBoxControl
525%{_sysconfdir}/security/console.perms.d/60-vboxadd.perms
526%{_sysconfdir}/udev/rules.d/vbox-additions.rules
527%{_sysconfdir}/X11/xinit.d/98vboxadd-xclient
528%{_sysconfdir}/modprobe.preload.d/vbox-guest-additions
529
530%files -n xorg-x11-drv-vboxmouse
531%defattr(-,root,root)
532%{_libdir}/xorg/modules/input/vboxmouse_drv.so
533%{_sysconfdir}/X11/xorg.conf.d/*.conf
534%{_sysconfdir}/udev/rules.d/*.rules
535%if %{_dist_release} < vl6
536%{_datadir}/hal/fdi/policy/20thirdparty/90-vboxguest.fdi
537%endif
538
539%files -n xorg-x11-drv-vboxvideo
540%defattr(-,root,root)
541%{_libdir}/VBoxOGL*
542%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so
543%{_libdir}/dri/vboxvideo_dri.so
544
545%files -n dkms-vboxadd
546%defattr(-,root,root)
547%{_usr}/src/vbox*-%{version}-%{release}
548
549%endif
550
551
552%changelog
553* Tue Aug  9 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.1.0-2
554- add Patch50 to fix random kernel panic during shutdown on some environments
555  (see: http://www.virtualbox.org/ticket/9305)
556
557* Wed Jul 20 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.1.0-1
558- update to 4.1.0
559
560* Fri Jul 08 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0.10-1
561- update to 4.0.10
562
563* Sun May 29 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0.8-1
564- update to 4.0.8
565- include xserver 1.10 drivers
566
567* Fri May 13 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0.6-1
568- update to 4.0.6
569- add BR: java-1.6.0-openjdk-devel
570
571* Fri Jan 14 2011 Shu KONNO <owa@bg.wakwak.com> 3.2.12-3
572- rebuilt with openssl-1.0.0c
573- added vboxadd-timesync.vine instead of vboxadd-service.sh
574
575* Sat Dec 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.12-2
576- add BR: pam-devel
577- rebuild with python-2.6
578
579* Fri Dec 03 2010 Shu KONNO <owa@bg.wakwak.com> 3.2.12-1
580- updated VirtualBox to 3.2.12-OSE
581
582* Mon Aug 23 2010 Shu KONNO <owa@bg.wakwak.com> 3.2.8-1
583- new upstream release
584
585* Sat Jun 12 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.4-2
586- add patch110 to fix vboxadd-timesync script
587
588* Thu Jun 10 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.4-1
589- new upstream release
590
591* Sat May 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.0-1
592- new upstream release
593- drop wined3d patch as the Windows guest additions provide
594  Direct3D acceleration.
595- add xorg.conf snippet for new xserver
596- vboxvfs renamed to vboxsf
597
598* Mon Apr 19 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.1.6-2
599- fix initscript
600
601* Sun Apr 18 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.1.6-1
602- new upstream release
603
604* Tue Nov 17 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.10-1
605- new upstream release
606- add missing BR:
607
608* Mon Sep 21 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.6-1
609- new upstream release
610
611* Wed Aug 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.4-1
612- new upstream release
613- add translated summaries and descriptions
614
615* Mon Jul 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.2-1
616- new upstream release
617
618* Wed Jul 01 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.0-1
619- new upstream release
620
621* Tue Jun 09 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.4-3
622- change Group: of dkms-VirtualBox to System Environment/Kernel
623
624* Tue Jun 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.4-2
625- remove modprobe.d/vbox-guest-additions
626
627* Sun May 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.4-1
628- update to 2.2.4
629
630* Sun May 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.2-1
631- initial build for Vine Linux
632- update to 2.2.2
633
634* Wed Apr 22 2009 Pascal Terjan <pterjan@mandriva.org> 2.2.0-4mdv2009.1
635+ Revision: 368679
636- Fix mkrpm template
637
638* Tue Apr 21 2009 Pascal Terjan <pterjan@mandriva.org> 2.2.0-3mdv2009.1
639+ Revision: 368502
640- BuildRequires:dkms-minimal
641- Obsolete -latest dkms binary packages
642
643* Wed Apr 15 2009 Frederic Crozat <fcrozat@mandriva.com> 2.2.0-2mdv2009.1
644+ Revision: 367571
645- Patch15: kill vboxclient if leftover from previous X11 session
646- Patch14 (Sun): fix OpenGL support for Linux Guest additions
647- improve packaging to be more LSB compliant
648
649* Fri Apr 10 2009 Frederic Crozat <fcrozat@mandriva.com> 2.2.0-1mdv2009.1
650+ Revision: 365828
651- Release 2.2.0
652- enable OpenGL pass-through. Caveat : Linux guest support is not working when building guest additions with Open source edition (under investigation)
653- move location of fdi file (fix mouse integration support when using HAL)
654- merge all guest additions kernel module in one single DKMS (pterjan)
655- Enable webservice
656- Remove patch9, no longer needed (when using kernel 2.6.29.x, you MUST use kernel 2.6.29.1 or later)
657- Regenerate patches 8, 10
658- Patch11: add Wine Direct3D guest additions option (Debian)
659- Patch12: disable update notification (Debian)
660- Patch13: make network settings more intuitive (Debian)
661- Add missing dependencies in guest additions package
662- No longer use gcc 4.2, build fine with latest gcc 4.3
663- Replace source3 with upstream version
664- Update source4 to change permissions on both guest additions devices
665- Fix permissions on non .so files
666
667* Mon Mar 09 2009 Pascal Terjan <pterjan@mandriva.org> 2.1.4-5mdv2009.1
668+ Revision: 353280
669- vboxvfs needs vboxadd
670
671* Wed Mar 04 2009 Frederic Crozat <fcrozat@mandriva.com> 2.1.4-4mdv2009.1
672+ Revision: 348336
673- Force rebuild of dkms modules
674
675* Wed Feb 25 2009 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 2.1.4-3mdv2009.1
676+ Revision: 344966
677- Copy Module.symvers for vboxnetflt dkms build, needed with
678  CONFIG_MODVERSIONS enabled in latest cooker kernels.
679
680* Wed Feb 25 2009 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 2.1.4-2mdv2009.1
681+ Revision: 344896
682- Apply fix for VM load failure with kernels 2.6.29-rc5 or later
683  (#48096, http://www.virtualbox.org/ticket/3403).
684- Fix building with kernel-headers-2.6.29*
685
686* Tue Feb 17 2009 Frederik Himpe <fhimpe@mandriva.org> 2.1.4-1mdv2009.1
687+ Revision: 342236
688- Update to new version 2.1.4
689- Fix source URL
690
691* Thu Jan 22 2009 Frederic Crozat <fcrozat@mandriva.com> 2.1.2-2mdv2009.1
692+ Revision: 332593
693- Use xorg 1.6 drivers when building cooker guest addition packages
694
695* Thu Jan 22 2009 Funda Wang <fundawang@mandriva.org> 2.1.2-1mdv2009.1
696+ Revision: 332404
697- specify CC4.2
698- New version 2.1.2
699- rediff libpath patch
700
701* Sun Jan 04 2009 Colin Guthrie <cguthrie@mandriva.org> 2.1.0-5mdv2009.1
702+ Revision: 324525
703- Rebuild mouse and display drivers for xserver 1.6
704
705* Thu Dec 25 2008 Michael Scherer <misc@mandriva.org> 2.1.0-4mdv2009.1
706+ Revision: 318540
707- rebuild for new python
708
709* Fri Dec 19 2008 Frederic Crozat <fcrozat@mandriva.com> 2.1.0-3mdv2009.1
710+ Revision: 316288
711- Fix guest additions for cooker, we ship Xorg 1.5 now
712- Ship fdi file for vboxmouse
713
714* Fri Dec 19 2008 Adam Williamson <awilliamson@mandriva.org> 2.1.0-2mdv2009.1
715+ Revision: 316021
716- oops, finish fixing up initscript
717
718* Fri Dec 19 2008 Adam Williamson <awilliamson@mandriva.org> 2.1.0-1mdv2009.1
719+ Revision: 316019
720- adjust initscript and dkms.conf for the fact that there's now two necessary
721  kernel modules for the master: vboxdrv and vboxnetflt
722- drop mdvconfig.patch: this stub does nothing useful, and breaks the build
723  (see fcrozat's mail on Cooker)
724- VBoxAddIF and VBoxDeleteIF are now obsolete and not provided
725
726  + Frederic Crozat <fcrozat@mandriva.com>
727    - Release 2.1.0
728    - Regenerate patch1
729    - update buildrequires
730
731* Sun Nov 30 2008 Frederik Himpe <fhimpe@mandriva.org> 2.0.6-2mdv2009.1
732+ Revision: 308552
733- Rebuild mouse and display drivers for xserver 1.5
734
735* Wed Nov 26 2008 Funda Wang <fundawang@mandriva.org> 2.0.6-1mdv2009.1
736+ Revision: 306865
737- New version 2.0.6
738
739* Mon Nov 03 2008 Funda Wang <fundawang@mandriva.org> 2.0.4-1mdv2009.1
740+ Revision: 299348
741- New version 2.0.4
742
743* Mon Sep 15 2008 Frederic Crozat <fcrozat@mandriva.com> 2.0.2-2mdv2009.0
744+ Revision: 284854
745- Patch8: disable version check at startup
746
747* Sat Sep 13 2008 Frederik Himpe <fhimpe@mandriva.org> 2.0.2-1mdv2009.0
748+ Revision: 284544
749- Update to bugfix update 2.0.2
750
751* Tue Sep 09 2008 Olivier Blin <oblin@mandriva.com> 2.0.0-3mdv2009.0
752+ Revision: 283015
753- build guest additions on x86_64 too (#43593)
754
755  + Frederic Crozat <fcrozat@mandriva.com>
756    - Patch7: fix QT4 detection on x86-64 on Mandriva 2008.1
757
758* Thu Sep 04 2008 Frederic Crozat <fcrozat@mandriva.com> 2.0.0-1mdv2009.0
759+ Revision: 280850
760- Fix BuildRequires
761- Release 2.0.0
762- Remove patches 3, 7 (merged upstream)
763
764* Mon Sep 01 2008 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1.6.4-4mdv2009.0
765+ Revision: 278071
766- Added patch to allow VirtualBox kernel module to build with
767  Linux 2.6.27
768
769  + Pixel <pixel@mandriva.com>
770    - increase release number
771    - use gcc4.2 to build the recompiler (not ported to gcc 4.3 yet)
772
773* Wed Aug 06 2008 Olivier Blin <oblin@mandriva.com> 1.6.4-2mdv2009.0
774+ Revision: 264273
775- create /var/run/VirtualBox (#41963)
776- use tunctl from the tunctl package while VBoxTunctl does not build
777
778* Tue Aug 05 2008 Olivier Blin <oblin@mandriva.com> 1.6.4-1mdv2009.0
779+ Revision: 264016
780- do not include VBoxTunctl for now (build is broken in upstream tarball)
781- rediff misc_register patch (the register part has been implemented upstream, I should submit the deregister hunks)
782- fix 1.6.4 build by not building tunctl (some Makefile.kmk are missing)
783- 1.6.4
784
785* Tue Jul 29 2008 Frederic Crozat <fcrozat@mandriva.com> 1.6.2-2mdv2009.0
786+ Revision: 252777
787- Don't use gcc 3.3 for build on 2008.1 or earlier
788
789* Wed Jul 09 2008 Olivier Blin <oblin@mandriva.com> 1.6.2-1mdv2009.0
790+ Revision: 232889
791- set again linux sources path in configure
792- use gcc 3.3 to build the recompiler (not ported to gcc 4.3 yet)
793- use kernel-devel-latest instead of kernel-source-latest
794- use a prepared copy of the linux tree (for linux/bounds.h)
795
796  + Frederic Crozat <fcrozat@mandriva.com>
797    - Release 1.6.2
798    - Regenerate patch5
799    - Fix duplicated line in specfile
800
801  + Pixel <pixel@mandriva.com>
802    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas
803
804* Fri May 16 2008 Frederic Crozat <fcrozat@mandriva.com> 1.6.0-4mdv2009.0
805+ Revision: 208160
806- Fix seamless mode in guest additions subpackage
807
808* Thu May 15 2008 Anssi Hannula <anssi@mandriva.org> 1.6.0-3mdv2009.0
809+ Revision: 207692
810- rename VBoxAddIF.sh and VBoxDeleteIF.sh to VBoxAddIF and VBoxDeleteIF
811  to match original names and documentation
812
813* Wed May 14 2008 Frederic Crozat <fcrozat@mandriva.com> 1.6.0-2mdv2009.0
814+ Revision: 207235
815- Replace source1 with patch 6 (use up to date VBox.sh script)
816- Ensure VBoxAddIF/VBoxDeleteIF scripts are packaged, as well as VBoxTunctl (Mdv bug #40769)
817- package VBoxHeadless (Mdv bug #40771)
818
819* Fri May 09 2008 Olivier Blin <oblin@mandriva.com> 1.6.0-1mdv2009.0
820+ Revision: 205313
821- try harder to disable additions on x86_64
822- buildrequire libxslt-devel
823- adapt to vboxadd-xclient being renamed as VBoxClient
824- rediff futex patch
825- rediff misc_register patch
826- 1.6.0
827- revert BUILT_MODULE_NAME addition, the bug is fixed in dkms
828
829  + Anssi Hannula <anssi@mandriva.org>
830    - add BUILT_MODULE_NAME to dkms.conf of vboxadd and vboxvfs (fixes DKMS
831      error)
832
833* Tue Feb 26 2008 Olivier Blin <oblin@mandriva.com> 1.5.6-1mdv2008.1
834+ Revision: 175619
835- 1.5.6
836- rediff KERNELRELEASE patch
837
838* Tue Feb 26 2008 Olivier Blin <oblin@mandriva.com> 1.5.4-5mdv2008.1
839+ Revision: 175610
840- try to start dkms instead of vboxadd in vboxadd-timesync service (since modules are loaded from modprobe.preload.d, #36728)
841
842* Fri Feb 08 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.5.4-4mdv2008.1
843+ Revision: 163970
844- drop old menu
845
846  + Frederic Crozat <fcrozat@mandriva.com>
847    - Really disable pulseaudio support on 2008.0 or older
848
849* Thu Jan 10 2008 Frederic Crozat <fcrozat@mandriva.com> 1.5.4-3mdv2008.1
850+ Revision: 147602
851- Use correct version of x11 mouse and video additional driver when used on 2008.1 (xorg 1.4) and 2008.0
852- Only build pulseaudio support for 2008.1
853
854* Wed Jan 09 2008 Olivier Blin <oblin@mandriva.com> 1.5.4-2mdv2008.1
855+ Revision: 147006
856- fix dkms build for kernels different from running kernel
857
858* Thu Jan 03 2008 Olivier Blin <oblin@mandriva.com> 1.5.4-1mdv2008.1
859+ Revision: 142711
860- buildrequire pulseaudio-devel
861- rediff libpath patch
862- remove 2.6.24 build fix, fixed upstream
863- 1.5.4
864- restore BuildRoot
865
866  + Pascal Terjan <pterjan@mandriva.org>
867    - Switch to Debian patch for 2.6.24
868    - Re-create the 2.6.24 patch, some bits got lost
869
870  + Thierry Vignaud <tvignaud@mandriva.com>
871    - kill re-definition of %%buildroot on Pixel's request
872    - kill explicit icon extension
873
874  + Giuseppe Ghibò <ghibo@mandriva.com>
875    - Use kernel-source-latest in BuildRequires as conditional.
876    - Add conditional build flags for older release.
877    - Let Patch5 conditional.
878
879* Fri Nov 30 2007 Pascal Terjan <pterjan@mandriva.org> 1.5.2-3mdv2008.1
880+ Revision: 114076
881- Improve 2.6.24 patch so that it should still build with older kernels
882
883* Fri Nov 30 2007 Pascal Terjan <pterjan@mandriva.org> 1.5.2-2mdv2008.1
884+ Revision: 114047
885- Fix other parts to build with 2.6.24
886- Fix vboxdrv for 2.6.24
887
888* Tue Nov 13 2007 Olivier Blin <oblin@mandriva.com> 1.5.2-1mdv2008.1
889+ Revision: 108363
890- remove keyboards patch (was from upstream svn)
891- rediff kernelrelease patch
892- rediff libpath patch
893- 1.5.2
894
895* Thu Oct 04 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-6mdv2008.0
896+ Revision: 95447
897- really apply misc_register patch (so that vboxadd devices are automatically created)
898- add release in dkms PACKAGE_VERSION to ease upgrades
899
900* Sat Sep 29 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-5mdv2008.0
901+ Revision: 93837
902- require kmod(vboxdrv) instead of dkms package
903- do not mark initscript as config file
904- move initscripts and udev rules out of dkms package (so that it works when using dkms prebuilt modules)
905
906* Sat Sep 29 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-4mdv2008.0
907+ Revision: 93812
908- add vboxadd-timesync service
909- add pam_console perms file to assign vboxadd device to console user
910- use misc_register() to register vboxadd device so that /dev/vboxadd gets created automatically by udev
911
912* Fri Sep 28 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-3mdv2008.0
913+ Revision: 93770
914- add vboxadd-xclient xinit.d script
915- release new additions, but we still need to fix mknod for vboxadd
916  (or use device_create() in kernel module), set console perms for
917  vboxadd in console.perms.d, and add timesync initscript
918- make guest additions package require X11 drivers
919- make x11 driver packages suggest virtualbox-guest-additions
920- add virtualbox-guest-additions package (with xclient, timesync, mount.vboxsf)
921- add dkms-vboxadd and dkms-vboxvfs packages
922
923* Fri Sep 28 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-2mdv2008.0
924+ Revision: 93534
925- build additions on ix86 only
926- fix support for Brazilian, Belgian, US intl and US dvorak keyboards and add support for multimedia keys (from upstream SVN)
927- buildrequire libstdc++-static-devel
928- buildrequire libxt-devel
929- buildrequire kernel-source-latest, since iurt/urpmi don't install latest kernel-source automatically
930- buildrequire kernel-source
931- package mouse guest addition in x11-driver-input-vboxmouse
932- package video guest addition in x11-driver-video-vboxvideo
933- build VirtualBox additions
934
935* Mon Sep 03 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-1mdv2008.0
936+ Revision: 78607
937- drop libstdc++5 BuildRequires
938- drop unapplied x86_64 NMI watchdog disabling patch (merged upstream)
939- 1.5.0
940- rediff mdvconfig patch
941
942  + Thierry Vignaud <tvignaud@mandriva.com>
943    - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated'
944
945* Fri Jun 08 2007 Per Øyvind Karlsen <peroyvind@mandriva.org> 1.4.0-1mdv2008.0
946+ Revision: 37085
947- from Jos?\195?\169 Melo <mmodem00@gmail.com>:
948        o 1.4.0
949        o update patch:2 since is needed to load (modprobe) vbox driver in kernel-2.6.17
950        o remove patch1 since is becomes obsolete with this new version,and continues installing and running stable no matter if is kernel-2.6.17 or greater
951        o add missing buildrequire hal-devel
952
953
954* Thu Mar 15 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.8-1mdv2007.1
955+ Revision: 144313
956- add should-start: dkms to initscript (#29523)
957- 1.3.8
958  * hard reset network device on reboot
959  * fix issues with IBM JVM 1.4.2 in Linux guests
960  * add support for X.org 7.2.x in Linux guest additions
961
962* Fri Mar 02 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.6-1mdv2007.1
963+ Revision: 131492
964- disable NMIs on Core 2 platforms too
965- 1.3.6
966  * fix some GUI issues
967  * fix OpenBSD 4.0 support
968  * fix CD/DVD-ROM detection in Windows Vista guests
969  * fix networking issues with Windows NT 4.0 guests
970  * fix some ALSA problems that could cause system reboots
971
972* Mon Feb 12 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.4-1mdv2007.1
973+ Revision: 119895
974- 1.3.4
975
976* Mon Feb 12 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.3.20070209-1mdv2007.1
977+ Revision: 119017
978- SVN updates (2007/02/09):
979  * additional 64-bit fixes
980  * asynchronous packets transmission in NIC code
981
982* Sat Feb 03 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.3.20070202-1mdv2007.1
983+ Revision: 116064
984- various 64-bit fixes
985- updates from SVN (2007/02/02):
986  * initial 64-bit host support
987  * fix IDE for Open Solaris 10
988  * add VDI compacting to the GUI
989
990* Sat Jan 27 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.3-1mdv2007.1
991+ Revision: 114276
992- initial mandriva linux package
993
Note: See TracBrowser for help on using the repository browser.