From 1fec6a795e30bfae8d1f5d04f971d33dcaf6ecc8 Mon Sep 17 00:00:00 2001 From: Björn Esser Date: Sep 03 2017 22:46:20 +0000 Subject: Make sure we explicitly use Python 2 --- diff --git a/nemo-extensions.spec b/nemo-extensions.spec index 3ac014f..c467245 100644 --- a/nemo-extensions.spec +++ b/nemo-extensions.spec @@ -1,6 +1,6 @@ Name: nemo-extensions Version: 3.4.0 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Extensions for Nemo License: GPLv2+ and LGPLv2 @@ -131,6 +131,15 @@ Context menu comparison extension for Nemo file manager. %prep %autosetup -p1 +# Make sure we explicitly use Python 2. +for f in $(%{__grep} -Rl '#!.*python$') ; do + %{__sed} -e 's~#!.*python$~#!%{__python2}~g' < ${f} > ${f}.new + /bin/touch -r ${f}.new ${f} + mode="$(%{_bindir}/stat -c '%a' ${f})" + %{__mv} -f ${f}.new ${f} + %{__chmod} -c ${mode} ${f} +done + %build %if 0%{?fedora} pushd nemo-pastebin @@ -319,6 +328,9 @@ fi %{_datadir}/applications/nemo-compare-preferences.desktop %changelog +* Sun Sep 03 2017 Björn Esser - 3.4.0-7 +- Make sure we explicitly use Python 2 + * Sun Sep 03 2017 Björn Esser - 3.4.0-6 - Adaptions for EPEL