aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2023-06-27 19:41:32 +0200
committerMihai Moldovan <ionic@ionic.de>2023-06-27 19:41:32 +0200
commite925e37f0b3a1dfb8ca0fa1a3fc158557b92475f (patch)
treebf49b2c70d24817ae5b1e9d1a49470e55a51a75d
parent4e70e0cb0c49c92357b71305a1f03a6efd8ed8b3 (diff)
downloadnx-libs-e925e37f0b3a1dfb8ca0fa1a3fc158557b92475f.tar.gz
nx-libs-e925e37f0b3a1dfb8ca0fa1a3fc158557b92475f.tar.bz2
nx-libs-e925e37f0b3a1dfb8ca0fa1a3fc158557b92475f.zip
nx-libs.spec: fix hashbang when manually replacing instead of using pathfix.py.
-rw-r--r--nx-libs.spec8
1 files 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