diff libpst.spec.in @ 337:387655bdc5cb

Old dependency filter breaks file coloring
author Carl Byington <carl@five-ten-sg.com>
date Sun, 22 Sep 2013 16:54:25 -0700
parents f1595a84790b
children fab6df5d16d4
line wrap: on
line diff
--- a/libpst.spec.in	Sun Sep 22 16:10:10 2013 -0700
+++ b/libpst.spec.in	Sun Sep 22 16:54:25 2013 -0700
@@ -39,9 +39,15 @@
 Requires:           python
 Requires:           %{name}-libs = %{version}-%{release}
 
-%global __provides_exclude_from
-%{?__provides_exclude_from:%__provides_exclude_from|}^
-%{python_sitearch}/_.*\.so$
+%if 0%{?fedora} >= 20
+    %global __provides_exclude_from
+    %{?__provides_exclude_from:%__provides_exclude_from|}^%{python_sitearch}/_.*\.so$
+%else
+    %{?filter_setup:
+    %filter_provides_in %{python_sitearch}/_.*\.so$
+    %filter_setup
+%endif
+
 
 %description python
 The libpst-python package allows you to use the libpst shared object