summaryrefslogtreecommitdiffstats
path: root/contrib/sssd.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/sssd.spec.in')
-rw-r--r--contrib/sssd.spec.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index 18e2ef569..8bc51148f 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -11,6 +11,7 @@
%if (0%{?rhel} == 5)
%{!?is_rhel57: %global is_rhel57 %(%{__grep} -c "5\.[^0-6]" /etc/redhat-release)}
+%global with_unicode_lib --with-unicode-lib=glib2
%endif
# Determine the location of the LDB modules directory
@@ -93,9 +94,14 @@ BuildRequires: libnl-devel
BuildRequires: nscd
BuildRequires: gettext-devel
BuildRequires: pkgconfig
-BuildRequires: libunistring-devel
BuildRequires: findutils
+%if 0%{?rhel} == 5
+BuildRequires: glib2-devel
+%else
+BuildRequires: libunistring-devel
+%endif
+
%description
Provides a set of daemons to manage access to remote directories and
authentication mechanisms. It provides an NSS and PAM interface toward
@@ -176,7 +182,8 @@ autoreconf -ivf
--enable-nsslibdir=/%{_lib} \
--enable-pammoddir=/%{_lib}/security \
--disable-static \
- --disable-rpath
+ --disable-rpath \
+ %{with_unicode_lib}
make %{?_smp_mflags} all