From e925e37f0b3a1dfb8ca0fa1a3fc158557b92475f Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Tue, 27 Jun 2023 19:41:32 +0200 Subject: nx-libs.spec: fix hashbang when manually replacing instead of using pathfix.py. --- nx-libs.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nx-libs.spec b/nx-libs.spec index 85f11f619..b3482626d 100644 --- a/nx-libs.spec +++ b/nx-libs.spec @@ -485,10 +485,10 @@ rm %{buildroot}%{_libdir}/*.la %if 0%{?suse_version} %if 0%{?suse_version} >= 1500 sed -i -e '1c\ -%{_bindir}/python3' '%{buildroot}%{_bindir}/nxdialog' +#!%{_bindir}/python3' '%{buildroot}%{_bindir}/nxdialog' %else sed -i -e '1c\ -%{_bindir}/python2' '%{buildroot}%{_bindir}/nxdialog' +#!%{_bindir}/python2' '%{buildroot}%{_bindir}/nxdialog' %endif %else # Unfortunately, pathfix.py is not available everywhere, so where it is not, @@ -498,14 +498,14 @@ sed -i -e '1c\ pathfix.py -pni "%{__python3} %{py3_shbang_opts}" '%{buildroot}%{_bindir}/nxdialog' %else sed -i -e '1c\ -%{__python3}' '%{buildroot}%{_bindir}/nxdialog' +#!%{__python3}' '%{buildroot}%{_bindir}/nxdialog' %endif %else %if 0%{?rhel} > 6 pathfix.py -pni "%{__python2} %{py2_shbang_opts}" '%{buildroot}%{_bindir}/nxdialog' %else sed -i -e '1c\ -/usr/bin/python2' '%{buildroot}%{_bindir}/nxdialog' +#!/usr/bin/python2' '%{buildroot}%{_bindir}/nxdialog' %endif %endif %endif -- cgit v1.2.3