skype.spec: fix upstream download file name change; let tar autodetect compression format
This commit is contained in:
parent
c5a3f00931
commit
727e2517eb
@ -38,15 +38,11 @@ tmpdir=$(mktemp -q -d -t skype.XXXXXXXX)
|
|||||||
|
|
||||||
wget -nv --timeout=10 --tries=2 \
|
wget -nv --timeout=10 --tries=2 \
|
||||||
${SKYPE_URL}${SKYPE_PCK} -P ${tmpdir}
|
${SKYPE_URL}${SKYPE_PCK} -P ${tmpdir}
|
||||||
|
|
||||||
SKYPE_ARCHIVE="`ls ${tmpdir}/skype-*`"
|
SKYPE_ARCHIVE="`ls ${tmpdir}/*skype-* 2>/dev/null`"
|
||||||
[ -f ${SKYPE_ARCHIVE} ] || exit 1
|
[ -f ${SKYPE_ARCHIVE} ] || exit 1
|
||||||
|
|
||||||
if [ `echo ${SKYPE_ARCHIVE} | grep "tar.bz2$"` ]; then
|
tar xf ${SKYPE_ARCHIVE} --strip-components=1
|
||||||
tar xjf ${SKYPE_ARCHIVE} --strip-components=1
|
|
||||||
else
|
|
||||||
tar xzf ${SKYPE_ARCHIVE} --strip-components=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
%build -q
|
%build -q
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user