commit 1e2c560b8aba4612b54ce0175777440f3995e8b4
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Thu Dec 13 10:42:24 2018 +0100
Fix python shebang ending with python22 on el
mythtv.spec | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/mythtv.spec b/mythtv.spec
index c9d39e7..897988d 100644
--- a/mythtv.spec
+++ b/mythtv.spec
@@ -1145,11 +1145,11 @@ popd
# Fixes ERROR: ambiguous python shebang in F30
%if 0%{?fedora} > 29
-find %{buildroot}%{_datadir}/mythtv/ -type f -name "*.py" -exec sed -i
'1s:#!/usr/bin/env python:#!%{__python3}:' {} ';'
-find %{buildroot}%{_datadir}/mythtv/ -type f -name "*.py" -exec sed -i
'1s:#!/usr/bin/python:#!%{__python3}:' {} ';'
+find %{buildroot}%{_datadir}/mythtv/ -type f -name "*.py" -exec sed -i
'1s:#!/usr/bin/env python$:#!%{__python3}:' {} ';'
+find %{buildroot}%{_datadir}/mythtv/ -type f -name "*.py" -exec sed -i
'1s:#!/usr/bin/python$:#!%{__python3}:' {} ';'
%else
-find %{buildroot}%{_datadir}/mythtv/ -type f -name "*.py" -exec sed -i
'1s:#!/usr/bin/env python:#!%{__python2}:' {} ';'
-find %{buildroot}%{_datadir}/mythtv/ -type f -name "*.py" -exec sed -i
'1s:#!/usr/bin/python:#!%{__python2}:' {} ';'
+find %{buildroot}%{_datadir}/mythtv/ -type f -name "*.py" -exec sed -i
'1s:#!/usr/bin/env python$:#!%{__python2}:' {} ';'
+find %{buildroot}%{_datadir}/mythtv/ -type f -name "*.py" -exec sed -i
'1s:#!/usr/bin/python$:#!%{__python2}:' {} ';'
%endif
%pre common