summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-01-08 14:32:17 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-12-12 07:48:46 -0500
commit28df99206c8d868382c530b028cf238f07d047c9 (patch)
treebbc82341e3698df5ceb784a0912853f5e09a3104
parent440d7fb430f83b3547f98f79c67a232ab2220296 (diff)
downloadsssd-28df99206c8d868382c530b028cf238f07d047c9.tar.gz
sssd-28df99206c8d868382c530b028cf238f07d047c9.tar.bz2
sssd-28df99206c8d868382c530b028cf238f07d047c9.zip
Update spec file to build with Glib on RHEL 5
-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 18e2ef56..8bc51148 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