Fix virtualbox-extension-pack install from SRPM

This commit is contained in:
Silvan Calarco 2014-08-07 14:20:26 +02:00
parent e1c6ee3da4
commit 987bac248d

View File

@ -22,6 +22,7 @@ VirtualBox Extension Pack.
%setup -c -n %{name}-%{version} -T
[ -r /etc/sysconfig/@sysconfigfile@ ] || exit 1
declare -A SRPMVERSION SRPMRELEASE
. /etc/sysconfig/@sysconfigfile@
[ "${VIRTUALBOX_EXTENSION_PACK_PCK}" ] || exit 1
@ -36,6 +37,7 @@ wget -nv --timeout=10 --tries=2 \
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
declare -A SRPMVERSION SRPMRELEASE
. /etc/sysconfig/@sysconfigfile@
install -D -m0644 ${VIRTUALBOX_EXTENSION_PACK_PCK} %{buildroot}/opt/VirtualBox/extension/${VIRTUALBOX_EXTENSION_PACK_PCK}