Check how to build the rpm package from existing packages
$ tar -zcvf ~/wget.tar.gz /usr/bin/wget
$ rpm -bb wget.spec
I got message like below, my questions is why line mkdir /home/larry/rpmbuild/BUILDROOT/wget-1.12-1.x86_64
is executed automatically
Since in the redhat 6.4 docker container, the folder will not be created automatically