From bddd6dd445ae620b964d6dd954ba564df7fa3a85 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Fri, 27 Sep 2013 09:32:18 -0400 Subject: [PATCH] just skip the python bits in -api because likely neither the glusterfs-openstack-swift nor openstack-swift RPMS will ever ship on el5. (Because they don't build on el5 due to missing prereqs.) --- glusterfs.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/glusterfs.spec b/glusterfs.spec index 8f66b8e..6d00eb0 100644 --- a/glusterfs.spec +++ b/glusterfs.spec @@ -411,8 +411,10 @@ This package provides the api include files. %{__install} -D -p -m 0644 extras/glusterd-sysconfig \ %{buildroot}%{_sysconfdir}/sysconfig/glusterd %endif +%if ( 0%{?rhel} && 0%{?rhel} > 5 ) %{__mkdir_p} %{buildroot}%{python_sitelib}/gluster touch %{buildroot}%{python_sitelib}/gluster/__init__.py +%endif %if ( 0%{_for_fedora_koji_builds} ) %if ( 0%{?rhel} && 0%{?rhel} <= 5 ) @@ -674,7 +676,9 @@ fi %exclude %{_libdir}/*.so %{_libdir}/libgfapi.* %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mount/api* -/%{python_sitelib}/gluster/__init__.p* +%if ( 0%{?rhel} && 0%{?rhel} > 5 ) +%{python_sitelib}/gluster/__init__.p* +%endif %if ( 0%{!?_without_ocf:1} ) %files resource-agents