X-Git-Url: http://git.pld-linux.org/?p=packages%2FVirtualBox.git;a=blobdiff_plain;f=VirtualBox.spec;h=ded718f1f3241c5df94885de7ade1d9249089f89;hp=5281d9f7ee2d3d09e2ef185c66f30f95b6dd2b63;hb=a59a82ea4dffbc3d87cfcb67e98f95b2ac114490;hpb=621cd96c93a295e488652b3557169b2461c73464 diff --git a/VirtualBox.spec b/VirtualBox.spec index 5281d9f..ded718f 100644 --- a/VirtualBox.spec +++ b/VirtualBox.spec @@ -1,3 +1,5 @@ +# NOTE +# - https://www.virtualbox.org/wiki/Linux%20build%20instructions # TODO # - java bindings # - Package SDK. @@ -10,7 +12,7 @@ # # Conditional build: %bcond_without doc # don't build the documentation -%bcond_without dist_kernel # without distribution kernel +%bcond_without debuginfo # disable debuginfo creation (to save space when compiling) %bcond_without kernel # don't build kernel module %bcond_without userspace # don't build userspace package %bcond_with webservice # webservice (SOAP) support @@ -18,12 +20,6 @@ %bcond_without dkms # build dkms package %bcond_without verbose -%if %{without kernel} -%undefine with_dist_kernel -%else -%define _duplicate_files_terminate_build 0 -%endif - # The goal here is to have main, userspace, package built once with # simple release number, and only rebuild kernel packages with kernel # version as part of release number, without the need to bump release @@ -33,19 +29,12 @@ exit 1 %endif -%if "%{_alt_kernel}" != "%{nil}" -%if 0%{?build_kernels:1} -%{error:alt_kernel and build_kernels are mutually exclusive} -exit 1 -%endif -%undefine with_userspace -%global _build_kernels %{alt_kernel} -%else -%global _build_kernels %{?build_kernels:,%{?build_kernels}} -%endif - %if %{without userspace} # nothing to be placed to debuginfo package +%undefine with_debuginfo +%endif + +%if %{without debuginfo} %define _enable_debug_packages 0 %endif @@ -54,36 +43,41 @@ exit 1 %define bkpkg %(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo %%build_kernel_pkg ; done) %define ikpkg %(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo %%install_kernel_pkg ; done) -%define rel 2 +%define rel 1 %define pname VirtualBox Summary: VirtualBox - x86 hardware virtualizer Summary(pl.UTF-8): VirtualBox - wirtualizator sprzętu x86 Name: %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel} -Version: 4.3.8 +Version: 4.3.20 Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}} License: GPL v2 Group: Applications/Emulators Source0: http://download.virtualbox.org/virtualbox/%{version}/%{pname}-%{version}.tar.bz2 -# Source0-md5: 422ab09b7eb9c0564b55a6a0a6e6678f +# Source0-md5: cf3f25644aa0fae1029e8b362bd4375e Source1: http://download.virtualbox.org/virtualbox/%{version}/VBoxGuestAdditions_%{version}.iso -# Source1-md5: f23d3980a509418b2dcb614483271ffa +# Source1-md5: 4f6861ee0c584bcf6819cc76a2bd65ab Source2: vboxservice.init Source3: vboxservice.service -Source4: %{pname}.sh Source5: mount.vdi Source6: udev.rules Source7: %{pname}-virtualbox-host-modules-load.conf Source8: %{pname}-virtualbox-guest-modules-load.conf +Source9: vboxautostart.init +Source10: autostart.cfg Patch0: %{pname}-configure-spaces.patch Patch1: %{pname}-VBoxSysInfo.patch Patch2: %{pname}-warning_workaround.patch Patch3: %{pname}-dri.patch +Patch4: wrapper.patch Patch5: xserver-1.12.patch +Patch6: hardening-shared.patch Patch7: lightdm-greeter-glib-includes.patch Patch8: lightdm-greeter-g++-link.patch Patch9: pld-guest.patch Patch10: 16-no-update.patch Patch11: 18-system-xorg.patch +Patch12: x8664-build.patch +Patch13: %{pname}-all-translations.patch URL: http://www.virtualbox.org/ %if %{with userspace} %ifarch %{x8664} @@ -115,6 +109,7 @@ BuildRequires: bin86 BuildRequires: curl-devel BuildRequires: device-mapper-devel %{?with_doc:BuildRequires: docbook-dtd44-xml} +BuildRequires: fakeroot %{?with_lightdm:BuildRequires: fltk-devel} BuildRequires: gcc >= 5:3.2.3 %{?with_webservice:BuildRequires: gsoap-devel} @@ -132,7 +127,7 @@ BuildRequires: libvpx-devel BuildRequires: libxml2-devel >= 2.6.26 BuildRequires: libxslt-devel >= 1.1.17 BuildRequires: libxslt-progs >= 1.1.17 -%{?with_lightdm:BuildRequires: lightdm-libs-qt-devel} +%{?with_lightdm:BuildRequires: lightdm-libs-qt4-devel} BuildRequires: makeself BuildRequires: mkisofs BuildRequires: pam-devel @@ -143,7 +138,7 @@ BuildRequires: python-devel BuildRequires: python-modules BuildRequires: qt4-build >= 4.2.0 BuildRequires: qt4-linguist -BuildRequires: rpmbuild(macros) >= 1.678 +BuildRequires: rpmbuild(macros) >= 1.701 BuildRequires: sed >= 4.0 %if %{with doc} BuildRequires: texlive-fonts-bitstream @@ -159,18 +154,13 @@ BuildRequires: xerces-c-devel >= 2.6.0 BuildRequires: yasm BuildRequires: zlib-devel >= 1.2.1 %endif -%{?with_dist_kernel:%{expand:%kbrs}} +%{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}} Requires(post,preun): /sbin/chkconfig Requires(postun): /usr/sbin/groupdel Requires(pre): /usr/bin/getgid Requires(pre): /usr/sbin/groupadd -Requires: QtCore >= 4.7.0 -Requires: desktop-file-utils -Requires: fontconfig -Requires: fonts-Type1-urw Requires: libvncserver >= 0.9.9 Requires: udev-core -Suggests: gxmessage Provides: group(vbox) Obsoletes: VirtualBox-udev < 4.2.10-5 ExclusiveArch: %{ix86} %{x8664} @@ -230,6 +220,24 @@ wirtualnych są w całości przechowywane w XML-u i są niezależne od lokalnej maszyny. Dzięki temu można szybko i łatwo przenieść konfigurację maszyny wirtualnej na inny komputer. +%package gui +Summary: Qt GUI part for VirtualBox +Group: X11/Applications +Requires: %{name} = %{version}-%{release} +Requires: QtCore >= 4.7.0 +Requires: desktop-file-utils +Requires: desktop-file-utils +Requires: fontconfig +Requires: fonts-Type1-urw +Requires: gtk-update-icon-cache +Requires: hicolor-icon-theme +Requires: shared-mime-info +Suggests: gxmessage +Conflicts: %{name} < 4.3.8-3 + +%description gui +Qt GUI part for VirtualBox. + %package doc Summary: VirtualBox documentation Group: Documentation @@ -240,7 +248,10 @@ This package contains VirtualBox User Manual. %package additions Summary: VirtualBox Guest Additions Group: Base -Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} +%if "%{_rpmversion}" >= "5" +BuildArch: noarch +%endif %description additions VirtualBox Guest Additions. @@ -252,8 +263,12 @@ You should install this package in your Host OS. %package guest Summary: VirtualBox Guest tools Group: Base -Requires(post,preun): /sbin/chkconfig +Provides: group(vboxsf) Requires(post): systemd-units >= 38 +Requires(post,preun): /sbin/chkconfig +Requires(postun): /usr/sbin/groupdel +Requires(pre): /usr/bin/getgid +Requires(pre): /usr/sbin/groupadd Requires: rc-scripts Requires: systemd-units >= 38 Suggests: kernel(vboxguest) @@ -268,9 +283,10 @@ You should install this package in your Guest OS for base VirtualBox communication %package guest-x11 -Summary: VirtualBox Guest Additions -Group: Base +Summary: VirtualBox Guest X11 Additions +Group: X11/Applications Requires: %{name}-guest = %{version}-%{release} +Requires: xorg-app-xrandr Requires: xorg-driver-video-vboxvideo = %{version}-%{release} Suggests: kernel(vboxvideo) Obsoletes: xorg-driver-input-vboxmouse < %{version}-%{release} @@ -297,8 +313,10 @@ Group: Themes # NOTE: '#' in url is lost because rpm treats it as comment, even hacking with # macros doesn't help as rpmbuild takes final result to parse URL: http://www.virtualbox.org/manual/ch09.html#autologon_unix_lightdm +Requires: %{name} = %{version}-%{release} Requires: kernel(vboxguest) Requires: lightdm >= 1.0.1 +Requires: pam-pam_vbox = %{version}-%{release} Provides: lightdm-greeter %description -n lightdm-greeter-vbox @@ -319,9 +337,12 @@ Group: X11/Applications Requires: Mesa-dri-driver-swrast Requires: xorg-xserver-libdri >= 1.7.4 Requires: xorg-xserver-server >= 1.0.99.901 -Requires: xorg-xserver-server(videodrv-abi) <= 15.0 +Requires: xorg-xserver-server(videodrv-abi) <= 18.0 Requires: xorg-xserver-server(videodrv-abi) >= 2.0 +Provides: OpenGL = 2.1 +Provides: OpenGL-GLX = 1.3 Provides: xorg-driver-video +Provides: xorg-xserver-module(glx) %description -n xorg-driver-video-vboxvideo X.org video driver for VirtualBox guest OS. @@ -334,8 +355,7 @@ Summary: VirtualBox kernel modules source for Linux Guest Summary(pl.UTF-8): Moduły VirtualBoksa do jądra Linuksa dla systemu gościa License: GPL v2+ Group: Base/Kernel -Requires(pre): dkms -Requires(post): dkms +Requires: dkms %if "%{_rpmversion}" >= "5" BuildArch: noarch %endif @@ -355,8 +375,7 @@ Summary: VirtualBox Support Drivers source Summary(pl.UTF-8): Moduły jądra Linuksa dla VirtualBoksa License: GPL v2+ Group: Base/Kernel -Requires(pre): dkms -Requires(post): dkms +Requires: dkms %if "%{_rpmversion}" >= "5" BuildArch: noarch %endif @@ -387,11 +406,9 @@ Requires(post,postun): /sbin/depmod\ Requires(post): systemd-units >= 38\ Requires: dev >= 2.9.0-7\ Requires: systemd-units >= 38\ -%if %{with dist_kernel}\ %requires_releq_kernel\ Requires: %{releq_kernel -n drm}\ Requires(postun): %releq_kernel\ -%endif\ Provides: kernel(vboxguest) = %{version}-%{rel}\ Provides: kernel(vboxsf) = %{version}-%{rel}\ Provides: kernel(vboxvideo) = %{version}-%{rel}\ @@ -416,10 +433,8 @@ Group: Base/Kernel\ Requires(post,postun): /sbin/depmod\ Requires(post): systemd-units >= 38\ Requires: dev >= 2.9.0-7\ -%if %{with dist_kernel}\ %requires_releq_kernel\ Requires(postun): %releq_kernel\ -%endif\ Requires: systemd-units >= 38\ Provides: kernel(vboxdrv) = %{version}-%{rel}\ Provides: kernel(vboxnetadp) = %{version}-%{rel}\ @@ -489,7 +504,7 @@ cd ../..\ %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/GuestDrivers/vboxvideo/vboxvideo -d misc\ %{nil} -%{?with_kernel:%{expand:%kpkg}} +%{?with_kernel:%{expand:%create_kernel_packages}} %prep %setup -q -n %{pname}-%{version} @@ -497,10 +512,16 @@ cd ../..\ %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %patch5 -p1 +%patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 +%patch10 -p1 +%patch11 -p1 +%patch12 -p1 +%patch13 -p0 %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \ -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in @@ -509,8 +530,9 @@ cd ../..\ %{__sed} -i -e "s@_LDFLAGS\.%{vbox_arch}*.*=@& %{rpmldflags}@g" \ -i Config.kmk src/libs/xpcom18a4/Config.kmk -%{__sed} 's#@LIBDIR@#%{_libdir}#' < %{SOURCE4} > VirtualBox-wrapper.sh +%{__sed} -i -e 's#@INSTALL_DIR@#%{_libdir}/%{pname}#' src/VBox/Installer/linux/VBox.sh +%if %{with kernel} install -d PLD-MODULE-BUILD/{GuestDrivers,HostDrivers} cd PLD-MODULE-BUILD ../src/VBox/Additions/linux/export_modules guest-modules.tar.gz @@ -519,8 +541,7 @@ tar -zxf guest-modules.tar.gz -C GuestDrivers ../src/VBox/HostDrivers/linux/export_modules host-modules.tar.gz --without-hardening tar -zxf host-modules.tar.gz -C HostDrivers cd - -%patch10 -p1 -%patch11 -p1 +%endif # using system kBuild package %{__rm} -r kBuild @@ -543,7 +564,17 @@ VBOX_WITH_LIGHTDM_GREETER_PACKING=1 TOOL_GCC3_CFLAGS=%{rpmcflags} TOOL_GCC3_CXXFLAGS=%{rpmcxxflags} VBOX_GCC_OPT=%{rpmcxxflags} -VBOX_WITH_TESTCASES= + +VBOX_PATH_APP_PRIVATE_ARCH := %{_libdir}/%{pname} +VBOX_PATH_APP_PRIVATE := %{_datadir}/%{pname} +VBOX_PATH_SHARED_LIBS := $(VBOX_PATH_APP_PRIVATE_ARCH) +VBOX_WITH_ORIGIN := +VBOX_WITH_RUNPATH := $(VBOX_PATH_APP_PRIVATE_ARCH) +#VBOX_PATH_APP_DOCS := %{_docdir}/%{pname}-doc-%{version} + +# don't build testcases to save time, they are not needed for the package +VBOX_WITH_TESTCASES := +VBOX_WITH_TESTSUITE := EOF %build @@ -564,48 +595,31 @@ kmk %{?_smp_mflags} %{__cc} %{rpmcflags} %{rpmldflags} -Wall -Werror src/VBox/Additions/linux/sharedfolders/{mount.vboxsf.c,vbsfmount.c} -o mount.vboxsf %endif -%{?with_kernel:%{expand:%bkpkg}} +%{?with_kernel:%{expand:%build_kernel_packages}} %install rm -rf $RPM_BUILD_ROOT %if %{with userspace} install -d $RPM_BUILD_ROOT{%{_bindir},/sbin,%{_sbindir},%{_libdir}/%{pname}/ExtensionPacks} \ - $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \ + $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_datadir}/mime/packages} \ + $RPM_BUILD_ROOT%{_sysconfdir}/vbox/autostart \ $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,dri,input} \ $RPM_BUILD_ROOT{/lib/udev,/etc/udev/rules.d} \ - $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{systemdunitdir}} + $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{systemdunitdir},%{_usrsrc}} # test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition -if cp -al VBox.png $RPM_BUILD_ROOT/Vbox.png 2>/dev/null; then +if cp -al COPYING $RPM_BUILD_ROOT/COPYING; then l=l - %{__rm} -f $RPM_BUILD_ROOT/VBox.png + %{__rm} $RPM_BUILD_ROOT/COPYING fi cp -a$l %{outdir}/* $RPM_BUILD_ROOT%{_libdir}/%{pname} - -%if %{with doc} -ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual.pdf -ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual_fr_FR.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual_fr_FR.pdf -%endif - -install -d $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions cp -a$l %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso -install -p %{SOURCE5} $RPM_BUILD_ROOT/sbin/mount.vdi -install -p VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_libdir}/%{pname} -for f in {VBox{BFE,Headless,Manage,SDL,SVC,Tunctl,XPCOMIPCD},VirtualBox}; do - ln -s %{_libdir}/%{pname}/VirtualBox-wrapper.sh $RPM_BUILD_ROOT%{_bindir}/$f -done -install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxservice -install -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/vboxservice.service - -%{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/VBox.png,%{_pixmapsdir}/virtualbox.png} -%{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname},%{_desktopdir}}/virtualbox.desktop - -%{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxvideo_drv_system.so,%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so} +# vboxvideo %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/VBoxOGL.so,%{_libdir}/xorg/modules/dri/vboxvideo_dri.so} - +%{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxvideo_drv_system.so,%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so} # XXX: where else to install them that vboxvideo_dri.so finds them? patch with rpath? %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLarrayspu.so %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLcrutil.so @@ -614,28 +628,20 @@ install -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/vboxservice.service %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpackspu.so %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpassthroughspu.so -cp -a %{SOURCE6} $RPM_BUILD_ROOT/etc/udev/rules.d/virtualbox.rules -%{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname},/lib/udev}/VBoxCreateUSBNode.sh - -install -d $RPM_BUILD_ROOT/%{_lib}/security -%{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,/%{_lib}/security}/pam_vbox.so - -# cleanup unpackaged -%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/{src,sdk,testcase} -%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/src -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxkeyboard.tar.bz2 -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/tst* -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack-license.* - # Guest Only Tools -install -d $RPM_BUILD_ROOT/etc/{X11/xinit/xinitrc.d,xdg/autostart} -%{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxService %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxClient %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxControl -install -p -D src/VBox/Additions/x11/Installer/98vboxadd-xclient \ - $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh +%{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxService +install -d $RPM_BUILD_ROOT/etc/xdg/autostart cp -p src/VBox/Additions/x11/Installer/vboxclient.desktop \ $RPM_BUILD_ROOT/etc/xdg/autostart/vboxclient.desktop +install -p src/VBox/Additions/x11/Installer/98vboxadd-xclient $RPM_BUILD_ROOT%{_bindir}/VBoxClient-all +install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxservice +install -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/vboxservice.service + +install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxautostart +%{__sed} -i -e 's#@INSTALL_DIR@#%{_libdir}/%{pname}#' $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxautostart +cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/vbox %if %{with lightdm} install -d $RPM_BUILD_ROOT%{_datadir}/xgreeters @@ -643,46 +649,85 @@ install -d $RPM_BUILD_ROOT%{_datadir}/xgreeters cp -p %{objdir}/Additions/Installer/linux/share/VBoxGuestAdditions/vbox-greeter.desktop $RPM_BUILD_ROOT%{_datadir}/xgreeters %endif +%if %{with dkms} +mv $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/src $RPM_BUILD_ROOT%{_usrsrc}/vboxguest-%{version}-%{rel} +%endif + +# pam +install -d $RPM_BUILD_ROOT/%{_lib}/security +%{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,/%{_lib}/security}/pam_vbox.so + +# mount.vboxsf +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf +install -p mount.vboxsf $RPM_BUILD_ROOT/sbin/mount.vboxsf + +# mount.vdi +install -p %{SOURCE5} $RPM_BUILD_ROOT/sbin/mount.vdi + +# these belong to .iso +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/autorun.sh +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/runasroot.sh + +# scripts to setup modules, x11 and service. we have covered that in our packages +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/vboxadd +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/vboxadd-service +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/vboxadd-x11 + # unknown - checkme %if 1 +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/helpers/generate_service_file %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPInstall %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPLoggerCtl %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPUninstall -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/VBox.sh -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxshell.py -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/xpidl -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/runasroot.sh %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/load.sh %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/loadall.sh -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/CPUMInternal.d -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/cpumctx.d -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vbox-arch-types.d -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vbox-types.d -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/vm.d -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/lib/%{vbox_arch}/x86.d -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace/testcase/%{vbox_arch}/vbox-vm-struct-test.d -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/helpers/generate_service_file %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/VBoxHeadlessXOrg.sh -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/generated.sh %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/init_template.sh %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/install_service +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxshell.py +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/xpidl %endif -%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf +# use upstream installer to relocate rest of the files, fakeroot because it forces uid/gid 0 +fakeroot sh -x $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/install.sh \ + --ose \ + --prefix %{_prefix} \ + %{!?with_webservice:--no-web-service} \ + --root $RPM_BUILD_ROOT -install -p mount.vboxsf $RPM_BUILD_ROOT/sbin/mount.vboxsf +%{__mv} $RPM_BUILD_ROOT{%{_datadir}/%{pname},/lib/udev}/VBoxCreateUSBNode.sh +cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/udev/rules.d/60-vboxdrv.rules %if %{with dkms} -install -d $RPM_BUILD_ROOT%{_usrsrc}/vbox{host,guest}-%{version}-%{rel} -cp -a PLD-MODULE-BUILD/HostDrivers/* $RPM_BUILD_ROOT%{_usrsrc}/vboxhost-%{version}-%{rel} -cp -p src/VBox/HostDrivers/linux/dkms.conf $RPM_BUILD_ROOT%{_usrsrc}/vboxhost-%{version}-%{rel} -%{__make} -C $RPM_BUILD_ROOT%{_usrsrc}/vboxhost-%{version}-%{rel} clean -rm -rf $RPM_BUILD_ROOT%{_usrsrc}/vboxhost-%{version}-%{rel}/*/o - -cp -a PLD-MODULE-BUILD/GuestDrivers/* $RPM_BUILD_ROOT%{_usrsrc}/vboxguest-%{version}-%{rel} -cp -p src/VBox/Additions/common/VBoxGuest/linux/dkms.conf $RPM_BUILD_ROOT%{_usrsrc}/vboxguest-%{version}-%{rel} -%{__make} -C $RPM_BUILD_ROOT%{_usrsrc}/vboxguest-%{version}-%{rel} clean -rm -rf $RPM_BUILD_ROOT%{_usrsrc}/vboxguest-%{version}-%{rel}/*/o +mv $RPM_BUILD_ROOT%{_datadir}/%{pname}/src $RPM_BUILD_ROOT%{_usrsrc}/vboxhost-%{version}-%{rel} +%{__rm} $RPM_BUILD_ROOT%{_usrsrc}/vboxhost-%{version}_PLD +%endif + +# cleanup lowercased variants, not used in any script (less cruft) +%{__rm} -r $RPM_BUILD_ROOT%{_bindir}/vboxautostart +%{__rm} -r $RPM_BUILD_ROOT%{_bindir}/vboxballoonctrl +%{__rm} -r $RPM_BUILD_ROOT%{_bindir}/vboxheadless +%{__rm} -r $RPM_BUILD_ROOT%{_bindir}/vboxmanage +%{__rm} -r $RPM_BUILD_ROOT%{_bindir}/vboxsdl +%{__rm} -r $RPM_BUILD_ROOT%{_bindir}/virtualbox + +# cleanup unpackaged +%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/{sdk,testcase} +%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxkeyboard.tar.bz2 +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/tst* +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/generated.sh +%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack-license.* +%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/vboxapi* + +# weird icon size +%{__rm} -r $RPM_BUILD_ROOT%{_iconsdir}/hicolor/40x40 +# duplicate, we already have virtualbox.png (128x128), this is 32x32 +%{__rm} -r $RPM_BUILD_ROOT%{_pixmapsdir}/VBox.png + +%if %{with doc} +ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual.pdf +ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual_fr_FR.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual_fr_FR.pdf %endif %endif @@ -703,7 +748,9 @@ rm -rf $RPM_BUILD_ROOT %groupadd -g 221 -r -f vbox %post -%update_desktop_database +/sbin/chkconfig --add vboxautostart +%service -n vboxautostart restart + for i in /sys/bus/usb/devices/*; do if [ -r "$i/dev" ]; then dev="`cat "$i/dev" 2>/dev/null || true`" @@ -723,11 +770,33 @@ On Guest Linux system you might want to install: EOF +%preun +if [ "$1" = "0" ]; then + /sbin/chkconfig --del vboxautostart + %service vboxautostart -q stop +fi + + %postun if [ "$1" = "0" ]; then %groupremove vbox fi +%post gui +%update_desktop_database +%update_icon_cache hicolor +%update_mime_database + +%postun gui +%update_desktop_database +%update_icon_cache hicolor +%update_mime_database + +%pre guest +# Add a group "vboxsf" for Shared Folders access +# All users which want to access the auto-mounted Shared Folders have to be added to this group. +%groupadd -g 266 -r -f vboxsf + %post guest /sbin/chkconfig --add vboxservice %service vboxservice restart @@ -741,6 +810,9 @@ fi %systemd_preun vboxservice.service %postun guest +if [ "$1" = "0" ]; then + %groupremove vboxsf +fi %systemd_reload %triggerpostun guest -- VirtualBox-guest < 4.3.0-1 @@ -750,95 +822,99 @@ fi %addusertogroup xdm vbox %post -n dkms-vboxguest -set -x dkms add -m vboxguest -v %{version}-%{rel} --rpm_safe_upgrade && \ dkms build -m vboxguest -v %{version}-%{rel} --rpm_safe_upgrade && \ dkms install -m vboxguest -v %{version}-%{rel} --rpm_safe_upgrade || : %preun -n dkms-vboxguest -set -x dkms remove -m vboxguest -v %{version}-%{rel} --rpm_safe_upgrade --all || : %post -n dkms-vboxhost -set -x dkms add -m vboxhost -v %{version}-%{rel} --rpm_safe_upgrade && \ dkms build -m vboxhost -v %{version}-%{rel} --rpm_safe_upgrade && \ dkms install -m vboxhost -v %{version}-%{rel} --rpm_safe_upgrade || : %preun -n dkms-vboxhost -set -x dkms remove -m vboxhost -v %{version}-%{rel} --rpm_safe_upgrade --all || : %if %{with userspace} %files %defattr(644,root,root,755) -%dir %{_libdir}/%{pname} -%dir %{_libdir}/%{pname}/ExtensionPacks -%dir %{_libdir}/%{pname}/ExtensionPacks/VNC -%dir %{_libdir}/%{pname}/ExtensionPacks/VNC/linux* -%dir %{_libdir}/%{pname}/additions -%dir %{_libdir}/%{pname}/components -%dir %{_libdir}/%{pname}/nls -%attr(755,root,root) %{_bindir}/VBoxBFE +%dir %attr(751,root,root) %{_sysconfdir}/vbox +%dir %attr(770,root,vbox) %{_sysconfdir}/vbox/autostart +%attr(640,root,vbox) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vbox/autostart.cfg +%attr(754,root,root) /etc/rc.d/init.d/vboxautostart +%attr(755,root,root) /sbin/mount.vdi +%attr(755,root,root) %{_bindir}/VBox +%attr(755,root,root) %{_bindir}/VBoxAutostart +%attr(755,root,root) %{_bindir}/VBoxBalloonCtrl %attr(755,root,root) %{_bindir}/VBoxHeadless %attr(755,root,root) %{_bindir}/VBoxManage %attr(755,root,root) %{_bindir}/VBoxSDL -%attr(755,root,root) %{_bindir}/VBoxSVC %attr(755,root,root) %{_bindir}/VBoxTunctl -%attr(755,root,root) %{_bindir}/VBoxXPCOMIPCD -%attr(755,root,root) %{_bindir}/VirtualBox -%attr(755,root,root) /sbin/mount.vdi +%dir %{_libdir}/%{pname} +# libraries %attr(755,root,root) %{_libdir}/%{pname}/DBGCPlugInDiggers.so %attr(755,root,root) %{_libdir}/%{pname}/VBoxAuth.so %attr(755,root,root) %{_libdir}/%{pname}/VBoxAuthSimple.so -%attr(755,root,root) %{_libdir}/%{pname}/VBoxAutostart -%attr(755,root,root) %{_libdir}/%{pname}/VBoxBalloonCtrl -%attr(755,root,root) %{_libdir}/%{pname}/VBoxDbg.so -%attr(755,root,root) %{_libdir}/%{pname}/VBoxDD2.so %attr(755,root,root) %{_libdir}/%{pname}/VBoxDD.so +%attr(755,root,root) %{_libdir}/%{pname}/VBoxDD2.so %attr(755,root,root) %{_libdir}/%{pname}/VBoxDDU.so %attr(755,root,root) %{_libdir}/%{pname}/VBoxDragAndDropSvc.so -%attr(755,root,root) %{_libdir}/%{pname}/VBoxExtPackHelperApp %attr(755,root,root) %{_libdir}/%{pname}/VBoxGuestControlSvc.so %attr(755,root,root) %{_libdir}/%{pname}/VBoxGuestPropSvc.so -%attr(755,root,root) %{_libdir}/%{pname}/VBoxHeadless %attr(755,root,root) %{_libdir}/%{pname}/VBoxHostChannel.so %attr(755,root,root) %{_libdir}/%{pname}/VBoxKeyboard.so -%attr(755,root,root) %{_libdir}/%{pname}/VBoxManage -%attr(755,root,root) %{_libdir}/%{pname}/VBoxNetNAT -%attr(755,root,root) %{_libdir}/%{pname}/VBoxVolInfo -%attr(755,root,root) %{_libdir}/%{pname}/iPxeBaseBin -%if %{with doc} -%attr(755,root,root) %{_libdir}/%{pname}/VBoxManageHelp -%endif -%attr(755,root,root) %{_libdir}/%{pname}/VBoxNetAdpCtl -%attr(755,root,root) %{_libdir}/%{pname}/VBoxNetDHCP %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLhostcrutil.so %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLhosterrorspu.so %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLrenderspu.so %attr(755,root,root) %{_libdir}/%{pname}/VBoxPython*.so %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM.so +%attr(755,root,root) %{_libdir}/%{pname}/VBoxRT.so +%attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedClipboard.so +%attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedCrOpenGL.so +%attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedFolders.so +%attr(755,root,root) %{_libdir}/%{pname}/VBoxVMM.so +%attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOM.so +%attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMC.so %ifarch %{ix86} %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM32.so %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM64.so %endif -%attr(755,root,root) %{_libdir}/%{pname}/VBoxRT.so + +# binaries +%attr(755,root,root) %{_libdir}/%{pname}/VBoxAutostart +%attr(755,root,root) %{_libdir}/%{pname}/VBoxBalloonCtrl +%attr(755,root,root) %{_libdir}/%{pname}/VBoxExtPackHelperApp +%attr(755,root,root) %{_libdir}/%{pname}/VBoxHeadless +%attr(755,root,root) %{_libdir}/%{pname}/VBoxManage +%attr(755,root,root) %{_libdir}/%{pname}/VBoxNetAdpCtl +%attr(755,root,root) %{_libdir}/%{pname}/VBoxNetDHCP +%attr(755,root,root) %{_libdir}/%{pname}/VBoxNetNAT %attr(755,root,root) %{_libdir}/%{pname}/VBoxSDL -%attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedClipboard.so -%attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedCrOpenGL.so -%attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedFolders.so %attr(755,root,root) %{_libdir}/%{pname}/VBoxSVC -%attr(755,root,root) %{_libdir}/%{pname}/VBoxSysInfo.sh -%attr(755,root,root) %{_libdir}/%{pname}/VBoxTestOGL -%attr(755,root,root) %{_libdir}/%{pname}/VBoxTunctl -%attr(755,root,root) %{_libdir}/%{pname}/VBoxVMM.so %attr(755,root,root) %{_libdir}/%{pname}/VBoxVMMPreload -%attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMC.so +%attr(755,root,root) %{_libdir}/%{pname}/VBoxVolInfo %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMIPCD -%attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOM.so -%attr(755,root,root) %{_libdir}/%{pname}/VirtualBox -%attr(755,root,root) %{_libdir}/%{pname}/VirtualBox-wrapper.sh +%attr(755,root,root) %{_libdir}/%{pname}/iPxeBaseBin +%if %{with doc} +%attr(755,root,root) %{_libdir}/%{pname}/VBoxManageHelp +%endif +%dir %{_libdir}/%{pname}/tools +%attr(755,root,root) %{_libdir}/%{pname}/tools/RTGzip +%attr(755,root,root) %{_libdir}/%{pname}/tools/RTLdrFlt +%attr(755,root,root) %{_libdir}/%{pname}/tools/RTManifest +%attr(755,root,root) %{_libdir}/%{pname}/tools/RTRm +%attr(755,root,root) %{_libdir}/%{pname}/tools/RTShutdown +%attr(755,root,root) %{_libdir}/%{pname}/tools/RTSignTool +%attr(755,root,root) %{_libdir}/%{pname}/tools/RTTar + +%dir %{_libdir}/%{pname}/ExtensionPacks +%{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack.xml +%dir %{_libdir}/%{pname}/ExtensionPacks/VNC +%dir %{_libdir}/%{pname}/ExtensionPacks/VNC/linux* %attr(755,root,root) %{_libdir}/%{pname}/ExtensionPacks/VNC/linux*/VBoxVNC*.so + %{_libdir}/%{pname}/VBoxDD2GC.debug %{_libdir}/%{pname}/VBoxDD2GC.gc %{_libdir}/%{pname}/VBoxDD2R0.debug @@ -853,56 +929,70 @@ dkms remove -m vboxhost -v %{version}-%{rel} --rpm_safe_upgrade --all || : %{_libdir}/%{pname}/VMMGC.gc %{_libdir}/%{pname}/VMMR0.debug %{_libdir}/%{pname}/VMMR0.r0 + +%dir %{_libdir}/%{pname}/components %{_libdir}/%{pname}/components/VBoxXPCOMBase.xpt -%{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack.xml %{_libdir}/%{pname}/components/VirtualBox_XPCOM.xpt %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxC.so %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxSVCM.so %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxXPCOMIPCC.so -%lang(bg) %{_libdir}/%{pname}/nls/*_bg.qm -%lang(ca) %{_libdir}/%{pname}/nls/*_ca.qm -%lang(ca_VA) %{_libdir}/%{pname}/nls/*_ca_VA.qm -%lang(cs) %{_libdir}/%{pname}/nls/*_cs.qm -%lang(da) %{_libdir}/%{pname}/nls/*_da.qm -%lang(de) %{_libdir}/%{pname}/nls/*_de.qm -%lang(en) %{_libdir}/%{pname}/nls/*_en.qm -%lang(es) %{_libdir}/%{pname}/nls/*_es.qm -%lang(eu) %{_libdir}/%{pname}/nls/*_eu.qm -%lang(fi) %{_libdir}/%{pname}/nls/*_fa_IR.qm -%lang(fi) %{_libdir}/%{pname}/nls/*_fi.qm -%lang(fr) %{_libdir}/%{pname}/nls/*_fr.qm -%lang(gl_ES) %{_libdir}/%{pname}/nls/*_gl_ES.qm -%lang(hu) %{_libdir}/%{pname}/nls/*_hu.qm -%lang(id) %{_libdir}/%{pname}/nls/*_id.qm -%lang(it) %{_libdir}/%{pname}/nls/*_it.qm -%lang(ja) %{_libdir}/%{pname}/nls/*_ja.qm -%lang(km_KH) %{_libdir}/%{pname}/nls/*_km_KH.qm -%lang(ko) %{_libdir}/%{pname}/nls/*_ko.qm -%lang(lt) %{_libdir}/%{pname}/nls/*_lt.qm -%lang(nl) %{_libdir}/%{pname}/nls/*_nl.qm -%lang(pl) %{_libdir}/%{pname}/nls/*_pl.qm -%lang(pt) %{_libdir}/%{pname}/nls/*_pt.qm -%lang(pt_BR) %{_libdir}/%{pname}/nls/*_pt_BR.qm -%lang(ro) %{_libdir}/%{pname}/nls/*_ro.qm -%lang(ru) %{_libdir}/%{pname}/nls/*_ru.qm -%lang(sk) %{_libdir}/%{pname}/nls/*_sk.qm -%lang(sr) %{_libdir}/%{pname}/nls/*_sr.qm -%lang(sv) %{_libdir}/%{pname}/nls/*_sv.qm -%lang(tr) %{_libdir}/%{pname}/nls/*_tr.qm -%lang(uk) %{_libdir}/%{pname}/nls/*_uk.qm -%lang(zh_CN) %{_libdir}/%{pname}/nls/*_zh_CN.qm -%lang(zh_TW) %{_libdir}/%{pname}/nls/*_zh_TW.qm -%{_pixmapsdir}/virtualbox.png -%{_desktopdir}/*.desktop -%{_libdir}/%{pname}/icons -%{_libdir}/%{pname}/virtualbox.xml -%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules +%dir %{_datadir}/%{pname} +%attr(755,root,root) %{_datadir}/%{pname}/VBoxSysInfo.sh + +%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/*.rules %attr(755,root,root) /lib/udev/VBoxCreateUSBNode.sh +%files gui +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/VirtualBox +%attr(755,root,root) %{_libdir}/%{pname}/VBoxDbg.so +%attr(755,root,root) %{_libdir}/%{pname}/VBoxTestOGL +%attr(755,root,root) %{_libdir}/%{pname}/VirtualBox +%dir %{_datadir}/%{pname}/nls +%lang(bg) %{_datadir}/%{pname}/nls/*_bg.qm +%lang(ca) %{_datadir}/%{pname}/nls/*_ca.qm +%lang(ca_VA) %{_datadir}/%{pname}/nls/*_ca_VA.qm +%lang(cs) %{_datadir}/%{pname}/nls/*_cs.qm +%lang(da) %{_datadir}/%{pname}/nls/*_da.qm +%lang(de) %{_datadir}/%{pname}/nls/*_de.qm +%lang(en) %{_datadir}/%{pname}/nls/*_en.qm +%lang(es) %{_datadir}/%{pname}/nls/*_es.qm +%lang(eu) %{_datadir}/%{pname}/nls/*_eu.qm +%lang(fi) %{_datadir}/%{pname}/nls/*_fa_IR.qm +%lang(fi) %{_datadir}/%{pname}/nls/*_fi.qm +%lang(fr) %{_datadir}/%{pname}/nls/*_fr.qm +%lang(gl_ES) %{_datadir}/%{pname}/nls/*_gl_ES.qm +%lang(hu) %{_datadir}/%{pname}/nls/*_hu.qm +%lang(id) %{_datadir}/%{pname}/nls/*_id.qm +%lang(it) %{_datadir}/%{pname}/nls/*_it.qm +%lang(ja) %{_datadir}/%{pname}/nls/*_ja.qm +%lang(km_KH) %{_datadir}/%{pname}/nls/*_km_KH.qm +%lang(ko) %{_datadir}/%{pname}/nls/*_ko.qm +%lang(lt) %{_datadir}/%{pname}/nls/*_lt.qm +%lang(nl) %{_datadir}/%{pname}/nls/*_nl.qm +%lang(pl) %{_datadir}/%{pname}/nls/*_pl.qm +%lang(pt) %{_datadir}/%{pname}/nls/*_pt.qm +%lang(pt_BR) %{_datadir}/%{pname}/nls/*_pt_BR.qm +%lang(ro) %{_datadir}/%{pname}/nls/*_ro.qm +%lang(ru) %{_datadir}/%{pname}/nls/*_ru.qm +%lang(sk) %{_datadir}/%{pname}/nls/*_sk.qm +%lang(sr) %{_datadir}/%{pname}/nls/*_sr.qm +%lang(sv) %{_datadir}/%{pname}/nls/*_sv.qm +%lang(tr) %{_datadir}/%{pname}/nls/*_tr.qm +%lang(uk) %{_datadir}/%{pname}/nls/*_uk.qm +%lang(zh_CN) %{_datadir}/%{pname}/nls/*_zh_CN.qm +%lang(zh_TW) %{_datadir}/%{pname}/nls/*_zh_TW.qm +%{_desktopdir}/virtualbox.desktop +%{_pixmapsdir}/virtualbox.png +%{_iconsdir}/hicolor/*/apps/virtualbox.png +%{_iconsdir}/hicolor/*/apps/virtualbox.svg +%{_iconsdir}/hicolor/*/mimetypes/virtualbox-*.png +%{_datadir}/mime/packages/virtualbox.xml + %files additions %defattr(644,root,root,755) -%{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso +%{_datadir}/%{pname}/VBoxGuestAdditions.iso %files guest %defattr(644,root,root,755) @@ -914,21 +1004,14 @@ dkms remove -m vboxhost -v %{version}-%{rel} --rpm_safe_upgrade --all || : %files guest-x11 %defattr(644,root,root,755) -# NOTE: unfinished, should contain .desktop files for starting up mouse -# integration and other desktop services -# NOTE: the filelist is incomplete too -%attr(755,root,root) %{_bindir}/VBoxClient -/etc/X11/xinit/xinitrc.d/98vboxadd-xclient.sh /etc/xdg/autostart/vboxclient.desktop - -%attr(755,root,root) %{_libdir}/%{pname}/additions/autorun.sh -%attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd -%attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd-service -%attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd-x11 +%attr(755,root,root) %{_bindir}/VBoxClient +%attr(755,root,root) %{_bindir}/VBoxClient-all %if %{with webservice} %files webservice %defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/vboxwebsrv %attr(755,root,root) %{_libdir}/%{pname}/vboxwebsrv %attr(755,root,root) %{_libdir}/%{pname}/webtest %endif