Improve spec file to build on 32/64 machines

It also avoids build failure due to build id note absence in wrapper
binaries. And it stops the unnecessary and time consuming jar repack.