summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorKarolin Seeger <kseeger@samba.org>2011-11-17 21:23:09 +0100
committerKarolin Seeger <kseeger@samba.org>2011-11-18 22:13:06 +0100
commit1d471ee393b0a0c1f9cc4256217acabcd98a5dbf (patch)
treef80398168e3eb2adb48db2b35004cf117187ef70 /packaging
parent20df0f34a8670f0dd5f3eaeb74af900f535bbe01 (diff)
downloadsamba-1d471ee393b0a0c1f9cc4256217acabcd98a5dbf.tar.gz
samba-1d471ee393b0a0c1f9cc4256217acabcd98a5dbf.tar.bz2
samba-1d471ee393b0a0c1f9cc4256217acabcd98a5dbf.zip
s3/packaging: Fix rpm build issues on RHEL4.
Second part of a fix for bug #7705 (RHEL samba.spec broken - and fix). Based on patches of Jason Haar and Daniƫl van Eeden. Thanks a lot! Karolin Autobuild-User: Karolin Seeger <kseeger@samba.org> Autobuild-Date: Fri Nov 18 22:13:06 CET 2011 on sn-devel-104
Diffstat (limited to 'packaging')
-rw-r--r--packaging/RHEL/samba.spec.tmpl14
1 files changed, 13 insertions, 1 deletions
diff --git a/packaging/RHEL/samba.spec.tmpl b/packaging/RHEL/samba.spec.tmpl
index 505b1ea1ca..152bad7b99 100644
--- a/packaging/RHEL/samba.spec.tmpl
+++ b/packaging/RHEL/samba.spec.tmpl
@@ -1,5 +1,11 @@
%define initdir %{_sysconfdir}/rc.d/init.d
%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)
+%else
+%define rhel_ver 0
+%endif
Summary: Samba SMB client and server
Vendor: Samba Team
@@ -28,7 +34,13 @@ Provides: samba = %{version}
Prefix: /usr
BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: pam-devel, readline-devel, fileutils, libacl-devel, openldap-devel, krb5-devel, cups-devel, keyutils-devel
+BuildRequires: pam-devel, readline-devel, fileutils, libacl-devel, openldap-devel, krb5-devel, cups-devel
+
+%if %{rhel_ver} > 4
+BuildRequires: keyutils-libs-devel
+%else
+BuildRequires: keyutils-devel
+%endif
# Working around perl dependency problem from docs
%define __perl_requires %{SOURCE998}