Perform the following on a build box as a regular user.
Install rpmdevtools from the EPEL repository:
sudo yum install rpmdevtools
rpmdev-setuptree
sudo yum groupinstall 'Development Tools'
wget http://redis.googlecode.com/files/redis-2.6.8.tar.gz
mv redis-2.6.8.tar.gz ~/rpmbuild/SOURCES/
git clone git://github.com/bluerail/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.6.8-1.{arch}.rpm
Based on the redis.spec
file from Jason Priebe.
Maintained by Martijn Storck