CentOS 7
# yum -y groupinstall "Development Tools"
# yum install rpmdevtools
# rpmdev-setuptree