summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-02-14 15:11:08 -0500
committerSimo Sorce <ssorce@redhat.com>2011-02-14 17:01:32 -0500
commit0b52717b76bf306afd30bbeb6d6c619365cfb548 (patch)
tree0727aa81663132bb38ea3b177e09e447088b47da
parent42c9b53e98258c44839cf1c873ccdb8577a72bb0 (diff)
downloadsssd-0b52717b76bf306afd30bbeb6d6c619365cfb548.tar.gz
sssd-0b52717b76bf306afd30bbeb6d6c619365cfb548.tar.bz2
sssd-0b52717b76bf306afd30bbeb6d6c619365cfb548.zip
Detect the proper location for memberof.so
-rw-r--r--contrib/sssd.spec.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index 31aa2989..b439dd4d 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -3,6 +3,9 @@
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
+# Determine the location of the LDB modules directory
+%global ldb_modulesdir %(pkg-config --variable=modulesdir ldb)
+
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 0@PRERELEASE_VERSION@%{?dist}
@@ -74,6 +77,7 @@ BuildRequires: keyutils-libs-devel
BuildRequires: libnl-devel
BuildRequires: nscd
BuildRequires: gettext-devel
+BuildRequires: pkgconfig
%description
Provides a set of daemons to manage access to remote directories and
@@ -152,7 +156,7 @@ install -m644 src/examples/rwtab $RPM_BUILD_ROOT%{_sysconfdir}/rwtab.d/sssd
rm -f \
$RPM_BUILD_ROOT/%{_lib}/libnss_sss.la \
$RPM_BUILD_ROOT/%{_lib}/security/pam_sss.la \
- $RPM_BUILD_ROOT/%{_libdir}/ldb/memberof.la \
+ $RPM_BUILD_ROOT/%{ldb_modulesdir}/memberof.la \
$RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_ldap.la \
$RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_proxy.la \
$RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_krb5.la \
@@ -192,7 +196,7 @@ rm -rf $RPM_BUILD_ROOT
%{_sbindir}/sssd
%{_libexecdir}/%{servicename}/
%{_libdir}/%{name}/
-%{_libdir}/ldb/memberof.so
+%{ldb_modulesdir}/memberof.so
%dir %{sssdstatedir}
%attr(700,root,root) %dir %{dbpath}
%attr(755,root,root) %dir %{pipepath}