Fix virtualbox-extension-pack install from SRPM
This commit is contained in:
parent
e1c6ee3da4
commit
987bac248d
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user