virtualbox-extension-pack: support for 5.0.2 and for autoupdate
This commit is contained in:
parent
474169a815
commit
c2cac1a9ba
@ -40,7 +40,7 @@ wget -nv --timeout=10 --tries=2 \
|
|||||||
declare -A SRPMVERSION SRPMRELEASE
|
declare -A SRPMVERSION SRPMRELEASE
|
||||||
. /etc/sysconfig/@sysconfigfile@
|
. /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
|
cp %{S:0} LICENSE
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -48,13 +48,13 @@ cp %{S:0} LICENSE
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
#VBoxManage extpack uninstall Oracle_VM_VirtualBox_Extension_Pack || true
|
#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
|
# not working
|
||||||
:
|
:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%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
|
%doc LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -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`"
|
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
|
SRPMRELEASE["sun-java7"]=1mamba
|
||||||
# virtualbox-extension-pack
|
# 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
|
SRPMRELEASE["virtualbox-extension-pack"]=1mamba
|
||||||
# win32codecs
|
# win32codecs
|
||||||
SRPMVERSION["win32codecs"]=20110131
|
SRPMVERSION["win32codecs"]=20110131
|
||||||
|
Loading…
Reference in New Issue
Block a user