%define _enable_debug_packages 0
%endif
-%define rel 1
+%define rel 7
%define pname VirtualBox
Summary: VirtualBox - x86 hardware virtualizer
Summary(pl.UTF-8): VirtualBox - wirtualizator sprzętu x86
# Source0-md5: 654e45054ae6589452508d37403dc800
Source1: http://download.virtualbox.org/virtualbox/%{version}/VBoxGuestAdditions_%{version}.iso
# Source1-md5: 403098e688f9e7f4273de680f6734983
+Source2: vboxservice.init
Source3: %{pname}-vboxdrv.init
Source4: %{pname}-vboxguest.init
Source5: %{pname}-vboxnetflt.init
Patch3: %{pname}-dri.patch
Patch4: %{pname}-disable_build_NetBiosBin.patch
Patch5: xserver-1.12.patch
+Patch6: gcc48.patch
# ubuntu patches
Patch10: 16-no-update.patch
Patch11: 18-system-xorg.patch
You should install this package in your Host OS.
%package guest
+Summary: VirtualBox Guest tools
+Group: Base
+Suggests: kernel(vboxguest)
+Suggests: kernel(vboxsf)
+
+%description guest
+Tools that utilize kernel modules for supporting integration with the
+Host, including file sharing.
+
+You should install this package in your Guest OS for base VirtualBox
+communication
+
+%package guest-x11
Summary: VirtualBox Guest Additions
Group: Base
+Requires: %{name}-guest = %{version}-%{release}
Requires: xorg-driver-video-vboxvideo = %{version}-%{release}
-Suggests: kernel%{_alt_kernel}-misc-vboxsf = %{version}-%{rel}@%{_kernel_ver_str}
-Suggests: kernel%{_alt_kernel}-misc-vboxvideo = %{version}-%{rel}@%{_kernel_ver_str}
+Suggests: kernel(vboxvideo)
Obsoletes: xorg-driver-input-vboxmouse < %{version}-%{release}
-%description guest
-Tools that utilize kernel modules for supporting integration with the
-Host, including file sharing and tracking of mouse pointer movement
-and X.org X11 video and mouse driver.
+%description guest-x11
+Tools for X11 session that utilize kernel modules for supporting
+integration with the Host, like tracking of mouse pointer movement and
+X.org X11 video and mouse drivers
-You should install this package in your Guest OS.
+You should install this package in your Guest OS for X11 session.
%package -n pam-pam_vbox
Summary: PAM module to perform automated guest logons
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
%{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \
-e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in
%if %{with kernel}
install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,modules-load.d},%{_sbindir},%{systemdunitdir}}
+install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxservice
install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxdrv
install -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxguest
install -p %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxnetflt
%groupremove vbox
fi
+%post guest
+/sbin/chkconfig --add vboxservice
+%service vboxservice restart
+
+%postun guest
+if [ "$1" = "0" ]; then
+ /sbin/chkconfig --del vboxservice
+ %service vboxservice -q stop
+fi
+
%post -n kernel%{_alt_kernel}-misc-vboxdrv
%depmod %{_kernel_ver}
%vbox_kernel_post -d vboxdrv VirtualBox Support Driver
%files guest
%defattr(644,root,root,755)
+%attr(754,root,root) /etc/rc.d/init.d/vboxservice
+%attr(755,root,root) %{_bindir}/VBoxControl
+%attr(755,root,root) %{_bindir}/VBoxService
+
+%files guest-x11
+%defattr(644,root,root,755)
# NOTE: unfinished, should contain .desktop files for starting up mouse
# integration and other desktop services
# NOTE: the filelist is incomplete too
%attr(755,root,root) %{_bindir}/VBoxClient
-%attr(755,root,root) %{_bindir}/VBoxControl
-%attr(755,root,root) %{_bindir}/VBoxService
/etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh
/etc/xdg/autostart/vboxclient.desktop