VirtualBox-vl.spec 31 KB

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