Skip to content

Instantly share code, notes, and snippets.

@pfiled
Created September 18, 2012 20:13
Show Gist options
  • Save pfiled/3745562 to your computer and use it in GitHub Desktop.
Save pfiled/3745562 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ $# -eq 0 ]
then
echo "Usage: build-node-rpm.sh v0.0.0"
exit 1
fi
sudo yum install rpmdevtools gcc-c++ openssl-devel libstdc++-devel zlib-devel
cd $HOME
rpmdev-setuptree
cd rpmbuild/SOURCES
wget http://nodejs.org/dist/${1}/node-${1}.tar.gz
cd $HOME
git clone https://github.com/kazuhisya/nodejs-rpm.git
cd nodejs-rpm
git checkout ${1}
rpmbuild -ba --clean nodejs.spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment