Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > bbe024aec544389e7fc9ed61b75793b6 > files > 20

virtualbox-4.2.12-2.mga3.src.rpm

%define ver		4.2.12
%define rel		2
%define version		%{ver}%{?svndate:.%{svndate}}
%define release		%mkrel %{rel}
%define kname		vboxdrv
%define oname		VirtualBox
%define srcname		%{oname}-%{version}
%define distname	%{oname}-%{version}
%define dirname		vbox-ose
%define pkgver		%{ver}%{?svndate:-%{svndate}}

%define vboxlibdir	%{_libdir}/%{name}
%define vboxdatadir	%{_datadir}/%{name}
%define vboxpydir	%{py_puresitedir}/vboxapi

%define build_additions	1
%define build_doc	0
%define build_sdk	1

%ifarch %{ix86}
%define vbox_platform linux.x86
%endif
%ifarch x86_64
%define vbox_platform linux.amd64
%endif

# nuke vbox-specific dependencies
%define _provides_exceptions ^VBox
%define _requires_exceptions ^VBox

%define x11_server_majorver %(pkg-config --modversion xorg-server|awk -F. '{print $1$2}')

Summary:	A general-purpose full virtualizer for x86 hardware
Name:		virtualbox
Version:	%{version}
Release:	%{release}
Source0:	http://download.virtualbox.org/virtualbox/%ver/%{srcname}.tar.bz2
Source2:	virtualbox.init
Source3:	virtualbox-tmpfiles.conf
Source10:	virtualbox.png
Source11:	virtualbox.16.png
Source12:	virtualbox.48.png
# (tmb: mga icons submitted upstream 2011-10-22)
Source20:       os_mageia.png
Source21:       os_mageia_64.png
# (tmb) TODO: seems to be unneeded now, but recheck
#Patch1:		VirtualBox-4.1.8-libpath.patch
Patch2:		VirtualBox-4.1.8-kernelrelease.patch
Patch3:		VirtualBox-4.1.8-futex.patch
Patch4:		virtualbox-fix-vboxadd-req.patch
# (fc) 1.6.0-2mdv fix initscript name in VBox.sh script
Patch5:		VirtualBox-4.1.8-initscriptname.patch
# (tmb) disable update notification (OpenSuSe)
# (tmb) TODO: rewrite
#Patch7:		VirtualBox-4.1.8-no-update.patch
# don't check for:
# - mkisofs: we're not going to build the additions .iso file
# - makeself: we're not going to create the stanalone .run installers
Patch9:		VirtualBox-4.1.8-dont-check-for-mkisofs-or-makeself.patch
# add Mageia support (tmb: submitted upstream 2011-10-22)
Patch13:	VirtualBox-4.2.0-add-Mageia-support.patch
# (tmb) Default to Mageia
Patch14:	VirtualBox-4.2.12-default-to-Mageia.patch
# (tmb) default to no update checks as we provide rpms
Patch15:	VirtualBox-4.2.12-noupdate-check.patch

# Fedora patches
# add missing check for VBOX_USE_SYSTEM_XORG_HEADERS
Patch20:	VirtualBox-4.2.0-VBoxGuestLib.patch
# fake_drv.c,h: use x11-server source
Patch21:	VirtualBox-4.2.0-mesa.patch
# build against system libs
Patch22:	VirtualBox-4.2.4-no-bundles.patch

License:	GPLv2
Group:		Emulators
Url:		http://www.virtualbox.org/
ExclusiveArch:	%{ix86} x86_64
Requires(post):   systemd >= %{systemd_required_version}
Requires(post):   rpm-helper
Requires(preun):  rpm-helper
Requires(postun): rpm-helper
Requires:	kmod(vboxdrv) = %{version}
Conflicts:	dkms-%{name} <= 1.5.0-%{mkrel 4}
Suggests:	%{name}-doc
BuildRequires:	gsoap
BuildRequires:	dev86, iasl
BuildRequires:	zlib-devel
BuildRequires:	libxcursor-devel
BuildRequires:	libxmu-devel
BuildRequires:	SDL-devel, libqt4-devel >= 4.4.0
BuildRequires:  qt4-linguist
BuildRequires:	libIDL-devel, libext2fs-devel
BuildRequires:	libxslt-proc, libxslt-devel 
BuildRequires:	libxt-devel, libstdc++-static-devel
BuildRequires:  python-devel
BuildRequires:  libcap-devel
BuildRequires:  libxrandr-devel libxinerama-devel libxcomposite-devel
BuildRequires:	pulseaudio-devel
BuildRequires:	kernel-devel-latest
BuildRequires:  mesaglu-devel mesagl-devel libxmu-devel
BuildRequires:	openssl-devel
BuildRequires:	curl-devel
BuildRequires:	dkms-minimal
BuildRequires:	libpam-devel
BuildRequires:	gawk
BuildRequires:	x11-server-devel
BuildRequires:	java-rpmbuild
BuildRequires:	device-mapper-devel
BuildRequires:	x11-server-source
BuildRequires:	boost-devel
%if %build_doc
# for building the user manual pdf file
BuildRequires:	texlive
BuildRequires:	texlive-fontsextra
BuildRequires:	docbook-dtds
%endif
BuildRequires:	libxslt-devel

%description
VirtualBox is a general-purpose full virtualizer for x86 hardware.

%package -n	dkms-%{name}
Summary:	VirtualBox kernel module
Group:		System/Kernel and hardware
BuildArch:	noarch
Requires(post):	  dkms
Requires(preun):  dkms
Conflicts:	dkms-vboxadditions < 4.0.6

%description -n dkms-%{name}
Kernel support for VirtualBox.

%if %{build_additions}
%package 	guest-additions
Summary:	Additions for VirtualBox guest systems
Group:		Emulators
Requires:	kmod(vboxguest)
Requires:	kmod(vboxsf)
Requires:	kmod(vboxvideo)
Requires:	x11-driver-video-vboxvideo
# guest-additions should require xrandr for auto-resizing of guest display to
# work without having to restart the X server in the guest VM
Requires:	xrandr
Requires(post):   rpm-helper
Requires(preun):  rpm-helper

%description    guest-additions
This package contains additions for VirtualBox guest systems.
It allows to share files with the host system and sync time with host.

%package -n	dkms-vboxadditions
Summary:	Kernel module for VirtualBox additions
Group:		System/Kernel and hardware
BuildArch:	noarch
Requires(post):	  dkms
Requires(preun):  dkms
Obsoletes:	dkms-vboxadd < %{version}-%{release}
Provides:	dkms-vboxvfs = %{version}-%{release}
Obsoletes:	dkms-vboxvfs < %{version}-%{release}
Provides:	dkms-vboxsf = %{version}-%{release}
Obsoletes:	dkms-vboxsf < %{version}-%{release}
Provides:	dkms-vboxvideo = %{version}-%{release}
Obsoletes:	dkms-vboxvideo < %{version}-%{release}
Conflicts:	dkms-%{name} < 4.0.6

%description -n dkms-vboxadditions
Kernel module for VirtualBox additions (ideally only needs to be installed
on the guest OS not on the host OS).

%package -n	x11-driver-video-vboxvideo
Summary:	The X.org driver for video in VirtualBox guests
Group:		System/X11
Suggests:	virtualbox-guest-additions
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)


%description -n x11-driver-video-vboxvideo
The X.org driver for video in VirtualBox guests.
%endif

%if %build_doc
%package doc
Summary:	The user manual PDF file for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains the user manual PDF file for %{name}.
%endif

%if %{build_sdk}
%package devel
Summary:        %{name} SDK
Group:          Development/Other
Requires:       %{name} = %{version}-%{release}
Requires:       python-%{name} = %{version}-%{release}

%description devel
This package contains the SDK for %{name}.


%package -n python-%{name}
Summary: %{name} SDK
Group:	  	  Development/Python
Requires:       %{name} = %{version}-%{release}

%description -n python-%{name}
Python XPCOM bindings to %{name}.
%endif

%prep
%setup -q -n %{distname}
%apply_patches

# add Mageia images
cp -a %{SOURCE20} %{SOURCE21} src/VBox/Frontends/VirtualBox/images/

