summaryrefslogtreecommitdiffstats
path: root/contrib/sssd.spec.in
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-03-06 10:35:51 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-03-08 13:39:03 -0500
commit5697e7ff35de81fd60a22abf0f7f2719c49535fc (patch)
tree4cdc0ac87e39cb4eaa1693c2631d8e0609098307 /contrib/sssd.spec.in
parentde9b723da178ab5022c02d88498c9c494aa75a87 (diff)
downloadsssd-5697e7ff35de81fd60a22abf0f7f2719c49535fc.tar.gz
sssd-5697e7ff35de81fd60a22abf0f7f2719c49535fc.tar.xz
sssd-5697e7ff35de81fd60a22abf0f7f2719c49535fc.zip
Prune python provides correctly
Diffstat (limited to 'contrib/sssd.spec.in')
-rw-r--r--contrib/sssd.spec.in13
1 files changed, 8 insertions, 5 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index 27a13bb09..ec09fb549 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -3,15 +3,18 @@
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
+%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
# we don't want to provide private python extension libs
%{?filter_setup:
-%filter_provides_in %{python_sitearch}/.*\.so$
+%filter_provides_in %{python_sitearch}/.*\.so$
%filter_setup
}
-
-%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
+%else
+# Fedora and RHEL 6+
+# we don't want to provide private python extension libs
+%define __provides_exclude_from %{python_sitearch}/.*\.so$
%endif
%if (0%{?enable_experimental} == 1)