From 28df99206c8d868382c530b028cf238f07d047c9 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 8 Jan 2010 14:32:17 -0500 Subject: Update spec file to build with Glib on RHEL 5 --- contrib/sssd.spec.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'contrib/sssd.spec.in') 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 -- cgit