(cherry picked from commit a2f5c4f02acc44014e2c26e6c030db1e2d91ae92)
(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)