Support the automatic build of the package on the OBS environment, and fix the original script. (cherry picked from commit d1efec0290b64469b006af30083bf303c9d86dda)