From c2cac1a9bae2ede8ac1ac96854f267a5ab33b953 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 26 Aug 2015 15:15:45 +0200 Subject: [PATCH] virtualbox-extension-pack: support for 5.0.2 and for autoupdate --- .../virtualbox-extension-pack.spec.in | 6 +++--- SRPMSVERSIONS | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SRPMS/virtualbox-extension-pack/virtualbox-extension-pack.spec.in b/SRPMS/virtualbox-extension-pack/virtualbox-extension-pack.spec.in index b86d4f9..8725ede 100644 --- a/SRPMS/virtualbox-extension-pack/virtualbox-extension-pack.spec.in +++ b/SRPMS/virtualbox-extension-pack/virtualbox-extension-pack.spec.in @@ -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 diff --git a/SRPMSVERSIONS b/SRPMSVERSIONS index 8a870ad..6d60a6a 100644 --- a/SRPMSVERSIONS +++ b/SRPMSVERSIONS @@ -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