rpmdev-newspec: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/rpmdev-newspec - from package: rpmdevtools

You may install the required package with command yum install {package}
Error in other languages:
rpmdev-newspec: bevel nie gevind nie
rpmdev-newspec: comandă negăsită
rpmdev-newspec: comando não encontrado
rpmdev-newspec: commande introuvable
rpmdev-newspec: command not found
rpmdev-newspec: käsku ei ole
rpmdev-newspec: không tìm thấy lệnh
rpmdev-newspec: komanda nerasta
rpmdev-newspec: Kommando nicht gefunden.
rpmdev-newspec: kommandot finns inte
rpmdev-newspec: komut yok
rpmdev-newspec: nie znaleziono polecenia
rpmdev-newspec: níor aimsíodh an t-ordú
rpmdev-newspec: no se encontró la orden
rpmdev-newspec: no s'ha trobat l'ordre
rpmdev-newspec: opdracht niet gevonden
rpmdev-newspec: parancs nem található
rpmdev-newspec: perintah tidak ditemukan
rpmdev-newspec: príkaz nenájdený
rpmdev-newspec: příkaz nenalezen
rpmdev-newspec: команда не найдена
rpmdev-newspec: командата не е открита
rpmdev-newspec: 命令找不到
rpmdev-newspec: コマンドが見つかりません