From 5bd72aec3c45664712c4c88875777e955bb53da3 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Tue, 3 Nov 2020 19:55:07 +0100 Subject: nx-libs.spec: Set python shebang to python3 on fedora and rhel8 *** ERROR: ambiguous python shebang in /usr/bin/nxdialog: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. Fedora offers a pythfix.py but I could not test with that so I simply used sed... Fixes ArcticaProject/nx-libs#955 --- nx-libs.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nx-libs.spec b/nx-libs.spec index ddbc16799..7886be14d 100644 --- a/nx-libs.spec +++ b/nx-libs.spec @@ -473,6 +473,11 @@ rm -r %{buildroot}%{_includedir}/nx-X11/Xtrans #Remove our shared libraries' .la files before wrapping up the packages rm %{buildroot}%{_libdir}/*.la +# Fix python scripts +%if 0%{?fedora} >= 23 || 0%{?rhel} >= 8 || 0%{?py_ver} == 3 +sed -i '1 s/python/python3/' %{buildroot}%{_bindir}/nxdialog +%endif + %if 0%{?fdupes:1} %fdupes %{buildroot}%{_prefix} %endif -- cgit v1.2.3