aboutsummaryrefslogtreecommitdiff
path: root/nx-libs.spec
diff options
context:
space:
mode:
Diffstat (limited to 'nx-libs.spec')
-rw-r--r--nx-libs.spec5
1 files changed, 5 insertions, 0 deletions
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