From fef31aa499b5ed5fe836c44307e8ab520bfa5399 Mon Sep 17 00:00:00 2001 From: Björn Esser Date: Aug 31 2017 17:17:40 +0000 Subject: Use Python2 on EPEL <= 7 --- diff --git a/nemo.spec b/nemo.spec index db799e8..a3f4620 100644 --- a/nemo.spec +++ b/nemo.spec @@ -1,7 +1,7 @@ Name: nemo Summary: File manager for Cinnamon Version: 3.4.7 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2+ and LGPLv2+ URL: https://github.com/linuxmint/ Source0: %url/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz @@ -69,6 +69,15 @@ for developing nemo extensions. %prep %autosetup -p1 + +%if (0%{?rhel} && 0%{?rhel} >= 7) +for f in $(%{__grep} -Rl '#!.*python3') ; do + %{__sed} -e 's~#!.*python3~/#!usr/bin/python2~g' < ${f} > ${f}.new + /bin/touch -r ${f}.new ${f} + %{__mv} -f ${f}.new ${f} +done +%endif # (0%%{?rhel} && 0%%{?rhel} >= 7) + NOCONFIGURE=1 ./autogen.sh %build @@ -163,6 +172,9 @@ fi %{_datadir}/gir-1.0/*.gir %changelog +* Thu Aug 31 2017 Björn Esser - 3.4.7-4 +- Use Python2 on EPEL <= 7 + * Thu Aug 31 2017 Björn Esser - 3.4.7-3 - Adjustments for EPEL7