Merge pull request #577 from osterik/feature/build-from-local-folder

build RPM from local folder instead of git repo
This commit is contained in:
Mészáros Mihály 2020-06-24 15:41:33 +02:00 committed by GitHub
commit 97c37d9a5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 11 deletions

View File

@ -5,7 +5,6 @@
TURNVERSION=4.5.1.2
BUILDDIR=~/rpmbuild
ARCH=`uname -p`
TURNSERVER_GIT_URL=https://github.com/coturn/coturn.git
WGETOPTIONS="--no-check-certificate"
RPMOPTIONS="-ivh --force"

View File

@ -18,18 +18,11 @@ fi
# TURN
#create archive from local folder
cd ${BUILDDIR}/tmp
rm -rf turnserver-${TURNVERSION}
git clone ${TURNSERVER_GIT_URL} --branch ${TURNVERSION} turnserver-${TURNVERSION}
ER=$?
if ! [ ${ER} -eq 0 ] ; then
git clone ${TURNSERVER_GIT_URL} turnserver-${TURNVERSION}
ER=$?
if ! [ ${ER} -eq 0 ] ; then
cd ${CPWD}
exit -1
fi
fi
mkdir -p ${BUILDDIR}/tmp/turnserver-${TURNVERSION}
cp -R ${CPWD}/.. ${BUILDDIR}/tmp/turnserver-${TURNVERSION}
tar zcf ${BUILDDIR}/SOURCES/turnserver-${TURNVERSION}.tar.gz turnserver-${TURNVERSION}
ER=$?
@ -38,6 +31,7 @@ if ! [ ${ER} -eq 0 ] ; then
exit -1
fi
#build package from archive
rpmbuild -ta ${BUILDDIR}/SOURCES/turnserver-${TURNVERSION}.tar.gz
ER=$?
if ! [ ${ER} -eq 0 ] ; then