modify spec and build script