Perform the following on a build box as root.
sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
sudo yum install rpmdevtools
rpmdev-setuptree
sudo yum groupinstall 'Development Tools'
cd /tmp
wget http://redis.googlecode.com/files/redis-2.2.12.tar.gz
cp redis-2.2.12.tar.gz ~/rpmbuild/SOURCES/
git clone git://github.com/shamil/redis-centos.git
cp redis-centos/conf/* ~/rpmbuild/SOURCES/
cp redis-centos/spec/* ~/rpmbuild/SPECS/
cd ~/rpmbuild/
rpmbuild -ba SPECS/redis.spec
The resulting RPM will be:
~/rpmbuild/RPMS/x86_64/redis-2.2.12-1.x86_64.rpm
Based on the redis.spec
file from Jason Priebe, found on Google Code.