All that you need to build CentOS RPMs for:
- ElasticSearch 0.90.9
- Logstash 1.3.3
- Kibana 3.0.0
More info: Set Up an RPM Build Environment.
yum install rpm-build make gcc
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
Another way:
yum install rpmdevtools
rpmdev-setuptree
mkdir ~/temp
cd ~/temp/
git clone https://github.com/dreadatour/logstash-specs.git
cp -vr ~/temp/logstash-specs/elasticsearch/* ~/rpmbuild/
cd ~/rpmbuild/
rpmbuild -v -bb SPECS/elasticsearch.spec
Result RPM:
ls ~/rpmbuild/RPMS/x86_64/elasticsearch-0.90.9-1.el6.x86_64.rpm
cp -vr ~/temp/logstash-specs/logstash/* ~/rpmbuild/
cd ~/rpmbuild/
rpmbuild -v -bb SPECS/logstash.spec
Result RPM:
ls ~/rpmbuild/RPMS/x86_64/logstash-1.3.3-1.el6.x86_64.rpm
cp -vr ~/temp/logstash-specs/kibana/* ~/rpmbuild/
cd ~/rpmbuild/
rpmbuild -v -bb SPECS/kibana.spec
Result RPM:
ls ~/rpmbuild/RPMS/x86_64/kibana-3.0.0milestone5-1.el6.x86_64.rpm