diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-03-06 10:35:51 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-03-08 13:39:08 -0500 |
commit | 1f7573f8c74ff0f488a15969caed13034a95bd0f (patch) | |
tree | b82eb6d05222ccae2eb825a5056c80461181009b | |
parent | 65976ea5e9767bfaced81dfb97dc87d59f50b57e (diff) | |
download | sssd-1f7573f8c74ff0f488a15969caed13034a95bd0f.tar.gz sssd-1f7573f8c74ff0f488a15969caed13034a95bd0f.tar.bz2 sssd-1f7573f8c74ff0f488a15969caed13034a95bd0f.zip |
Prune python provides correctly
-rw-r--r-- | contrib/sssd.spec.in | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 27a13bb0..ec09fb54 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) |