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:
Kaleb S. KEITHLEY 2013-09-27 09:32:18 -04:00
parent b1c19eda86
commit bddd6dd445

View File

@ -411,8 +411,10 @@ This package provides the api include files.
%{__install} -D -p -m 0644 extras/glusterd-sysconfig \ %{__install} -D -p -m 0644 extras/glusterd-sysconfig \
%{buildroot}%{_sysconfdir}/sysconfig/glusterd %{buildroot}%{_sysconfdir}/sysconfig/glusterd
%endif %endif
%if ( 0%{?rhel} && 0%{?rhel} > 5 )
%{__mkdir_p} %{buildroot}%{python_sitelib}/gluster %{__mkdir_p} %{buildroot}%{python_sitelib}/gluster
touch %{buildroot}%{python_sitelib}/gluster/__init__.py touch %{buildroot}%{python_sitelib}/gluster/__init__.py
%endif
%if ( 0%{_for_fedora_koji_builds} ) %if ( 0%{_for_fedora_koji_builds} )
%if ( 0%{?rhel} && 0%{?rhel} <= 5 ) %if ( 0%{?rhel} && 0%{?rhel} <= 5 )
@ -674,7 +676,9 @@ fi
%exclude %{_libdir}/*.so %exclude %{_libdir}/*.so
%{_libdir}/libgfapi.* %{_libdir}/libgfapi.*
%{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mount/api* %{_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} ) %if ( 0%{!?_without_ocf:1} )
%files resource-agents %files resource-agents