epel9
Irina Boverman 6 years ago
parent 7ea71adcf6
commit 16393287b1

@ -323,15 +323,18 @@ cd buildpython2
cd ../buildpython3 cd ../buildpython3
%make_install %make_install
(cd python/dist; %py3_install) (cd python/dist; %py3_install)
find %{buildroot}%{proton_datadir}/examples/python -name "*.py" -exec sed -i.original 's/!\/usr\/bin\/env python/!\/usr\/bin\/python3/' {} \;
sed -i.original 's/!\/usr\/bin\/python/!\/usr\/bin\/python3/' %{buildroot}%{proton_datadir}/examples/c/testme
sed -i.original 's/!\/usr\/bin\/python/!\/usr\/bin\/python3/' %{buildroot}%{proton_datadir}/examples/cpp/testme
echo '#!/usr/bin/python3' > %{buildroot}%{proton_datadir}/examples/python/proton_server.py.original
cat %{buildroot}%{proton_datadir}/examples/python/proton_server.py >> %{buildroot}%{proton_datadir}/examples/python/proton_server.py.original
cp %{buildroot}%{proton_datadir}/examples/python/proton_server.py.original %{buildroot}%{proton_datadir}/examples/python/proton_server.py
%endif %endif
#CPROTON_BUILD=$PWD . ./config.sh
chmod +x %{buildroot}%{python2_sitearch}/_cproton.so chmod +x %{buildroot}%{python2_sitearch}/_cproton.so
%if 0%{?fedora} || 0%{?rhel} > 7 %if 0%{?fedora} || 0%{?rhel} > 7
chmod +x %{buildroot}%{python3_sitearch}/_cproton.so chmod +x %{buildroot}%{python3_sitearch}/_cproton.so
%endif %endif
#find %{buildroot}%{proton_datadir}/examples/ -type f | xargs chmod -x
%if 0%{?rhel} && 0%{?rhel} <= 6 %if 0%{?rhel} && 0%{?rhel} <= 6
install -pm 644 %{SOURCE1} %{buildroot}%{proton_datadir}/ install -pm 644 %{SOURCE1} %{buildroot}%{proton_datadir}/

Loading…
Cancel
Save