INACTIVE - A simple recipe for packaging Redis as an RPM for CentOS.
Перейти к файлу
Jay Adkisson 77650db876 pidfile fixes 2010-05-28 08:46:43 -07:00
conf First stab. 2010-05-05 09:31:59 -07:00
spec pidfile fixes 2010-05-28 08:46:43 -07:00
LICENSE First there was the LICENSE. 2010-05-05 08:45:05 -07:00
README.markdown Require manual Redis download. 2010-05-05 10:04:11 -07:00

README.markdown

A Recipe for a Redis RPM on CentOS

Perform the following on a build box as root.

Create an RPM Build Environment

yum install rpmdevtools
rpmdev-setuptree

Install Prerequisites for RPM Creation

yum groupinstall 'Development Tools'

Download Redis

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/

Get Necessary System-specific Configs

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/

Build the RPM

cd ~/rpmbuild/
rpmbuild -ba SPECS/redis.spec

The resulting RPM will be:

~/rpmbuild/RPMS/x86_64/redis-1.3.9-1.x86_64.rpm

Credits

Based on the redis.spec file from Jason Priebe, found on Google Code.