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