Permalink
Browse files

- Determine RPM_BUILD_DIR from current rpmbuild environment

- Source can be obtained by spectool
  • Loading branch information...
1 parent a0246de commit e57c158ff0cda6934730b0e7053284638f30d5b8 @kazuhisya committed Oct 22, 2013
Showing with 1 addition and 4 deletions.
  1. +1 −4 build.sh
View
@@ -1,16 +1,13 @@
#!/bin/bash
set -e
-RPMBUILD_DIR=${RPMBUILD_DIR:-$HOME/buildrpm}
-NODEJS_VERSION=${NODEJS_VERSION:-v0.10.20}
-NODEJS_SRC=${NODEJS_SRC:-http://nodejs.org/dist/$NODEJS_VERSION/node-$NODEJS_VERSION.tar.gz}
+RPMBUILD_DIR=`rpm --eval %{_topdir}`
pushd `dirname $0` > /dev/null
NODEJSRPM_DIR=$(pwd)
popd > /dev/null
cd $RPMBUILD_DIR/SOURCES
-wget $NODEJS_SRC
cp $NODEJSRPM_DIR/*.patch .
cd -

0 comments on commit e57c158

Please sign in to comment.