Commit b88c3783 b88c378336b2a0fbd3d0101beec0ca9bf96b75e3 by Chad Walstrom

rpm/build topdir fix for BSD mktemp

BSD mktemp needs an argument to provide an appropriate path.
1 parent 91b3c248
......@@ -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}
......