Problems when try to make rpm package using rpmbuild.sh

Hi,

When try to make RPM package using rpmbuild.sh, the scripts return below message.

$ ./misc/packaging/rpmbuild.sh 
Building ninja RPMs..
Ver: 1.0, Release: 0573656git
/var/tmp/rpm-tmp.31856: line 23: cd: /home/jpereira/blocket/ninja/rpm-build/BUILD: NHi,

When try to make RPM package using rpmbuild.sh, the scripts return below message.

$ ./misc/packaging/rpmbuild.sh 
Building ninja RPMs..
Ver: 1.0, Release: 0573656git
o such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.31856 (%prep)
Bad exit status from /var/tmp/rpm-tmp.31856 (%prep)
$ /var/tmp/rpm-tmp.31856: line 23: cd: /home/jpereira/blocket/ninja/rpm-build/BUILD: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.31856 (%prep)
Bad exit status from /var/tmp/rpm-tmp.31856 (%prep)

$