source: http://www.city-fan.org/tips/CreateRPMBuildEnvironment
~/.rpmmacros :
%_topdir %(echo $HOME)/rpmbuild
%_smp_mflags -j2
%packager Nicolas Melin <nicolas@myemailprovider.org>
%vendor octant.org
# yum install rpm-build
$ cd ~
$ mkdir rpmbuild
$ cd rpmbuild
$ mkdir RPMS SOURCES SPECS SRPMS BUILD
$ cd ~
$ rpmbuild --rebuild program.src.rpm