diff options
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r-- | glusterfs.spec.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in index 550e80b6f69..e4551c320d2 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -723,6 +723,12 @@ GlusterFS Events %prep %setup -q -n %{name}-%{version}%{?prereltag} +%if ( ! %{_usepython3} ) +echo "fixing python shebangs..." +for f in api events extras geo-replication libglusterfs tools xlators; do +find $f -type f -exec sed -i 's|/usr/bin/python3|/usr/bin/python2|' {} \; +done +%endif %build %if ( 0%{?rhel} && 0%{?rhel} < 6 ) |