diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/sssd.spec.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index d5343697d..2bd67746f 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 |