From 88cb7c66266178f5125477d3ff84ff47f2ca798f Mon Sep 17 00:00:00 2001 From: Irina Boverman Date: Tue, 8 Jan 2019 13:28:51 -0500 Subject: [PATCH] Removed original files --- qpid-proton.spec | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/qpid-proton.spec b/qpid-proton.spec index 16979d0..137650b 100644 --- a/qpid-proton.spec +++ b/qpid-proton.spec @@ -323,15 +323,12 @@ cd buildpython2 cd ../buildpython3 %make_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 +find %{buildroot}%{proton_datadir}/examples/python -name "*.py" -exec sed -i 's/!\/usr\/bin\/env python/!\/usr\/bin\/python3/' {} \; +sed -i 's/!\/usr\/bin\/python/!\/usr\/bin\/python3/' %{buildroot}%{proton_datadir}/examples/c/testme +sed -i '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 -rm -f %{buildroot}%{proton_datadir}/examples/python/*.original -rm -f %{buildroot}%{proton_datadir}/examples/c/*.original -rm -f %{buildroot}%{proton_datadir}/examples/cpp/*.original +mv %{buildroot}%{proton_datadir}/examples/python/proton_server.py.original %{buildroot}%{proton_datadir}/examples/python/proton_server.py %endif chmod +x %{buildroot}%{python2_sitearch}/_cproton.so