ant artifacts
build dependencies installed.ant artifacts -Drelease=true
rpmbuild
time (example with 4.0):mkdir -p build/rpmbuild/{BUILD,RPMS,SPECS,SRPMS} rpmbuild --define="version 4.0" \ --define="revision $(date +"%Y%m%d")git$(git rev-parse --short HEAD)%{?dist}" \ --define "_topdir $(pwd)/build/rpmbuild" \ --define "_sourcedir $(pwd)/build" \ -ba redhat/cassandra.spec
Use revision value in the example above for git based snapshots. Change to --define="revision 1"
for non-snapshot releases.
ls -l build/rpmbuild/{SRPMS,RPMS}/