summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/RHEL/samba.spec.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/RHEL/samba.spec.tmpl b/packaging/RHEL/samba.spec.tmpl
index 152bad7b99d..adbc6dfb65f 100644
--- a/packaging/RHEL/samba.spec.tmpl
+++ b/packaging/RHEL/samba.spec.tmpl
@@ -2,7 +2,7 @@
%define auth %(test -f /etc/pam.d/system-auth && echo /etc/pam.d/system-auth || echo)
%define this_is_redhat %(test -e /etc/redhat-release && echo 1 || echo 0)
%if %{this_is_redhat} > 0
-%define rhel_ver %(lsb_release -sr)
+%define rhel_ver %(grep "release" /etc/redhat-release | sed %"s/^[^0-9]*\\([0-9]*\\).*/\\1/g")
%else
%define rhel_ver 0
%endif