Perform the following on a build box as root.
yum install rpmdevtools
rpmdev-setuptree
yum groupinstall 'Development Tools'
cd /tmp
wget http://github.com/antirez/redis/tarball/v1.3.9
tar -xzf antirez-redis-v1.3.9-0-gd4dd655.tar.gz
mv antirez-redis-d495a77 redis-1.3.9
tar -czf redis-1.3.9.tar.gz redis-1.3.9
cp redis-1.3.9.tar.gz ~/rpmbuild/SOURCES/
git clone git://github.com/causes/redis-centos.git
cp redis-centos/conf/redis.conf ~/rpmbuild/SOURCES/
cp redis-centos/spec/redis.spec ~/rpmbuild/SPECS/
cd ~/rpmbuild/
rpmbuild -ba SPECS/redis.spec
The resulting RPM will be:
~/rpmbuild/RPMS/x86_64/redis-1.3.9-1.x86_64.rpm
Based on the redis.spec
file from Jason Priebe, found on Google Code.