forked from pool/virtualbox
Crunch extraneous comments
This commit is contained in:
parent
2c787c3ad3
commit
86fdbe5dc4
@ -400,11 +400,9 @@ Requires: %{name} = %{version}
|
|||||||
Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer
|
Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer
|
||||||
protocol (RFB) to remotely control another computer. When this optional feature is desired, it is installed
|
protocol (RFB) to remotely control another computer. When this optional feature is desired, it is installed
|
||||||
as an "extpack" for VirtualBox. The implementation is licensed under GPL.
|
as an "extpack" for VirtualBox. The implementation is licensed under GPL.
|
||||||
###########################################
|
|
||||||
# main_package
|
# main_package
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
### Description of virtualbox-kmp ###
|
|
||||||
%if %{kmp_package}
|
%if %{kmp_package}
|
||||||
%description
|
%description
|
||||||
This package contains the kernel-modules that VirtualBox uses to create or run virtual machines.
|
This package contains the kernel-modules that VirtualBox uses to create or run virtual machines.
|
||||||
@ -496,9 +494,7 @@ EOF
|
|||||||
%sysusers_generate_pre vbox-guest-tools.conf vbox-guest-tools vbox-guest-tools.conf
|
%sysusers_generate_pre vbox-guest-tools.conf vbox-guest-tools vbox-guest-tools.conf
|
||||||
|
|
||||||
%install
|
%install
|
||||||
#################################
|
|
||||||
echo "create directory structure"
|
echo "create directory structure"
|
||||||
#################################
|
|
||||||
install -d -m 755 %{buildroot}%{_sbindir}
|
install -d -m 755 %{buildroot}%{_sbindir}
|
||||||
install -d -m 755 %{buildroot}%{_prefix}/lib
|
install -d -m 755 %{buildroot}%{_prefix}/lib
|
||||||
install -d -m 755 %{buildroot}%{_bindir}
|
install -d -m 755 %{buildroot}%{_bindir}
|
||||||
@ -521,9 +517,7 @@ install -d -m 755 %{buildroot}%{_sysconfdir}/vbox/autostart.d
|
|||||||
install -d -m 755 %{buildroot}%{_udevrulesdir}
|
install -d -m 755 %{buildroot}%{_udevrulesdir}
|
||||||
install -d -m 755 %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d
|
install -d -m 755 %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d
|
||||||
|
|
||||||
###########################################
|
|
||||||
echo "entering guest-tools install section"
|
echo "entering guest-tools install section"
|
||||||
###########################################
|
|
||||||
install -m 755 out/linux.*/release/bin/additions/VBoxControl %{buildroot}%{_bindir}
|
install -m 755 out/linux.*/release/bin/additions/VBoxControl %{buildroot}%{_bindir}
|
||||||
install -m 755 out/linux.*/release/bin/additions/VBoxService %{buildroot}%{_sbindir}/VBoxService
|
install -m 755 out/linux.*/release/bin/additions/VBoxService %{buildroot}%{_sbindir}/VBoxService
|
||||||
install -m 755 out/linux.*/release/bin/additions/mount.vboxsf %{buildroot}%{_sbindir}/mount.vboxsf
|
install -m 755 out/linux.*/release/bin/additions/mount.vboxsf %{buildroot}%{_sbindir}/mount.vboxsf
|
||||||
@ -545,17 +539,13 @@ install -m 644 %{SOURCE25} %{buildroot}%{_sysconfdir}/xdg/autostart/vboxclient.d
|
|||||||
install -d -m 755 %{buildroot}/media
|
install -d -m 755 %{buildroot}/media
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
###########################################
|
|
||||||
echo "entering VNC extension install section"
|
echo "entering VNC extension install section"
|
||||||
###########################################
|
|
||||||
pushd out/linux.*/release/packages/
|
pushd out/linux.*/release/packages/
|
||||||
mkdir -p "%{buildroot}%{_datadir}/virtualbox/extensions/"
|
mkdir -p "%{buildroot}%{_datadir}/virtualbox/extensions/"
|
||||||
install -D -m 644 VNC-*.vbox-extpack "%{buildroot}%{_datadir}/virtualbox/extensions/VNC-%{version}.vbox-extpack"
|
install -D -m 644 VNC-*.vbox-extpack "%{buildroot}%{_datadir}/virtualbox/extensions/VNC-%{version}.vbox-extpack"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
##############################################
|
|
||||||
echo "entering virtualbox(-qt) install section"
|
echo "entering virtualbox(-qt) install section"
|
||||||
##############################################
|
|
||||||
# copy the main files to %%{_vbox_instdir}
|
# copy the main files to %%{_vbox_instdir}
|
||||||
pushd out/linux.*/release/bin
|
pushd out/linux.*/release/bin
|
||||||
install -m 755 VBoxManage %{buildroot}%{_vbox_instdir}
|
install -m 755 VBoxManage %{buildroot}%{_vbox_instdir}
|
||||||
@ -655,9 +645,7 @@ allow = true
|
|||||||
EOF
|
EOF
|
||||||
# install udev helper script for creating usb devices
|
# install udev helper script for creating usb devices
|
||||||
install -m 0755 -D src/VBox/Installer/linux/VBoxCreateUSBNode.sh %{buildroot}%{_vbox_instdir}/VBoxCreateUSBNode.sh
|
install -m 0755 -D src/VBox/Installer/linux/VBoxCreateUSBNode.sh %{buildroot}%{_vbox_instdir}/VBoxCreateUSBNode.sh
|
||||||
######################################################
|
|
||||||
echo "entering python-virtualbox install section"
|
echo "entering python-virtualbox install section"
|
||||||
######################################################
|
|
||||||
pushd out/linux.*/release/bin/sdk/installer/python
|
pushd out/linux.*/release/bin/sdk/installer/python
|
||||||
VBOX_INSTALL_PATH=%{_vbox_instdir} python3 vboxapisetup.py install --prefix=%{_prefix} --root=%{buildroot}
|
VBOX_INSTALL_PATH=%{_vbox_instdir} python3 vboxapisetup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
popd
|
popd
|
||||||
@ -665,9 +653,7 @@ install -d -m 755 %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom
|
|||||||
cp -r out/linux.*/release/bin/sdk/bindings/xpcom/python %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom
|
cp -r out/linux.*/release/bin/sdk/bindings/xpcom/python %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom
|
||||||
%py3_compile %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom/python
|
%py3_compile %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom/python
|
||||||
|
|
||||||
######################################################
|
|
||||||
echo "entering virtualbox-devel install section"
|
echo "entering virtualbox-devel install section"
|
||||||
######################################################
|
|
||||||
cp -r out/linux.*/release/bin/sdk/bindings/auth %{buildroot}%{_vbox_instdir}/sdk/bindings
|
cp -r out/linux.*/release/bin/sdk/bindings/auth %{buildroot}%{_vbox_instdir}/sdk/bindings
|
||||||
|
|
||||||
pushd out/linux.*/release/bin/sdk/bindings/xpcom
|
pushd out/linux.*/release/bin/sdk/bindings/xpcom
|
||||||
@ -678,19 +664,14 @@ popd
|
|||||||
|
|
||||||
cp out/linux.*/release/bin/sdk/bindings/VirtualBox.xidl %{buildroot}%{_vbox_instdir}/sdk/bindings
|
cp out/linux.*/release/bin/sdk/bindings/VirtualBox.xidl %{buildroot}%{_vbox_instdir}/sdk/bindings
|
||||||
|
|
||||||
######################################################
|
|
||||||
echo "entering virtualbox-websrv install section"
|
echo "entering virtualbox-websrv install section"
|
||||||
######################################################
|
|
||||||
pushd out/linux.*/release/bin
|
pushd out/linux.*/release/bin
|
||||||
install -m 755 vboxwebsrv %{buildroot}%{_vbox_instdir}
|
install -m 755 vboxwebsrv %{buildroot}%{_vbox_instdir}
|
||||||
install -m 755 webtest %{buildroot}%{_vbox_instdir}
|
install -m 755 webtest %{buildroot}%{_vbox_instdir}
|
||||||
popd
|
popd
|
||||||
ln -sf %{_unitdir}/vboxweb-service.service %{buildroot}%{_unitdir}/multi-user.target.wants/vboxweb-service.service
|
ln -sf %{_unitdir}/vboxweb-service.service %{buildroot}%{_unitdir}/multi-user.target.wants/vboxweb-service.service
|
||||||
|
|
||||||
#
|
|
||||||
######################################################
|
|
||||||
echo "entering virtualbox-guest-desktop-icons install section"
|
echo "entering virtualbox-guest-desktop-icons install section"
|
||||||
######################################################
|
|
||||||
install -d -m 755 %{buildroot}%{_datadir}/pixmaps/virtualbox
|
install -d -m 755 %{buildroot}%{_datadir}/pixmaps/virtualbox
|
||||||
|
|
||||||
pushd src/VBox/Frontends/VirtualBox/images
|
pushd src/VBox/Frontends/VirtualBox/images
|
||||||
@ -698,28 +679,13 @@ for icon in os_*.png; do
|
|||||||
install -m 644 "$icon" %{buildroot}%{_datadir}/pixmaps/virtualbox/"$icon";
|
install -m 644 "$icon" %{buildroot}%{_datadir}/pixmaps/virtualbox/"$icon";
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
#
|
|
||||||
######################################################
|
|
||||||
# system users and groups
|
|
||||||
|
|
||||||
install -Dm0644 vbox.conf %{buildroot}%{_sysusersdir}/vbox.conf
|
install -Dm0644 vbox.conf %{buildroot}%{_sysusersdir}/vbox.conf
|
||||||
install -Dm0644 vbox-guest-tools.conf %{buildroot}%{_sysusersdir}/vbox-guest-tools.conf
|
install -Dm0644 vbox-guest-tools.conf %{buildroot}%{_sysusersdir}/vbox-guest-tools.conf
|
||||||
######################################################
|
|
||||||
# run fdupes
|
|
||||||
######################################################
|
|
||||||
#run fdupes because we lost link for virtualbox/components directory
|
|
||||||
%fdupes %{buildroot}/%{_vbox_instdir}
|
%fdupes %{buildroot}/%{_vbox_instdir}
|
||||||
#also some translation files are duplicated
|
|
||||||
%fdupes %{buildroot}/%{_datadir}/virtualbox/nls
|
%fdupes %{buildroot}/%{_datadir}/virtualbox/nls
|
||||||
#also some icon files are duplicated
|
|
||||||
%fdupes %{buildroot}/%{_datadir}/pixmaps/virtualbox
|
%fdupes %{buildroot}/%{_datadir}/pixmaps/virtualbox
|
||||||
|
|
||||||
#
|
|
||||||
#
|
|
||||||
######################################################
|
|
||||||
# scriptlets - pre
|
|
||||||
######################################################
|
|
||||||
|
|
||||||
%pre -f vbox.pre
|
%pre -f vbox.pre
|
||||||
%service_add_pre vboxdrv.service vboxautostart-service.service
|
%service_add_pre vboxdrv.service vboxautostart-service.service
|
||||||
|
|
||||||
@ -729,10 +695,6 @@ install -Dm0644 vbox-guest-tools.conf %{buildroot}%{_sysusersdir}/vbox-guest-too
|
|||||||
%pre websrv
|
%pre websrv
|
||||||
%service_add_pre vboxweb-service.service
|
%service_add_pre vboxweb-service.service
|
||||||
|
|
||||||
#######################################################
|
|
||||||
# scriptlets - post
|
|
||||||
#######################################################
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
#setup our sysconfig file /etc/sysconfig/vbox
|
#setup our sysconfig file /etc/sysconfig/vbox
|
||||||
@ -785,10 +747,6 @@ EXTPACK="%{_datadir}/virtualbox/extensions/VNC-%{version}.vbox-extpack"
|
|||||||
ACCEPT="$(tar --to-stdout -xf "${EXTPACK}" ./ExtPack-license.txt | sha256sum | head --bytes=64)"
|
ACCEPT="$(tar --to-stdout -xf "${EXTPACK}" ./ExtPack-license.txt | sha256sum | head --bytes=64)"
|
||||||
VBoxManage extpack install --replace "${EXTPACK}" --accept-license="${ACCEPT}" > /dev/null
|
VBoxManage extpack install --replace "${EXTPACK}" --accept-license="${ACCEPT}" > /dev/null
|
||||||
|
|
||||||
#######################################################
|
|
||||||
# scriptlets preun
|
|
||||||
#######################################################
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun vboxautostart-service.service vboxdrv.service
|
%service_del_preun vboxautostart-service.service vboxdrv.service
|
||||||
|
|
||||||
@ -801,10 +759,6 @@ VBoxManage extpack install --replace "${EXTPACK}" --accept-license="${ACCEPT}" >
|
|||||||
%stop_on_removal vboxweb-service
|
%stop_on_removal vboxweb-service
|
||||||
%service_del_preun vboxweb-service.service
|
%service_del_preun vboxweb-service.service
|
||||||
|
|
||||||
#######################################################
|
|
||||||
# scriptlets postun
|
|
||||||
#######################################################
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
# immediately restarting virtualbox may not work. As such wait for the next reboot to restart
|
# immediately restarting virtualbox may not work. As such wait for the next reboot to restart
|
||||||
@ -820,8 +774,6 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
|||||||
|
|
||||||
%postun websrv
|
%postun websrv
|
||||||
%service_del_postun vboxweb-service.service
|
%service_del_postun vboxweb-service.service
|
||||||
#
|
|
||||||
#######################################################
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.autostart UserManual.pdf README.build
|
%doc README.autostart UserManual.pdf README.build
|
||||||
|
Loading…
Reference in New Issue
Block a user