1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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
(cherry picked from commit 1d471ee393)
(cherry picked from commit b0e5fb69df)
This commit is contained in:
Karolin Seeger 2011-11-17 21:23:09 +01:00
parent 05fe61923f
commit 5d9035608c

View File

@ -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}