mirror of https://github.com/ceph/ceph
make-dist: add OBS-specific release suffix on SUSE
This is needed to prevent OBS from overriding the nice release number generated by make-dist. For more information, see https://en.opensuse.org/openSUSE:Build_Service_Tips_and_Tricks#How_to_control_a_Release_number_of_resulted_packages Signed-off-by: Nathan Cutler <ncutler@suse.com>
This commit is contained in:
parent
fab20559e7
commit
ca6c92b3ec
|
@ -96,6 +96,14 @@ for spec in ceph.spec.in alpine/APKBUILD.in; do
|
|||
sed "s/@RPM_RELEASE@/$rpm_release/g" |
|
||||
sed "s/@TARBALL_BASENAME@/ceph-$version/g" > `echo $spec | sed 's/.in$//'`
|
||||
done
|
||||
|
||||
. /etc/os-release
|
||||
case $ID in
|
||||
opensuse|suse|sles)
|
||||
sed -i -e "s/^Release:.*/&.<B_CNT>/" ceph.spec
|
||||
;;
|
||||
esac
|
||||
|
||||
ln -s . $outfile
|
||||
tar cvf $outfile.version.tar $outfile/src/.git_version $outfile/ceph.spec $outfile/alpine/APKBUILD
|
||||
# NOTE: If you change this version number make sure the package is available
|
||||
|
|
Loading…
Reference in New Issue