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