diff options
author | Sumit Bose <sbose@redhat.com> | 2014-07-16 21:43:30 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-09-02 10:39:24 +0200 |
commit | 8a5e793a0576250da80371e53aa3e7eba15cdb63 (patch) | |
tree | 5e0533d309ba63b9f317c57671430e4a79ca7953 /contrib/sssd.spec.in | |
parent | 8cfd1e0d696a573a92ef011a64317b9054f5c45f (diff) | |
download | sssd-8a5e793a0576250da80371e53aa3e7eba15cdb63.tar.gz sssd-8a5e793a0576250da80371e53aa3e7eba15cdb63.tar.xz sssd-8a5e793a0576250da80371e53aa3e7eba15cdb63.zip |
Add conditional build for MIT Kerberos localauth plugin
This patch adds everything what is needed to build the MIT Kerberos
localauth plugin if the used version of MIT Kerberos supports it. It
does not implement the plugin.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'contrib/sssd.spec.in')
-rw-r--r-- | contrib/sssd.spec.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 770a0c7d6..a566a5550 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -5,6 +5,7 @@ %global is_rhel5 %(%{__grep} -c "release 5" /etc/redhat-release) %global rhel5_minor %(%{__grep} -o "5.[0-9]*" /etc/redhat-release |%{__sed} -s 's/5.//') +%global rhel7_minor %(%{__grep} -o "7.[0-9]*" /etc/redhat-release |%{__sed} -s 's/7.//') %if 0%{?is_rhel5} > 0 # we don't want to provide private python extension libs @@ -48,6 +49,10 @@ %global with_cifs_utils_plugin_option --disable-cifs-idmap-plugin %endif +%if (0%{?fedora} >= 21 || (0%{?rhel} == 7 && 0%{?rhel7_minor} >= 1)) + %global with_krb5_localauth_plugin 1 +%endif + Name: @PACKAGE_NAME@ Version: @PACKAGE_VERSION@ Release: 0@PRERELEASE_VERSION@%{?dist} @@ -113,7 +118,11 @@ BuildRequires: pcre-devel BuildRequires: libxslt BuildRequires: libxml2 BuildRequires: docbook-style-xsl +%if (0%{?with_krb5_localauth_plugin} == 1) +BuildRequires: krb5-devel >= 1.12 +%else BuildRequires: krb5-devel +%endif BuildRequires: c-ares-devel BuildRequires: python-devel BuildRequires: check-devel @@ -746,6 +755,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/cifs-utils/cifs_idmap_sss.so %ghost %{_sysconfdir}/cifs-utils/idmap-plugin %endif +%if (0%{?with_krb5_localauth_plugin} == 1) +%{_libdir}/%{name}/modules/sssd_krb5_localauth_plugin.so +%endif %{_mandir}/man8/pam_sss.8* %{_mandir}/man8/sssd_krb5_locator_plugin.8* |