renew buildrpm.sh with v1.7 version