VirtualBox-vl.spec 30 KB

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