[opensuse-packaging] combine shell script and .spec file into one .spec file to do the whole job.