Commit f851aa32 f851aa32f8e12ef18821afab7e50ef67362b30e6 by Nicolas Perriault

Merge pull request #1020 from runswithd6s/master

rpm/build topdir fix for BSD mktemp
2 parents 91b3c248 b88c3783
......@@ -9,7 +9,7 @@ fi
name="casperjs"
name=${name%.spec}
topdir=$(mktemp -d)
topdir=$(mktemp -d "${TMPDIR:-/tmp}/${name}-build-XXXXXX")
# Get version from package.json
version=$(grep '"version"' ../package.json | sed 's/.*"\(.*\)": "\(.*\)".*/\2/' | sed 's/[-]//')
builddir=${TMPDIR:-/tmp}/${name}-${version}
......