- Create RPMBUILD directory structure : http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- Download the current release http://code.google.com/p/logwarn/downloads/detail?name=logwarn-1.0.10.tar.gz&can=2&q=
wget -O ~/rpmbuild/SOURCES/logwarn-1.0.10.tar.gz http://logwarn.googlecode.com/files/logwarn-1.0.10.tar.gz
- Extract the contents of the download
cd /tmp && tar -vzxf ~/rpmbuild/SOURCES/logwarn-1.0.10.tar.gz
- Build logwarn to create the SPEC file
cd logwarn-1.0.10 && ./configure && make
- Build the rpm
rpmbuild -ba logwarn.spec
- You now have rpms and srpms to use
find ~/rpmbuild/RPMS find ~/rpmbuild/SRPMS