summaryrefslogtreecommitdiff
path: root/support-files/mysql.spec.sh
diff options
context:
space:
mode:
authorBjorn Munch <bjorn.munch@oracle.com>2012-06-08 16:31:03 +0200
committerBjorn Munch <bjorn.munch@oracle.com>2012-06-08 16:31:03 +0200
commitd74c3df6ce335a5febbc49530b5e43625b68352d (patch)
tree7c94a025c25020a66def3f0313469e451f2545f5 /support-files/mysql.spec.sh
parent164080e4a8ec5ebb6b466eafe82bfa90e4a59fc0 (diff)
downloadmariadb-git-d74c3df6ce335a5febbc49530b5e43625b68352d.tar.gz
Backport SuSE 11 fix to RPM spec file
Diffstat (limited to 'support-files/mysql.spec.sh')
-rw-r--r--support-files/mysql.spec.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh
index a3d8554188e..5b9a296d90a 100644
--- a/support-files/mysql.spec.sh
+++ b/support-files/mysql.spec.sh
@@ -176,7 +176,7 @@
%endif
%else
%if %(test -f /etc/SuSE-release && echo 1 || echo 0)
- %define susever %(rpm -qf --qf '%%{version}\\n' /etc/SuSE-release)
+ %define susever %(rpm -qf --qf '%%{version}\\n' /etc/SuSE-release | cut -d. -f1)
%if "%susever" == "10"
%define distro_description SUSE Linux Enterprise Server 10
%define distro_releasetag sles10