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.)
This commit is contained in:
		
							parent
							
								
									b1c19eda86
								
							
						
					
					
						commit
						bddd6dd445
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user