rm -rf fake-linux/
cp -a $(ls -1dtr /usr/src/linux-* | tail -n 1) fake-linux

# Remove bundle X11 sources and some lib sources, before patching.
rm -rf src/VBox/Additions/x11/x11include
rm -rf src/VBox/Additions/x11/x11stubs
rm -rf src/libs/boost-1.37.0/
#rm -rf src/libs/liblzf-3.4/
rm -rf src/libs/libxml2-2.6.31/
rm -rf src/libs/libpng-1.2.8/
rm -rf src/libs/zlib-1.2.6/

cat << EOF > LocalConfig.kmk
VBOX_PATH_APP_PRIVATE_ARCH:=%{vboxlibdir}
VBOX_WITH_ORIGIN:=
VBOX_WITH_RUNPATH:=%{vboxlibdir}
VBOX_PATH_APP_PRIVATE:=%{vboxdatadir}
VBOX_WITH_TESTCASES =
VBOX_WITH_TESTSUITE:=
VBOX_JAVA_HOME := %{java_home}
VBOX_WITHOUT_ADDITIONS_ISO := 1
VBOX_USE_SYSTEM_XORG_HEADERS := 1
XSERVER_VERSION := %{x11_server_majorver}
VBOX_PATH_APP_DOCS :=%{_defaultdocdir}/virtualbox
EOF

%build
#make -C fake-linux prepare
export LIBPATH_LIB="%{_lib}"
./configure \
 --enable-webservice \
 --with-linux=$PWD/fake-linux \
%if ! %build_doc
  --disable-docs
%endif

%if !%{build_additions}
sed -rie 's/(VBOX_WITH_LINUX_ADDITIONS\s+:=\s+).*/\1/' AutoConfig.kmk
echo VBOX_WITHOUT_ADDITIONS=1 >> LocalConfig.kmk
%endif

. ./env.sh
kmk %_smp_mflags all

%install
rm -rf %{buildroot}

# install vbox components
mkdir -p %{buildroot}%{vboxlibdir} %{buildroot}%{vboxdatadir} 

(cd out/%{vbox_platform}/release/bin && tar cf - --exclude=additions .) | \
(cd %{buildroot}%{vboxlibdir} && tar xf -)

# move noarch files to vboxdatadir
mv %{buildroot}%{vboxlibdir}/{VBox*.sh,nls,*.desktop,*.png} %{buildroot}%{vboxdatadir}

# install service
mkdir -p %{buildroot}%{_initrddir}
install -m755 %{SOURCE2} %{buildroot}%{_initrddir}/%{name}

# install wrappers
mkdir -p %{buildroot}%{_sysconfdir}/vbox
cat > %{buildroot}%{_sysconfdir}/vbox/vbox.cfg << EOF
# VirtualBox installation directory
INSTALL_DIR="%{vboxlibdir}"
EOF
mkdir -p %{buildroot}%{_bindir}
ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/%{oname}
ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/VBoxManage
ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/VBoxSDL
ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/VBoxHeadless
ln -s %{vboxdatadir}/VBox.sh %{buildroot}%{_bindir}/vboxwebsrv

# provide network control tools in bindir
ln -s %{vboxlibdir}/VBoxTunctl %{buildroot}%{_bindir}/VBoxTunctl
ln -s %{vboxlibdir}/VBoxNetAdpCtl %{buildroot}%{_bindir}/VBoxNetAdpCtl
ln -s %{vboxlibdir}/VBoxNetDHCP %{buildroot}%{_bindir}/VBoxNetDHCP

