[glusterfs/el5] just skip the python bits in -api because likely neither the glusterfs-openstack-swift nor openstack
Kaleb S. KEITHLEY
kkeithle at fedoraproject.org
Fri Sep 27 13:35:58 UTC 2013
commit bddd6dd445ae620b964d6dd954ba564df7fa3a85
Author: Kaleb S. KEITHLEY <kkeithle at redhat.com>
Date: Fri Sep 27 09:32:18 2013 -0400
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 files changed, 5 insertions(+), 1 deletions(-)
---
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
More information about the scm-commits
mailing list