From 2ce414616ee6458442c1be4642dc4185c4ea22ea Mon Sep 17 00:00:00 2001 From: Jaroslav Škarvada Date: Dec 10 2018 17:07:13 +0000 Subject: Fixed generated python scripts shebangs Signed-off-by: Jaroslav Škarvada --- diff --git a/uhd.spec b/uhd.spec index b4dfa7e..a0e4f73 100644 --- a/uhd.spec +++ b/uhd.spec @@ -135,6 +135,9 @@ cd host/build make test %install +# fix python shebangs (run again for generated scripts) +find . -type f -name "*.py" -exec sed -i '/^#!/ s|.*|#!%{__python2}|' {} \; + pushd host/build make install DESTDIR=%{buildroot}