VirtualBox-vl.spec 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906
  1. %define version 3.1.6
  2. %define release 2%{?_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.vine
  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. * Mon Apr 19 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.1.6-2
  432. - fix initscript
  433. * Sun Apr 18 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.1.6-1
  434. - new upstream release
  435. * Tue Nov 17 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.10-1
  436. - new upstream release
  437. - add missing BR:
  438. * Mon Sep 21 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.6-1
  439. - new upstream release
  440. * Wed Aug 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.4-1
  441. - new upstream release
  442. - add translated summaries and descriptions
  443. * Mon Jul 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.2-1
  444. - new upstream release
  445. * Wed Jul 01 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.0-1
  446. - new upstream release
  447. * Tue Jun 09 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.4-3
  448. - change Group: of dkms-VirtualBox to System Environment/Kernel
  449. * Tue Jun 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.4-2
  450. - remove modprobe.d/vbox-guest-additions
  451. * Sun May 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.4-1
  452. - update to 2.2.4
  453. * Sun May 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.2-1
  454. - initial build for Vine Linux
  455. - update to 2.2.2
  456. * Wed Apr 22 2009 Pascal Terjan <pterjan@mandriva.org> 2.2.0-4mdv2009.1
  457. + Revision: 368679
  458. - Fix mkrpm template
  459. * Tue Apr 21 2009 Pascal Terjan <pterjan@mandriva.org> 2.2.0-3mdv2009.1
  460. + Revision: 368502
  461. - BuildRequires:dkms-minimal
  462. - Obsolete -latest dkms binary packages
  463. * Wed Apr 15 2009 Frederic Crozat <fcrozat@mandriva.com> 2.2.0-2mdv2009.1
  464. + Revision: 367571
  465. - Patch15: kill vboxclient if leftover from previous X11 session
  466. - Patch14 (Sun): fix OpenGL support for Linux Guest additions
  467. - improve packaging to be more LSB compliant
  468. * Fri Apr 10 2009 Frederic Crozat <fcrozat@mandriva.com> 2.2.0-1mdv2009.1
  469. + Revision: 365828
  470. - Release 2.2.0
  471. - enable OpenGL pass-through. Caveat : Linux guest support is not working when building guest additions with Open source edition (under investigation)
  472. - move location of fdi file (fix mouse integration support when using HAL)
  473. - merge all guest additions kernel module in one single DKMS (pterjan)
  474. - Enable webservice
  475. - Remove patch9, no longer needed (when using kernel 2.6.29.x, you MUST use kernel 2.6.29.1 or later)
  476. - Regenerate patches 8, 10
  477. - Patch11: add Wine Direct3D guest additions option (Debian)
  478. - Patch12: disable update notification (Debian)
  479. - Patch13: make network settings more intuitive (Debian)
  480. - Add missing dependencies in guest additions package
  481. - No longer use gcc 4.2, build fine with latest gcc 4.3
  482. - Replace source3 with upstream version
  483. - Update source4 to change permissions on both guest additions devices
  484. - Fix permissions on non .so files
  485. * Mon Mar 09 2009 Pascal Terjan <pterjan@mandriva.org> 2.1.4-5mdv2009.1
  486. + Revision: 353280
  487. - vboxvfs needs vboxadd
  488. * Wed Mar 04 2009 Frederic Crozat <fcrozat@mandriva.com> 2.1.4-4mdv2009.1
  489. + Revision: 348336
  490. - Force rebuild of dkms modules
  491. * Wed Feb 25 2009 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 2.1.4-3mdv2009.1
  492. + Revision: 344966
  493. - Copy Module.symvers for vboxnetflt dkms build, needed with
  494. CONFIG_MODVERSIONS enabled in latest cooker kernels.
  495. * Wed Feb 25 2009 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 2.1.4-2mdv2009.1
  496. + Revision: 344896
  497. - Apply fix for VM load failure with kernels 2.6.29-rc5 or later
  498. (#48096, http://www.virtualbox.org/ticket/3403).
  499. - Fix building with kernel-headers-2.6.29*
  500. * Tue Feb 17 2009 Frederik Himpe <fhimpe@mandriva.org> 2.1.4-1mdv2009.1
  501. + Revision: 342236
  502. - Update to new version 2.1.4
  503. - Fix source URL
  504. * Thu Jan 22 2009 Frederic Crozat <fcrozat@mandriva.com> 2.1.2-2mdv2009.1
  505. + Revision: 332593
  506. - Use xorg 1.6 drivers when building cooker guest addition packages
  507. * Thu Jan 22 2009 Funda Wang <fundawang@mandriva.org> 2.1.2-1mdv2009.1
  508. + Revision: 332404
  509. - specify CC4.2
  510. - New version 2.1.2
  511. - rediff libpath patch
  512. * Sun Jan 04 2009 Colin Guthrie <cguthrie@mandriva.org> 2.1.0-5mdv2009.1
  513. + Revision: 324525
  514. - Rebuild mouse and display drivers for xserver 1.6
  515. * Thu Dec 25 2008 Michael Scherer <misc@mandriva.org> 2.1.0-4mdv2009.1
  516. + Revision: 318540
  517. - rebuild for new python
  518. * Fri Dec 19 2008 Frederic Crozat <fcrozat@mandriva.com> 2.1.0-3mdv2009.1
  519. + Revision: 316288
  520. - Fix guest additions for cooker, we ship Xorg 1.5 now
  521. - Ship fdi file for vboxmouse
  522. * Fri Dec 19 2008 Adam Williamson <awilliamson@mandriva.org> 2.1.0-2mdv2009.1
  523. + Revision: 316021
  524. - oops, finish fixing up initscript
  525. * Fri Dec 19 2008 Adam Williamson <awilliamson@mandriva.org> 2.1.0-1mdv2009.1
  526. + Revision: 316019
  527. - adjust initscript and dkms.conf for the fact that there's now two necessary
  528. kernel modules for the master: vboxdrv and vboxnetflt
  529. - drop mdvconfig.patch: this stub does nothing useful, and breaks the build
  530. (see fcrozat's mail on Cooker)
  531. - VBoxAddIF and VBoxDeleteIF are now obsolete and not provided
  532. + Frederic Crozat <fcrozat@mandriva.com>
  533. - Release 2.1.0
  534. - Regenerate patch1
  535. - update buildrequires
  536. * Sun Nov 30 2008 Frederik Himpe <fhimpe@mandriva.org> 2.0.6-2mdv2009.1
  537. + Revision: 308552
  538. - Rebuild mouse and display drivers for xserver 1.5
  539. * Wed Nov 26 2008 Funda Wang <fundawang@mandriva.org> 2.0.6-1mdv2009.1
  540. + Revision: 306865
  541. - New version 2.0.6
  542. * Mon Nov 03 2008 Funda Wang <fundawang@mandriva.org> 2.0.4-1mdv2009.1
  543. + Revision: 299348
  544. - New version 2.0.4
  545. * Mon Sep 15 2008 Frederic Crozat <fcrozat@mandriva.com> 2.0.2-2mdv2009.0
  546. + Revision: 284854
  547. - Patch8: disable version check at startup
  548. * Sat Sep 13 2008 Frederik Himpe <fhimpe@mandriva.org> 2.0.2-1mdv2009.0
  549. + Revision: 284544
  550. - Update to bugfix update 2.0.2
  551. * Tue Sep 09 2008 Olivier Blin <oblin@mandriva.com> 2.0.0-3mdv2009.0
  552. + Revision: 283015
  553. - build guest additions on x86_64 too (#43593)
  554. + Frederic Crozat <fcrozat@mandriva.com>
  555. - Patch7: fix QT4 detection on x86-64 on Mandriva 2008.1
  556. * Thu Sep 04 2008 Frederic Crozat <fcrozat@mandriva.com> 2.0.0-1mdv2009.0
  557. + Revision: 280850
  558. - Fix BuildRequires
  559. - Release 2.0.0
  560. - Remove patches 3, 7 (merged upstream)
  561. * Mon Sep 01 2008 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 1.6.4-4mdv2009.0
  562. + Revision: 278071
  563. - Added patch to allow VirtualBox kernel module to build with
  564. Linux 2.6.27
  565. + Pixel <pixel@mandriva.com>
  566. - increase release number
  567. - use gcc4.2 to build the recompiler (not ported to gcc 4.3 yet)
  568. * Wed Aug 06 2008 Olivier Blin <oblin@mandriva.com> 1.6.4-2mdv2009.0
  569. + Revision: 264273
  570. - create /var/run/VirtualBox (#41963)
  571. - use tunctl from the tunctl package while VBoxTunctl does not build
  572. * Tue Aug 05 2008 Olivier Blin <oblin@mandriva.com> 1.6.4-1mdv2009.0
  573. + Revision: 264016
  574. - do not include VBoxTunctl for now (build is broken in upstream tarball)
  575. - rediff misc_register patch (the register part has been implemented upstream, I should submit the deregister hunks)
  576. - fix 1.6.4 build by not building tunctl (some Makefile.kmk are missing)
  577. - 1.6.4
  578. * Tue Jul 29 2008 Frederic Crozat <fcrozat@mandriva.com> 1.6.2-2mdv2009.0
  579. + Revision: 252777
  580. - Don't use gcc 3.3 for build on 2008.1 or earlier
  581. * Wed Jul 09 2008 Olivier Blin <oblin@mandriva.com> 1.6.2-1mdv2009.0
  582. + Revision: 232889
  583. - set again linux sources path in configure
  584. - use gcc 3.3 to build the recompiler (not ported to gcc 4.3 yet)
  585. - use kernel-devel-latest instead of kernel-source-latest
  586. - use a prepared copy of the linux tree (for linux/bounds.h)
  587. + Frederic Crozat <fcrozat@mandriva.com>
  588. - Release 1.6.2
  589. - Regenerate patch5
  590. - Fix duplicated line in specfile
  591. + Pixel <pixel@mandriva.com>
  592. - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas
  593. * Fri May 16 2008 Frederic Crozat <fcrozat@mandriva.com> 1.6.0-4mdv2009.0
  594. + Revision: 208160
  595. - Fix seamless mode in guest additions subpackage
  596. * Thu May 15 2008 Anssi Hannula <anssi@mandriva.org> 1.6.0-3mdv2009.0
  597. + Revision: 207692
  598. - rename VBoxAddIF.sh and VBoxDeleteIF.sh to VBoxAddIF and VBoxDeleteIF
  599. to match original names and documentation
  600. * Wed May 14 2008 Frederic Crozat <fcrozat@mandriva.com> 1.6.0-2mdv2009.0
  601. + Revision: 207235
  602. - Replace source1 with patch 6 (use up to date VBox.sh script)
  603. - Ensure VBoxAddIF/VBoxDeleteIF scripts are packaged, as well as VBoxTunctl (Mdv bug #40769)
  604. - package VBoxHeadless (Mdv bug #40771)
  605. * Fri May 09 2008 Olivier Blin <oblin@mandriva.com> 1.6.0-1mdv2009.0
  606. + Revision: 205313
  607. - try harder to disable additions on x86_64
  608. - buildrequire libxslt-devel
  609. - adapt to vboxadd-xclient being renamed as VBoxClient
  610. - rediff futex patch
  611. - rediff misc_register patch
  612. - 1.6.0
  613. - revert BUILT_MODULE_NAME addition, the bug is fixed in dkms
  614. + Anssi Hannula <anssi@mandriva.org>
  615. - add BUILT_MODULE_NAME to dkms.conf of vboxadd and vboxvfs (fixes DKMS
  616. error)
  617. * Tue Feb 26 2008 Olivier Blin <oblin@mandriva.com> 1.5.6-1mdv2008.1
  618. + Revision: 175619
  619. - 1.5.6
  620. - rediff KERNELRELEASE patch
  621. * Tue Feb 26 2008 Olivier Blin <oblin@mandriva.com> 1.5.4-5mdv2008.1
  622. + Revision: 175610
  623. - try to start dkms instead of vboxadd in vboxadd-timesync service (since modules are loaded from modprobe.preload.d, #36728)
  624. * Fri Feb 08 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.5.4-4mdv2008.1
  625. + Revision: 163970
  626. - drop old menu
  627. + Frederic Crozat <fcrozat@mandriva.com>
  628. - Really disable pulseaudio support on 2008.0 or older
  629. * Thu Jan 10 2008 Frederic Crozat <fcrozat@mandriva.com> 1.5.4-3mdv2008.1
  630. + Revision: 147602
  631. - Use correct version of x11 mouse and video additional driver when used on 2008.1 (xorg 1.4) and 2008.0
  632. - Only build pulseaudio support for 2008.1
  633. * Wed Jan 09 2008 Olivier Blin <oblin@mandriva.com> 1.5.4-2mdv2008.1
  634. + Revision: 147006
  635. - fix dkms build for kernels different from running kernel
  636. * Thu Jan 03 2008 Olivier Blin <oblin@mandriva.com> 1.5.4-1mdv2008.1
  637. + Revision: 142711
  638. - buildrequire pulseaudio-devel
  639. - rediff libpath patch
  640. - remove 2.6.24 build fix, fixed upstream
  641. - 1.5.4
  642. - restore BuildRoot
  643. + Pascal Terjan <pterjan@mandriva.org>
  644. - Switch to Debian patch for 2.6.24
  645. - Re-create the 2.6.24 patch, some bits got lost
  646. + Thierry Vignaud <tvignaud@mandriva.com>
  647. - kill re-definition of %%buildroot on Pixel's request
  648. - kill explicit icon extension
  649. + Giuseppe Ghibò <ghibo@mandriva.com>
  650. - Use kernel-source-latest in BuildRequires as conditional.
  651. - Add conditional build flags for older release.
  652. - Let Patch5 conditional.
  653. * Fri Nov 30 2007 Pascal Terjan <pterjan@mandriva.org> 1.5.2-3mdv2008.1
  654. + Revision: 114076
  655. - Improve 2.6.24 patch so that it should still build with older kernels
  656. * Fri Nov 30 2007 Pascal Terjan <pterjan@mandriva.org> 1.5.2-2mdv2008.1
  657. + Revision: 114047
  658. - Fix other parts to build with 2.6.24
  659. - Fix vboxdrv for 2.6.24
  660. * Tue Nov 13 2007 Olivier Blin <oblin@mandriva.com> 1.5.2-1mdv2008.1
  661. + Revision: 108363
  662. - remove keyboards patch (was from upstream svn)
  663. - rediff kernelrelease patch
  664. - rediff libpath patch
  665. - 1.5.2
  666. * Thu Oct 04 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-6mdv2008.0
  667. + Revision: 95447
  668. - really apply misc_register patch (so that vboxadd devices are automatically created)
  669. - add release in dkms PACKAGE_VERSION to ease upgrades
  670. * Sat Sep 29 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-5mdv2008.0
  671. + Revision: 93837
  672. - require kmod(vboxdrv) instead of dkms package
  673. - do not mark initscript as config file
  674. - move initscripts and udev rules out of dkms package (so that it works when using dkms prebuilt modules)
  675. * Sat Sep 29 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-4mdv2008.0
  676. + Revision: 93812
  677. - add vboxadd-timesync service
  678. - add pam_console perms file to assign vboxadd device to console user
  679. - use misc_register() to register vboxadd device so that /dev/vboxadd gets created automatically by udev
  680. * Fri Sep 28 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-3mdv2008.0
  681. + Revision: 93770
  682. - add vboxadd-xclient xinit.d script
  683. - release new additions, but we still need to fix mknod for vboxadd
  684. (or use device_create() in kernel module), set console perms for
  685. vboxadd in console.perms.d, and add timesync initscript
  686. - make guest additions package require X11 drivers
  687. - make x11 driver packages suggest virtualbox-guest-additions
  688. - add virtualbox-guest-additions package (with xclient, timesync, mount.vboxsf)
  689. - add dkms-vboxadd and dkms-vboxvfs packages
  690. * Fri Sep 28 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-2mdv2008.0
  691. + Revision: 93534
  692. - build additions on ix86 only
  693. - fix support for Brazilian, Belgian, US intl and US dvorak keyboards and add support for multimedia keys (from upstream SVN)
  694. - buildrequire libstdc++-static-devel
  695. - buildrequire libxt-devel
  696. - buildrequire kernel-source-latest, since iurt/urpmi don't install latest kernel-source automatically
  697. - buildrequire kernel-source
  698. - package mouse guest addition in x11-driver-input-vboxmouse
  699. - package video guest addition in x11-driver-video-vboxvideo
  700. - build VirtualBox additions
  701. * Mon Sep 03 2007 Olivier Blin <oblin@mandriva.com> 1.5.0-1mdv2008.0
  702. + Revision: 78607
  703. - drop libstdc++5 BuildRequires
  704. - drop unapplied x86_64 NMI watchdog disabling patch (merged upstream)
  705. - 1.5.0
  706. - rediff mdvconfig patch
  707. + Thierry Vignaud <tvignaud@mandriva.com>
  708. - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated'
  709. * Fri Jun 08 2007 Per Øyvind Karlsen <peroyvind@mandriva.org> 1.4.0-1mdv2008.0
  710. + Revision: 37085
  711. - from Jos?\195?\169 Melo <mmodem00@gmail.com>:
  712. o 1.4.0
  713. o update patch:2 since is needed to load (modprobe) vbox driver in kernel-2.6.17
  714. 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
  715. o add missing buildrequire hal-devel
  716. * Thu Mar 15 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.8-1mdv2007.1
  717. + Revision: 144313
  718. - add should-start: dkms to initscript (#29523)
  719. - 1.3.8
  720. * hard reset network device on reboot
  721. * fix issues with IBM JVM 1.4.2 in Linux guests
  722. * add support for X.org 7.2.x in Linux guest additions
  723. * Fri Mar 02 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.6-1mdv2007.1
  724. + Revision: 131492
  725. - disable NMIs on Core 2 platforms too
  726. - 1.3.6
  727. * fix some GUI issues
  728. * fix OpenBSD 4.0 support
  729. * fix CD/DVD-ROM detection in Windows Vista guests
  730. * fix networking issues with Windows NT 4.0 guests
  731. * fix some ALSA problems that could cause system reboots
  732. * Mon Feb 12 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.4-1mdv2007.1
  733. + Revision: 119895
  734. - 1.3.4
  735. * Mon Feb 12 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.3.20070209-1mdv2007.1
  736. + Revision: 119017
  737. - SVN updates (2007/02/09):
  738. * additional 64-bit fixes
  739. * asynchronous packets transmission in NIC code
  740. * Sat Feb 03 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.3.20070202-1mdv2007.1
  741. + Revision: 116064
  742. - various 64-bit fixes
  743. - updates from SVN (2007/02/02):
  744. * initial 64-bit host support
  745. * fix IDE for Open Solaris 10
  746. * add VDI compacting to the GUI
  747. * Sat Jan 27 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.3.3-1mdv2007.1
  748. + Revision: 114276
  749. - initial mandriva linux package