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