summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmake-dist13
1 files changed, 13 insertions, 0 deletions
diff --git a/make-dist b/make-dist
index f2626871534..22bf2c98c00 100755
--- a/make-dist
+++ b/make-dist
@@ -168,6 +168,19 @@ echo "including src/.git_version, ceph.spec"
(git rev-parse HEAD ; echo $version) 2> /dev/null > src/.git_version
+if [ -r /etc/os-release ]; then
+ source /etc/os-release
+ case $ID in
+ opensuse*|suse|sles)
+ if [ "x$rpm_release" != "x0" ] ; then
+ rpm_release=$(echo $rpm_release | sed 's/.g/+g/')
+ rpm_version="${rpm_version}.${rpm_release}"
+ rpm_release="0"
+ fi
+ ;;
+ esac
+fi
+
for spec in ceph.spec.in; do
cat $spec |
sed "s/@PROJECT_VERSION@/$rpm_version/g" |