summaryrefslogtreecommitdiff
path: root/packaging/RHEL
diff options
context:
space:
mode:
authorKarolin Seeger <kseeger@samba.org>2012-09-18 11:08:17 +0200
committerKarolin Seeger <kseeger@samba.org>2012-09-18 12:51:00 +0200
commit6fb91dd36950151aeec69c074f4d900a6e7adba1 (patch)
tree3a2860b102e3b9d01c87d125997756d238fb50a5 /packaging/RHEL
parent2a7484eb7286a6896826ad1ed15aa7b1760a451c (diff)
downloadsamba-6fb91dd36950151aeec69c074f4d900a6e7adba1.tar.gz
samba-6fb91dd36950151aeec69c074f4d900a6e7adba1.tar.bz2
samba-6fb91dd36950151aeec69c074f4d900a6e7adba1.zip
RHEL packaging: Try to fix makerpms.sh on RHEL.
Address bug #9165 - makerpms.sh can't create package fo RHEL. Karolin Autobuild-User(master): Karolin Seeger <kseeger@samba.org> Autobuild-Date(master): Tue Sep 18 12:51:01 CEST 2012 on sn-devel-104
Diffstat (limited to 'packaging/RHEL')
-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 152bad7b99..adbc6dfb65 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