1. as root 
# ./prepare_as_root.sh

2. as root
# ./build_libchewing.sh
# install the libchewing and libchewing-devel package.

3. as normal user
% ./build_rpm.sh