# add tmpfs dir in /run
install -m644 -D %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cat > vboxbuild << EOF
#!/bin/sh
set -e
make -C %{kname} KERN_DIR=\$1
cp -f %{kname}/Module.symvers vboxnetflt
cp -f %{kname}/Module.symvers vboxnetadp
make -C vboxnetflt KERN_DIR=\$1
make -C vboxnetadp KERN_DIR=\$1
EOF
install -m 0755 vboxbuild %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
mv %{buildroot}%{vboxlibdir}/src/* %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE[0]="./vboxbuild \$kernel_source_dir"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION[0]=/kernel/3rdparty/vbox
BUILT_MODULE_LOCATION[0]=%{kname}/
BUILT_MODULE_NAME[0]=%{kname}
DEST_MODULE_LOCATION[1]=/kernel/3rdparty/vbox
BUILT_MODULE_LOCATION[1]=vboxnetflt/
BUILT_MODULE_NAME[1]=vboxnetflt
DEST_MODULE_LOCATION[2]=/kernel/3rdparty/vbox
BUILT_MODULE_LOCATION[2]=vboxnetadp/
BUILT_MODULE_NAME[2]=vboxnetadp
AUTOINSTALL=yes
EOF

# install udev rules
mkdir -p %{buildroot}%{_udevrulesdir}
cat > %{buildroot}%{_udevrulesdir}/%{name}.rules << EOF
KERNEL=="%{kname}", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
SUBSYSTEM=="usb_device", ACTION=="add", RUN+="%{_datadir}/%{name}/VBoxCreateUSBNode.sh \$major \$minor \$attr{bDeviceClass} vboxusers"
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="%{_datadir}/%{name}/VBoxCreateUSBNode.sh \$major \$minor \$attr{bDeviceClass} vboxusers"
SUBSYSTEM=="usb_device", ACTION=="remove", RUN+="%{_datadir}/%{name}/VBoxCreateUSBNode.sh --remove \$major \$minor"
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="%{_datadir}/%{name}/VBoxCreateUSBNode.sh --remove \$major \$minor"
EOF
cat > %{buildroot}%{_udevrulesdir}/vbox-additions.rules << EOF
KERNEL=="vboxguest", NAME="vboxguest", OWNER="root", MODE="0660"
KERNEL=="vboxuser", NAME="vboxuser", OWNER="root", MODE="0666"
EOF

# install vboxweb
install -m755 src/VBox/Installer/linux/vboxweb-service.sh.in %{buildroot}%{_initrddir}/vboxweb-service

# install additions
%if %{build_additions}
# vboxadd-timesync should probably be renamed vboxadd now, but renaming initscripts
# cleanly is hacky business
install -m755 src/VBox/Additions/linux/installer/vboxadd-service.sh %{buildroot}%{_initrddir}/vboxadd-timesync

install -d %{buildroot}%{_sysconfdir}/X11/xinit.d
install -m755 src/VBox/Additions/x11/Installer/98vboxadd-xclient %{buildroot}%{_sysconfdir}/X11/xinit.d

pushd out/%{vbox_platform}/release/bin/additions
  install -d %{buildroot}/sbin %{buildroot}%{_sbindir} %{buildroot}/%{_libdir}/dri
  install -m755 mount.vboxsf %{buildroot}/sbin/mount.vboxsf
  install -m755 VBoxService %{buildroot}%{_sbindir}

  install -m755 VBoxClient %{buildroot}%{_bindir}
  install -m755 VBoxControl %{buildroot}%{_bindir}

  install -m755 VBoxOGL*.so %{buildroot}%{_libdir}
  ln -s -f ../VBoxOGL.so %{buildroot}%{_libdir}/dri/vboxvideo_dri.so

  install -d %{buildroot}%{_sysconfdir}/modprobe.preload.d
  cat > %{buildroot}%{_sysconfdir}/modprobe.preload.d/vbox-guest-additions << EOF
vboxguest
EOF
  install -d %{buildroot}%{_libdir}/xorg/modules/{input,drivers}
  install vboxvideo_drv_system.so %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so

  mkdir -p %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}
  cat > %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/dkms.conf << EOF
PACKAGE_NAME=vboxadditions
PACKAGE_VERSION=%{version}-%{release}
MAKE[0]="make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxguest &&
cp \$dkms_tree/\$module/\$module_version/build/vboxguest/Module.symvers \$dkms_tree/\$module/\$module_version/build/vboxsf &&
make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxsf &&
cp \$dkms_tree/\$module/\$module_version/build/vboxsf/Module.symvers \$dkms_tree/\$module/\$module_version/build/vboxvideo &&
make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxvideo"
EOF
  i=0
  for kmod in vboxguest vboxsf vboxvideo; do
    mkdir -p %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/$kmod
    cp -a src/$kmod/* %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/$kmod/
    cat >> %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/dkms.conf << EOF
DEST_MODULE_LOCATION[$i]=/kernel/3rdparty/vbox
BUILT_MODULE_LOCATION[$i]=$kmod/
BUILT_MODULE_NAME[$i]=$kmod
EOF
    i=$((i+1))
  done
  cat >> %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/dkms.conf << EOF
CLEAN="make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxguest clean && 
make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxsf clean && 
make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxvideo clean "
AUTOINSTALL=yes
EOF
popd
  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
%endif

# desktop integration
#
# install icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48,64x64,128x128}/{apps,mimetypes}
pushd out/%{vbox_platform}/release/bin/icons/
for i in 16 32 48 64 128; do
cp -a "$i"x"$i"/virtualbox.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/
cp -a "$i"x"$i"/virtualbox-*.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/mimetypes/
done
popd

# install menu entries

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mageia-%{name}.desktop << EOF
[Desktop Entry]
Name=VirtualBox
Comment=Run several virtual systems on a single host computer
Comment[de]=Windows und andere Betriebssysteme unter FreeBSD ausführen
Comment[it]=Esegui più macchine virtuali su un singolo computer
Comment[pl]=Uruchamianie wielu systemów wirtualnych na jednym komputerze gospodarza
Comment[sv]=Kör flera virtuella system på en enda värddator
Comment[ko]=가상 머신
Exec=%{oname} %U
Icon=%{name}
Type=Application
Terminal=false
Categories=X-MandrivaLinux-MoreApplications-Emulators;Emulator;
MimeType=application/x-virtualbox-vbox;application/x-virtualbox-vbox-extpack;application/x-virtualbox-ovf;application/x-virtualbox-ova;
EOF

# install mime types
install -D -m644 out/%{vbox_platform}/release/bin/virtualbox.xml %{buildroot}%{_datadir}/mime/packages/virtualbox.xml


# add missing makefile for kernel module
install -m644 src/VBox/HostDrivers/Support/linux/Makefile %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/

%if %{build_sdk}
mkdir -p %{buildroot}%{vboxpydir}

pushd out/%{vbox_platform}/release/bin/sdk/installer
VBOX_INSTALL_PATH=%{vboxlibdir} \
        python vboxapisetup.py install --prefix %{_prefix} --root %{buildroot}
popd
#cp -rp out/%{vbox_platform}/release/bin/sdk/. %{buildroot}%{vboxlibdir}/sdk
rm -rf %{buildroot}%{vboxlibdir}/sdk/installer
%else
rm -rf %{buildroot}%{vboxlibdir}/sdk
%endif

# remove unpackaged files
rm -rf %{buildroot}%{vboxlibdir}/{src,testcase}
rm  -f %{buildroot}%{vboxlibdir}/tst*
rm  -f %{buildroot}%{vboxlibdir}/vboxkeyboard.tar.gz
rm  -f %{buildroot}%{vboxlibdir}/SUP*
rm  -f %{buildroot}%{vboxlibdir}/xpidl

# install PAM module:
install -D -m755 out/%{vbox_platform}/release/bin/additions/pam_vbox.so %{buildroot}/%{_lib}/security/pam_vbox.so

# install the user manual
%if %build_doc
install -D -m644 out/%{vbox_platform}/release/bin/UserManual.pdf %{buildroot}/%{_defaultdocdir}/%{name}/UserManual.pdf
%endif

%clean
rm -rf %{buildroot}

%post
%_tmpfilescreate %{name}
%_post_service %{name}

%_add_group_helper %{name} 1 vboxusers


# (Debian) Build usb device tree
for i in /sys/bus/usb/devices/*; do
	if test -r "$i/dev"; then
		dev="`cat "$i/dev" 2> /dev/null || true`"
		major="`expr "$dev" : '\(.*\):' 2> /dev/null || true`"
		minor="`expr "$dev" : '.*:\(.*\)' 2> /dev/null || true`"
		class="`cat $i/bDeviceClass 2> /dev/null || true`"
		/usr/share/virtualbox/VBoxCreateUSBNode.sh "$major" "$minor" "$class" vboxusers 2>/dev/null || true
	fi
done

%postun
if [ "$1" -ge "1" ]; then
  /sbin/service %{name} condrestart > /dev/null 2>&1 || :
fi

%_del_group_helper %{name} 1 vboxusers

%preun
%_preun_service %{name}

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}
/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} &&
/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release}
/sbin/rmmod vboxnetflt &>/dev/null
/sbin/rmmod vboxnetadp &>/dev/null
/sbin/rmmod %{kname} &>/dev/null
/sbin/modprobe %{kname} &>/dev/null
/sbin/modprobe vboxnetflt &>/dev/null
/sbin/modprobe vboxnetadp &>/dev/null
:

%preun -n dkms-%{name}
if [ "$1" = "0" ]; then
	/sbin/rmmod vboxnetadp >/dev/null 2>&1
	/sbin/rmmod vboxnetflt >/dev/null 2>&1
	/sbin/rmmod %{kname} >/dev/null 2>&1
fi
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || :

%if %{build_additions}
%post guest-additions
%_post_service vboxadd-timesync

%_add_group_helper %{name} 1 vboxsf

%preun guest-additions
%_preun_service vboxadd-timesync

%postun guest-additions
%_del_group_helper %{name} 1 vboxsf

%post -n dkms-vboxadditions
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m vboxadditions -v %{version}-%{release}
/usr/sbin/dkms --rpm_safe_upgrade build -m vboxadditions -v %{version}-%{release} &&
/usr/sbin/dkms --rpm_safe_upgrade install -m vboxadditions -v %{version}-%{release}
:

%preun -n dkms-vboxadditions
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m vboxadditions -v %{version}-%{release} --all
:

%endif

%files
%config %{_sysconfdir}/vbox/vbox.cfg
%{_bindir}/%{oname}
%{_bindir}/VBoxManage
%{_bindir}/VBoxSDL
%{_bindir}/VBoxHeadless
%{_bindir}/VBoxTunctl
%{_bindir}/VBoxNetAdpCtl
%{_bindir}/VBoxNetDHCP
%{_bindir}/vboxwebsrv
%{vboxlibdir}
%attr(4711,root,root) %{vboxlibdir}/VBoxHeadless
%attr(4711,root,root) %{vboxlibdir}/VBoxSDL
%attr(4711,root,root) %{vboxlibdir}/VirtualBox
%attr(4711,root,root) %{vboxlibdir}/VBoxNetAdpCtl
%attr(4711,root,root) %{vboxlibdir}/VBoxNetDHCP
%attr(644,root,root) %{vboxlibdir}/*.gc
%attr(644,root,root) %{vboxlibdir}/*.r0
%{vboxdatadir}
# initscripts integration
%{_initrddir}/%{name}
%{_initrddir}/vboxweb-service
%{_udevrulesdir}/%{name}.rules
%{_tmpfilesdir}/%{name}.conf
# desktop integration
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/applications/mageia-%{name}.desktop
%{_datadir}/mime/packages/virtualbox.xml

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}

%if %{build_additions}
%files guest-additions
/%{_lib}/security/pam_vbox.so
/sbin/mount.vboxsf
%{_initrddir}/vboxadd-timesync
%{_sbindir}/VBoxService
%{_bindir}/VBoxClient
%{_bindir}/VBoxControl
%{_udevrulesdir}/vbox-additions.rules
%{_sysconfdir}/X11/xinit.d/98vboxadd-xclient
%{_sysconfdir}/modprobe.preload.d/vbox-guest-additions

%files -n x11-driver-video-vboxvideo
%{_libdir}/VBoxOGL*
%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so
%{_libdir}/dri/vboxvideo_dri.so

%files -n dkms-vboxadditions
%{_usr}/src/vbox*-%{version}-%{release}
%endif

%if %build_doc
%files doc
%doc %{_defaultdocdir}/%{name}/UserManual.pdf
%endif

%if %{build_sdk}
%files devel
%{vboxlibdir}/sdk

%files -n python-%{name}
%{vboxpydir}
%{py_puresitedir}/vboxapi*.egg-info
%endif


%changelog

* Sun Apr 21 2013 tmb <tmb> 4.2.12-2.mga3
+ Revision: 410749
- default to Linux and Mageia for VMs (P14)
- fix installing of vboxvideo_drv after setting VBOX_USE_SYSTEM_XORG_HEADERS
- disable default update checks as we ship prepackaged rpms (P15)
- build against system libxml2, libpng15, zlib (fedora, P22)
- build against system x11-server-source and boost-devel and
  remove bundled source/libs before build (fedora, P21)
- add missing check for VBOX_USE_SYSTEM_XORG_HEADERS (fedora, P20)
- build with VBOX_USE_SYSTEM_XORG_HEADERS and drop P10 as obsolete

* Sat Apr 13 2013 tmb <tmb> 4.2.12-1.mga3
+ Revision: 409891
- 4.2.12 (should fix #9716)

* Sun Apr 07 2013 tmb <tmb> 4.2.10-3.mga3
+ Revision: 408759
- add vboxweb service (mga #7021)

* Sun Mar 24 2013 colin <colin> 4.2.10-2.mga3
+ Revision: 404859
- Add systemd requires and general post/pre fixes (mga#9302)

* Tue Mar 19 2013 zezinho <zezinho> 4.2.10-1.mga3
+ Revision: 404113
- new version

* Sat Mar 02 2013 tmb <tmb> 4.2.8-1.mga3
+ Revision: 401110
- update to 4.2.8
- drop P15 (obsolete)

* Wed Jan 16 2013 tmb <tmb> 4.2.6-4.mga3
+ Revision: 388924
- vboxguest: drop __devinitdata (P15)

* Tue Jan 15 2013 fwang <fwang> 4.2.6-3.mga3
+ Revision: 388298
- move to correct rules dir

* Sun Jan 06 2013 tmb <tmb> 4.2.6-2.mga3
+ Revision: 339921
- rebuild for new device-mapper

* Thu Dec 20 2012 tv <tv> 4.2.6-1.mga3
+ Revision: 333270
- BR device-mapper-devel
- new release

* Sun Nov 25 2012 colin <colin> 4.2.4-2.mga3
+ Revision: 321753
- Do not package tmpfiles conf in /etc
- Run systemd-tmpfiles --create on post install

  + fwang <fwang>
    - set dkms package as noarch

* Wed Oct 31 2012 tmb <tmb> 4.2.4-1.mga3
+ Revision: 311824
- rediff P10
- update to 4.2.4

  + fwang <fwang>
    - new version 4.2.2

* Fri Sep 14 2012 tmb <tmb> 4.2.0-1.mga3
+ Revision: 293743
- rewrite P13 to add Mageia support
- adapt to /run being tmpfs
- disable P1 (libdir fix, seems obsolete)
- disable P7 for now (disable update check, needs to be rewritten)
- disable P13, P14 for now (Mageia branding, needs to be rewritten)
- rediff and update P12 (build for system xorg only)
- drop P12 and P15 (merged)
- drop BR on hal-devel
- update to 4.2.0

  + fwang <fwang>
    - rebuild for new xserver

  + tv <tv>
    - rebuild for new xserver

* Sat Sep 08 2012 tmb <tmb> 4.1.22-1.mga3
+ Revision: 290441
- update to 4.1.22 maintenance release

  + tv <tv>
    - rebuild for new xserver

* Sun Jul 01 2012 tmb <tmb> 4.1.18-1.mga3
+ Revision: 266254
- update to 4.1.18

* Wed Jun 06 2012 tmb <tmb> 4.1.16-4.mga3
+ Revision: 256537
- rebuild for core/release

* Tue Jun 05 2012 tmb <tmb> 4.1.16-3.mga3
+ Revision: 255971
- fix build with x11-server 1.12 (P15, debian)

  + tv <tv>
    - rebuild for new X.org server

* Sun May 27 2012 tmb <tmb> 4.1.16-1.mga3
+ Revision: 247583
- update to 4.1.16
- update system-xorg patch

* Tue Apr 03 2012 tmb <tmb> 4.1.12-1.mga2
+ Revision: 228191
- update to 4.1.12 (bugfix release)

* Thu Mar 15 2012 tmb <tmb> 4.1.10-1.mga2
+ Revision: 223427
- fix groups
- fix filelists
- package sdk, add virtualbox-devel and python-virtualbox (mga #4396)
- drop merged P15-P18 (buildfixes for kernel-3.3)
- rediff P10 (system xorg) and P13 (mga support)
- update to 4.1.10

* Mon Mar 12 2012 tmb <tmb> 4.1.8-4.mga2
+ Revision: 223124
- fix Config.kmk, iprt/types.h, and Runtime/r0drv so it works with 3.3 series kernels
- fix vboxadditions build with 3.3 series kernels

* Sat Jan 14 2012 tmb <tmb> 4.1.8-3.mga2
+ Revision: 196091
- disable update notification again (patch from OpenSuSE)

  + luigiwalser <luigiwalser>
    - fix guest-additions description (from mdv)

* Sat Dec 24 2011 tmb <tmb> 4.1.8-2.mga2
+ Revision: 187229
- remove x11-driver-input-vboxmouse again for now
- restopre x11-driver-input-vboxmouse, as it's still useful
- re-enable doc build
- drop buildroot and defattr
- rediff patches to apply cleanly
- disable P7 (disable update check) as it needs to be rewritten
- update to 4.1.8

* Tue Dec 06 2011 tmb <tmb> 4.1.6-2.mga2
+ Revision: 177807
- rebuild for new x11-server-1.11.2 and gcc-4.6.2

* Sat Nov 05 2011 fwang <fwang> 4.1.6-1.mga2
+ Revision: 163136
- rediff patches
- new version 4.1.6

* Sat Oct 22 2011 tmb <tmb> 4.1.4-3.mga2
+ Revision: 157305
- add Mageia info to the install manuals too
- fix so the Mageia icons actually are used
- remove duplicated text from French installation manual
- use better mageia icons

* Fri Oct 21 2011 tmb <tmb> 4.1.4-2.mga2
+ Revision: 157155
- temporarily disable docs due to texlive problem
- add Mageia support in GUI and default to it

* Tue Oct 04 2011 fwang <fwang> 4.1.4-1.mga2
+ Revision: 151463
- vboxmouse driver is not used in recent xorg server
- vboxmouse rules does not exists
- new version 4.1.4

* Mon Sep 12 2011 fwang <fwang> 4.1.2-2.mga2
+ Revision: 142645
- rebuild for new libpng
- fix vbox-service.sh
- add short-desc
- new version 4.1.2
- rediff some patches

* Wed Jul 20 2011 fwang <fwang> 4.1.0-1.mga2
+ Revision: 126896
- new version 4.1.0

* Sat Jul 16 2011 fwang <fwang> 4.0.12-1.mga2
+ Revision: 124665
- new version 4.0.12

* Wed Jul 06 2011 ahmad <ahmad> 4.0.10-3.mga2
+ Revision: 119186
- guest-additions should require xrandr for auto-resizing of guest display to
  work without having to restart the X server in the guest VM

* Wed Jun 29 2011 ahmad <ahmad> 4.0.10-2.mga2
+ Revision: 115662
- Add a patch to only display warnings about broken USB support when it's
  actually used (i.e. the machine has USB device filters), from Debian
- Use %%apply_patches

* Tue Jun 28 2011 ahmad <ahmad> 4.0.10-1.mga2
+ Revision: 115507
- Update to 4.0.10
- Drop the OSE references, our and upstream's rpms don't have USB support
  without the extension pack (hint from Debian)
- Add BR docbook-dtds

* Mon Jun 27 2011 colin <colin> 4.0.8-2.mga2
+ Revision: 114444
- Build PulseAudio backend again (accidentally dropped in r1496 during spec cleaning)

* Thu Jun 09 2011 tmb <tmb> 4.0.8-1.mga2
+ Revision: 102422
- update to 4.0.8

* Sat May 28 2011 ahmad <ahmad> 4.0.6-4.mga1
+ Revision: 100624
- Install UserManual.pdf in /usr/share/doc/virtualbox/ so that the -doc package
  is truly noarch (mga#1456)

* Tue May 03 2011 ahmad <ahmad> 4.0.6-3.mga1
+ Revision: 94324
- Fix the build by correcting a typo in the spec
- Create a vboxsf group in virtualbox-guest-additions sub-package, this should
  make the auto-mount feature of shared folders work (Debian)
- Desktop integration improvements:
  o install icons in hicolor icon theme, this should add default icons and mime
    types for .ova, .ovf and vbox-extpack files. Also it sets VirtualBox as the
    default app to open them (Debian)
  o add Mimetype key to the .desktop file; nick the Comment and its translations
    key(s) from the upstream .desktop file

* Sat Apr 30 2011 tmb <tmb> 4.0.6-2.mga1
+ Revision: 93736
+ rebuild (emptylog)

* Mon Apr 25 2011 ahmad <ahmad> 4.0.6-1.mga1
+ Revision: 90286
- Update to 4.0.6
- Rediff the kernelrelease patch
- Make dkms-vboxadditions and dkms-%%{name} only conflict with each other in versions
  older than 4.0.6; they used to export the same symbols breaking each other
  but the upstream bug has been fixed.
  c.f. http://www.virtualbox.org/ticket/5686

* Thu Mar 17 2011 tv <tv> 4.0.4-6.mga1
+ Revision: 73401
- rebuild again for x11-server-1.10

* Thu Mar 17 2011 blino <blino> 4.0.4-5.mga1
+ Revision: 73284
- fix virtualbox udev rules not to break other udev rules for USB devices:
  RUN= overwrites previous RUN affectations, RUN+= should be used instead
  (this should be fixed in upstream src/VBox/Installer/linux/install.sh as well)

* Wed Mar 09 2011 ahmad <ahmad> 4.0.4-4.mga1
+ Revision: 66715
- bump rel to submit to core/testing (hopefully X server 1.10 will be in
  core/release soon)

* Wed Mar 09 2011 ahmad <ahmad> 4.0.4-3.mga1
+ Revision: 66714
- Remove the gsoap BR due to licensing issues. Due to this we'll have to disable
  webservice building (users who use this feature can use the upstream vbox
  packages...)

* Sun Mar 06 2011 ahmad <ahmad> 4.0.4-2.mga1
+ Revision: 65562
- add missing BR texlive-fontsextra, as it includes beramono.sty

  + tmb <tmb>
    - rebuild for x11-server 1.10

* Wed Feb 23 2011 ahmad <ahmad> 4.0.4-1.mga1
+ Revision: 57449
- update to 4.0.4
- update 18-system-xorg.patch from Debian

* Mon Feb 07 2011 ahmad <ahmad> 4.0.2-4.mga1
+ Revision: 48743
- improve dkms-vboxadditions description
- make the -doc sub-package noarch

* Wed Feb 02 2011 ahmad <ahmad> 4.0.2-2.mga1
+ Revision: 46397
- don't delete /dev/vboxusb

* Wed Jan 26 2011 ahmad <ahmad> 4.0.2-1.mga1
+ Revision: 39861
- add BR libxcomposite-devel
- improve the comment about 18-system-xorg.patch
- update to 4.0.2
- drop patch6, fixed upstream long ago
- add 18-system-xorg.patch from Debian, this makes the package build only the
  drivers for the system X server version; in accordance with this add
  "XSERVER_VERSION := %%{x11_server_majorver}" to LocalConfig.kmk
  (XSERVER_VERSION is added by the patch)
- try to make USB paththrough work:
   o modify udev virtualbox.rules file to make usb paththrough work, this syncs
     the udev rule with the upstream one
   o add/remove a vboxusers group in %%post/%%postun (Debian)
   o add a post scriplet to build the usb device tree (Debian)
   o add a postun scriptlet to remove the usb device tree

* Sat Jan 22 2011 ahmad <ahmad> 4.0.0-2.mga1
+ Revision: 33306
- really disable patch16
- drop patches 7 and 17 not needed anymore
- delete 60-vboxadd.perms, not needed any more
- clean spec
- disable virtualbox-default-to-mandriva patch for now
- imported package virtualbox


* Wed Jan 05 2011 Ahmad Samir <ahmadsamir@mandriva.org> 4.0.0-2mdv2011.0
+ Revision: 628883
- don't create %%{_datadir}/hal/fdi/policy/20thirdparty except when the .fdi file
  is installed
- sync udev rules with upstream; otherwise some of the vbox-additions services can't
  be started as user by 98vboxadd-xclient
- install 50-vboxmouse.conf too, it's need for X server >= 1.8

* Tue Dec 28 2010 Ahmad Samir <ahmadsamir@mandriva.org> 4.0.0-1mdv2011.0
+ Revision: 625699
- add BR libxslt-devel
- add patch to make configure not check for mkisofs or makeself; both not needed
  in our build
- add 'VBOX_WITHOUT_ADDITIONS_ISO := 1' to LocalConfig.kmk
- improve the way used to disable building the docs in the spec
- BR tetex-latex >= 3.0-53 for releases >= 201100, now that tetex-latex has beramono
  (thanks to ghibo)
- apply the beramono-courier patch for older distros only
- add patch to make pdflatex use courier instead of beramono; this way the PDF
  can be built with tetex-latex from main (instead of having to move texlive-latex
  from contrib to main); when/if texlive moves to main we can drop it
- improve the build_doc condintional to workaround exclude macro that has been "fixed"
  to not work as it used to
- make building the usermanual pdf condintional, disabled for now
- add BR makeself
- update to 4.0.0 (and adapt to the tarball name change)
- rediff the no-update patch
- tighten qt4 requires
- add BR java-rpmbuild and add 'VBOX_JAVA_HOME := %%{java_home}' to LocalConfig.kmk
- add BR texlive-latex for building the user manual PDF
- split the PDF in a -doc subpackage and make the main package suggest it
- vboxmouse: install .fdi file for releases older than 2011.0 and the udev rule
  file for newer releases
- remove 'VBOX_WITH_WARNINGS_AS_ERRORS :=', it was only needed to workaround a
  compile error with gcc-4.5; it's been fixed upstream

* Thu Nov 11 2010 Thierry Vignaud <tv@mandriva.org> 3.2.10-6mdv2011.0
+ Revision: 595844
- require xorg server with proper ABI

* Thu Nov 04 2010 Ahmad Samir <ahmadsamir@mandriva.org> 3.2.10-5mdv2011.0
+ Revision: 593329
- install the udev rule file for vboxmouse to make mouse integration work

* Fri Oct 29 2010 Funda Wang <fwang@mandriva.org> 3.2.10-4mdv2011.0
+ Revision: 590217
- BR x11-server
- BR awk
- use rpm macro to define xorg-server's major ver

  + Michael Scherer <misc@mandriva.org>
    - rebuild for python 2.7

* Sun Oct 17 2010 Funda Wang <fwang@mandriva.org> 3.2.10-3mdv2011.0
+ Revision: 586186
- really build with x11-server 1.9

* Sun Oct 17 2010 Thierry Vignaud <tv@mandriva.org> 3.2.10-2mdv2011.0
+ Revision: 586165
- rebuild for xserver-1.9 (#61294)

* Wed Oct 13 2010 Funda Wang <fwang@mandriva.org> 3.2.10-1mdv2011.0
+ Revision: 585260
- New version 3.2.10

* Sat Oct 02 2010 Ahmad Samir <ahmadsamir@mandriva.org> 3.2.8-2mdv2011.0
+ Revision: 582619
- add two upstream patches to fix building modules with kernel-2.6.36
- fix building with gcc-4.5 by adding "VBOX_WITH_WARNINGS_AS_ERRORS :="
  c.f. http://www.virtualbox.org/ticket/6715

* Fri Aug 06 2010 Funda Wang <fwang@mandriva.org> 3.2.8-1mdv2011.0
+ Revision: 567189
- new version 3.2.8

* Wed Jul 28 2010 Ahmad Samir <ahmadsamir@mandriva.org> 3.2.6-4mdv2011.0
+ Revision: 562836
+ rebuild (emptylog)

* Tue Jul 27 2010 Ahmad Samir <ahmadsamir@mandriva.org> 3.2.6-3mdv2011.0
+ Revision: 562053
- use 'VBOX_WITH_TESTCASES =' to make it build on i586
- add missing BR, libpam-devel
- install vbox PAM module
- really rediff libpath patch
- make the two dkms packages conflict as both of them export the same symbol (Debian)
- update 16-no-update.patch, now it hides the update menu item and settings page
  instead of disabling them (Debian)

  + Jerome Martin <jmartin@mandriva.org>
    - Release 3.2.6

* Tue May 25 2010 Frederic Crozat <fcrozat@mandriva.com> 3.1.8-3mdv2010.1
+ Revision: 545880
- Remove wine3d guest additions, merged upstream

* Wed May 19 2010 Antoine Ginies <aginies@mandriva.com> 3.1.8-2mdv2010.1
+ Revision: 545369
- bump release, rebuild against latest kernel

* Fri May 14 2010 Frederic Crozat <fcrozat@mandriva.com> 3.1.8-1mdv2010.1
+ Revision: 544747
- Remove unneeded dependencies in guest additions, replaced by X extension now
- Fix buildrequires
- Release 3.1.8
- Remove patches 8 (no longer needed), 15 (merged upstream)
- no longer preload vboxvfs in guest, it was renamed in vboxsf and is preloaded by mount automatically now

* Wed Apr 28 2010 Anssi Hannula <anssi@mandriva.org> 3.1.6-5mdv2010.1
+ Revision: 540628
- default to Mandriva instead of WinXP when selecting guest system type
  (#56455)

* Tue Apr 27 2010 Christophe Fergeau <cfergeau@mandriva.com> 3.1.6-4mdv2010.1
+ Revision: 539600
- rebuild so that shared libraries are properly stripped again

* Wed Apr 21 2010 Anssi Hannula <anssi@mandriva.org> 3.1.6-3mdv2010.1
+ Revision: 537665
- adapt modprobe.preload.d file for renamed module (fix from cyrille in
  bug #58865)

* Tue Apr 06 2010 Funda Wang <fwang@mandriva.org> 3.1.6-2mdv2010.1
+ Revision: 531921
- rebuild for new openssl

* Fri Mar 26 2010 Frederic Crozat <fcrozat@mandriva.com> 3.1.6-1mdv2010.1
+ Revision: 527641
- Release 3.1.6

  + Thierry Vignaud <tv@mandriva.org>
    - fix "service virtualbox status" output when service is not running (#52894)

* Fri Feb 26 2010 Oden Eriksson <oeriksson@mandriva.com> 3.1.4-4mdv2010.1
+ Revision: 511648
- rebuilt against openssl-0.9.8m

  + Colin Guthrie <cguthrie@mandriva.org>
    - Remove pulseaudio rewrite patch. Applied upstream in r25678 + followups

* Sun Feb 21 2010 Luis Daniel Lucio Quiroz <dlucio@mandriva.org> 3.1.4-3mdv2010.1
+ Revision: 508886
- No suggests, this will instal kde4

* Sun Feb 21 2010 Luis Daniel Lucio Quiroz <dlucio@mandriva.org> 3.1.4-2mdv2010.1
+ Revision: 508848
- Suggests the KDE4 runner

* Sat Feb 13 2010 Funda Wang <fwang@mandriva.org> 3.1.4-1mdv2010.1
+ Revision: 505209
- new version 3.1.4

* Sun Feb 07 2010 Anssi Hannula <anssi@mandriva.org> 3.1.2-7mdv2010.1
+ Revision: 501512
- vboxadd-service renamed back to VBoxService as per upstream changes

* Sun Jan 24 2010 Anssi Hannula <anssi@mandriva.org> 3.1.2-6mdv2010.1
+ Revision: 495567
- fix build with kernel 2.6.33+ (from upstream, integrated by Shlomi Fish)
- provide vboxwebsrv (Debian), VBoxNetAdpCtl (Jani V?\195?\164limaa) and
  VBoxNetDHCP in bindir as well
- load module vboxnetadp in initscript

* Sat Jan 16 2010 Anssi Hannula <anssi@mandriva.org> 3.1.2-5mdv2010.1
+ Revision: 492485
- remove now unneeded copying of vboxvideo, handled upstream
- adapt udev rule and old console.perms (for backports) for rename of
  /dev/vboxadd to /dev/vboxguest
- rename dkms-vboxadd to dkms-vboxadditions in order to match the dkms
  PACKAGE_NAME
- update and rediff wined3d-guest-addition.patch and no-update.patch
  (from Debian), and apply them again
- rediff libpath.patch and remove duplicate 3.1-libpath.patch

* Wed Jan 13 2010 Christophe Fergeau <cfergeau@mandriva.com> 3.1.2-4mdv2010.1
+ Revision: 490637
- fix dkms build of vbox-additions (vboxadd is now named vboxguest)

* Mon Dec 21 2009 Colin Guthrie <cguthrie@mandriva.org> 3.1.2-3mdv2010.1
+ Revision: 480521
- Apply pulseaudio rewrite patch by Art Taylor for wider testing.

* Fri Dec 18 2009 Funda Wang <fwang@mandriva.org> 3.1.2-2mdv2010.1
+ Revision: 479955
- we are using xorg 1.7 for 2010.1

* Fri Dec 18 2009 Funda Wang <fwang@mandriva.org> 3.1.2-1mdv2010.1
+ Revision: 479870
- new version 3.1.2

  + Colin Guthrie <cguthrie@mandriva.org>
    - Fix install of mount.vboxsf
    - Fix src file addition for vboxadd -> vboxguest rename

  + Luis Daniel Lucio Quiroz <dlucio@mandriva.org>
    - new location of src/vboxvideo_drm
    - remove src/vboxvideo_drm from install
    - remove mountvboxsf from install
    - Disable P12 just for now
    - Disable P11 just for now
    - P13 to let replace P1
    - New 3.1.0

* Tue Nov 17 2009 Funda Wang <fwang@mandriva.org> 3.0.12-1mdv2010.1
+ Revision: 466909
- new version 3.0.12

* Mon Nov 16 2009 Paulo Ricardo Zanoni <pzanoni@mandriva.com> 3.0.10-4mdv2010.1
+ Revision: 466652
- Rebuild for new xserver drivers

* Thu Nov 12 2009 Frederik Himpe <fhimpe@mandriva.org> 3.0.10-3mdv2010.1
+ Revision: 465505
- Rebuild for new QT

* Sun Nov 08 2009 Luis Daniel Lucio Quiroz <dlucio@mandriva.org> 3.0.10-2mdv2010.1
+ Revision: 463094
- BUMP release

* Sat Oct 31 2009 Luis Daniel Lucio Quiroz <dlucio@mandriva.org> 3.0.10-1mdv2010.1
+ Revision: 460359
- New release 3.0.10

* Tue Oct 06 2009 Frederic Crozat <fcrozat@mandriva.com> 3.0.8-1mdv2010.0
+ Revision: 454705
- Release 3.0.8

* Thu Sep 10 2009 Frederic Crozat <fcrozat@mandriva.com> 3.0.6-1mdv2010.0
+ Revision: 436821
- Release 3.0.6-OSE
- Remove patches 15, 16 (merged upstream)

* Sat Aug 08 2009 Funda Wang <fwang@mandriva.org> 3.0.4-1mdv2010.0
+ Revision: 411626
- new version 3.0.4

* Fri Aug 07 2009 Anssi Hannula <anssi@mandriva.org> 3.0.2-2mdv2010.0
+ Revision: 410995
- fix additions service name (prevented launch of service)

* Sat Aug 01 2009 Anssi Hannula <anssi@mandriva.org> 3.0.2-1mdv2010.0
+ Revision: 406306
- new version 3.0.2
- fix build with current pulseaudio (fix-pulseaudio.patch)
- buildrequires curl-devel and openssl-devel
- build vboxnetadp module and simplify vboxbuild dkms script
- add udev rule for managing vbox additions ACL, removing console.perms
  file on cooker
- fix post and preun script of dkms package to remove+reload modules on
  upgrade and remove on removal
- do not try to install dkms module if build fails
- rediff and rename fix-timesync-req.patch to fix-vboxadd-req.patch
- rediff kernelrelease.patch and libpath.patch

* Sat May 30 2009 Frederik Himpe <fhimpe@mandriva.org> 2.2.4-1mdv2010.0
+ Revision: 381446
- Completely remove Debian nat patch: code has changed too much and Debian
  has removed it too already since 2.2.2
- Update to new version 2.2.4
- Remove disabled opengl patch: integrated upstream
- Rediff NAT configuration patch from Debian

  + Funda Wang <fwang@mandriva.org>
    - New version 2.2.2

* Wed Apr 22 2009 Pascal Terjan <pterjan@mandriva.org> 2.2.0-4mdv2009.1
+ Revision: 368679
- Fix mkrpm template

* Tue Apr 21 2009 Pascal Terjan <pterjan@mandriva.org> 2.2.0-3mdv2009.1
+ Revision: 368502
- BuildRequires:dkms-minimal
- Obsolete -latest dkms binary packages

* Wed Apr 15 2009 Frederic Crozat <fcrozat@mandriva.com> 2.2.0-2mdv2009.1
+ Revision: 367571
- Patch15: kill vboxclient if leftover from previous X11 session
- Patch14 (Sun): fix OpenGL support for Linux Guest additions
- improve packaging to be more LSB compliant

* Fri Apr 10 2009 Frederic Crozat <fcrozat@mandriva.com> 2.2.0-1mdv2009.1
+ Revision: 365828
- Release 2.2.0
- enable OpenGL pass-through. Caveat : Linux guest support is not working when building guest additions with Open source edition (under investigation)
- move location of fdi file (fix mouse integration support when using HAL)
- merge all guest additions kernel module in one single DKMS (pterjan)
- Enable webservice
- Remove patch9, no longer needed (when using kernel 2.6.29.x, you MUST use kernel 2.6.29.1 or later)
- Regenerate patches 8, 10
- Patch11: add Wine Direct3D guest additions option (Debian)
- Patch12: disable update notification (Debian)
- Patch13: make network settings more intuitive (Debian)
- Add missing dependencies in guest additions package
- No longer use gcc 4.2, build fine with latest gcc 4.3
- Replace source3 with upstream version
- Update source4 to change permissions on both guest additions devices
- Fix permissions on non .so files

* Mon Mar 09 2009 Pascal Terjan <pterjan@mandriva.org> 2.1.4-5mdv2009.1
+ Revision: 353280
- vboxvfs needs vboxadd

* Wed Mar 04 2009 Frederic Crozat <fcrozat@mandriva.com> 2.1.4-4mdv2009.1
+ Revision: 348336
- Force rebuild of dkms modules

* Wed Feb 25 2009 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 2.1.4-3mdv2009.1
+ Revision: 344966
- Copy Module.symvers for vboxnetflt dkms build, needed with
  CONFIG_MODVERSIONS enabled in latest cooker kernels.

* Wed Feb 25 2009 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 2.1.4-2mdv2009.1
+ Revision: 344896
- Apply fix for VM load failure with kernels 2.6.29-rc5 or later
  (#48096, http://www.virtualbox.org/ticket/3403).
- Fix building with kernel-headers-2.6.29*

* Tue Feb 17 2009 Frederik Himpe <fhimpe@mandriva.org> 2.1.4-1mdv2009.1
+ Revision: 342236
- Update to new version 2.1.4
- Fix source URL

* Thu Jan 22 2009 Frederic Crozat <fcrozat@mandriva.com> 2.1.2-2mdv2009.1
+ Revision: 332593
- Use xorg 1.6 drivers when building cooker guest addition packages

* Thu Jan 22 2009 Funda Wang <fwang@mandriva.org> 2.1.2-1mdv2009.1
+ Revision: 332404
- specify CC4.2
- New version 2.1.2
- rediff libpath patch

* Sun Jan 04 2009 Colin Guthrie <cguthrie@mandriva.org> 2.1.0-5mdv2009.1
+ Revision: 324525
- Rebuild mouse and display drivers for xserver 1.6

* Thu Dec 25 2008 Michael Scherer <misc@mandriva.org> 2.1.0-4mdv2009.1
+ Revision: 318540
- rebuild for new python

* Fri Dec 19 2008 Frederic Crozat <fcrozat@mandriva.com> 2.1.0-3mdv2009.1
+ Revision: 316288
- Fix guest additions for cooker, we ship Xorg 1.5 now
- Ship fdi file for vboxmouse

* Fri Dec 19 2008 Adam Williamson <awilliamson@mandriva.org> 2.1.0-2mdv2009.1
+ Revision: 316021
- oops, finish fixing up initscript

* Fri Dec 19 2008 Adam Williamson <awilliamson@mandriva.org> 2.1.0-1mdv2009.1
+ Revision: 316019
- adjust initscript and dkms.conf for the fact that there's now two necessary
  kernel modules for the master: vboxdrv and vboxnetflt
- drop mdvconfig.patch: this stub does nothing useful, and breaks the build
  (see fcrozat's mail on Cooker)
- VBoxAddIF and VBoxDeleteIF are now obsolete and not provided

  + Frederic Crozat <fcrozat@mandriva.com>
    - Release 2.1.0
    - Regenerate patch1
    - update buildrequires

* Sun Nov 30 2008 Frederik Himpe <fhimpe@mandriva.org> 2.0.6-2mdv2009.1
+ Revision: 308552
- Rebuild mouse and display drivers for xserver 1.5

* Wed Nov 26 2008 Funda Wang <fwang@mandriva.org> 2.0.6-1mdv2009.1
+ Revision: 306865
- New version 2.0.6

* Mon Nov 03 2008 Funda Wang <fwang@mandriva.org> 2.0.4-1mdv2009.1
+ Revision: 299348
- New version 2.0.4

* Mon Sep 15 2008 Frederic Crozat <fcrozat@mandriva.com> 2.0.2-2mdv2009.0
+ Revision: 284854
- Patch8: disable version check at startup

* Sat Sep 13 2008 Frederik Himpe <fhimpe@mandriva.org> 2.0.2-1mdv2009.0
+ Revision: 284544
- Update to bugfix update 2.0.2

* Tue Sep 09 2008 Olivier Blin <oblin@mandriva.com> 2.0.0-3mdv2009.0
+ Revision: 283015
- build guest additions on x86_64 too (#43593)

  + Frederic Crozat <fcrozat@mandriva.com>
    - Patch7: fix QT4 detection on x86-64 on Mandriva 2008.1

* Thu Sep 04 2008 Frederic Crozat <fcrozat@mandriva.com> 2.0.0-1mdv2009.0
+ Revision: 280850
- Fix BuildRequires
- Release 2.0.0
- Remove patches 3, 7 (merged upstream)

* Mon Sep 01 2008 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1.6.4-4mdv2009.0
+ Revision: 278071
- Added patch to allow VirtualBox kernel module to build with
  Linux 2.6.27

  + Pixel <pixel@mandriva.com>
    - increase release number
    - use gcc4.2 to build the recompiler (not ported to gcc 4.3 yet)

* Wed Aug 06 2008 Olivier Blin <oblin@mandriva.com> 1.6.4-2mdv2009.0
+ Revision: 264273
- create /var/run/VirtualBox (#41963)
- use tunctl from the tunctl package while VBoxTunctl does not build

* Tue Aug 05 2008 Olivier Blin <oblin@mandriva.com> 1.6.4-1mdv2009.0
+ Revision: 264016
- do not include VBoxTunctl for now (build is broken in upstream tarball)
- rediff misc_register patch (the register part has been implemented upstream, I should submit the deregister hunks)
- fix 1.6.4 build by not building tunctl (some Makefile.kmk are missing)
- 1.6.4

* Tue Jul 29 2008 Frederic Crozat <fcrozat@mandriva.com> 1.6.2-2mdv2009.0
+ Revision: 252777
- Don't use gcc 3.3 for build on 2008.1 or earlier

* Wed Jul 09 2008 Olivier Blin <oblin@mandriva.com> 1.6.2-1mdv2009.0
+ Revision: 232889
- set again linux sources path in configure
- use gcc 3.3 to build the recompiler (not ported to gcc 4.3 yet)
- use kernel-devel-latest instead of kernel-source-latest
- use a prepared copy of the linux tree (for linux/bounds.h)

  + Frederic Crozat <fcrozat@mandriva.com>
    - Release 1.6.2
    - Regenerate patch5
    - Fix duplicated line in specfile

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

* Fri May 16 2008 Frederic Crozat <fcrozat@mandriva.com> 1.6.0-4mdv2009.0
+ Revision: 208160
- Fix seamless mode in guest additions subpackage

* Thu May 15 2008 Anssi Hannula <anssi@mandriva.org> 1.6.0-3mdv2009.0
+ Revision: 207692
- rename VBoxAddIF.sh and VBoxDeleteIF.sh to VBoxAddIF and VBoxDeleteIF
  to match original names and documentation

* Wed May 14 2008 Frederic Crozat <fcrozat@mandriva.com> 1.6.0-2mdv2009.0
+ Revision: 207235
- Replace source1 with patch 6 (use up to date VBox.sh script)
- Ensure VBoxAddIF/VBoxDeleteIF scripts are packaged, as well as VBoxTunctl (Mdv bug #40769)
- package VBoxHeadless (Mdv bug #40771)

* Fri May 09 2008 Olivier Blin <oblin@mandriva.com> 1.6.0-1mdv2009.0
+ Revision: 205313
- try harder to disable additions on x86_64
- buildrequire libxslt-devel
- adapt to vboxadd-xclient being renamed as VBoxClient
- rediff futex patch
- rediff misc_register patch
- 1.6.0
- revert BUILT_MODULE_NAME addition, the bug is fixed in dkms

  + Anssi Hannula <anssi@mandriva.org>
    - add BUILT_MODULE_NAME to dkms.conf of vboxadd and vboxvfs (fixes DKMS
      error)

* Tue Feb 26 2008 Olivier Blin <oblin@mandriva.com> 1.5.6-1mdv2008.1
+ Revision: 175619
- 1.5.6
- rediff KERNELRELEASE patch

* Tue Feb 26 2008 Olivier Blin <oblin@mandriva.com> 1.5.4-5mdv2008.1
+ Revision: 175610
- try to start dkms instead of vboxadd in vboxadd-timesync service (since modules are loaded from modprobe.preload.d, #36728)

* Fri Feb 08 2008 Thierry Vignaud <tv@mandriva.org> 1.5.4-4mdv2008.1
+ Revision: 163970
- drop old menu

  + Frederic Crozat <fcrozat@mandriva.com>
    - Really disable pulseaudio support on 2008.0 or older

* Thu Jan 10 2008 Frederic Crozat <fcrozat@mandriva.com> 1.5.4-3mdv2008.1
+ Revision: 147602
- Use correct version of x11 mouse and video additional driver when used on 2008.1 (xorg 1.4) and 2008.0
- Only build pulseaudio support for 2008.1

* Wed Jan 09 2008 Olivier Blin <oblin@mandriva.com> 1.5.4-2mdv2008.1
+ Revision: 147006
- fix dkms build for kernels different from running kernel

* Thu Jan 03 2008 Olivier Blin <oblin@mandriva.com> 1.5.4-1mdv2008.1
+ Revision: 142711
- buildrequire pulseaudio-devel
- rediff libpath patch
- remove 2.6.24 build fix, fixed upstream
- 1.5.4
- restore BuildRoot

  + Pascal Terjan <pterjan@mandriva.org>
    - Switch to Debian patch for 2.6.24
    - Re-create the 2.6.24 patch, some bits got lost

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request
    - kill explicit icon extension

  + Giuseppe Ghibò <ghibo@mandriva.com>
    - Use kernel-source-latest in BuildRequires as conditional.
    - Add conditional build flags for older release.
    - Let Patch5 conditional.

* Fri Nov 30 2007 Pascal Terjan <pterjan@mandriva.org> 1.5.2-3mdv2008.1
+ Revision: 114076
- Improve 2.6.24 patch so that it should still build with older kernels

* Fri Nov 30 2007 Pascal Terjan <pterjan@mandriva.org> 1.5.2-2mdv2008.1
+ Revision: 114047
- Fix other parts to build with 2.6.24
- Fix vboxdrv for 2.6.24

* Tue Nov 13 2007 Olivier Blin <oblin@mandriva.com> 1.5.2-1mdv2008.1
+ Revision: 108363
- remove keyboards patch (was from upstream svn)
- rediff kernelrelease patch
- rediff libpath patch
- 1.5.2

* Thu Oct 04 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-6mdv2008.0
+ Revision: 95447
- really apply misc_register patch (so that vboxadd devices are automatically created)
- add release in dkms PACKAGE_VERSION to ease upgrades

* Sat Sep 29 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-5mdv2008.0
+ Revision: 93837
- require kmod(vboxdrv) instead of dkms package
- do not mark initscript as config file
- move initscripts and udev rules out of dkms package (so that it works when using dkms prebuilt modules)

* Sat Sep 29 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-4mdv2008.0
+ Revision: 93812
- add vboxadd-timesync service
- add pam_console perms file to assign vboxadd device to console user
- use misc_register() to register vboxadd device so that /dev/vboxadd gets created automatically by udev

* Fri Sep 28 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-3mdv2008.0
+ Revision: 93770
- add vboxadd-xclient xinit.d script
- release new additions, but we still need to fix mknod for vboxadd
  (or use device_create() in kernel module), set console perms for
  vboxadd in console.perms.d, and add timesync initscript
- make guest additions package require X11 drivers
- make x11 driver packages suggest virtualbox-guest-additions
- add virtualbox-guest-additions package (with xclient, timesync, mount.vboxsf)
- add dkms-vboxadd and dkms-vboxvfs packages

* Fri Sep 28 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-2mdv2008.0
+ Revision: 93534
- build additions on ix86 only
- fix support for Brazilian, Belgian, US intl and US dvorak keyboards and add support for multimedia keys (from upstream SVN)
- buildrequire libstdc++-static-devel
- buildrequire libxt-devel
- buildrequire kernel-source-latest, since iurt/urpmi don't install latest kernel-source automatically
- buildrequire kernel-source
- package mouse guest addition in x11-driver-input-vboxmouse
- package video guest addition in x11-driver-video-vboxvideo
- build VirtualBox additions

* Mon Sep 03 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-1mdv2008.0
+ Revision: 78607
- drop libstdc++5 BuildRequires
- drop unapplied x86_64 NMI watchdog disabling patch (merged upstream)
- 1.5.0
- rediff mdvconfig patch

  + Thierry Vignaud <tv@mandriva.org>
    - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated'

* Fri Jun 08 2007 Per Øyvind Karlsen <peroyvind@mandriva.org> 1.4.0-1mdv2008.0
+ Revision: 37085
- from Jos?\195?\169 Melo <mmodem00@gmail.com>:
  	o 1.4.0
  	o update patch:2 since is needed to load (modprobe) vbox driver in kernel-2.6.17
  	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
  	o add missing buildrequire hal-devel


* Thu Mar 15 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.8-1mdv2007.1
+ Revision: 144313
- add should-start: dkms to initscript (#29523)
- 1.3.8
  * hard reset network device on reboot
  * fix issues with IBM JVM 1.4.2 in Linux guests
  * add support for X.org 7.2.x in Linux guest additions

* Fri Mar 02 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.6-1mdv2007.1
+ Revision: 131492
- disable NMIs on Core 2 platforms too
- 1.3.6
  * fix some GUI issues
  * fix OpenBSD 4.0 support
  * fix CD/DVD-ROM detection in Windows Vista guests
  * fix networking issues with Windows NT 4.0 guests
  * fix some ALSA problems that could cause system reboots

* Mon Feb 12 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.4-1mdv2007.1
+ Revision: 119895
- 1.3.4

* Mon Feb 12 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.3.20070209-1mdv2007.1
+ Revision: 119017
- SVN updates (2007/02/09):
  * additional 64-bit fixes
  * asynchronous packets transmission in NIC code

* Sat Feb 03 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.3.20070202-1mdv2007.1
+ Revision: 116064
- various 64-bit fixes
- updates from SVN (2007/02/02):
  * initial 64-bit host support
  * fix IDE for Open Solaris 10
  * add VDI compacting to the GUI

* Sat Jan 27 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.3-1mdv2007.1
+ Revision: 114276
- initial mandriva linux package