Revert "Some changes that enabled an rpm to be generated inside centos docker"

This reverts commit c0b0ffadbf0c1b72dff502657647e4e9d44ef020.
Some changes that enabled an rpm to be generated inside centos docker