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