fix build-rpm.sh and add install-noarch-rpm.sh