--- /dev/null
+--- VirtualBox-3.2.8_OSE/Config.kmk~ 2010-08-05 13:42:00.000000000 +0200
++++ VirtualBox-3.2.8_OSE/Config.kmk 2010-08-31 17:39:38.029460770 +0200
+@@ -500,7 +500,7 @@
+ VBOX_WITH_CROGL = 1
+ endif
+ # Enable the VNC server in VBoxHeadless (GPL only).
+-#VBOX_WITH_VNC = 1
++VBOX_WITH_VNC = 1
+ ## @}
+
+
%define _enable_debug_packages 0
%endif
-%define rel 8
+%define rel 8.1
%define pname VirtualBox
Summary: VirtualBox OSE - x86 hardware virtualizer
Patch2: %{pname}-export_modules.patch
Patch3: %{pname}-VBoxSysInfo.patch
Patch4: %{pname}-warning_workaround.patch
+Patch5: %{pname}-vnc.patch
URL: http://www.virtualbox.org/
BuildRequires: rpmbuild(macros) >= 1.535
%if %{with userspace}
BuildRequires: libstdc++-devel >= 5:3.2.3
BuildRequires: libstdc++-static >= 5:3.2.3
BuildRequires: libuuid-devel
+BuildRequires: libvncserver-devel
BuildRequires: libxml2-devel >= 2.6.26
BuildRequires: libxslt-devel >= 1.1.17
BuildRequires: libxslt-progs >= 1.1.17
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
+%{__sed} -i -e 's,#VBOX_WITH_VNC,VBOX_WITH_VNC,'
%{__sed} -i -e 's,$VBOX_DOC_PATH,%{_docdir}/%{name}-%{version},' src/VBox/Installer/linux/virtualbox.desktop
%{__sed} -i -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/linux/virtualbox.desktop