From 1d471ee393b0a0c1f9cc4256217acabcd98a5dbf Mon Sep 17 00:00:00 2001 From: Karolin Seeger Date: Thu, 17 Nov 2011 21:23:09 +0100 Subject: s3/packaging: Fix rpm build issues on RHEL4. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Autobuild-Date: Fri Nov 18 22:13:06 CET 2011 on sn-devel-104 --- packaging/RHEL/samba.spec.tmpl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'packaging') 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} -- cgit