summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2011-05-06 14:31:30 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-05-06 10:24:37 -0400
commitbfbf5cb0f00c60c0f000f56c282377b13b9a89ab (patch)
treef549ede04872bc13912cfdbe9b86eabc473117cb /contrib
parentd818283d39d56204ffe710b6c9b83a2cf497f946 (diff)
downloadsssd-bfbf5cb0f00c60c0f000f56c282377b13b9a89ab.tar.gz
sssd-bfbf5cb0f00c60c0f000f56c282377b13b9a89ab.tar.bz2
sssd-bfbf5cb0f00c60c0f000f56c282377b13b9a89ab.zip
Add support for openldap24 package on RHEL 5.7
Diffstat (limited to 'contrib')
-rw-r--r--contrib/sssd.spec.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index d5343697..2bd67746 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -3,6 +3,10 @@
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
+%if (0%{?rhel} == 5)
+%{!?is_rhel57: %global is_rhel57 %(%{__grep} -c "5\.[^0-6]" /etc/redhat-release)}
+%endif
+
# Determine the location of the LDB modules directory
%global ldb_modulesdir %(pkg-config --variable=modulesdir ldb)
@@ -57,7 +61,11 @@ BuildRequires: libcollection-devel
BuildRequires: libini_config-devel
BuildRequires: dbus-devel
BuildRequires: dbus-libs
+%if 0%{?is_rhel57} > 0
+BuildRequires: openldap24-libs-devel
+%else
BuildRequires: openldap-devel
+%endif
BuildRequires: pam-devel
BuildRequires: nss-devel
BuildRequires: nspr-devel