virtualbox-extension-pack: support for 5.0.2 and for autoupdate

This commit is contained in:
Silvan Calarco 2015-08-26 15:15:45 +02:00
parent 474169a815
commit c2cac1a9ba
2 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ wget -nv --timeout=10 --tries=2 \
declare -A SRPMVERSION SRPMRELEASE
. /etc/sysconfig/@sysconfigfile@
install -D -m0644 ${VIRTUALBOX_EXTENSION_PACK_PCK} %{buildroot}/opt/VirtualBox/extension/${VIRTUALBOX_EXTENSION_PACK_PCK}
install -D -m0644 ${VIRTUALBOX_EXTENSION_PACK_PCK} %{buildroot}%{_libdir}/VirtualBox/extension/${VIRTUALBOX_EXTENSION_PACK_PCK}
cp %{S:0} LICENSE
%clean
@ -48,13 +48,13 @@ cp %{S:0} LICENSE
%post
#VBoxManage extpack uninstall Oracle_VM_VirtualBox_Extension_Pack || true
VBoxManage extpack install /opt/VirtualBox/extension/Oracle_VM_VirtualBox_Extension_Pack-%{pck_majver}%{?pck_minver:%pck_minver}.vbox-extpack --replace
VBoxManage extpack install %{_libdir}/VirtualBox/extension/Oracle_VM_VirtualBox_Extension_Pack-%{pck_majver}%{?pck_minver:%pck_minver}.vbox-extpack --replace
# not working
:
%files
%defattr(-,root,root)
/opt/VirtualBox/extension/Oracle_VM_VirtualBox_Extension_Pack-%{pck_majver}%{?pck_minver:%pck_minver}.vbox-extpack
%{_libdir}/VirtualBox/extension/Oracle_VM_VirtualBox_Extension_Pack-%{pck_majver}%{?pck_minver:%pck_minver}.vbox-extpack
%doc LICENSE
%changelog

View File

@ -17,7 +17,7 @@ SRPMRELEASE["spotify"]=1mamba
SRPMVERSION["sun-java7"]="`curl -s http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html|grep "Linux x86.*i586.tar.gz"|tail -n1|sed "s|.*/java/jdk/\(.*\)/jdk-.*|\1|;s|-|_|" 2>/dev/null`"
SRPMRELEASE["sun-java7"]=1mamba
# virtualbox-extension-pack
SRPMVERSION["virtualbox-extension-pack"]=4.3.20
SRPMVERSION["virtualbox-extension-pack"]="`rpm -q VirtualBox 2>/dev/null| cut -d- -f2`"
SRPMRELEASE["virtualbox-extension-pack"]=1mamba
# win32codecs
SRPMVERSION["win32codecs"]=20110131