From 6fb91dd36950151aeec69c074f4d900a6e7adba1 Mon Sep 17 00:00:00 2001 From: Karolin Seeger Date: Tue, 18 Sep 2012 11:08:17 +0200 Subject: 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 Autobuild-Date(master): Tue Sep 18 12:51:01 CEST 2012 on sn-devel-104 --- packaging/RHEL/samba.spec.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging') 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 -- cgit