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