sssd.spec.in revision 2344d7f71dd80618a41745b0818b46895fa61b2c
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose%global rhel7_minor %(%{__grep} -o "7.[0-9]*" /etc/redhat-release |%{__sed} -s 's/7.//')
1f7573f8c74ff0f488a15969caed13034a95bd0fStephen Gallagher# Fedora and RHEL 6+
1f7573f8c74ff0f488a15969caed13034a95bd0fStephen Gallagher# we don't want to provide private python extension libs
1f7573f8c74ff0f488a15969caed13034a95bd0fStephen Gallagher%define __provides_exclude_from %{python_sitearch}/.*\.so$
2344d7f71dd80618a41745b0818b46895fa61b2cLukas Slebodnik%if (0%{?fedora} || 0%{?rhel} >= 7)
4eafef4572f4e5ff6b589c80db0b9417724f229fJan Cholasta %global use_systemd 1
4eafef4572f4e5ff6b589c80db0b9417724f229fJan Cholasta%if (0%{?use_systemd} == 1)
4eafef4572f4e5ff6b589c80db0b9417724f229fJan Cholasta %global with_initscript --with-initscript=systemd --with-systemdunitdir=%{_unitdir}
b96988a35bfb5f6faf2e364ae966166398afeca3Stephen Gallagher %global with_syslog --with-syslog=journald
4eafef4572f4e5ff6b589c80db0b9417724f229fJan Cholasta %global with_initscript --with-initscript=sysv
a098b26a2a902cfb2968ca44604f61bf000d8413Stephen Gallagher%global enable_experimental 1
78e5b91e6b22efbcd0621144b104ac9dfd487e5bJakub Hrozek%if (0%{?enable_experimental} == 1)
287e76479d68db4134274d4a4fca5fe0fbc9a605Jan Cholasta %global experimental --enable-all-experimental-features
0b52717b76bf306afd30bbeb6d6c619365cfb548Stephen Gallagher# Determine the location of the LDB modules directory
0b52717b76bf306afd30bbeb6d6c619365cfb548Stephen Gallagher%global ldb_modulesdir %(pkg-config --variable=modulesdir ldb)
2344d7f71dd80618a41745b0818b46895fa61b2cLukas Slebodnik%if (0%{?fedora} || 0%{?rhel} >= 7)
12a73062d84fec27536b09fd275ea248d14b93e5Jakub Hrozek%define _hardened_build 1
2344d7f71dd80618a41745b0818b46895fa61b2cLukas Slebodnik%if (0%{?fedora} || 0%{?rhel} >= 7)
c3b1e99007d5f0069fbbd32a3df799d71ea4882eSumit Bose %global with_cifs_utils_plugin 1
c3b1e99007d5f0069fbbd32a3df799d71ea4882eSumit Bose %global with_cifs_utils_plugin_option --disable-cifs-idmap-plugin
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose%if (0%{?fedora} >= 21 || (0%{?rhel} == 7 && 0%{?rhel7_minor} >= 1))
8a5e793a0576250da80371e53aa3e7eba15cdb63Sumit Bose %global with_krb5_localauth_plugin 1